36 Commits

Author SHA1 Message Date
7918676c7a ios: Commit empty swift file
Seems to be needed to get certain plugins to work which need some swift
code. Magic
2020-07-26 17:01:36 +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
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
4591c73fb0 ios: Format Info.plist 2020-06-10 10:49:29 +02:00
0aa995e52a ios: Add CFBundleLocalizations for en 2020-06-10 10:49:15 +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
ce201aa390 Add an experimental Katex rendering Widget
Related to #125

This still needs to be integrated into the Flutter Markdown renderer.
But the good news is that this works!

It currently requires network access to download the katex scripts. It
does NOT send the katex string to any server. The rendering is performed
in the app.
2020-05-19 18:36:16 +02:00
be4dad579b ios: Add requied permissions to add images 2020-05-06 13:17:11 +02:00
5682e8abf9 ios: Flip ITSAppUsesNonExemptEncryption 2020-03-05 00:49:21 +01:00
dce95af166 ios: Mark that we use encryption
We use SSH - which includes RSA
2020-01-06 14:52:43 +01:00
470fd2c705 ios: Fix clone url 2020-01-06 13:19:19 +01:00
9e74f26616 Fix ios compile error 2019-12-22 15:24:05 +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
17b13e9f00 ios: Handle expensive operations in a background thread
If we handle them in the main thread, then the UI blocks, especially
when generating a new SSH key.
2019-10-11 16:00:14 +02:00
edb1f88a0f ios Review: Allow it to work on ios9+
Also provide the app id so it works on any version!
2019-10-10 12:28:28 +02:00
4267661fc1 ios: Update crashlytics
Also add it to the BuildPhase. Hopefully with this we will now get
proper crash reports.
2019-10-04 05:09:12 +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
1892b727c5 ios: Lots of mini changes to get the build validated
* 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'.
2019-06-14 18:17:11 +02:00
9cf0b9ad48 ios: Fix setSshKeys
Forgot to write the private key to disk
2019-06-04 15:22:24 +02:00
c4e5cbc3ad Update ios icon 2019-06-04 13:31:48 +02:00
7403721753 ios: Make oAuth callback urls work
I'm getting some exceptions in the middle, but it still seems to work.
2019-06-04 02:02:41 +02:00
1389fba579 ios: Move blocking operations to another thread 2019-06-03 18:59:32 +02:00
747bccc994 ios: Do not throw an error if the directory already exists 2019-06-03 10:16:02 +02:00
603b639640 ios: setSshKeys: Create the directory 2019-06-03 10:14:04 +02:00
b56aad7a48 ios: Do not log the private key 2019-06-03 10:13:45 +02:00
840ac30116 ios: Print the arguments in a prettier manner 2019-05-30 18:28:39 +02:00
0ad3040943 ios: First implementation of the entire bridge
Implemented almost all the functions required by GitJournal on the ios
side. This mostly works. It needs lots and lots of testing, though.
2019-05-30 18:08:39 +02:00
c513ef357c ios: Make 'git init' actually work
Earlier it had a fake implementation, but now we're actually calling
'git init' from libgit2.
2019-05-30 13:58:55 +02:00
aa99f0bada ios: Add a simple test to check if libgit2 is working 2019-05-30 13:10:21 +02:00
169b335083 ios: Use libssl in a simple test
This requires the libraries to be built into a framework using lipo.
Since none of this part is in the CI, it currently doesn't matter.
2019-05-27 17:12:57 +02:00
b07df91aa0 ios: Allow the app to be run
* Implemented a fake gitInit which just created the folder for now
* AndroidDeviceInfo doesn't exist on ios
2019-05-20 20:32:26 +02:00
cb9cc3b1a7 ios: Implement getBaseDirectory in the platform-channel
This is one of the many platform-channels that needs to be implemented
for ios. We may as well get started.
2019-05-17 17:54:46 +02:00
a775c31b5f ios: Give the app a proper name 2019-05-17 17:21:25 +02:00
058831a38e ios: Use the proper icon 2019-05-17 17:20:27 +02:00
72712bd4de Initial import from 'flutter create' 2018-05-12 18:45:42 +02:00