138 Commits

Author SHA1 Message Date
7b2db20788 Better keystoreProperty handling:
Sets keystoreProperties to `local` if `keyAlias` is missing
=> no need to remove encrypted `key.properties` file
2021-01-09 22:29:10 +01:00
6398d121d9 Android: Apps must now target sdk version 29 or higher
https://developer.android.com/distribute/best-practices/develop/target-sdk
2020-11-09 18:57:41 +01:00
3b165a9e7e Add other android keys
Now that I'm sure git crypt is working.
2020-11-09 13:41:39 +01:00
98dc2be7e0 Add google-api-key encrypted via git-crypt 2020-11-09 13:40:10 +01:00
cdfa7d690a Add a setting to store the repo in the external storage
This is Android only, and for now it is disabled as I'm not sure why I
cannot access the "general" root directory.
2020-10-09 10:43:16 +02:00
ac807ca0f3 Upgrade to flutter 1.22.0
The screenshots package had to have some override because of a
dependency conflict. Also, while the splash screen still works, I'm not
sure if I'm doing the right thing any more.
2020-10-02 16:12:00 +02:00
9990b2baf0 Fix quick_actions 2020-09-01 11:47:38 +02:00
3f0606449f QuickAction: Show the icons in production
Workaround for bug https://github.com/flutter/flutter/issues/51455
2020-09-01 11:02:20 +02:00
6d101ad5c4 Remove flutter crashlytics
Sentry is being used instead, and it's working out quite well.
2020-07-26 19:05:52 +02:00
23f259dc60 [Android] Make the quick-actions icons prettier
Use Android Studio's Asset manager to generate nice and pretty icons.
Using svg based icons made them look off on most platforms as they
weren't enclosed in the classical circle.

Also this way we have support for Adaptive Icons and all the new stuff.
2020-07-06 19:15:46 +02:00
7102a40403 [Android] Remove unused ic_launcher png files 2020-07-06 19:00:45 +02:00
b5f933637a Android QuickActions: Add images to the launcher
Add the svg images from FontAwesome. These look a bit ugly to be honest,
and maybe we should change them for conventional pngs.
2020-07-06 18:50:57 +02:00
2651bff8bb Send Android/ios crash reports to Sentry
I'm not 100% sure this will work without the dart code, but I don't want
to replace my working implementation with flutter_sentry's
implementaiton which might not report all the errors.
2020-06-19 14:08:35 +02:00
c7c77b1838 Revert "Fix build"
This reverts commit d6a288c085a3527309e4fa2947fb814885521a50.

Not sure what is going on.
2020-06-10 12:21:13 +02:00
66a76a0767 Revert "Use flutter_web_auth instead of our own OAuth mechanism"
This reverts commit 763cbf8493c610dec0e7e344bee40ad331e7a272.
This reverts commit ddad699b259bafe6c7ed630e7afc2eb38b7825e6.

This is causing way too many problems -

On Android with GitHub we occasionally get a User Cancelled exception.
On iOS this doesn't work < ios11

I prefer keeping my way till then. Even though it doesn't support
KeepAlive on Android.
2020-06-10 11:53:43 +02:00
d6a288c085 Fix build
With the latest flutter the build file seems to have a different name.
Yaye.
2020-06-10 00:49:57 +02:00
763cbf8493 Use flutter_web_auth instead of our own OAuth mechanism
This works slightly better on iOS and on Android it has a keep alive,
which will prevent our app from being killed. Additionally, this way
there is less for me to maintain, which is always nicer.

The API for flutter_web_auth is also much simpler.

This also inolves some custom logic for parsing the Query Parameters
from the GitLab callback, as it doesn't seem to be a proper URI. Not
sure what is going on with Gitlab.
2020-06-09 17:09:38 +02:00
ef29186677 Remove getGitBaseDirectory function
Instead lets just use the path_provider. This was being used as for some
reason I wanted the files to reside inside the 'files' folder and not in
the 'app_flutter' directory.

However, that requires maintaining a fork of path_provider, which I no
longer want to do.
2020-05-31 09:29:15 +02:00
867f6df14c [Android] Implement sharing images to GitJournal
Fixes #38
2020-05-13 18:30:33 +02:00
1d68d3a4a5 [Android] Implement sharing text to GitJournal
Related to #38
2020-05-13 17:40:23 +02:00
b17c184900 Add very basic Image support [Android only]
This adds a '+' button to the NoteEditor which allows you to add an
image from either the Gallery or Take a photo. It then accordingly adds
updates markdown.

The file is added in the same directory as the note for now.

