792 Commits

Author SHA1 Message Date
6986b314ff Fix logic of enabling analytics in test lab
We were only enabling analytics when running the device in the test lab.
No wonder all the metrics were so strange!
2020-01-04 14:30:54 +01:00
4149725017 Update qa doc 2020-01-02 18:50:19 +01:00
b76645a144 Add a .gitIgnore file if missing
This way we always have at least one commit, cause not having any
commits makes a lot of the git commands fail.
2020-01-02 18:47:55 +01:00
3285712acc Sort based on file last modified if 'modified' and 'created' not present 2020-01-02 12:08:17 +01:00
9a1edc4276 Bump version 2020-01-02 01:05:18 +01:00
72777b96a4 Allow git pulls to fail
They fail when there is nothing to pull because no commit exists on the
server.
2020-01-02 01:04:21 +01:00
4a322b6fc4 Note: The title should never be null
Too much of the code assumes that it will never be null. It'll be so
awesome when Dart allows you to enforce that a type is never null.
2020-01-01 19:51:26 +01:00
2821eb1f8b Note sorting: 'created' can now be null
Earlier it was always something
2020-01-01 19:50:52 +01:00
36d1ae43c3 Split NoteData and its serializer into its own file 2020-01-01 19:50:31 +01:00
14e7f344d1 Add an explicit serializer from Note -> NoteData
This is so that we can start configuring what the yaml metadata keys
should be called, and not have them hardcoded.

This also allows the note.created to be null. Earlier we were always
setting it to some value. That's doesn't seem right.
2020-01-01 19:29:57 +01:00
6d49f76b96 Rename NoteSerializer -> NoteDataSerializer 2020-01-01 18:49:54 +01:00
540d017db4 Add BUILD instructions
They are very basic and stupid, but it's atlesat something.

Fixes #9
2019-12-31 19:10:48 +01:00
717d64aaa8 Update deps
Removes some annoying deprecated warnings
2019-12-31 18:43:50 +01:00
a8b3021c0a Enable r8
Flutter keeps adding it. Lets just give in.
2019-12-31 18:36:17 +01:00
b35d5f4337 Use YAML serializer package
This code might be useful to someone else
2019-12-29 12:03:42 +01:00
58daf54fc6 Bump version 2019-12-28 01:14:37 +01:00
53839c9101 Surround the title by quotes before saving it to yaml
Otherwise people can put # or : or something else in the title and that
will result in invalid YAML.

Also escape any existing '. YAML is weird that the method of escaping a
' is by specifying it twice. It's sad that there is no dart YAML
serializer, and I'm surely missing some other edge cases. The YAML
specification is quite long.
2019-12-28 01:12:18 +01:00
011962db5d Fix flutter analyze 2019-12-27 13:44:20 +01:00
df9d4172d8 Bump version number 2019-12-27 13:29:41 +01:00
92f50ed397 MarkdownViewer: Allow links to be clicked 2019-12-27 13:18:58 +01:00
dfe2cf87ac Integrate 'screenshot' to automate the screenshot process
This even fires up the emulators.
2019-12-27 12:59:00 +01:00
72f1620e7e JournalListing: Use 'modified' date if 'created' is missing / invalid 2019-12-27 11:42:33 +01:00
2b09708793 JournalListing: Show the title
It's no longer a simple JournalListing and instead we also show the
title. The main problem is with what to do when the title is not there.
Just leaving it blank seems to feel weird, specially when the note is
too small.

Maybe it's time to change it such that each row size is not the same.
We're effectively wasting whitespace right now for very small notes.
2019-12-27 11:34:15 +01:00
5a79fa26ca Add a Fade transition when jumping from Viewing to Editing
It looks much better than the normal page transition.
2019-12-27 11:10:22 +01:00
895d2f4f1b Give each Note a title
We're moving away from being a Journal Editor to being a Note Editor. I
don't want to discard the Journaling parts, as Journaling is really a
subset of Note Taking - so in the future it would be nice if this could
be somehow toggled.

Maybe each Folder can have different display settings. Probably in the
"pro" version.
2019-12-27 11:05:32 +01:00
046c08cb67 Folder rename: Only udpate 'folderPath' once rename is successfull 2019-12-27 00:37:26 +01:00
8a6b6023d6 Sync: Combine crashlytics code 2019-12-27 00:37:20 +01:00
f69cc06bae Bump version number 2019-12-26 20:56:30 +01:00
7b40cbf65f SyncButton: Disable if no connectivity 2019-12-26 20:56:30 +01:00
bc9e308971 Move SyncButton to its own file 2019-12-26 20:56:30 +01:00
760659495a Print the device fingerprint
For debugging purposes
2019-12-26 20:56:30 +01:00
6af3b03210 Add a sync button to the AppBar
This somewhat shows what's going on with the network. It isn't ideal, as
is a bit ugly. But it's a start to show the network status, and what's
going on in the background.
2019-12-26 20:43:12 +01:00
f5558803c5 GitHostSetup: Log all exceptions
Not only GitHostExceptions as these don't cover Network exceptions.
2019-12-26 17:57:46 +01:00
04af625a3b Log git exceptions in Crashlytics 2019-12-26 17:41:27 +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
9153a9f2a1 Bump git_bindings 2019-12-26 16:38:32 +01:00
fec3a91df1 JournalEditor: We don't need the extra Form
We're not using it for anything.
2019-12-23 12:25:57 +01:00
757bf0b7ac Update dependencies and gradle 2019-12-23 12:25:31 +01:00
cae3fa52b7 Fix mistakenly added 'foo' 2019-12-22 18:55:33 +01:00
764209fe57 CloneUrl Validation: We do not support the git protocol
Well, we actually do support it, but I don't want users to use it,
as I have no intention of supporting it in the future.

In the future - Git will be written entirely in Dart.
2019-12-22 18:49:46 +01:00
ad0c305597 CloneUrlValidation: Our regexp is broken
With AWS Code commit we get URLs of the form -

ssh://APKAZLZA77YWDCWYRAC5@git-codecommit.eu-west-1.amazonaws.com/v1/repos/blah

All our assumptions about how the URL should be are now invalid. It's
best to just check for the presence of an '@'
2019-12-22 18:48:40 +01:00
83e5c44a5c FolderListing AppBar: Make the title a plural
Folders instead of Folder
2019-12-22 15:39:13 +01:00
ce9a72676b Fix Folders navigation
Clicking on Folders in AppBar when inside a Folder wouldn't take you
back to the Folder Listing.
2019-12-22 15:38:04 +01:00
de369fe6d9 Add 'Open Source' in the onboarding screen 2019-12-22 15:25:42 +01:00
9e74f26616 Fix ios compile error 2019-12-22 15:24:05 +01:00
798a744574 Change public strings of "Journal" to "Notes" 2019-12-22 15:24:00 +01:00
a2f237ede3 Add scrollbar's in JournalLists and FolderLists
Pros: It's nice to know where we are in the list.
Cons: It makes the lagging in the list view far far more apparent.
2019-12-22 15:16:41 +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
47f547b9a6 Update .gitignore 2019-12-21 01:08:45 +01:00
63170445d7 Move libgit2 code to git_bindings repo
We now have a much clearer separation between Git code and this app
specific code. This is awesome, it will allow other people to easily
integrate Git within their apps. Also, eventually it will be trivial to
switch to another implemention of Git (via JGit or a git client written
completely in Dart)

This breaks the iOS version as I haven't moved the code to build the ios
version. Maybe this will be a good excuse for me to setup a proper CI/CD
system for ios builds.

There is also a chance this breaks Crashalytics NDK symbols :(
2019-12-21 01:06:15 +01:00