1275 Commits

Author SHA1 Message Date
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
706f5bfacc Disable ssh logging
It's super verbose and no longer required
2019-01-09 12:52:57 +01:00
03645c298a GenerateSSHKey: Allow the comment to be customized 2019-01-09 11:54:10 +01:00
5a8217105e Android: Fix app label 2019-01-08 22:36:33 +01:00
c68d899ce4 Fix java directory structure 2019-01-08 22:30:34 +01:00
984d7da500 pubspec: Update description 2019-01-08 22:25:56 +01:00
126bf29bd6 Add a script to auto reload the app
This requires the app to be run with -

flutter run --pid-file /tmp/flutter.pid
2019-01-08 22:16:11 +01:00
2ebe2ff59c Add basic Firebase analytics 2019-01-08 22:14:11 +01:00
e91c82fd66 Rename to io.gitjournal.gitjournal
We now own the domain gitjournal.io
2019-01-08 19:22:35 +01:00
18d9601dcd Add Git rm support 2019-01-08 18:51:43 +01:00
fb3f3bfccf Avoid using the path_provider plugin
We get the path ourselves as the 'git plugin' is using the
android 'getFilesDir()', instead of 'getDataDir()' which is what the
path_provider returns.

It's strange that it returns the latter as the Android docs clearly
state that one should not use this path and should use getFilesDir
instead.
2019-01-07 16:34:25 +01:00
967fce65b0 Minor refactor 2019-01-07 16:23:01 +01:00
3cdb454482 Git: Implement all the remaining operations
Many of these do not actually need an AsyncTask, but for now I'm just
following this pattern since I don't know if blocking on the receiever
thread will result in the app's UI being blocked.
2019-01-07 15:51:42 +01:00
9dc88455e9 Git Operations: Remove ssh code duplication 2019-01-07 15:27:09 +01:00
b7e2990e47 Add support for GitPull 2019-01-07 15:15:28 +01:00
84141b98aa GitClone: Output progress to stdout 2019-01-07 15:14:54 +01:00
0ba4bf68d1 Git Clone: Cleanup code 2019-01-07 13:39:03 +01:00
ae6158a0a8 Git: Add a method to generate the SSH keys 2019-01-07 13:15:20 +01:00
0ae2dccda5 Add ios autogenerated files
I have no idea what these are for
2019-01-07 11:05:43 +01:00
917a0a38fc Fix flutter tests
It seems like we need to explicitly mention the test package in the
dev dependencies. This is strange, since the documentation does not
reflect that.
2019-01-07 11:04:32 +01:00
9d9a89e834 Update pubspec
No idea, what is going on.
2019-01-07 10:52:55 +01:00
8f87c9ad32 Android JGit: Update the version
We want to use this specific version number as it is the only one that
supports `git clone` on Android. The others use a hard-link while
creating a lock file while trying to perform a 'git clone'.

The Android Internal Storage does not support hard links, and therefore
aborts. This will need to be fixed in the latest version of jgit.
2019-01-07 10:51:18 +01:00
1cb62b5db9 Update .gitignore for Android 2019-01-07 10:45:48 +01:00
c8e7ef1671 Add a new Git app for testing the git commands 2019-01-07 10:44:52 +01:00
f65b123a1f Add a script to launch the a virtual Android instance 2019-01-07 10:10:03 +01:00
b70da22e1c Android GitClone: Support SSH keys
Generate an SSH key if it doesn't exist and then use that one. This was
just supposed to be a PoC. Sadly, it doesn't really work. I keep
getting Auth Failures when cloning. Not really sure what the problem
is.
2018-10-18 23:31:41 +02:00
b3432ccc4f Add a GitClone async task
Also add a lot of misc code which was there from a previous spike. We
need an AsyncTask as one cannot run network operations in the main
thread.
2018-10-15 23:37:47 +02:00
c0914ffe5f YamlSerializer: refactor code into its own function
Just makes it easier to remove when we find a proper YAML serializer
2018-09-08 21:50:28 +02:00
f226df860c Update pubspec lock 2018-09-08 21:46:11 +02:00
4c59471da1 tests: Update variable name
Easier to read
2018-09-08 21:45:40 +02:00
8676a1c437 Update .gitignore 2018-08-02 00:44:25 +02:00
104d54efc3 Fix tests 2018-06-03 20:19:20 +02:00
2082bea8ac Move some classes into another folder
Just giving some more structure
2018-06-03 19:49:34 +02:00
9d19ee4c14 Make FileStorage a NoteRepository 2018-06-03 19:44:36 +02:00
69998c37f9 Add/Remove individual notes from disk
Instead of rewriting all of them on save.
2018-06-03 19:34:46 +02:00
fd98ef1048 Reverse sort the notes
This way the latest note is on top.
2018-06-03 19:34:28 +02:00
2c68865c46 FileStorage: Allow the note filename to be customizable 2018-06-03 19:34:14 +02:00
157fc425dc FileStorage: Use the YAML Markdown serializer
Instead of saving stuff in json.
2018-06-03 19:14:25 +02:00
eb2c9eb33f Note: Rename 'createdAt' to 'created'
My notes already use the key 'created', and I don't want to have to
change that.
2018-06-01 19:04:48 +02:00
fdf8c06c24 Add Note serializers
This way we don't only need to use json.
2018-06-01 18:57:53 +02:00
451ef6e39f Try adding jgit as a dependency 2018-05-31 18:34:29 +02:00
b1b16cc3e2 Update flutter 2018-05-25 18:09:04 +02:00
c30ed0c9f4 Add a sample Drawer 2018-05-25 01:17:49 +02:00
0551cc0538 Note Deletion: Implement undo 2018-05-25 01:05:17 +02:00
69eb5f2ed5 JournalList: Only show the first 2 lines of the note
Instead of trying to guess how many characters one should show.
2018-05-25 00:47:35 +02:00
b588cdc66b NoteBrowser: Allow browsing via swipes
This is the first prototype for swiping. It really needs a lot of work,
and it needs some kind of animation.
2018-05-25 00:46:17 +02:00
46c0abc525 NoteViewer: Implement the left/right buttons works 2018-05-25 00:09:22 +02:00
5197a84959 Give the NoteEditor a state
This way its creationDate will be accurate
2018-05-24 14:52:53 +02:00
be53a6c129 Android: Add a test MethodCall
This is just to test if the Android bridge is working correctly.
2018-05-24 14:42:36 +02:00
3eeb3ae54c NoteEditor: Show a confirmation dialog if discarding a note 2018-05-24 14:17:38 +02:00