Felix Ableitner
ac289dfa30
Added logging for syncthing enable/disable.
2014-09-28 21:01:42 +03:00
Felix Ableitner
78680eceb1
Moved syncthing shutdown hack to updateState() so it's invoked on every start.
2014-09-28 20:57:47 +03:00
Felix Ableitner
2b5435c1e8
Start syncthing with STNORESTART flag.
...
This avoids the problem where an occupied GUI start lets syncthing-android
start, but API calls fail silently.
2014-09-28 20:42:15 +03:00
Felix Ableitner
bd281abade
Revert commits that set API key via parameter instead of config.
...
This reverts commits 84afda30a0
and
d81af707ec
.
2014-09-28 20:39:18 +03:00
Felix Ableitner
467dad0438
Added app description to manifest.
2014-09-25 13:54:25 +03:00
Felix Ableitner
e58ad8d931
Reformatted README, added Translation instructions.
2014-09-25 13:39:53 +03:00
Felix Ableitner
f081f69849
Added transifex tool config.
2014-09-25 13:38:50 +03:00
Felix Ableitner
6d697ecac7
Bumped version to 0.5.0-beta5.
2014-09-25 02:30:47 +03:00
Felix Ableitner
33491bb40f
By default, sync under all conditions (ref #127 ).
...
This is so the user knows *why* syncthing disables itself.
2014-09-25 02:30:47 +03:00
Felix Ableitner
879616a715
Dismiss "disabled" dialog when syncthing is available again (ref #127 ).
2014-09-25 02:30:47 +03:00
Felix Ableitner
9ea8af4774
Do not immediately finish() activity after creating or deleting repo/node.
...
This caused problems with restart dialogs ("activity has leaked window").
Instead, the activity is finished anyway as soon as the syncthing API
becomes unavailable due to restarting.
We will have to revisit this when syncthing does not need to be restarted
any more.
2014-09-25 02:30:47 +03:00
Felix Ableitner
ccfd28abbc
Added compression preference to node settings.
2014-09-25 02:30:47 +03:00
Felix Ableitner
875b6b8c8d
Added incoming rate limit preference.
2014-09-25 02:30:47 +03:00
Felix Ableitner
2363d92f22
Added per-repo rescan interval setting.
...
The default is 86400 (one day), because this shouldn't be needed with the
previous addition of inotify.
2014-09-25 02:30:47 +03:00
Felix Ableitner
924be98aaa
Added inotifiy support.
2014-09-25 02:30:47 +03:00
Felix Ableitner
913d251353
Removed rescan interval from app settings.
2014-09-25 02:30:47 +03:00
Felix Ableitner
9bce53590c
Bumped version to 0.5.0-beta4.
2014-09-25 02:30:47 +03:00
Felix Ableitner
56063c577a
Fixed crash when changing app preferences ( fixes #125 ).
2014-09-25 02:30:47 +03:00
Felix Ableitner
1733091e4b
Do not require full translation for release.
2014-09-25 02:30:47 +03:00
Felix Ableitner
5b394bf373
Bumped version to 0.5.0-beta3.
2014-09-25 02:30:47 +03:00
Felix Ableitner
dadd3f321b
Updated syncthing to v0.9.17.
2014-09-25 02:30:47 +03:00
Felix Ableitner
d248017e24
Improve handling of nodes in a repository ( fixes #89 ).
2014-09-25 02:29:20 +03:00
Felix Ableitner
2c631eed1f
Allow setting STTRACE parameters via app settings.
2014-09-25 02:29:19 +03:00
Felix Ableitner
a8b9950101
Get support-v4-preferencefragment via maven dependency instead of submodule.
2014-09-25 02:29:19 +03:00
Felix Ableitner
ccff3e1718
Use notification instead of dialog if syncthing binary crashes.
...
This also gets rid of the SYSTEM_ALERT_WINDOW permission.
2014-09-25 02:29:19 +03:00
Felix Ableitner
4886bbe0d1
Changed wifi/power preference names to be easier to understand.
2014-09-25 02:29:19 +03:00
Felix Ableitner
a9f9ef4ff1
Updated welcome dialog (sync can now be paused on mobile data).
2014-09-25 02:29:19 +03:00
Felix Ableitner
84afda30a0
Remove `shutdown()` hack, which does not work any more with dynamic API keys.
2014-09-25 02:29:19 +03:00
Felix Ableitner
a375619ed7
Various crash and bug fixes, restart manually instead of using API call.
2014-09-25 02:29:19 +03:00
Felix Ableitner
005fc36054
Removed leftover debug logging.
2014-09-25 02:29:19 +03:00
Felix Ableitner
4e254984ca
Fixed a possible crash if config has not yet been initialized on startup.
2014-09-25 02:29:19 +03:00
Felix Ableitner
ffefe46eed
Various test enhancements:
...
- added SyncthingServiceTest
- removed permanent notification from SyncthingService (didn't work with unit test)
- renamed TestContext to MockContext
- added MockRestApi
2014-09-25 02:29:19 +03:00
Felix Ableitner
feaaf4c5da
Fixed QR code scanning to add node being broken ( fixes #106 ).
2014-09-25 02:29:19 +03:00
Felix Ableitner
26eb4e6e98
Updated PreferenceFragment library.
2014-09-25 02:29:19 +03:00
Felix Ableitner
30bf0d7bc5
Made MockSyncthingService a complete stub of SyncthingService.
...
Now all methods are overriden, and throw UnsupportedOperationException
unless used by a test.
2014-09-25 02:29:19 +03:00
Felix Ableitner
19d3399288
Use hardcoded version names for gradle dependencies.
...
Also added notes in Readme on how to update dependencies and submodules.
2014-09-25 02:29:19 +03:00
Felix Ableitner
d81af707ec
Pass API key via command line instead of setting it in config.xml.
2014-09-25 02:29:19 +03:00
Felix Ableitner
c17da6595a
Bumped version to 0.5.0-beta2.
2014-09-25 02:29:19 +03:00
Felix Ableitner
1653d409ec
Fixed dialogs not shown in MainActivity, added MainActivityTest.
2014-09-25 02:28:58 +03:00
Felix Ableitner
1ed4db8684
Improved development notes.
2014-09-25 02:28:58 +03:00
Felix Ableitner
a1ddfbb2db
Make sure service also runs in background after first app start.
...
Previously, it would be stopped when exiting the activity due to no
call to `startService()`.
2014-09-25 02:28:58 +03:00
Felix Ableitner
35d80844fc
Fixed repos not being displayed ( fixes #100 ).
2014-09-25 02:28:58 +03:00
Felix Ableitner
b5f38c5c19
Lots of new unit tests, refactoring.
...
New tests:
RestApiTest
NodesAdapterTest
ReposAdapterTest
Refactored:
extracted PollWebGuiAvailableTask from SyncthingService
some changes in return values/calling behaviour for easier/better testing
2014-09-25 02:28:58 +03:00
Felix Ableitner
7b3d1b4052
Added various unit tests.
2014-09-25 02:28:58 +03:00
Felix Ableitner
2e83305b93
Added unit tests for BroadcastReceivers.
2014-09-25 02:28:58 +03:00
Felix Ableitner
b1749ce7cb
Changed code style to use spaces instead of tabs.
...
It is impossible to add a custom code style in Android Studio that is
stored in the project repository. So change style to something that's
easy to use in practice now rather than later.
2014-09-25 02:28:58 +03:00
Felix Ableitner
c3b027e8b5
Optimized imports, removed unused function, removed assert.
2014-09-25 02:28:05 +03:00
Felix Ableitner
9a0cf429ae
Fixed crash on restart.
2014-09-25 02:28:05 +03:00
Felix Ableitner
581e355366
Use correct stream for syncthing output.
2014-09-25 02:28:05 +03:00
Felix Ableitner
49ec0734f5
Added SyncthingActivity to avoid code duplication.
2014-09-25 02:28:05 +03:00