227 Commits

Author SHA1 Message Date
c5e9cc7821 Bump to flutter 3.19.6
We have a newer version of Flutter out, but I prefer to wait a few
months before all the relevant packages upgrade, as I'm already getting
tons of errors.
2024-05-15 07:45:10 +02:00
7fd1c99287 Use Provider's context.read/watch
Instead of the legacy Provider.of. Less scope of bugs this way and the
code is so much nicer to read.
2023-12-06 08:20:40 +01:00
657721adc6 Update dart-git and stop using the Result class
Instead we're going to move back to standard exceptions.

Using a custom Result class has created far far more problems
- The Stacktraces aren't always right
- Sometimes one forgets to check the Result error
- All other exception throwing code needing to be converted to Results
- Non idiomatic Dart code

I think it's better to just go back to exceptions. They have their
problems, but overall, I think it's a better approach.
2023-11-24 14:03:30 +01:00
1a62453c58 Remove more cruft
I'm not planning on releasing a macos version any more.
2023-11-13 15:39:05 +01:00
c2b2f73c60 LocalizationDelegates: The context is not used 2023-01-20 13:27:39 +01:00
5154e6cb11 Remove Supabase
It's way too heavy for some very simple account features that I require.
2023-01-20 12:58:23 +01:00
b7dd2042b6 Remove "Subscriptions" and make "Restore Purchases" work
* GitJournal's revenue model is now only going to have a 1 time
  purchase. Managing both subscriptions and 1-time is rather complicated
  and I rather not deal with its complexity.
2023-01-19 18:21:37 +01:00
91cc65131b Completely remove easy_localization 2022-11-27 20:41:20 +01:00
6d453ee62a Rename app_localization_context to l10n
It's easier to enter and this file now contains far more things
2022-11-27 17:52:03 +01:00
532e5b1d59 Fix Editor tests 2022-11-20 19:54:34 +01:00
0811f27c8b Add AppLocalizations delegate
Since we're no longer only using EasyLocalizations
2022-11-20 19:47:07 +01:00
b925da7a47 Use the generated localization instead of easy_localization
Not everywhere, but a large part of the code base.

This way, hot reloading will also reload the strings which makes for
such a better developer experience.
2022-11-19 03:02:01 +01:00
1c1aa308d5 Split locales into a global variable
It's just easier to use in other parts of GitJournal this way.
2022-11-19 02:07:30 +01:00
ae9228f65e Use super.key
Makes the code a bit more readable.
2022-08-25 11:32:25 +02:00
7c1f92df88 Run dart fix --apply 2022-06-07 11:30:06 +02:00
dc5763de6a Add a test for testing sharing some text 2022-03-18 16:33:52 +01:00
cdc520c610 Move ChangeNotifiers to their own file 2022-03-18 15:46:58 +01:00
843fcf14cc Add sparkle auto-update for macos
The feed still needs to be created. But this is a good first step.
2022-03-16 21:09:43 +01:00
f112c4f9ad Only commit on boot for repos which are stored externally
This commit is very very slow, and slows the entire app down. It might
be acceptable for external repos, given that this will speed up in the
next one, but it anyway doesn't need to be done for internal ones.
2021-12-29 16:50:28 +01:00
de5cec30f3 Avoid using the same hive cache for all the materialized views
We were using the same one for each repo.
2021-12-26 18:32:46 +01:00
e936980733 Allow Theme Name to be saved 2021-12-23 18:39:15 +01:00
81bfd7a777 Rename to rootFolder 2021-12-20 09:28:00 +01:00
9d70d53e35 Never just hang on loading
This would happen if the current repo couldn't be opened.

We now show a special "Error Screen", and allow the user to add another
repo.
2021-12-16 13:05:02 +01:00
9fa5b95efe Make the result explicit 2021-12-14 17:04:47 +01:00
d5e57ec0a3 Fix all dart code metrics linter problems
It's now enabled in the CI.
2021-12-14 16:47:58 +01:00
6230e2b3df Rename AppSettings to AppConfig
I just want all the 'Settings' classes to the UI. In the end it really
doesn't matter. This was probably a waste of 5 minutes.
2021-10-27 20:47:57 +02:00
6a915864f2 Move NotesFolder's code to their own folder
The 'core' folder is becoming way too huge.
2021-10-15 12:31:35 +02:00
7e0a77ace3 Fix many cases of 'avoid-ignoring-return-values'
Now that dart-code-metrics has been updated, this lint can finally be
used. So far all of these are false positives, in the sense that I don't
care about their return values.

I wish there was an easy way of marking functions whose return value
shouldn't ever be ignored.
2021-09-27 18:39:18 +02:00
c4ef1f569b Use flutter_lint
Instead of picking lint values. This way I don't need to routinely
looking at extra lints to enable.
2021-09-21 15:42:13 +02:00
6709c1f604 Avoid printing the received share's value 2021-09-17 08:43:01 +02:00
f92c21461f Hardcore /newNote/ in a variable 2021-09-16 22:34:17 +02:00
73777a850d Move type registration the app init code
Instead of doing it multiple times. We have an error on Sentry that I
don't understand, maybe this will fix it. *shrug*

Fixes APP-1E6
2021-09-16 12:30:23 +02:00
33a731a3d7 Add reuse licensing to files in lib 2021-09-15 13:06:43 +02:00
fb8059b1fc Supabase: Fix register 2021-09-14 10:21:13 +02:00
d597c68ece Remove experimental FS
It'll be easier to just extend the already existing views. Maintaining
yet another view is just too much.
2021-09-08 15:30:19 +02:00
89298c4495 Language Selector: Show the full language name
Instead of just the iso code

Man, this took quite a while, because of the Mandarin script.
2021-09-08 01:50:12 +02:00
637642e19b Supabase: Store the data in the support directory
By default it is stored in ~/Documents in linux.
2021-09-07 10:37:46 +02:00
665d1dce2b Add a Materialized View for the Links
Calculating the links is very expensive, this way we finally don't need
to do it each time!
2021-09-06 16:57:30 +02:00
d3fae40173 Rename views to providers
The providers give a View
2021-09-06 14:32:25 +02:00
17afc9deb9 Views: Use Nested to simplify code
It makes it easier to read by avoiding the deep nesting.
2021-09-01 09:16:50 +02:00
abc9a31290 Add InlineTags Materialized View
This way we avoid parsing the tags from the body again and again, also
I can make the tags processing more complex without worrying too much
about the computational overhead.
2021-08-31 22:59:41 +02:00
130eb852b2 Note: Move summary to a MaterializedView
This way it doesn't need to be computed each time the app loads.
2021-08-31 21:48:27 +02:00
35e7fc2103 Simplify Providers code 2021-08-31 21:27:02 +02:00
8b9ec3fab7 Structured Logging++ 2021-08-30 22:46:15 +02:00
455844e9b0 LocaleKeys++ 2021-08-26 13:54:39 +02:00
b42538192d Analytics: Move firebase lab detection into analytics package
This way the app.dart file has minimal logic.
2021-08-17 00:10:53 +02:00
0a5e0bcf43 Analytics: Add config class
Move parts out of AppSettings
2021-08-16 23:55:14 +02:00
6ae11d386d Analytics: Move settings into Analytics
Lots of code cleanups as well
2021-08-16 13:23:26 +02:00
103197b886 Analytics: Send to backend when possible 2021-08-12 00:10:18 +02:00
9efc8cfcfa Analytics: Hook up the storage
Add events to the storage independent of Analytics being enabled or not.
The idea is that the user can later decide to enable the analytics and
send all the old events.
2021-08-11 11:54:32 +02:00