2121 Commits

Author SHA1 Message Date
cdfa7d690a Add a setting to store the repo in the external storage
This is Android only, and for now it is disabled as I'm not sure why I
cannot access the "general" root directory.
2020-10-09 10:43:16 +02:00
5ed1b5314b Bump file_picker 2020-10-09 09:39:04 +02:00
684baa93c2 CI: Bump flutter version 2020-10-09 01:17:40 +02:00
9499cea164 Remove Settings global
Stop it being a singleton. This means it needs to be passed around a
lot. This sucks, but it's how it should be. I shouldn't be using a
global variable to get around this.

This is needed as Settings will soon become repo specific when we
support multiple repos.

This breaks saving the settings in a file, that feature was toggled off
anyway. It needs to be thought over again.
2020-10-09 00:59:19 +02:00
94ccd74e12 Upgrade flutter_sentry
Hopefully this will fix the app crashing in some devices on the Google
Play Store's automated tests.
2020-10-06 00:11:30 +02:00
5f8f8975b1 Update changelog 2020-10-05 13:13:32 +02:00
17b276b9f6 Add a comment on the HomeScreen
It took me some time to figure out why I had written it this way.
2020-10-05 13:09:57 +02:00
06cfe27154 Make the bottom menu bar settings prettier
We now show how the bottom menu bar will look inside the settings. This
is so much nicer. Later, I can add more options to configure exactly
what icons are visible and what they do.
2020-10-05 13:08:50 +02:00
62bea50506 Allow the bottom menu bar to be hidden
Fixes #261

The settings page for this is quite ugly right now, but the feature
works. I can improve its look another time.
2020-10-05 12:25:57 +02:00
cca83ffd4a Move metadata configuration features from Pro to Basic
Configuring how the metadata should be saved really seems like more of a
basic feature as it allows you test GitJournal's compatibility with your
favorite desktop client or for static website generation.
2020-10-05 11:47:09 +02:00
1a74955e99 Improve inline tags regexp
Fixes #265
2020-10-05 11:43:52 +02:00
68c6fe470d CI: Bump flutter version 2020-10-02 17:28:51 +02:00
d2b1ad7e46 Allow loading ssh keys from a file
Fixes #74
2020-10-02 17:22:30 +02:00
b3ea9c9565 Avoid using deprecated autovalidate 2020-10-02 16:17:05 +02:00
ac807ca0f3 Upgrade to flutter 1.22.0
The screenshots package had to have some override because of a
dependency conflict. Also, while the splash screen still works, I'm not
sure if I'm doing the right thing any more.
2020-10-02 16:12:00 +02:00
8636bda26c Bump import_sorter
It now sorts imports in the test_driver directory, which is awesome.
2020-10-01 00:22:13 +02:00
bb19321c8b Send AppFirstOpen Analytics event
Again, this is sent by firebase, but I want to be able to replace
firebase pretty soon.
2020-09-30 11:27:49 +02:00
27cad98937 Send app_update in analytics
I'm calling this event gj_app_update as firebase automatically sends an
app_update event. This is being done so that I can easily remove
firebase analytics in the future.
2020-09-30 11:27:27 +02:00
6be702c167 Funding: Replace Open Collective for GitHub Sponsors
Open Collective is better as it allows one time donations, but I don't
have the bandwidth the manage that and GitHub Sponsors. It seems easier
to just manage one, and people who want to make a one time donation can
use Paypal.
2020-09-29 14:51:00 +02:00
f030156606 Add images in Changelog 2020-09-29 14:34:58 +02:00
0d12890d48 Add Tags image for 1.52 release
It looks horrible but it's better than nothing
2020-09-29 10:24:35 +02:00
84c67a08db Log an exception properly 2020-09-28 13:05:09 +02:00
34cdd21026 ios: Remove unused function 2020-09-28 13:04:41 +02:00
fc8e83b035 ios: Use git_fetch and git_merge instead of pull
Now with the latest git_bindings we no longer use git_pull which would
do a fetch + merge. It's good that these two actions are separated as
I can then easily replace the git_merge with a smarter version
implemented in git.

