23 Commits

Author SHA1 Message Date
04af625a3b Log git exceptions in Crashlytics 2019-12-26 17:41:27 +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
fddefa3ff3 Revert "git clone: Force use of ssh protocol if not specified"
This reverts commit 8d11634108c6508674cde5e0e1b69c346a5a6bfd.
2019-11-14 13:22:15 +01:00
8d11634108 git clone: Force use of ssh protocol if not specified
If we don't specify the protocol, then specifying the port number
doens't work.
2019-11-11 02:06:08 +01:00
7e005d9900 Ignore 'invalid credentials' platform exception 2019-11-11 01:17:20 +01:00
7450f06a08 Ignore more git platform errors 2019-11-01 23:12:01 +01:00
8de58c138a Make constructor const 2019-10-20 01:37:39 +01:00
e7b05d7231 Enable unnecessary_const 2019-10-20 01:15:58 +01:00
992e2042a7 Ignore another network message 2019-10-08 16:00:56 +02:00
674655b5a8 Ignore one more PlatformException
It's nice that we're logging all of these platform exceptions. It really
lets us see all the different errors people are having over time.
2019-10-06 11:46:16 +02:00
2059d81529 Crashlytics: Ignore another network error 2019-09-26 15:22:40 +02:00
076afb3303 Do not log "No address associated with hostname" exceptions
We log all exceptions to Firebase. It's time to start clearing out the
ones that do not matter.
2019-09-25 17:38:00 +02:00
7c79c328bd Git: Call Firebase.logException on exceptions
We want to Git layer to always work. And ideally these exceptions should
never occur.
2019-08-21 08:44:26 +02:00
74d7bdd763 Use a proper logger - Fimber
It's time to start using a proper logger so we can control the number of
log messages, also - it helps to have a central configuration point for
the logs, specially since I would like to hook them up to Crashlytics in
the future.
2019-06-19 09:45:15 +02:00
d653663a47 Change Git dart API
Use a class instead of a many functions. This way we avoid passing the
same arguments again and again.
2019-06-17 19:38:56 +02:00
3e563c3d0e Fix typo 2019-06-03 18:16:04 +02:00
64c8ddd7b0 Android: Use the c library for git pull
It's not perfect as our implementation of git pull results in an extra
merge commit and doesn't handle conflicts properly, but it is a basic
implementation, so at least we have something.
2019-05-16 12:23:27 +02:00
1f7871fe12 Add a GitResetLast command
This way we can revert the last committed change.
2019-02-15 19:27:40 +01:00
03e46ce8cd Allow notes to be stored inside a sub-folder in a git repo 2019-02-14 12:59:43 +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
4de157e6b1 Add an automated test for testing git clone in github
It currently fails :(
2019-02-06 15:06:08 +01:00
a29a102667 Move git api to apis folder 2019-01-23 11:54:02 +01:00