33 Commits

Author SHA1 Message Date
7ae37d1d40 When sharing a note share its metadata as well
Fixes https://github.com/GitJournal/GitJournal/issues/360

I'm not sure if this is ideal as now the metadata such as 'modified' and
'created' will also be shared. On the other hand, the metadata often has
valuable information which is otherwise getting lost.
2020-12-16 12:29:29 +01:00
770394a8f9 Rename StateContainer to Respository 2020-10-23 01:38:47 +02:00
acce7160b9 getTodayJournalEntry: Not all notes have a 'created'
Non Null by default is really needed. I can't wait for these kind of
errors to never happen again.
2020-09-22 12:17:06 +02:00
265e253584 Generate one journal entry per day
Fixes #243
2020-09-16 11:08:16 +02:00
b9d8a8daa6 FolderView: Implement basic note selection
You can delete or share a note using this.
2020-09-07 16:37:51 +02:00
362b29929e Undo Snackbar: Make strings translatable 2020-09-05 11:21:54 +02:00
ccf5f65e55 List Repos: Print the http req as curl
Makes it easier to test
2020-09-05 11:03:15 +02:00
d94a1e1630 Remove another use of Settings.instance
I really want to remove this global variable, and only access it through
the Provider.
2020-08-16 15:51:53 +02:00
155d04e465 Directly get the RootFolder from the Provider
Instead of going through the StateContainer
2020-08-16 15:38:26 +02:00
8ab7ec22c4 Always check if a Folder exists before accessing it
This kinds of bugs will be less frequent once we have non null by
default enabled in Flutter.

Fixes #164
2020-07-31 21:16:36 +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
84fab89f48 Do not allow us to edit the Note Editor if the Note cannot be saved
In some rare cases the note just doesn't get saved on disk - in those
cases instead of silently failing we will refuse to exit the note
editor, forcing the user to copy the note and paste it somewhere else in
order to not lose the date.

This isn't the best solution, but it prevents data loss, in a few edge
cases which I cannot reproduce.

Fixes #124
2020-07-13 17:13:02 +02:00
835bf1f089 Fix undo not always working
This should hopefully fix it

fixes APP-31
2020-06-04 15:24:59 +02:00
0dfb86788e Minor refactor 2020-05-13 16:56:20 +02:00
bb0e574495 Abstract out the logging
This way moving away from Fimber will be much easier.
2020-04-04 11:50:57 +02:00
77a70a3336 Remove old snackbar before adding another one 2020-02-18 14:38:37 +01:00
3a3ec76529 StateContainer: Use Provider
This way we can avoid listening for changes in many places.
2020-02-11 19:10:34 +01:00
5ae288a3f6 Remove Flushbar
With a FAB, flushbar's snackbar is just too difficult to press. We're
reverting to the classic Scaffold and making sure we're calling it with
the correct context.

https://github.com/AndreHaueisen/flushbar/issues/64
2020-02-09 16:32:35 +01:00
8761f96bbe UndoSnackBar: Stop using Fimber
It makes everything far more complicated, but at least this way the FAB
moves along with the scaffold. With Fimber, that is not the case, and it
is very annoying.
2020-01-31 17:41:05 +01:00
3f40a2992a Add the concept of Editors
* We no longer have a separate editing and browsing view - This does
mean we loose the ability to quick flip between notes by swiping.
However, this is more how a note editor would behave. I do later want to
add that capability back.

* We have 2 editors for now - Markdown and Raw. By default we use the
Markdown editor which can be toggled between Preview / Edit mode.

I later want to add a rich text editor and a todo editor as well.
2020-01-29 00:04:24 +01:00
cdd3f8d86c Use flutter_runtime_env
Now almost all of the custom Java/iOS code has been moved to plugins.
2019-12-26 17:00:57 +01:00
2ba5b52f8d Move fetch application logs to its own plugin
Maybe it will be useful to others. This way we're also closer to
removing almost all java / objective-c custom code.
2019-12-21 18:17:14 +01:00
464b7512e9 Move Note and NoteFolder class into a core folder 2019-12-04 14:18:11 +01:00
d5f91cb898 More prefer_const
It seems like flutter analyze might have some kind of cache
2019-10-20 01:24:43 +01:00
e7b05d7231 Enable unnecessary_const 2019-10-20 01:15:58 +01:00
df96467353 UndoSnackbar: Pass the StateContainer down
Not sure why fetching the StateContainer from the context seems to be
failing and throwing an exception.
2019-10-09 00:22:17 +02:00
7f557d3d3e Use Flushbar for Snackbars
The flutter default Snackbars are a major PITA to use as they require a
Scaffold, additionaly, they will not be shown if the parent Scaffold is
destroyed, which is the case when deleting a note and returning to the
main screen.
2019-10-09 00:12:58 +02:00
74d7bdd763 Use a proper logger - Fimber
It's time to start using a proper logger so we can control the number of
log messages, also - it helps to have a central configuration point for
the logs, specially since I would like to hook them up to Crashlytics in
the future.
2019-06-19 09:45:15 +02:00
24a5f9b78d Let shouldEnableAnalytics not be implemented
It's currently not implemented in ios
2019-06-03 00:18:08 +02:00
f3b73df119 Disable analytics in firebase test lab
I'm also keeping analytics disabled by default.
2019-06-02 17:12:22 +02:00
9051d1e7dc Add a 'Report Bug' button
This also attaches the entire 'adb logcat' in Android. This way, we can
hopefully get useful info about why something is not working.

This currently breaks the build as we need to migrate to Android X
2019-05-20 14:35:27 +02:00
a32f01b2c4 Implement undo delete properly
This way the git History is not modified.
2019-02-15 19:58:58 +01:00
c085475d9b Feedback: Send us the version number of the app 2019-02-15 13:13:35 +01:00