2688 Commits

Author SHA1 Message Date
1c315836d3 OnBoarding: Simplify the code 2019-01-10 18:21:03 +01:00
62ecd016f7 Move the PageController into a state widget
Doesn't it have some state since it's fundamentally storing which page
we are one? Or where is that stored otherwise?
2019-01-10 18:18:14 +01:00
6ce38a32a5 OnBoarding InputURL: Allow the user to submit it from the keyboard 2019-01-10 18:09:25 +01:00
7ba58cdf14 GenerateSSHKey with a comment for GitJournal 2019-01-10 17:54:55 +01:00
31d19678e3 Onboarding: Add validation to SSH url 2019-01-10 17:54:39 +01:00
0b99f7f680 OnBoarding: Use the textStyle from the theme
This looks considerably worse, but I think overall, it would be better
for me to start with trying to just follow the Material Design
guidelines and then adapt the main these as necessary.
2019-01-10 17:15:09 +01:00
88a0c73fe3 OnBoardingScreens: Get the background color from the theme
Also reduce a lot of code duplication
2019-01-10 17:07:31 +01:00
fe84aab6b7 RemoveExistingClone if onboarding is not completed
This only happens when I manually delete the shared_prefs. It's
basically a way to make working on the onboarding much easier.
2019-01-10 13:32:03 +01:00
290ca293ae OnBoarding DeployKeyPhase: Remove the keyboard
It is no longer required.
2019-01-10 13:26:23 +01:00
eac9857c17 Persist onBoardingCompleted 2019-01-10 13:22:21 +01:00
a5830ccbc4 Load the journal list after onboarding 2019-01-10 13:03:00 +01:00
a4243768b1 Add a gitClone page on the onBoarding screens 2019-01-10 12:40:45 +01:00
38f7840113 Add some basic onboarding screens
They don't really work out since I don't quite understand how PageView
and the PageController are supposed to work.
2019-01-10 11:54:39 +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
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