58 Commits

Author SHA1 Message Date
2502f4a79d Update ios podfile 2020-06-10 14:50:18 +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
eb37ae592c Update ios deps 2020-06-09 17:43:28 +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
fa9b3196f7 ios: Some weird code signing provisioning stuff 2020-06-06 13:56:56 +02:00
11241ce142 ios: Remove fetch_app_logs from Podfile 2020-06-03 13:51:19 +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
d210397b83 ios: Link to storekit for iap 2020-05-21 00:56:23 +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
5133dfadf7 Update mysterious ios stuff
No clue.
2020-05-18 19:54:41 +02:00
be4dad579b ios: Add requied permissions to add images 2020-05-06 13:17:11 +02:00
096e9cb82c ios: Update Podfile.lock 2020-05-02 13:25:21 +02:00
0524ce665f Update .gitignore 2020-04-03 19:40:09 +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
f4dad1520c ios: Add untracked file
Not sure what it's needed for
2020-01-06 13:27:51 +01:00
470fd2c705 ios: Fix clone url 2020-01-06 13:19:19 +01:00
022677f886 Update ios 2020-01-06 13:02:15 +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
5ba7713494 ios: Add fastlane gemfile 2019-10-09 00:28:50 +02:00
112122cfcf ios: Add first iteration of Fastlane 2019-10-05 02:37:27 +02:00
232a148ead ios: Update .gitignore 2019-10-04 05:10:18 +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
6c4c0a9a0d ios: Commit xcsharedsharedata
It should apparently be committed.

https://stackoverflow.com/a/53039267/147435
2019-06-03 00:25:29 +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
dbfe0bce5c ios: Auto fix project warnings 2019-05-30 14:08:05 +02:00
b65ef34287 ios: Auto fix warnings for target 2019-05-30 14:06:28 +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
13cfacfb2b ios: Update .gitignore
Like in Android, We're storing all the extra libraries required in a
libs folder.
2019-05-27 23:02:13 +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
041108fd96 ios: Add my development team
I would have preferred not committing this into the repo, but it's
annoying that building occasionally fails without it.
2019-05-21 16:37:37 +02:00
e543e976ea ios: Enable flutter_email_sender
It needed the SWIFT_VERSION variable to be set, and for it to be set to
a version that exists on my system. I'm pasting the error over here so
maybe I google search will help a lost soul in the future -

`flutter_email_sender` does not specify a Swift version and none of the targets (`Runner`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.

https://github.com/sidlatau/flutter_email_sender/issues/8
2019-05-20 20:44:30 +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
be4e6f32eb ios update
The Podfile and lockfile have all changed since the dependnecies have
changed so much (because of the AndroidX update). I've had to comment
out the flutter_email_sender for now, since I just cannot seem to get
it to work, in fact, even the current build is a hit and miss.
2019-05-20 20:10:50 +02:00