1388 Commits

Author SHA1 Message Date
77e67fca11 Rename Folders properly
1. Actually rename the folder instead of calling rename with the oldPath
2. Inform the parentFolder that a sub-folder has been renamed so it can
accordingly update its mapping.

Fixes #108
2020-04-20 02:11:42 +02:00
5784399ac6 Remove NotesFolderFS::insert
The position of the note in the folder doesn't matter as Virtual folders
on top of this sort it according to how to how the user wants them to be
sorted.
2020-04-20 01:56:32 +02:00
3c3c49e099 Search: Check if filename matches
Fixes #95

We really need search highlighting to showcase why an item matched while
searching. Additionally, soon we may need to give the user control over
what all should be searched.
2020-04-20 00:37:48 +02:00
f84642207d Always check if not in pro mode
A person can install the app and be already in pro mode - for example if
they have cleared their cache. Ideally, we shouldn't be checking each
time on boot and instead just be checking when it expires.

Fixes #110
2020-04-20 00:28:24 +02:00
ff2ac647c5 Remove unused imports 2020-04-17 10:33:31 +02:00
25e5d3b8b7 Bump version 2020-04-17 10:32:53 +02:00
d81041802a MarkdownView: Use CachedNetworkImage
This is the simplest way I could find of showing a placeholder and
loading screen while the image was downloading. I'm not sure if I want
to cache the images locally.

Also, this adds lots of dependencies, which I'm not too comfortable
with.
2020-04-17 10:27:21 +02:00
6c47016c8b logException: Also log to Sentry 2020-04-17 09:42:19 +02:00
98b8e92437 PurchaseScreen: Show error as snackbar
We seem to be getting a PlatformException while listing the offerings.
2020-04-17 09:37:22 +02:00
b66d9e1a66 README: Add another screenshot 2020-04-16 17:59:39 +02:00
463bf7b4e6 README: Update screenshots 2020-04-16 17:55:01 +02:00
36aaabf582 TestDriver: Take some more screenshots
* Add some existing notes
* Screenshot the checklist edit
* Screenshot the folders view
2020-04-16 17:34:38 +02:00
db677f876b Fix settings crash 2020-04-16 17:20:19 +02:00
2d01e1d825 CI: Try to fix it
Not sure why this is suddenly happening
2020-04-16 13:48:37 +02:00
1d4fd16cc7 PurchaseScreen: Add another advantage 2020-04-16 13:32:04 +02:00
0be484f9b3 PurchaseScreen: Log purchases 2020-04-16 13:31:43 +02:00
afe94da638 MarkdownEditor: Allow the default view to be configurable
Fixes #98
2020-04-16 13:16:40 +02:00
d03213178c Settings: Move Editor Settings to their own screen
It just has the default settings right now, but we need to expose some
settings in the Markdown Editor.
2020-04-16 13:06:11 +02:00
84a7812f0b Log Settings and AppState
Not as debug messages. This is very important when receiving a bug
report.
2020-04-16 11:50:18 +02:00
fd7ad7d92b Generate a random uuid for each user for Sentry
This way, we know if one particular user has lots of errors. Firebase
Crashlytics used to do this automatically, I think.
2020-04-16 11:49:20 +02:00
21a7798dc9 Note.load: lastModified can throw an exception
Fixes APP-V
2020-04-16 10:12:33 +02:00
bbaf5b4452 Wait for previous completion of loadNotes
Fixes APP-R
2020-04-16 09:35:18 +02:00
c14ffda409 App: Store the gitBasePath in the settings
This is the folder where the git repo should be stored.

By storing it, we can easily change it later. Also it allows us to
reduce of our custom platform code.
2020-04-15 14:25:40 +02:00
9a77afcbfd Do not allow / in the filename
Fixes #102
2020-04-15 14:02:36 +02:00
7b03e88847 Add another advantage to the purchase section 2020-04-15 09:05:06 +02:00
5bc6ed9d9e Bump version 2020-04-14 18:31:01 +02:00
dbeb1cdbe5 Remove hero from note_viewer
We now show the NoteEditor directly, so this hero doesn't really do
much.
2020-04-14 18:27:16 +02:00
0162d1e11a Only do a git push if one has commits to push
This is the first use of my pure Dart implementation of Git. Hurray!
Now hopefully, I can slowly get rid of git_bindings entirely.
2020-04-14 18:15:32 +02:00
2eda892285 Remember to dispose text controllers 2020-04-14 17:53:17 +02:00
90dcb72ccf NoteEditor: Fix debug variable 2020-04-14 17:53:02 +02:00
f53aa53683 Checklist: Maintain the case of 'x' 2020-04-14 17:46:24 +02:00
40d613b60c Revert "Remove unused variable"
This reverts commit e0e0d6d42f1fadaf47f55c880ade4d1ab393cbaa.

This is clearly used.
2020-04-14 17:09:19 +02:00
a0ea7397ee Remove unused variable 2020-04-14 16:47:47 +02:00
f79fc52a89 PurchaseScreen: Allow it to be scrolled
Maybe for really small screens?
2020-04-14 16:31:17 +02:00
e117c19add PurchaseScreen: Change status bar color
It looks strange when it's just white.
2020-04-14 16:20: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
7856748f5b Improve the purchase screen
It's still quite boring, but it's better than before.
2020-04-14 15:49:35 +02:00
fa63c98d6d Add a basic Purchase Thank you screen 2020-04-14 15:35:37 +02:00
22b32d9fc3 PurchaseScreen: Make it kinda work in the dev flavour
At least it appears and we don't get an error. This makes working on the
screen easier as I like to use the 'prod' flavour for my own notes /
journals.
2020-04-14 15:25:29 +02:00
e5e27e9a1d Add a bottom padding in the folderView
This way the FAB bar doesn't cover the last element.
2020-04-14 08:29:17 +02:00
e0e0d6d42f Remove unused variable 2020-04-14 08:29:09 +02:00
84ad9c2ec4 Remove LICENSE from README
GitJournal has been AGPL for sometime now.
2020-04-11 13:00:43 +02:00
e0f84eb093 CI: Fix dart path 2020-04-10 14:54:09 +02:00
6fab0ae0a4 FlattenedNotesFolder: Stop maintaining the index
This makes it slower, but since remove operations are much less frequent
it's okay to have them at O(n)
2020-04-10 13:54:03 +02:00
6922c1a2ae CI: Setup env before running tests
Some of the included files sometimes need the env file to exist
2020-04-10 13:48:35 +02:00
cb126c733a Add missing file 2020-04-10 13:46:49 +02:00
14d734bf08 Fix handling of Note renames
We often use the note's filePath as a unique identifier, however that
can change, and we need to update the caches accordingly.

Fixes #97
2020-04-10 13:45:19 +02:00
d16b4e9eb9 Update build instructions 2020-04-10 13:03:00 +02:00
0e05422f16 Stop tracking .env.dart file 2020-04-10 13:01:54 +02:00
d724dfb8ad Implement basic IAP support for Android
It's very ugly, but it works.
2020-04-10 12:58:21 +02:00