519 Commits

Author SHA1 Message Date
0a6d6f63ee launch_android: Assume that emulator is in the path 2019-02-13 20:42:04 +01:00
1cbcf1bfaa GitHostSetup: Simplify the code drastically
Also add an extra screen where it asks if we should set it up
automatically. The code base is now in a much much more managable
state and I feel comfortable adding more pages.
2019-02-13 20:40:41 +01:00
2f9092305b Bump version number 2019-02-13 15:36:17 +01:00
dc3f31eb92 Temporarily disable PoC JNI bindings
They are causing the release build to crash.
2019-02-13 15:35:42 +01:00
9452354a99 Fix onError types 2019-02-13 14:25:52 +01:00
cee81d7c4a Add a helper script to get the latest artifact from CircleCI 2019-02-13 14:19:48 +01:00
1921a86100 CI: Store the apk as an artifact 2019-02-13 13:59:31 +01:00
9e0e9a336d Integration Test: Minor refactor 2019-02-13 13:43:31 +01:00
eb1f35fd65 Add a script to run the integration test against emulated devices
This way, at least we know that the 'git clone' operation works on
different API versions.
2019-02-13 13:19:17 +01:00
acede95536 Dart: Add analysis_options
For now I've mostly tried to follow the same style guide as the flutter
repository, with many options disabled. Eventually, maybe it would make
sense to be far stricter.
2019-02-13 13:08:15 +01:00
ee34b60e53 CI: Fix filename 2019-02-12 22:26:21 +01:00
7be1f9a0f1 CI: Move build after env setup
We need the keys
2019-02-12 19:13:13 +01:00
8be06b5211 CircleCI: Move building to a separate step
I rather not couple the building of the APK to Fastlane.
2019-02-12 19:00:44 +01:00
b124212958 Bump TargetSDK Version 2019-02-12 18:52:47 +01:00
f7eb27dd52 Remove TravisCI 2019-02-12 17:50:27 +01:00
61dfdc7862 CI: The Android Licenses have already been accepted in the image 2019-02-12 17:46:04 +01:00
2ae15a84a5 CircleCI: Use our own Docker base image
This way we have complete control over the flutter version. The older
image had not been updated for quite a while.
2019-02-12 17:26:39 +01:00
34529f1d3f CircleCI: Accept Android Licenses 2019-02-12 16:50:48 +01:00
bbc5f346d2 CircleCI: Automatically deploy to beta in the playStore 2019-02-12 14:10:38 +01:00
f27d9b4b23 Flutter Driver Test: Wait for element to be visible before tapping 2019-02-11 10:24:14 +01:00
dc29d523cc GitSetup: Get the user's name + email from the GitHost
This way they aren't committing under the name of 'GitJournal'.
2019-02-09 16:47:53 +01:00
c7915d8feb Settings Screen: Actually save the gitAuthor + email
There is too much code duplication over here, but - meh - I'll clean it
up later.
2019-02-09 16:30:12 +01:00
2793ae90ad Update .gitignore 2019-02-09 15:51:36 +01:00
1845faded9 Add POC Android JNI integration
I want to stop using jgit and instead of libgit2 instead. I feel far
more confident with the latter, and I need to use it for ios anyway.

Currently I cannot use the latest version of jgit as that requires a
higher minSDKVersion, and I want to target older android devices as
well.
2019-02-09 01:36:42 +01:00
bd9ca896bf Fix clone test
The keys were not formatted correctly.
2019-02-06 16:17:58 +01:00
38896ef9c8 Android: Keep screen on in debug mode
It makes working with the application far far easier. There doesn't seem
to be a simple way to do this without modifying the code.
2019-02-06 15:48:52 +01:00
66cdda213a Fix gitClone from github
The test still fails, but via the app cloning seems to work. Progress!!
2019-02-06 15:34:57 +01:00
4de157e6b1 Add an automated test for testing git clone in github
It currently fails :(
2019-02-06 15:06:08 +01:00
cb020c00fe Add the first integration test using the flutter driver
We need to test the git operations on all the devices.
2019-02-05 14:35:36 +01:00
e948a23c55 Add CircleCI config 2019-02-02 18:09:47 +01:00
21ab144b18 Fix assert 2019-02-02 12:39:12 +01:00
7f31b17012 Downgradge jgit version
This way we can target older android devices. I got the exact version
from - https://github.com/zeapo/Android-Password-Store
2019-02-02 12:38:26 +01:00
1c368afdc8 pubspec: Flutter upgrade 2019-02-02 12:23:28 +01:00
c0a1c139fa Fastlane: Enable building the apk again
The newest flutter beta fixes --build-number flag, so I can use this
again.
2019-02-02 12:16:29 +01:00
4509c90bbf Bump version 2019-01-25 15:51:49 +01:00
ed092da3c7 GitHostSetup: Lots of fixing
The flow between all the wizards is now complex enough that having it
all in one class is becoming quite complex. I've eventually managed to
get all the workflows to work, but there is a decent amount of code
duplication.

This really needs to be simplified.
2019-01-25 15:50:26 +01:00
d6515bf507 GitHost AutoConfigure: Show the error
It looks super ugly, but it's better than not showing anything.
2019-01-25 15:11:24 +01:00
8e9e3a91b5 GitHosts: Throw RepoExists exception 2019-01-25 15:11:09 +01:00
86f01ab7d1 GitHosts: Improve error handling 2019-01-25 15:03:42 +01:00
fb202e0f1f GitHost AutoConfigure: Handle errors a bit better 2019-01-25 14:52:56 +01:00
15cedd75f1 Fastlane: Disable building the package until 1.1.3 is released
https://github.com/flutter/flutter/issues/23811

This bug has been fixed but 1.1.3 has still not been promoted to the
beta branch. I'm not sure when that will happen, and I'm not comfortable
using the 'dev' branch of Flutter. The month of Feb is almost here, so
maybe then there will be a new release.
2019-01-25 13:12:29 +01:00
06812d3fa1 Show a badge to indicate that the 'Git Host' has not been setup 2019-01-25 12:45:33 +01:00
ce343b316a GitHostSetup: Rename a string 2019-01-25 12:15:43 +01:00
6b6148b726 Bump version number 2019-01-25 12:05:36 +01:00
7d973561a9 Update journal_android
No idea why this is being updated by Android Studio :/
2019-01-25 12:05:36 +01:00
285a900e76 Rename OnBoarding to GitHostSetup
It was either GitHost or GitRemote.
2019-01-25 12:05:32 +01:00
c5135ff822 OnBoarding: Integrate GitLab api
Now we can also automatically create a GitLab repo + configure it.
2019-01-25 11:34:30 +01:00
bfcfa3b449 Add a GitHost factory
There are probably more idiomatic ways of doing this, but I'm not sure
how.
2019-01-25 11:28:38 +01:00
ac5c2be05d Add a GitHost interface
GitLab and GitHost are two implementations of that interface.
2019-01-25 11:21:58 +01:00
c7174ab2da Update minSDKVersion to 26
Jgit relies on java.nio.file which was only added in API Level 26.
https://developer.android.com/reference/java/nio/file/package-summary

This sucks because we're greately limiting the number of Android Devices
we can target. I don't get what is so special about nio, that it cannot
be treated like any other API.
2019-01-25 01:21:39 +01:00