3801 Commits

Author SHA1 Message Date
a2e12dfef2 chore: Bump flutter version to 3.24.2
Version 3.24.0 and .1 had a zlib regression which caused issues for
dart-git.
2024-09-06 09:59:56 +02:00
3e6c05a552 Revert "Revert "android: Move to new gradle setup""
This reverts commit 8a870911762fce95f3d2de0d8b81c0f163e191cf.
2024-09-06 09:59:56 +02:00
288c2599e2 chore: Initial supabase integration
I've stopped using flutter_login, and would prefer to create my own
custom login screen.
2024-09-06 09:59:56 +02:00
93effc32b1 dev: Fix test on CI
Stupid timezone issues
2024-08-25 13:48:07 +02:00
cbba9ade49 chore: Update the analytics backend url 2024-08-25 13:23:39 +02:00
b4302fe467 feat: Add support for YYYY-MM-DD in the YAML frontmatter
Fixes #972

This required regenerating the protobufs generated files, which seem to
have tons of extra changes, and needed some manual changes to get them
to compile.

Overall, the entire protobuf idea wasn't the best in retrospect, and in
the next version of GitJournal, I'll be going with a simple relational
database instead.
2024-08-24 23:05:09 +02:00
f5121757f2 chore: 'flutter format' is now 'dart format' 2024-08-24 22:56:17 +02:00
ae06523101 chore: Remove shared_preferences proto
Not used, and the whole protobuf saga was a mistake. Not going to use
that again.
2024-08-24 22:55:40 +02:00
7f8801cbe5 fix: AutoCompletion Widget: Some range checking
This is one of the most common errors in Sentry. Hopefully this will fix
it.
2024-08-24 16:06:24 +02:00
8a87091176 Revert "android: Move to new gradle setup"
This reverts commit 48ca5b8941368c99d153824734e59c6930251aae.

We've had to downgrade Flutter and the latest has a regression with
zlib, and the newer gradle conversion doesn't seem to be working. I
rather just revert and revert the revert another day.

Build file '/Users/vishesh/src/journal/android/app/build.gradle' line: 36
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not get unknown property 'versionCode' for extension 'flutter' of type FlutterExtension.
2024-08-24 16:01:34 +02:00
5eea37f480 chore: Bump dart-git 2024-08-24 02:56:13 +02:00
6e4cda2ea9 chore(ci): Run the tests
Not sure how/when we stopping running the tests in the CI.
2024-08-22 06:36:54 +02:00
a17a4bbee0 chore(ci): Delete unused workflow 2024-08-22 06:36:44 +02:00
02e6035c3d chore: Downgrade flutter
Flutter 3.24 still has the regression of the ZlibDecoder and therefore
cannot be used. 3.24.1 also still has it. Hopefully this will be fixed
in 3.24.2
2024-08-22 06:30:49 +02:00
d65aeed92c chore: Disable reuse-licensing check
It's just a pain, and I don't care that much right now. Maybe future me
will disagree.
2024-08-18 21:54:30 +02:00
2e0a3cfd6a chore: Moving folder_listing to bloc
First implementation of a screen using bloc. I'd like to slowly move all
the screens to bloc.
2024-08-18 20:12:26 +02:00
2c4dcd24c4 chore: Avoid deleting the folder onDelete
It's already being deleted by go-git.
2024-08-18 20:11:57 +02:00
ab824f9e32 Bump minor version number 2024-08-17 01:11:46 +02:00
a7654fb724 feat: Add a button to export the repo as a zip
This is supposed to create a zip of all the files in the repo, and its
.git folder. It's super useful for debugging the state of the repo, and
it's also useful when the remote is down but you still have changes
which you want to export.
2024-08-17 01:07:38 +02:00
78931e121f Remove unused grpc dependency
I'm trying to minimize the deps as much as possible
2024-08-17 00:47:41 +02:00
e2c1363224 Remove unused code + deps
Both this calendar view and this history screen need a lot of work to
get them to a place where they can be shipped, and there are no plans of
doing that.
2024-08-17 00:47:41 +02:00
8107e84ddc docs: Remove Community from the Readme 2024-08-16 18:45:30 +02:00
48ca5b8941 android: Move to new gradle setup 2024-08-16 18:45:29 +02:00
d210773b06 Upgrade deps + android sdk version to get it to build
I'm still having some problems with the version of gradle + kotlin, but
this is a step in the right direction.
2024-08-14 23:23:24 +02:00
5397195f38 Upgrade min flutter version 2024-08-13 18:19:34 +02:00
f672c3eb55 flutter fix deprecations 2024-08-13 18:13:04 +02:00
64198a9141 Upgrade in_app_purchases 2024-08-13 18:08:46 +02:00
2eac135bb6 flutter upgrade 2024-08-13 18:04:00 +02:00
489db9a42c Bump minor version
* This has a bug fix
* Also upgraded the Flutter version which may cause all kinds of issues

