49 Commits

Author SHA1 Message Date
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
eac9857c17 Persist onBoardingCompleted 2019-01-10 13:22:21 +01:00
4bb02b12d6 Hookup the Journal app to git
Now notes are saved in the git repo, and immediately synced. This is not
the best implementation, as the notes are being reloaded a lot, and
the error handling is terrible (I miss golang). But it's the first
working poc.
2019-01-09 12:55:53 +01:00
c8e7ef1671 Add a new Git app for testing the git commands 2019-01-07 10:44:52 +01:00
b6c38dde3c Use an InheritedWidget instead of passing the callbacks
This simplifies the code quite a bit, at the cost of using this
strange flutter magic of an 'InheritedWidget'.

It basically make a class a global variable.
2018-05-24 12:33:46 +02:00
0cb36b2981 Make the state global and connect the add note screen
This is a huge work in progress, but it finally seems to kinda work.
2018-05-21 16:51:29 +02:00
40caa985d7 Split the JournalList into its own file
This way the widgets are separate
2018-05-20 11:35:44 +02:00
8adfb776d0 Split NoteViewer into another file 2018-05-17 18:28:20 +02:00
469e25b08f Pass the correct note to the viewer 2018-05-17 17:59:36 +02:00
d2af7534cc Note Json now has a body 2018-05-17 17:59:21 +02:00
0230ed50f5 Move Editor to its own file 2018-05-17 17:59:09 +02:00
fdc07ee94e Show the actual date and time 2018-05-17 17:25:13 +02:00
f3165c2eec Load the notes from the server 2018-05-17 17:18:11 +02:00
173682f40f Make the state explicit 2018-05-17 16:26:18 +02:00
79617f155a Add a very simple text editor 2018-05-15 18:25:52 +02:00
017f6d25c7 Add a screen to show a journal entry 2018-05-15 16:49:36 +02:00
7b2d27ebf6 JournalList doesn't have any internal state 2018-05-15 16:20:53 +02:00
44b54bdc36 Add a simple journal list 2018-05-15 16:17:09 +02:00
27023eec84 Implement first tutorial of startup names 2018-05-13 07:38:17 +02:00
72712bd4de Initial import from 'flutter create' 2018-05-12 18:45:42 +02:00