114 Commits

Author SHA1 Message Date
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
e98262b5ba CI: Only publish as an Alpha Build
I no longer wish to publish apks in the beta channel as many users leave
reviews on this beta channel, which do not show up on the app's reviews
page.
2019-08-21 17:18:00 +02:00
ad3db26a5b Fix Android logging
This had broken everything!!!
2019-07-31 00:42:00 +02:00
183b0eaac7 Android: Build for arm 64 and 32 2019-07-28 12:57:03 +02:00
e80a380a5f Android: Improve logging 2019-07-28 03:01:06 +02:00
1d5ad3c67a Android: Do not call FlutterResult from any other thread
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.
2019-07-23 18:30:54 +02:00
d05b052fe3 CI: Publish the android app bundle 2019-07-18 01:28:30 +02:00
f3b73df119 Disable analytics in firebase test lab
I'm also keeping analytics disabled by default.
2019-06-02 17:12:22 +02:00
8b8bcc70a3 Android Bridge: Never send a response twice
Sometimes after responding with an error we would not stop, and also
return with a sucess after.
2019-06-02 15:27:16 +02:00
4ade7bf18d Android: Try to setup crashlytics stack traces 2019-05-29 18:07:58 +02:00
6b79e99047 Android: Improve error handling between cLib and NDK 2019-05-29 15:00:56 +02:00
ce316d6811 Android: Stop using jsch
Instead use the c-lib for the ssh keygeneration. This should reduce our
APK size a little bit, but most importantly we'll be using the exact
same code for osx and android.
2019-05-29 14:57:55 +02:00
ecd4993b14 cLib: Enable all warnings and treat them as errors
They are useful!

missing-field-initializiers has been disabled as libgit2's standard way
of initializing the options gives this error.
2019-05-27 10:57:55 +02:00
6b518b6bf8 Fix invalid use of __android_log_print
This should fix #4
2019-05-27 10:41:05 +02:00
0bd37c6312 build.gradle: Allow debug builds for armv8
Otherwise we get a nasty libflutter.so missing error when running a
debug build on an actual armv8 device.
2019-05-27 10:40:24 +02:00
7a7ca048e3 build.gradle: Remove dead code
It's from a time of jgit
2019-05-20 18:44:14 +02:00
efa4db5109 Android: Migrate to AndroidX
The Android Support Library is not androidx

https://developer.android.com/jetpack/androidx

This also required me to update each of the dependencies, as the
androidx migrated has resulted in major version changes in most of the
libraries.
2019-05-20 15:11:39 +02:00
9051d1e7dc Add a 'Report Bug' button
This also attaches the entire 'adb logcat' in Android. This way, we can
hopefully get useful info about why something is not working.

This currently breaks the build as we need to migrate to Android X
2019-05-20 14:35:27 +02:00
3ed86fd69b Revert "Android: Allow the release build to be debuggable"
This reverts commit 87aa6f7e5088ecad2c8926855057836891786a85.

Apparently one cannot publish debuggable APKs in the PlayStore. I wanted
this to be able to ask users to send me the logs via 'logcat', but it
seems I will have to figure out some other way.
2019-05-19 14:29:16 +02:00
c1bd7a5225 Android build.gradle: Remove deprecated option
It's enabled by default
2019-05-19 14:28:32 +02:00
87aa6f7e50 Android: Allow the release build to be debuggable 2019-05-19 11:56:09 +02:00
976ce6aeba Android: Try to fix missing "libflutter.so" crash
The apparent fix seems to be to only ship an arm 32bit app, and not arm
arm64.
2019-05-18 12:36:18 +02:00
62c99db1be Remove libssh
libssh is LGPL licensed, which means I would need to re-license the
entire app since we are linking against it statically. I could
dynamically link against it, but since I was only trying to use it for
key-generation and that doesn' seem to be working, I may as well discard
it.

For now, I'm going to stick with jsch for the key generation. On ios
side, I'm not sure what I will do. One option could be to compile
openssh and call the ssh-keygen binary.
2019-05-16 17:29:56 +02:00
17e1880c37 cLib: Move keygeneration code over there
This way we can easily test it outside of Android. Strangely enough this
doesn't work on Android or osx for me. It only seems to work in an
ubuntu linux container.
2019-05-16 15:46:40 +02:00
2fa6f9338b Android: Remove the jgit dependency
Finally! We now only rely on libgit2. Unfortunately, we still rely on a
java library for the public key generation.
2019-05-16 12:27:15 +02:00