Hence why a minor version upgrade and not a bug fix one.
2024-05-15 08:04:23 +02:00
44f6c60159 ImageCaption: Add an explicit type
Without it - only on Android - we get the following error -

The following NoSuchMethodError was thrown building LayoutBuilder:
I/flutter ( 4269): Class '_LayoutBuilderElement<BoxConstraints>' has no instance method 'watch'.
I/flutter ( 4269): Receiver: Instance of '_LayoutBuilderElement<BoxConstraints>'
I/flutter ( 4269): Tried calling: watch<MarkdownRendererConfig>()

This makes no sense to me, but it fixes it. So so strange.

Cause this code works when running the app on macos.
2024-05-15 07:53:53 +02:00
c5e9cc7821 Bump to flutter 3.19.6
We have a newer version of Flutter out, but I prefer to wait a few
months before all the relevant packages upgrade, as I'm already getting
tons of errors.
2024-05-15 07:45:10 +02:00
7b83f3a43e Avoid using deprecated Theme member 2024-01-17 12:50:56 +01:00
c06e69dad7 Remove unused background_fetch dependency 2024-01-17 12:50:56 +01:00
248b022cc4 Update vscode settings 2023-12-22 22:25:16 +01:00
5f9eff5089 Remove the bitcoin link
I don't even check those wallets
2023-12-22 22:24:56 +01:00
3af6fffa46 Remove git_bindings
The only use of it left was to generate RSA keys, this has now been
implemented in the dart-go-git library, even though that's probably not
the right place for it.
2023-12-22 21:24:16 +01:00
3dce1cb122 Upgrade sdk version
This way we can use the new Dart 3 features.
2023-12-22 21:23:45 +01:00
dcfa02a9e0 Update go-git-dart
It has fixes for connecting to servers where the username is not "git".
2023-12-22 21:15:33 +01:00
8d791b7004 Android CI: Remove useless command
I think this was required when I had my own docker image, and I was
doing something special. Lets see if the CI breaks without this.
2023-12-14 19:09:26 +01:00
13efa6973b CI: Remove --enforce-lockfile
As much as I like the idea of this, this is the second time the CI is
failing and I can't understand why. My local version of Flutter is
identical.

And running the CI again then made it pass. It seems that this has some
false negatives.
2023-12-14 19:05:13 +01:00
05fc7bfbda Upgrade dart-git + go-git-dart
They both have important fixes
2023-12-14 18:56:11 +01:00
b4285b0512 Use go-git instead of libgit2 for git remote operations
We still need the git_bindings package as we're using it for generating
RSA keys.
2023-12-13 14:14:57 +01:00
51420f6c8d fix issue #579 -- this commit replaces PR #625
This commit was already in PR #625 but this new one is based on a more
recent version of the master branch.

As discussed in https://github.com/GitJournal/GitJournal/pull/625 the
problem was that if there is no yaml header, the title does not get
stored anywhere and hence gets lost. The fix is to write the title back
to the file as a first heading. This is used for loading the title
anyway, afaict.

The side effect is of course that any *other* application using the note
in the meantime will see the heading containing the note title. This is
way less disruptive than losing the title fully, though.
2023-12-12 20:14:01 +01:00
29fd576109 Avoid using git_bindings except for clone/pull/push/ls-remote
Lets use dart-git instead. It seems stable enough, and I'm soon going to
be moving away from libgit2 to go-git anyway. This is the first step towards
that.
2023-12-12 19:59:54 +01:00
cd525bb3ce Bump flutter version
Maybe this will fix the CI issue. Not sure why it says that pubspec.yaml
and lock file aren't synced, when at least locally they very much seem
to be.

I doubt this will fix the issue. But lets see.
2023-12-10 14:13:40 +01:00
f7aca1bff2 Bump dart-git 2023-12-10 14:05:30 +01:00
7fd1c99287 Use Provider's context.read/watch
Instead of the legacy Provider.of. Less scope of bugs this way and the
code is so much nicer to read.
2023-12-06 08:20:40 +01:00
833dcd3294 Improve code readability 2023-12-06 08:20:40 +01:00
24ef27e40f Update quick_actions 2023-12-06 08:20:40 +01:00
3bde3f6318 Stop using deprecated Theme selectedRowColor 2023-12-06 07:33:51 +01:00