69 Commits

Author SHA1 Message Date
2e0a3cfd6a chore: Moving folder_listing to bloc
First implementation of a screen using bloc. I'd like to slowly move all
the screens to bloc.
2024-08-18 20:12:26 +02:00
df07bd36d3 Make sure Flutter is initialized in the same isolate
The stack_trace package starts another isolate internally.
2023-12-06 04:12:25 +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
b88329f1da macos: Get this to run
I'm not planning a macos version, but it's super useful to be able to
run the desktop version for testing, as it doesn't need me to run things
on an emulator or physical device.
2023-10-29 14:08:33 +01:00
91cc65131b Completely remove easy_localization 2022-11-27 20:41:20 +01:00
ce8e6d4d0d Fix Laggy performance on OnePlus7
Fixes #259
2022-11-19 03:58:36 +01:00
ae09b1ba12 Add unawaited or explicitly wait
There are still many cases (over 60) to fix.
2022-02-23 15:15:49 +01:00
c3e7a9ffd7 lint: Add avoid_void_async 2021-11-17 18:10:59 +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
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
33a731a3d7 Add reuse licensing to files in lib 2021-09-15 13:06:43 +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
aa257464d2 Supabase: Experiment with register 2021-08-26 12:34:32 +02:00
6ae11d386d Analytics: Move settings into Analytics
Lots of code cleanups as well
2021-08-16 13:23:26 +02:00
f631b99aa5 Experiment: Start integrating supabase 2021-08-16 12:44:49 +02:00
d6e2f09a72 Move all settings code to its own folder
Jumping around between the widgets / screens and outside is bit
confusing. Also this way, I can add the stories right here.
2021-06-05 12:23:28 +02:00
16fad3b98c Finish null safety migration 2021-06-02 11:25:16 +02:00
a6d0085cea Localization: Disable debug log messages
Super annoying
2021-05-07 11:09:38 +02:00
604bfbcb7e Add dart 2.9 declaration in the main file
The top level file must have this if it imports other files which
haven't been converted for null safety.
2021-04-14 15:32:01 +02:00
8aa86312dc Fix easy localization
breaking change when updating
2021-03-25 12:27:17 +01:00
a9f3001798 Use StackTrace library to make the traces shorter
And hopefully add some more context to some async stack traces that
don't make any sense.
2020-11-18 12:53:12 +01:00
9499cea164 Remove Settings global
Stop it being a singleton. This means it needs to be passed around a
lot. This sucks, but it's how it should be. I shouldn't be using a
global variable to get around this.

This is needed as Settings will soon become repo specific when we
support multiple repos.

This breaks saving the settings in a file, that feature was toggled off
anyway. It needs to be thought over again.
2020-10-09 00:59:19 +02:00
fe08834259 Split Settings into AppSettings and Settings
This way I can eventually change Settings into RepoSettings without
breaking anything.
2020-09-25 00:33:54 +02:00
f30c52f595 Move all persistent state from AppState to Settings
This way all the persistant state of the app is managed from the same
place. It makes everything much easier. Also, it's required for when
GitJournal supports multiple repositories.
2020-09-24 23:45:37 +02:00
6d101ad5c4 Remove flutter crashlytics
Sentry is being used instead, and it's working out quite well.
2020-07-26 19:05:52 +02:00
9d00fdac06 Use import_sorter
flutter pub run import_sorter:main --no-comments

The code feels much cleaner
2020-07-24 12:43:28 +02:00
0023346e60 Port away from deprecated runZoned 2020-05-08 10:55:00 +02:00
e426f5523c Do not report Flutter errors to Crashlytics
It's just extra noise. We're still initializing it as I want the
iOS/Android level errors.
2020-04-14 16:19:44 +02:00
7e0b073f32 Move error reporting to its own file
* Avoid passing Flutter errors to its Zone handler, this doesn't always
catch the errors

* Catch the current isolate's errors. I haven't been able to test this
out, but lets see.
2020-03-30 11:20:04 +02:00
8c89f8a1b0 Very basic sentry integration 2020-03-26 12:19:22 +01:00
28f626719b Improve debug mode detection 2020-01-07 20:15:19 +01:00
8defd7c3d4 Flutter 1.12 - Initialize widgets if main func is async 2019-12-11 20:09:08 +01:00
73715e3417 Crashlytics: Disable in debug builds
This way no matter what, a debug build will not report to crashlytics.
As it currently did.
2019-10-08 23:35:39 +02:00
69003cf0ac Rename package from journal -> gitjournal
It's about time.
2019-10-07 19:30:50 +02:00
8d717cbaeb Allow Analytics collection and Crash report collection to be disabled
As the developer I really don't want users to disable these, but as
a User, I always want the option, so I should include it.
2019-10-06 12:40:49 +02:00
b5f5fdcd67 Log uncaught exceptions
They are already being sent to Crashalytics, but I would still like to
log them in the debug log. It makes debugging everything much easier.
2019-06-02 15:17:55 +02:00
00355c532b Add a trivial integration test which just takes a screenshot
This required refactoring the code. With this we can now write an
integration test to test the main parts of the app, but more importantly
we can automate the process of generating the screenshots.
2019-02-16 00:16:32 +01:00
a32f01b2c4 Implement undo delete properly
This way the git History is not modified.
2019-02-15 19:58:58 +01:00
2b1ac39a9d Disable crashalytics in debug mode 2019-02-15 19:28:02 +01:00
ac7d7f7445 Disable onBoarding screen for now
I want to make a new release, and the onboarding is clearly not ready.
2019-02-14 14:35:04 +01:00
03e46ce8cd Allow notes to be stored inside a sub-folder in a git repo 2019-02-14 12:59:43 +01:00
c819f49afe Add a very basic onBoardingScreen 2019-02-14 01:44:57 +01:00
9452354a99 Fix onError types 2019-02-13 14:25:52 +01:00
acede95536 Dart: Add analysis_options
For now I've mostly tried to follow the same style guide as the flutter
repository, with many options disabled. Eventually, maybe it would make
sense to be far stricter.
2019-02-13 13:08:15 +01:00
c7915d8feb Settings Screen: Actually save the gitAuthor + email
There is too much code duplication over here, but - meh - I'll clean it
up later.
2019-02-09 16:30:12 +01:00
75d86dfa99 Settings: Add 'GitAuthor' and 'Git Author Email'
These are just dummy values for now and cannot be actually changed.
2019-01-23 13:29:26 +01:00
a29a102667 Move git api to apis folder 2019-01-23 11:54:02 +01:00
519de8fcff Remove onboarding screen
For now just create a local git repo and commit all the changes over
there, we're going to allow the user to first see the app and use it
however they want, and later connect it to a remote git repo.

This commit breaks the app, as the on-boarding screen is no longer
connected so you cannot push to a remote app.
2019-01-21 13:43:33 +01:00
b322e4806d Disable analytics in debug mode
Sadly we can only do this in Android, there doesn't seem to be a way to
disable it on iOS.

https://github.com/flutter/flutter/issues/21063
2019-01-18 12:30:01 +01:00
361ee40868 Add crashanalytics 2019-01-14 14:35:05 +01:00