Also, that way in the future, the git_bindings plugin will only be used
for git_fetch and git_push for SSH. Everything else can be handled by
dart_git.
2020-09-28 13:02:55 +02:00
75d48fbfc6 Integration Test: Show the sorting settings and view Options
Also add far more existing notes for the screenshots.
2020-09-28 12:11:05 +02:00
dfbdb5c50c Fix flutter analyze 2020-09-28 00:49:59 +02:00
48b9b4d642 GraphView: Dispose the Graph correctly 2020-09-28 00:48:18 +02:00
dc4e18156c GraphView: Fix dragging the nodes
This was much simpler than expected.
2020-09-28 00:38:57 +02:00
4d586d85ae Avoid modifying the InteractiveViewer at all
Just import it with a different prefix
2020-09-28 00:17:55 +02:00
40349b5660 Add missing trailing commas
How did this file ever even get saved?
2020-09-28 00:09:49 +02:00
43269bbe53 Add lots of listen: false when using Provider
Provider version 4 has an assert which fires if used incorrectly.
2020-09-28 00:09:14 +02:00
c20f8314c1 AppSetting: Add an experimental ZeroConf option 2020-09-27 22:47:18 +02:00
fc477bd503 Experiment with advertising a ZeroConf Service 2020-09-27 22:47:10 +02:00
58de0498ac Replace git pull with git fetch + merge
This way we can swap the merge out easily for our own custom merge code.
Also, this makes it easier to do a merge as a way of migrating.

This commit probably breaks stuff on ios
2020-09-26 20:27:07 +02:00
4be9520ae6 LinkResolver: Add another test 2020-09-26 19:25:07 +02:00
82db15128b NoteFileFormat: Refactor
Get all the allowed extensions in one place. Currently the code is
scattered all over the place.
2020-09-26 19:19:26 +02:00
4b3f1669f5 Stop caching the gitBaseDir
It makes the entire code base far more complicated and the round trip to
get the directory really isn't that much. This is a massive
micro-optimization for very little benefit.
2020-09-26 18:52:28 +02:00
a422b09fce GraphView: Allow scaling out far more
This way we can see allmost the entire graph.
2020-09-26 06:17:44 +02:00
b34395f754 Graph: Do not let nodes get stuck
Nodes which have a pos < 0, are no longer force directed. This make the
graph behave strangely. It's better to just push it a little further
from the edge.
2020-09-26 06:03:14 +02:00
1b1e49902b Add a copy of the InteractiveViewer
The one in the current stable branch is buggy and the scaling doesn't
work reliably.

This is from the beta branch.

This breaks selecting a node and being able to move it easily.
2020-09-26 05:57:30 +02:00
475fbcbc00 Graph: Start drawing the nodes closer to the top left
Instead of drawing them somewhere in the middle.
2020-09-26 05:39:26 +02:00
760be79153 GraphView: Try using the InteractiveViewer
Using two SingleChildScrollView hijacks the touch events and the
underlying widget never gets it.

The InteractiveViewer seems to be as useless.
2020-09-26 05:38:13 +02:00
6ede96a8ab Graph: Remove all debug print statements
Too much noise. I'll remove them later when I cleanup the code.
2020-09-26 05:37:14 +02:00
4d3573da98 GraphView: Tap gestures - get the node position properly
Earlier this was only working as the global and local coordinates were
the same. Now that I've added a SafeArea that is no longer the case.
2020-09-26 05:35:43 +02:00
8e5ac69af2 Graph Layouting: Add original const values
These seem like magic values to me.
2020-09-26 01:17:35 +02:00
e616d69773 Graph Layout: Do not let nodes pos go < 0
Otherwise they fall off the visible area
2020-09-26 01:13:37 +02:00
dcc7459b8f Remove main_graph
All of it has been incorproated into GitJournal.
2020-09-26 01:04:23 +02:00
42b7562989 GraphView: Properly cache the neighbours
Stupid mistake
2020-09-26 01:03:45 +02:00
70a48f6d2f Graph: Remove unused function
We never assign nodes randomly starting positions any more.
2020-09-26 00:48:46 +02:00
34630c671e Node: cache the label
Computing the path spec again and again is apparently very very
expensive.
2020-09-26 00:36:58 +02:00