1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-27 14:51:15 +00:00
Commit graph

229 commits

Author SHA1 Message Date
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
feaaf4c5da Fixed QR code scanning to add node being broken (fixes #106). 2014-09-25 02:29:19 +03:00
d81af707ec Pass API key via command line instead of setting it in config.xml. 2014-09-25 02:29:19 +03:00
c17da6595a Bumped version to 0.5.0-beta2. 2014-09-25 02:29:19 +03:00
1653d409ec Fixed dialogs not shown in MainActivity, added MainActivityTest. 2014-09-25 02:28:58 +03:00
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
35d80844fc Fixed repos not being displayed (fixes #100). 2014-09-25 02:28:58 +03:00
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
7b3d1b4052 Added various unit tests. 2014-09-25 02:28:58 +03:00
2e83305b93 Added unit tests for BroadcastReceivers. 2014-09-25 02:28:58 +03:00
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
c3b027e8b5 Optimized imports, removed unused function, removed assert. 2014-09-25 02:28:05 +03:00
9a0cf429ae Fixed crash on restart. 2014-09-25 02:28:05 +03:00
581e355366 Use correct stream for syncthing output. 2014-09-25 02:28:05 +03:00
49ec0734f5 Added SyncthingActivity to avoid code duplication. 2014-09-25 02:28:05 +03:00
76e87932f9 Use ActionBar icon instead of preference item for delete repo/node. 2014-09-25 02:28:04 +03:00
d78319ee00 Move Activities and Fragments into seperate folders. 2014-09-25 02:28:04 +03:00
d2e0c291b6 Use PreferenceFragments with a wrapper instead of SettingsFragments (fixes #64). 2014-09-25 02:28:04 +03:00
299c901086 Remove catch-all statement. 2014-09-25 02:28:04 +03:00
026f508b18 Use Java 1.7. 2014-09-25 02:28:04 +03:00
766c7967b5 Refactoring of config related functions/constants (moved ConfigXml). 2014-09-25 02:28:04 +03:00
6eeb161036 Removed exit button (closes #6).
This has become useless, as the service would be automatically restarted
whenever a network/battery/boot intent is received.
2014-09-25 02:28:04 +03:00
b0006db5c8 Extracted SyncthingRunnable into seperate file. 2014-09-25 02:28:04 +03:00
690190850e Start automatically on boot (closes #54). 2014-09-25 02:28:04 +03:00
9c4a85b85d Add options to stop sync when not charging or not on wifi (fixes #15). 2014-09-25 02:28:04 +03:00
733940cbdf Bumped version to 0.4.19. 2014-09-25 02:15:11 +03:00
f8924b52a2 Added czech, dutch and chinese translations. 2014-09-25 02:14:23 +03:00
Cathryne
12012d517e prioritize select_folder over create_folder 2014-09-20 20:53:34 +02:00
508f1884ad Bumped version to 0.4.18. 2014-09-19 17:20:26 +03:00
7488f3e61e Bumped version to 0.4.17. 2014-09-17 20:31:51 +03:00
5ba2920b6a Avoid text overlap for long repository ID or node name (fixes #113). 2014-09-16 12:13:24 +03:00
a8869afea9 Do not allow chaning the repo path after repo has been created (ref #29). 2014-09-12 17:49:28 +03:00
fdbb2252ec Bumped version to 0.4.16. 2014-09-12 17:07:09 +03:00
d4368d708b Bumped version to 0.4.15. 2014-09-10 23:15:05 +03:00
9082219e14 Imported German and Italian translations. 2014-09-10 23:14:04 +03:00
a90502dd5c Use correct stream for syncthing console output (fixes #115). 2014-09-07 14:56:55 +03:00
36de750b3f Bumped version to 0.4.14. 2014-09-06 23:45:34 +03:00
5171207ab6 Bumped version to 0.4.13. 2014-09-01 17:08:47 +03:00
f2db156143 Added french and polish translations from Transifex. 2014-09-01 17:08:05 +03:00
06351c945c Bumped version to 0.4.12 2014-08-29 18:06:19 +03:00
b74a6bd151 Fixed *some* repos not being displayed (fixes #100 again). 2014-08-28 19:20:11 +02:00
df14692fdd Bumped version to 0.4.11. 2014-08-27 22:42:19 +02:00
4f9f7f123c Fixed repos not being displayed (fixes #100). 2014-08-27 22:40:54 +02:00
734cbf8d9f Bump version to 0.4.10. 2014-08-27 15:04:35 +02:00
3196cfe8bf Bumped version to 0.4.9. 2014-08-23 14:52:35 +02:00
c092ff659e Bumped version to 0.4.8. 2014-08-18 11:12:33 +02:00
64bad6d0fe Avoid the same node being added multiple times (fixes #65).
When trying to add a node that already exists, the existing node is edited
instead.
2014-08-17 22:26:20 +02:00
6a85fae8ca Fixed error text position in repository item layout (fixes #78). 2014-08-17 03:05:28 +02:00
6c737c6b68 Bumped version to 0.4.7. 2014-08-16 22:34:26 +02:00
Michael Strecke
1b0fe50725 new icons 2014-08-09 01:35:14 +02:00
41b33d6bf6 Bumped version to 0.4.6. 2014-08-07 17:37:30 +02:00
d05081a10c Fixed node status and transmission speed display (fixes #74). 2014-08-07 17:37:09 +02:00
fd5455eff4 Bumped version to 0.4.5. 2014-08-04 19:27:07 +02:00
97bb64643a Adjust announce server port for v0.9.0 (ref #74). 2014-08-04 19:26:48 +02:00
5af2e55878 Log error code on syncthing binary crash for better logcat searchability. 2014-08-03 17:18:00 +02:00
2eece2e350 Fix crash if no QR scanner is available (fixes #71). 2014-08-03 17:00:29 +02:00
44317ba2f0 Bumped version to 0.4.4. 2014-08-03 16:38:04 +02:00
1639123232 Change "Create Node" to "Add Node" (ref #64). 2014-07-28 01:36:45 +02:00
ffb0deaaf9 Added content description for scan QR code icon in "add node" screen. 2014-07-27 21:55:39 +02:00
e5c578a54d Fixed restart dialog disappearing on Activity finish (closes #60). 2014-07-27 01:53:00 +02:00
e7a097d215 Bumped version to 0.4.3. 2014-07-23 15:02:00 +02:00
12db32dcd8 Fix font color problems on pre-Honeycomb (fixes #63). 2014-07-13 16:15:35 +02:00
980bb83c7c Close service connection in FolderPickerActivity. 2014-07-09 23:22:35 +02:00
96dd7bf809 Removed unused variable, use static variable to hold log tag. 2014-07-09 16:07:15 +02:00
3719be19c0 Bumped version to 0.4.2. 2014-07-09 14:39:13 +02:00
0c2378ac94 Added missing QR ImageView drawables. 2014-07-06 23:02:52 +02:00
87daf00867 Added QR code scanner on when adding node (closes #39).
This uses intents, not a built-in scanner, so a seperate app is
required (eg "Barcode Scanner").
2014-07-06 12:08:41 +02:00
6ccf1667e8 Show dialog if syncthing binary crashes instead of just crashing (ref #58). 2014-07-05 19:22:11 +02:00
d46d1d4e48 Use normal theme instead of dialog theme for repo/node settings.
This caused problems as dialogs don't have an ActionBar, and adding
ActionBar explicitly gives problems with old API levels. Closes #51.
2014-07-04 23:03:58 +02:00
3ce26dafb2 Allow copying node ID to clipboard in Drawer and node settings (closes #53). 2014-07-04 21:41:03 +02:00
20d1fcf3e8 Fix drawer clicks leaking through to underlying layout (ref #53). 2014-07-04 17:08:33 +02:00
7b51d8f355 Use minimum priority for ongoing notification. 2014-07-04 13:28:34 +02:00
dfc589d714 Use correct stream for native logging, use tag SyncthingNativeCode, simplify Code. 2014-07-04 01:27:08 +02:00
1c1197b85b Bumped version to 0.4.1. 2014-07-03 23:14:51 +02:00
b63f5bc61e Fix menu items in repo/node settings not showing as actions (ref #49).
This *should* work using `app:showAsAction`, but apparently it does not.
Using `android:showAsAction` gives warnings, but should work on all
platforms that support "showAsAction".
2014-07-03 15:27:40 +02:00
8f5422968a Fixed repo list item layout ids. 2014-07-03 00:33:09 +02:00
1fa5576625 Removed leftover line of code. 2014-07-03 00:32:37 +02:00
205056f0ef Use updated syncthing logo (ref calmh/syncthing#67445a6). 2014-07-01 22:49:55 +02:00
61eba3da1d Change restart handling to show a dialog first (ref #49).
The notification is only shown if the dialog is dismissed, in which
case the dialog won't show up as long as syncthing is not restarted.
2014-07-01 20:51:41 +02:00
50c71c5b45 Updated launcher icon for better quality. 2014-07-01 16:10:57 +02:00
a16505b757 Added file count to repository list item (ref #49). 2014-07-01 16:09:30 +02:00
ad1138e5c5 Fixed ActionBar up button not working in all activities (ref #49). 2014-07-01 13:52:59 +02:00
9806b66f56 Use split ActionBar for FolderPickerActivity. 2014-07-01 11:43:27 +02:00
5fa3400693 Do not hardcode node list item height (ref #49). 2014-06-30 19:05:30 +02:00
2bbc9e9e29 Bumped version to 0.4.0. 2014-06-30 02:20:47 +02:00
28fa7068f1 Fixed lint warnings. 2014-06-30 02:20:32 +02:00
52f84e0ec0 Show toast when trying to access nodes screen in repo settings if no nodes exist. 2014-06-30 02:19:58 +02:00
0a4121e6cf Add ActionBar back button to repo/node settings Activities. 2014-06-30 01:43:55 +02:00
505ec379b6 Share node id from node settings. 2014-06-30 01:43:55 +02:00
505673bf71 Fixed repo size being always 0 (fixes #42). 2014-06-30 01:43:55 +02:00
ca0020b176 Added graphical repo folder picker (closes #40). 2014-06-30 01:43:55 +02:00
35644c355b Fixed changed node settings not applying for repository. 2014-06-30 01:43:55 +02:00
f5249f8918 Rename "repository" to "repo" in code, missing strings from last commit. 2014-06-30 01:43:54 +02:00
c42f8c4ccb Seperate xml files for create/edit repo/node preference screens, externalize strings. 2014-06-30 01:43:54 +02:00
d858e0738d Read syncthing logs from stdout instead of stderr (ref calmh/syncthing@f97dd9d). 2014-06-30 01:43:54 +02:00
5d078fc0c0 Create camera repository on first start (closes #4). 2014-06-30 01:43:54 +02:00
97e46c3f64 Improved handling of first start dialog (fixes #45). 2014-06-30 01:43:54 +02:00
0984ba1b2d Fixed crash on screen rotate and drawer not refreshing after screen rotate. 2014-06-30 01:43:54 +02:00
9d041d0bb3 Add loading dialog on API load (after start or restart).
ref #47
2014-06-30 01:43:54 +02:00
d0e7f57812 Minor refactoring. 2014-06-30 01:43:54 +02:00