Related to #10
2020-05-05 12:02:36 +02:00
d724dfb8ad Implement basic IAP support for Android
It's very ugly, but it works.
2020-04-10 12:58:21 +02:00
9e2d7be716 Android: Add billing permission 2020-04-06 17:44:00 +02:00
f49d5d59e1 Remove android screenshots
Lets not host them in this repo, instead we can host them on our
website. These image files can get quite heavy
2020-04-04 10:54:28 +02:00
3640176f8d Remove Android debuggable
Fails to build with it
2020-03-02 18:12:23 +01:00
3bbf8e3abc Android: Always mark it as debuggable
I see no downside of shipping it this way, and since this app is
currently targetted more towards developers, they can provide better bug
reports.
2020-03-02 17:38:29 +01:00
36076f355b Update screenshots 2020-01-31 23:30:53 +01:00
d48461a4cc Revert "android: Remove keeping the screen on in debug mode"
This reverts commit 333b11de7d4e67b0abd7269989609fe58c73c7ab.

We still have the "keep device from sleeping" permission. It seems we
will need to manually remove that permission. I rather have that
permission and have this super useful tool of keeping the screen on when
developing.
2020-01-29 15:30:08 +01:00
fe1db3da90 Add accidentally deleted UriReceiever 2020-01-27 18:08:40 +01:00
8587611b77 android: Fix bug where note contents disappear if app is switched
Workaround for bug https://github.com/flutter/flutter/issues/47628
2020-01-25 14:35:37 +01:00
333b11de7d android: Remove keeping the screen on in debug mode 2020-01-25 13:56:47 +01:00
74b244d125 android: Print deprecated warnings 2020-01-25 13:56:47 +01:00
81be9c43ba Bump dependencies
They now explicitly depend on androidx.
2020-01-25 13:56:44 +01:00
1264e5d7b4 [Feat] add contributing and more build instructions
Also tune up build.gradle for handling non existing key.properties file:
Simplify local dev with no signing keys.
2020-01-18 11:50:04 +01:00
a8b3021c0a Enable r8
Flutter keeps adding it. Lets just give in.
2019-12-31 18:36:17 +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
757bf0b7ac Update dependencies and gradle 2019-12-23 12:25:31 +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
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
70877438eb Git: Take the folderPath instead of folderName
The Git Api was strange and took a foldeName and it would only allow you
to access git operations in a particular path. This has now been fixed,
and now it can operate in any path.

This was the first step to moving the git api into its own library.
2019-12-20 20:40:00 +01:00
48aa992b2a Fix androidNdkLibsOut 2019-12-12 00:59:36 +01:00
bc31d5bed3 Revert "Android: Enable r8 code minifier"
This reverts commit a7b25cece14dec12118cb63e05a0f2cb4b9cf36e.

The Crashlytics symbols uploder complains a lot - That it is
experimental and unsupported.
2019-12-12 00:42:45 +01:00
e5c3bb3fdb Add a 'dev' and 'prod' build flavour
Now whenever we run 'flutter run' or 'flutter build' we need to pass the
flavour flag. It seems there is no way to set a default flavour.

This is required as I want to be able to not have to reconfigure my
local GitJournal app (which I use for note-taking) vs the one I'm
developing where I might change many different settings for the basis of
testing.

Specially since I don't use Github/GitLab to store my notes, so the
setup process is a bit more involved.
2019-12-11 20:45:51 +01:00
a7b25cece1 Android: Enable r8 code minifier 2019-12-11 20:09:24 +01:00
9b27dedcb2 Android: Always regenerate the ssh key when calling generateSSHKeys
If it already existed we would give an error about it already existing,
but the user would have no recourse of action, apart from uninstall and
reinstalling the app.
2019-12-01 15:49:31 +01:00
b67af9d7a5 Update screenshots 2019-11-03 02:01:15 +01:00
bf67c9cd06 Revert "Disable crashlytics until initialized"
This reverts commit 860a811568b74f50754377ce14520fe03e2d2f28.

I'm not convinced that this isn't disabling crashlytics completely. I'll
try this again, later.
2019-10-10 12:37:16 +02:00
860a811568 Disable crashlytics until initialized 2019-10-08 23:36:29 +02:00
73715e3417 Crashlytics: Disable in debug builds
This way no matter what, a debug build will not report to crashlytics.
As it currently did.
2019-10-08 23:35:39 +02:00
9c1b24c5b4 gj_commit: Allow the commit time to be specified
For now this has not been hooked up to android or ios.
2019-10-02 16:13:24 +02:00