ubuntu:latest has changed and compiling libgit2 doesn't have us ssh
support. Cannot seem to figure it out, so lets just use a pre-compiled
version of libgit2, it's a little ahead of the version I'm using, but
that should be fine.
Also refactor this a bit so Note contains a NoteData. I'm really not
convinced about today's abstractions, and feel I might have made this
entire thing much much worse.
With this, the application compiles again. And note editing is working
again. This is was the first of some small refactors in order to
implement both async note loading and a support for directories.
The loading/saving/deleting of the Note class is now inbuilt. It's not
offloaded to a NoteRepo. We're always going to be storing them on disk,
for now. It's also way easier to manage them this way.
This completely breaks the app, as it is part of a large refactor to
make Note loading asyncrhnous and not block. Additionally this removed
JSON serialization for Notes as that isn't something we care about any
more.
With Flutter 1.5 this is enforced and we get lots more crashes. It seems
like the docs have always said this was a bad idea, and I seem to have
missed it.
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.
* Set target to be 9.0 - libgit2 has been compiled with the target of
9.0, so for now lets support that. Later we can figure out how to target
8.0, if required.
* Set the BUILD_NUMBER and BUILD_VERSION correctly. In new flutter
projects these values are automatically set, but since I created this
project before those patches went it, we need to set it up.
* Do not target only arm64.
* Set the correct CFBundleName. It was set to 'journal' instead of
'GitJournal'.