31 Commits

Author SHA1 Message Date
5571fdb65e Use time.dart
I'm sacrificing const code for readability. So maybe I'll lose a bit of
performance, but this is so much easier to read.
2020-11-10 19:07:09 +01: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
8636bda26c Bump import_sorter
It now sorts imports in the test_driver directory, which is awesome.
2020-10-01 00:22:13 +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
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
fe08834259 Split Settings into AppSettings and Settings
This way I can eventually change Settings into RepoSettings without
breaking anything.
2020-09-25 00:33:54 +02:00
f30c52f595 Move all persistent state from AppState to Settings
This way all the persistant state of the app is managed from the same
place. It makes everything much easier. Also, it's required for when
GitJournal supports multiple repositories.
2020-09-24 23:45:37 +02:00
5cf8222c77 Integration Test: Take a screenshot on fail
This way we can more easily diagnose why this fails.

Also increase the timeout - depending on where these tests are running,
everything takes much much longer.
2020-09-13 11:21:59 +02:00
f0a6f34deb Test Driver: Fix find text 2020-09-12 08:49:35 +02:00
fe95458493 Screenshots: Use the proper checklist format 2020-06-04 02:28:56 +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
36aaabf582 TestDriver: Take some more screenshots
* Add some existing notes
* Screenshot the checklist edit
* Screenshot the folders view
2020-04-16 17:34:38 +02:00
ea5667fcde Screenshots: Add another note 2020-04-03 19:38:33 +02:00
9de5f913ed Improve screenshot script
Which also acts as our integration test.
2020-04-03 19:38:33 +02:00
011962db5d Fix flutter analyze 2019-12-27 13:44:20 +01:00
dfe2cf87ac Integrate 'screenshot' to automate the screenshot process
This even fires up the emulators.
2019-12-27 12:59:00 +01:00
798a744574 Change public strings of "Journal" to "Notes" 2019-12-22 15:24:00 +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
b67af9d7a5 Update screenshots 2019-11-03 02:01:15 +01:00
877b68dbbd Screenshotter: Add a delay
Our runApp seems to take some time now.
2019-11-03 01:47:11 +01:00
d5f91cb898 More prefer_const
It seems like flutter analyze might have some kind of cache
2019-10-20 01:24:43 +01:00
69003cf0ac Rename package from journal -> gitjournal
It's about time.
2019-10-07 19:30:50 +02:00
86c14a7b9d Fix Test Driver 2019-10-06 13:00:59 +02:00
8e75fc0b6f Upgrade screenshot taking script to handle onboarding 2019-02-16 16:27:18 +01:00
2c6e5b2e9c Screenshots: Add more screenshots
* Add another note and then take a screenshot of the list view
* Take a screenshot of the Git Host Setup
2019-02-16 00:54:58 +01:00
e97300b7b1 Integration Test: Make it take a few screenshots
* Default value
* App Drawer
* Note Editing
2019-02-16 00:46:03 +01:00
00355c532b Add a trivial integration test which just takes a screenshot
This required refactoring the code. With this we can now write an
integration test to test the main parts of the app, but more importantly
we can automate the process of generating the screenshots.
2019-02-16 00:16:32 +01:00
f27d9b4b23 Flutter Driver Test: Wait for element to be visible before tapping 2019-02-11 10:24:14 +01:00
bd9ca896bf Fix clone test
The keys were not formatted correctly.
2019-02-06 16:17:58 +01:00
4de157e6b1 Add an automated test for testing git clone in github
It currently fails :(
2019-02-06 15:06:08 +01:00
cb020c00fe Add the first integration test using the flutter driver
We need to test the git operations on all the devices.
2019-02-05 14:35:36 +01:00