Compare commits

..
Author SHA1 Message Date
tobiasKaminsky fb969cc6a8 wip
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-10 20:19:58 +01:00
tobiasKaminsky aaba0a8a53 Fix unittests
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-10 14:35:05 +01:00
tobiasKaminsky 688a44dd61 remove annotation
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-10 14:35:05 +01:00
tobiasKaminsky 1e2cbff1c8 fix during CI
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-10 14:35:05 +01:00
tobiasKaminsky 6da3a0766b update tests
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-10 14:35:05 +01:00
tobiasKaminsky ebf22f67d2 test CreateFolderOperation without server
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-10 14:35:05 +01:00
Tobias Kaminsky b7a7772cf0 Merge pull request #5122 from nextcloud/firstRun
show first run again
2020-01-10 12:27:47 +01:00
Tobias Kaminsky c4d5e41a44 Merge pull request #5143 from nextcloud/background
launcher: correct folder position according to AS
2020-01-10 11:09:52 +01:00
tobiasKaminsky 87dae2ef04 show first run again
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-10 09:47:15 +01:00
tobiasKaminsky 4c10cf5d7f launcher: correct folder position according to AS
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-10 08:53:47 +01:00
Nextcloud bot 51fdf94615 [tx-robot] updated from transifex 2020-01-10 03:29:56 +00:00
Tobias Kaminsky e0b77f9102 daily dev 20200110
8a343be9c Merge pull request #5133 from nextcloud/notificationTask
6cd1b751e Merge pull request #5121 from nextcloud/newIcon
9fa406036 Merge pull request #5128 from nextcloud/closeEditor
4b073e928 task needs to be a new object for every button
383d892b5 Merge pull request #5017 from grote/5015-dp-remove-npe
56e6ed588 editor: click on snackbar closes webview for real
99eb991f1 [tx-robot] updated from transifex
e0beda807 daily dev 20200109
2020-01-10 03:37:41 +01:00
Andy Scherzinger 8a343be9c6 Merge pull request #5133 from nextcloud/notificationTask
task needs to be a new object for every button
2020-01-09 18:22:42 +01:00
Andy Scherzinger 6cd1b751ee Merge pull request #5121 from nextcloud/newIcon
new background icon
2020-01-09 15:44:15 +01:00
Andy Scherzinger 9fa4060360 Merge pull request #5128 from nextcloud/closeEditor
editor: click on snackbar closes webview for real
2020-01-09 15:20:51 +01:00
tobiasKaminsky 4b073e9283 task needs to be a new object for every button
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-09 14:54:00 +01:00
Tobias Kaminsky 383d892b52 Merge pull request #5017 from grote/5015-dp-remove-npe
Retrieve parent folder before removing document
2020-01-09 14:49:29 +01:00
tobiasKaminsky 56e6ed5888 editor: click on snackbar closes webview for real
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-09 11:34:37 +01:00
Nextcloud bot 99eb991f1b [tx-robot] updated from transifex 2020-01-09 04:19:51 +00:00
Tobias Kaminsky e0beda807d daily dev 20200109
8751c85c2 Merge pull request #5120 from nextcloud/spinner
9d2b80da1 spinner: if primary color is white, use grey
de269b260 Merge pull request #5115 from nextcloud/311bump
3baa9fe5d Merge pull request #5118 from nextcloud/fastlane
ee6e7ce5b fix fastlane RC
1343ba08e Merge pull request #5114 from nextcloud/richWorkspaceFixes
1ec8b067f - fix not clickable rich workspace area - fix crash on first loading
62aaed7f3 bump to 3.11 alpha
9a47a4d30 Merge pull request #5107 from nextcloud/whiteHeader
6cb0f1087 Merge pull request #4915 from nextcloud/createText
3011097be [tx-robot] updated from transifex
248fe1a44 daily dev 20200108
2020-01-09 03:37:23 +01:00
Andy Scherzinger 8751c85c20 Merge pull request #5120 from nextcloud/spinner
spinner: if primary color is white, use grey
2020-01-08 15:30:52 +01:00
tobiasKaminsky bbc2c8282b new background icon
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-08 14:16:16 +01:00
tobiasKaminsky 9d2b80da1a spinner: if primary color is white, use grey
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-08 10:21:30 +01:00
Tobias Kaminsky de269b2603 Merge pull request #5115 from nextcloud/311bump
bump to 3.11 alpha
2020-01-08 09:43:11 +01:00
Tobias Kaminsky 3baa9fe5df Merge pull request #5118 from nextcloud/fastlane
fix fastlane RC
2020-01-08 09:38:54 +01:00
tobiasKaminsky ee6e7ce5bf fix fastlane RC
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-08 09:38:23 +01:00
Tobias Kaminsky 1343ba08e2 Merge pull request #5114 from nextcloud/richWorkspaceFixes
- fix not clickable rich workspace area
2020-01-08 09:03:03 +01:00
tobiasKaminsky 1ec8b067f0 - fix not clickable rich workspace area
- fix crash on first loading

Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-08 08:42:29 +01:00
tobiasKaminsky 62aaed7f3c bump to 3.11 alpha
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-08 08:35:02 +01:00
Tobias Kaminsky 9a47a4d30b Merge pull request #5107 from nextcloud/whiteHeader
Fix white header with dark mode
2020-01-08 06:35:10 +01:00
Tobias Kaminsky 6cb0f10872 Merge pull request #4915 from nextcloud/createText
Create text
2020-01-08 06:24:12 +01:00
Nextcloud bot 3011097be8 [tx-robot] updated from transifex 2020-01-08 04:20:34 +00:00
Tobias Kaminsky 248fe1a441 daily dev 20200108
de46f83dd Merge pull request #5108 from nextcloud/whiteOptionMenu
57b0d425b Fix text in option menu within image preview
b0758e4b7 Merge pull request #5054 from nextcloud/ezaquarii/fix-user-avatars-in-drawer
36294785c daily dev 20200107
2020-01-08 03:37:17 +01:00
Andy Scherzinger de46f83ddd Merge pull request #5108 from nextcloud/whiteOptionMenu
Fix text in option menu within image preview
2020-01-07 22:15:19 +01:00
tobiasKaminsky 9556a69204 Better handling of parsing enum
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-07 11:57:10 +01:00
tobiasKaminsky 57b0d425b6 Fix text in option menu within image preview
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-07 10:12:34 +01:00
tobiasKaminsky 9c92762937 Fix white header with dark mode
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-07 09:28:24 +01:00
tobiasKaminsky 74f8a723b8 fixes from CI
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-07 08:23:48 +01:00
tobiasKaminsky 59585d0f5b Direct editing support
- abstract EditorWebView
- support direct editing endpoint
Create new files via direct editing

Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-07 08:23:41 +01:00
Tobias Kaminsky b0758e4b74 Merge pull request #5054 from nextcloud/ezaquarii/fix-user-avatars-in-drawer
Fix account switch buttons in drawer header
2020-01-07 08:15:53 +01:00
Tobias Kaminsky 36294785cf daily dev 20200107
f690417d3 Merge pull request #5102 from nextcloud/removeNC12
051423cf2 remove support for NC12
d7d1c475a Merge pull request #5031 from nextcloud/ezaquarii/fix-npe-crash-when-storage-manager-is-not-set
9b79b85ff Merge pull request #5065 from nextcloud/ezaquarii/fix-crash-when-making-new-ods-file
32ebe691f Merge pull request #5066 from nextcloud/ezaquarii/fix-shared-by-null-glitch
6e07d1894 Merge pull request #5035 from nextcloud/enh/clickableMarkdownLinks
5fce6caea Removed unneeded try/catch
a68069752 Removed unneeded try/catch
154b9af53 adjusted to master
a15f7248f Make hyperlinks clickable in markdown previews
5f70ea643 Make hyperlinks clickable in markdown previews
cd0f834a9 [tx-robot] updated from transifex
22ab16ef4 [tx-robot] updated from transifex
80d7d26cd [tx-robot] updated from transifex
6d76582b3 [tx-robot] updated from transifex
167b25089 Merge pull request #5085 from nextcloud/dependabot/gradle/junit-junit-4.13
7b6e1b73b [tx-robot] updated from transifex
1c12ca0ee Bump junit from 4.12 to 4.13
71f919f6c [tx-robot] updated from transifex
fc00d7d90 Merge pull request #5077 from nextcloud/dependabot/gradle/daggerVersion-2.25.4
9a3bf3a6e Bump daggerVersion from 2.25.3 to 2.25.4
0c3b8fce8 [tx-robot] updated from transifex
ef8497697 Fix "Shared by null" glitch in file details view
3cf3e3bd7 Fix crash when adding new ODS file
204707989 Merge pull request #5060 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.3.0
2882236fd Bump detekt-gradle-plugin from 1.2.2 to 1.3.0
36873015a [tx-robot] updated from transifex
f53d637cb [tx-robot] updated from transifex
24921f6f4 [tx-robot] updated from transifex
c30c6c723 daily dev 20191221
2020-01-07 03:40:25 +01:00
Andy Scherzinger f690417d37 Merge pull request #5102 from nextcloud/removeNC12
remove support for NC12
2020-01-06 19:23:53 +01:00
tobiasKaminsky 051423cf21 remove support for NC12
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-06 15:48:12 +01:00
Tobias Kaminsky d7d1c475ae Merge pull request #5031 from nextcloud/ezaquarii/fix-npe-crash-when-storage-manager-is-not-set
Fix NPE crash on startup when storage manager is not set
2020-01-06 15:35:27 +01:00
Tobias Kaminsky b675942f1e small typo 2020-01-06 15:16:38 +01:00
Tobias Kaminsky 9b79b85ff5 Merge pull request #5065 from nextcloud/ezaquarii/fix-crash-when-making-new-ods-file
Fix crash when adding new ODS file
2020-01-06 14:57:05 +01:00
Tobias Kaminsky 32ebe691f9 Merge pull request #5066 from nextcloud/ezaquarii/fix-shared-by-null-glitch
Fix "Shared by null" glitch in file details view
2020-01-06 14:55:07 +01:00
Tobias Kaminsky 6e07d1894a Merge pull request #5035 from nextcloud/enh/clickableMarkdownLinks
Make hyperlinks clickable in markdown previews
2020-01-06 13:03:47 +01:00
tobiasKaminsky 5fce6caea4 Removed unneeded try/catch
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-06 12:19:21 +01:00
tobiasKaminsky a680697529 Removed unneeded try/catch
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-06 12:00:30 +01:00
tobiasKaminsky 154b9af533 adjusted to master
Signed-off-by: tobiasKaminsky <[email protected]>
2020-01-06 10:10:28 +01:00
Andy Scherzinger a15f7248ff Make hyperlinks clickable in markdown previews
Resolves: #5030

Signed-off-by: Andy Scherzinger <[email protected]>
2020-01-06 09:33:12 +01:00
Andy Scherzinger 5f70ea643e Make hyperlinks clickable in markdown previews
Resolves: #5030

Signed-off-by: Andy Scherzinger <[email protected]>
2020-01-06 09:33:12 +01:00
Nextcloud bot cd0f834a9f [tx-robot] updated from transifex 2020-01-06 04:20:28 +00:00
Nextcloud bot 22ab16ef47 [tx-robot] updated from transifex 2020-01-05 04:33:10 +00:00
Nextcloud bot 80d7d26cdc [tx-robot] updated from transifex 2020-01-04 04:21:28 +00:00
Nextcloud bot 6d76582b3e [tx-robot] updated from transifex 2020-01-03 04:17:57 +00:00
dependabot-preview[bot] 167b25089e Merge pull request #5085 from nextcloud/dependabot/gradle/junit-junit-4.13 2020-01-02 16:38:35 +00:00
Nextcloud bot 7b6e1b73b4 [tx-robot] updated from transifex 2020-01-02 04:18:21 +00:00
dependabot-preview[bot] 1c12ca0ee8 Bump junit from 4.12 to 4.13
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/master/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2020-01-02 02:14:59 +00:00
Nextcloud bot 71f919f6ce [tx-robot] updated from transifex 2019-12-31 04:18:47 +00:00
dependabot-preview[bot] fc00d7d906 Merge pull request #5077 from nextcloud/dependabot/gradle/daggerVersion-2.25.4 2019-12-30 20:11:00 +00:00
dependabot-preview[bot] 9a3bf3a6e1 Bump daggerVersion from 2.25.3 to 2.25.4
Bumps `daggerVersion` from 2.25.3 to 2.25.4.

Updates `dagger` from 2.25.3 to 2.25.4
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.25.3...dagger-2.25.4)

Updates `dagger-android` from 2.25.3 to 2.25.4
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.25.3...dagger-2.25.4)

Updates `dagger-android-support` from 2.25.3 to 2.25.4
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.25.3...dagger-2.25.4)

Updates `dagger-compiler` from 2.25.3 to 2.25.4
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.25.3...dagger-2.25.4)

Updates `dagger-android-processor` from 2.25.3 to 2.25.4
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.25.3...dagger-2.25.4)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-30 02:13:51 +00:00
Nextcloud bot 0c3b8fce89 [tx-robot] updated from transifex 2019-12-28 04:17:07 +00:00
Torsten Grote d82de88701 Retrieve parent folder before removing document
Otherwise trying to get the parent folder will cause a NPE

Fixes #5015

Signed-off-by: Torsten Grote <[email protected]>
2019-12-26 15:44:23 -03:00
Chris Narkiewicz ef8497697a Fix "Shared by null" glitch in file details view
When file is uploaded it has ownerId == null.
We shall interpret this condition file being
owned by the current user.

Fixes #5005

Signed-off-by: Chris Narkiewicz <[email protected]>
2019-12-25 19:45:49 +00:00
Chris Narkiewicz 3cf3e3bd71 Fix crash when adding new ODS file
Crash was caused by async task callback firing when
Fragment is not attached to activity.

Check if fragment is attached before invoking
callback logic.

Fixes: #5020

Signed-off-by: Chris Narkiewicz <[email protected]>
2019-12-25 16:39:05 +00:00
dependabot-preview[bot] 2047079898 Merge pull request #5060 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.3.0 2019-12-24 08:25:17 +00:00
dependabot-preview[bot] 2882236fd7 Bump detekt-gradle-plugin from 1.2.2 to 1.3.0
Bumps detekt-gradle-plugin from 1.2.2 to 1.3.0.

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-24 02:12:39 +00:00
Nextcloud bot 36873015af [tx-robot] updated from transifex 2019-12-23 04:21:33 +00:00
nextcloud-android-bot 2310c9c453 Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2019-12-22 14:28:02 +00:00
Chris Narkiewicz 89ccc01845 Fix account switch buttons in drawer header
This is a regression caused by using User.equals() to compare against
platform Account object.

- Migrated this functionality to User
- Refactored drawer setup code using CollectionsKt.filter()
  List<User>

Fixes #5053

Signed-off-by: Chris Narkiewicz <[email protected]>
2019-12-22 13:43:04 +00:00
Nextcloud bot f53d637cbe [tx-robot] updated from transifex 2019-12-22 04:24:34 +00:00
Nextcloud bot 24921f6f40 [tx-robot] updated from transifex 2019-12-21 03:54:02 +00:00
Tobias Kaminsky c30c6c7233 daily dev 20191221
a28d65c4c Merge pull request #5047 from nextcloud/nickvergessen-patch-1
70f20b30d Merge pull request #5040 from nextcloud/dependabot/gradle/com.android.support.test.espresso-espresso-intents-3.0.2
c8f8fbb91 Change order of steps and result of those steps
89bbb8284 Bump espresso-intents from 2.2.1 to 3.0.2
4899561eb Merge pull request #5042 from nextcloud/dependabot/gradle/com.jakewharton-butterknife-compiler-10.2.1
9e61eba51 Bump butterknife-compiler from 10.2.0 to 10.2.1
aff5c473a Merge pull request #5044 from nextcloud/dependabot/gradle/com.jakewharton-butterknife-10.2.1
7240022e1 [tx-robot] updated from transifex
1caf02a0f daily dev 20191220
2019-12-21 03:37:04 +01:00
Andy Scherzinger a28d65c4c5 Merge pull request #5047 from nextcloud/nickvergessen-patch-1
Change order of steps and result of those steps
2019-12-20 11:15:52 +01:00
dependabot-preview[bot] 70f20b30dc Merge pull request #5040 from nextcloud/dependabot/gradle/com.android.support.test.espresso-espresso-intents-3.0.2 2019-12-20 08:32:27 +00:00
Joas Schilling c8f8fbb91d Change order of steps and result of those steps 2019-12-20 09:16:35 +01:00
dependabot-preview[bot] 89bbb8284c Bump espresso-intents from 2.2.1 to 3.0.2
Bumps espresso-intents from 2.2.1 to 3.0.2.

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-20 07:38:28 +00:00
Andy Scherzinger 4899561eb0 Merge pull request #5042 from nextcloud/dependabot/gradle/com.jakewharton-butterknife-compiler-10.2.1
Bump butterknife-compiler from 10.2.0 to 10.2.1
2019-12-20 08:36:45 +01:00
dependabot-preview[bot] 9e61eba515 Bump butterknife-compiler from 10.2.0 to 10.2.1
Bumps [butterknife-compiler](https://github.com/JakeWharton/butterknife) from 10.2.0 to 10.2.1.
- [Release notes](https://github.com/JakeWharton/butterknife/releases)
- [Changelog](https://github.com/JakeWharton/butterknife/blob/master/CHANGELOG.md)
- [Commits](https://github.com/JakeWharton/butterknife/compare/10.2.0...10.2.1)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-20 07:34:44 +00:00
dependabot-preview[bot] aff5c473ab Merge pull request #5044 from nextcloud/dependabot/gradle/com.jakewharton-butterknife-10.2.1 2019-12-20 07:33:31 +00:00
Nextcloud bot 7240022e1e [tx-robot] updated from transifex 2019-12-20 03:53:45 +00:00
Tobias Kaminsky 1caf02a0f5 daily dev 20191220
6af95233f Merge pull request #4890 from nextcloud/directEditing
b4c3a7d78 Merge pull request #5018 from grote/thumbnail-fix
b20767140 fix during CI
d23137025 Merge pull request #4829 from nextcloud/dependabot/gradle/tools.fastlane-screengrab-2.0.0
0d84a2dd3 warning about used feature in newer SDK
b4ea01430 use master branch
ec2cfef13 Direct editing support - abstract EditorWebView - support direct editing endpoint
f2627a29a enable caching
ddffaf7b4 use custom user agent for onlyOffice
017849959 remove unneeded static string
f25127d6e revert to master snapshot
95afe8c82 use editor id to use any editor
d05de9855 use file path as parameter for open direct editing file
300abba48 make sure TextEditor is also only used ond >= Android 5, due to security reason of javascript interface
994817ce9 get direct editing info from endpoint
b31cee531 prevent NPE
d1611f633 Direct editing support - abstract EditorWebView - support direct editing endpoint
516c464a7 override minSDK for lib
10a667b08 Bump screengrab from 1.2.0 to 2.0.0
9fbedb4d8 Merge pull request #4992 from nextcloud/uiComparison
751301cd4 daily dev 20191219
2019-12-20 03:39:43 +01:00
dependabot-preview[bot] d3c4fdf908 Bump butterknife from 10.2.0 to 10.2.1
Bumps [butterknife](https://github.com/JakeWharton/butterknife) from 10.2.0 to 10.2.1.
- [Release notes](https://github.com/JakeWharton/butterknife/releases)
- [Changelog](https://github.com/JakeWharton/butterknife/blob/master/CHANGELOG.md)
- [Commits](https://github.com/JakeWharton/butterknife/compare/10.2.0...10.2.1)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-20 02:15:04 +00:00
Tobias Kaminsky 6af95233fb Merge pull request #4890 from nextcloud/directEditing
Direct editing support
2019-12-19 15:11:56 +01:00
Andy Scherzinger b4c3a7d788 Merge pull request #5018 from grote/thumbnail-fix
Only trigger media scans for media files
2019-12-19 15:01:34 +01:00
tobiasKaminsky b20767140f fix during CI
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 09:10:23 +01:00
dependabot-preview[bot] d231370254 Merge pull request #4829 from nextcloud/dependabot/gradle/tools.fastlane-screengrab-2.0.0 2019-12-19 08:00:00 +00:00
tobiasKaminsky 0d84a2dd34 warning about used feature in newer SDK
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:39 +01:00
tobiasKaminsky b4ea014301 use master branch
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:39 +01:00
tobiasKaminsky ec2cfef138 Direct editing support
- abstract EditorWebView
- support direct editing endpoint

Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:39 +01:00
tobiasKaminsky f2627a29a8 enable caching
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:39 +01:00
tobiasKaminsky ddffaf7b49 use custom user agent for onlyOffice
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:39 +01:00
tobiasKaminsky 0178499596 remove unneeded static string
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:39 +01:00
tobiasKaminsky f25127d6e3 revert to master snapshot
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:39 +01:00
tobiasKaminsky 95afe8c82a use editor id to use any editor
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:38 +01:00
tobiasKaminsky d05de9855a use file path as parameter for open direct editing file
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:38 +01:00
tobiasKaminsky 300abba48b make sure TextEditor is also only used ond >= Android 5, due to security reason of javascript interface
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:38 +01:00
tobiasKaminsky 994817ce97 get direct editing info from endpoint
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:38 +01:00
tobiasKaminsky b31cee531b prevent NPE
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:38 +01:00
tobiasKaminsky d1611f6334 Direct editing support
- abstract EditorWebView
- support direct editing endpoint

Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:57:38 +01:00
tobiasKaminsky 516c464a79 override minSDK for lib
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-19 08:41:26 +01:00
dependabot-preview[bot] 10a667b081 Bump screengrab from 1.2.0 to 2.0.0
Bumps screengrab from 1.2.0 to 2.0.0.

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-19 06:43:41 +00:00
Tobias Kaminsky 9fbedb4d8c Merge pull request #4992 from nextcloud/uiComparison
Ui comparison
2019-12-19 07:42:11 +01:00
Tobias Kaminsky 751301cd4c daily dev 20191219
7201dbe4a Merge pull request #5029 from nextcloud/beautifyScreenshots
9246373e3 beautify screenshots: no status icon, set time to 12:00, no charging, etc.
447f74792 Merge pull request #5025 from nextcloud/dependabot/gradle/org.mockito-mockito-core-3.2.4
2be462356 Bump mockito-core from 3.2.0 to 3.2.4
3c8aa90fc Merge pull request #5026 from nextcloud/dependabot/gradle/daggerVersion-2.25.3
6d63b4b07 [tx-robot] updated from transifex
380cc0137 daily dev 20191218
2019-12-19 03:37:25 +01:00
Chris Narkiewicz 3f3c5a1951 Fix NPE crash on startup when storage manager is not set
Fixes #4941

Signed-off-by: Chris Narkiewicz <[email protected]>
2019-12-19 00:28:24 +00:00
Andy Scherzinger 7201dbe4ad Merge pull request #5029 from nextcloud/beautifyScreenshots
beautify screenshots: no status icon, set time to 12:00, no charging, etc.
2019-12-18 16:27:28 +01:00
tobiasKaminsky 9246373e36 beautify screenshots: no status icon, set time to 12:00, no charging, etc.
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-18 14:02:56 +01:00
dependabot-preview[bot] 447f747927 Merge pull request #5025 from nextcloud/dependabot/gradle/org.mockito-mockito-core-3.2.4 2019-12-18 12:21:53 +00:00
dependabot-preview[bot] 2be4623568 Bump mockito-core from 3.2.0 to 3.2.4
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.2.0 to 3.2.4.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.2.0...v3.2.4)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-18 11:24:13 +00:00
dependabot-preview[bot] 3c8aa90fcf Merge pull request #5026 from nextcloud/dependabot/gradle/daggerVersion-2.25.3 2019-12-18 11:22:15 +00:00
Nextcloud bot 6d63b4b070 [tx-robot] updated from transifex 2019-12-18 03:55:27 +00:00
Tobias Kaminsky 380cc01375 daily dev 20191218
0f41fbbbf Merge pull request #5022 from nextcloud/enh/iconify_readme
a1c7d5c58 iconify README.md
88f9e8714 Merge pull request #5019 from nextcloud/enh/material-1.1.0-beta02
901dc20ee [tx-robot] updated from transifex
12e158365 daily dev 20191217
2019-12-18 03:38:11 +01:00
dependabot-preview[bot] 9fa66b421a Bump daggerVersion from 2.25.2 to 2.25.3
Bumps `daggerVersion` from 2.25.2 to 2.25.3.

Updates `dagger` from 2.25.2 to 2.25.3
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.25.2...dagger-2.25.3)

Updates `dagger-android` from 2.25.2 to 2.25.3
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.25.2...dagger-2.25.3)

Updates `dagger-android-support` from 2.25.2 to 2.25.3
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.25.2...dagger-2.25.3)

Updates `dagger-compiler` from 2.25.2 to 2.25.3
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.25.2...dagger-2.25.3)

Updates `dagger-android-processor` from 2.25.2 to 2.25.3
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.25.2...dagger-2.25.3)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-18 02:19:20 +00:00
Andy Scherzinger 0f41fbbbf5 Merge pull request #5022 from nextcloud/enh/iconify_readme
iconify README.md
2019-12-17 11:16:57 +01:00
Andy Scherzinger a1c7d5c58a iconify README.md
Signed-off-by: Andy Scherzinger <[email protected]>
2019-12-17 08:44:17 +01:00
Tobias Kaminsky 88f9e87149 Merge pull request #5019 from nextcloud/enh/material-1.1.0-beta02
bump material to 1.1.0-beta02
2019-12-17 08:20:25 +01:00
Nextcloud bot 901dc20ee8 [tx-robot] updated from transifex 2019-12-17 03:54:49 +00:00
Tobias Kaminsky 12e1583658 daily dev 20191217
8daa9a278 Merge pull request #5014 from nextcloud/android-10-scoped-storage-workaround
1919a6647 Opt-out of scoped storage
1656f64ad Merge pull request #5012 from nextcloud/darkThemePref
74ab9a05d Merge pull request #5013 from nextcloud/addLibCommit
0ad578599 add library commit hash for reproducable builds
b065e9b85 fix dark theme preference for dev version: use different preference name
14a7493c7 [tx-robot] updated from transifex
a6eb5dd52 [tx-robot] updated from transifex
669b269e6 daily dev 20191214
2019-12-17 03:37:16 +01:00
Torsten Grote 574f50e684 Only trigger media scans when the file is a media file
Fixes #4999

Signed-off-by: Torsten Grote <[email protected]>
2019-12-16 16:31:10 -03:00
Andy Scherzinger 4ec3e81cd2 bump material to 1.1.0-beta02
Signed-off-by: Andy Scherzinger <[email protected]>
2019-12-16 17:15:49 +01:00
Andy Scherzinger 8daa9a2786 Merge pull request #5014 from nextcloud/android-10-scoped-storage-workaround
Opt-out of scoped storage
2019-12-16 14:45:22 +01:00
Alice Gaudon 1919a6647a Opt-out of scoped storage
Signed-off-by: Alice Gaudon <[email protected]>
2019-12-16 11:54:51 +01:00
Tobias Kaminsky 1656f64ad9 Merge pull request #5012 from nextcloud/darkThemePref
fix dark theme preference for dev version: use different preference name
2019-12-16 11:48:05 +01:00
Tobias Kaminsky 74ab9a05d3 Merge pull request #5013 from nextcloud/addLibCommit
add library commit hash for reproducable builds
2019-12-16 08:34:27 +01:00
tobiasKaminsky 0ad5785998 add library commit hash for reproducable builds
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-16 08:34:00 +01:00
tobiasKaminsky b065e9b85d fix dark theme preference for dev version: use different preference name
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-16 08:23:54 +01:00
Nextcloud bot 14a7493c74 [tx-robot] updated from transifex 2019-12-15 03:53:46 +00:00
Nextcloud bot a6eb5dd52c [tx-robot] updated from transifex 2019-12-14 03:53:46 +00:00
Tobias Kaminsky 669b269e6d daily dev 20191214
b56a6b930 Merge pull request #4982 from nextcloud/authIntent
7bbb8833e Merge pull request #4994 from nextcloud/dependabot/gradle/androidx.test-orchestrator-1.2.0
e20e2797a daily dev 20191213
2019-12-14 03:38:34 +01:00
tobiasKaminsky d6249163a7 new tests
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-13 10:59:29 +01:00
tobiasKaminsky 1f69bc2768 update screenshots
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-13 09:03:46 +01:00
tobiasKaminsky e5a02d5637 typo
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-13 08:34:49 +01:00
Tobias Kaminsky b56a6b930b Merge pull request #4982 from nextcloud/authIntent
only add account, but not go to main app
2019-12-13 08:20:41 +01:00
dependabot-preview[bot] 7bbb8833e0 Merge pull request #4994 from nextcloud/dependabot/gradle/androidx.test-orchestrator-1.2.0 2019-12-13 07:18:10 +00:00
Tobias Kaminsky e20e2797ac daily dev 20191213
10789e900 Merge pull request #4932 from nextcloud/useTestOrchestrator
50a73b4a5 on smaller displays we have to swipe up
9fce154e9 Use android test orchestrator
cbf59eb04 Merge pull request #4983 from nextcloud/disableGoogleTracking
e8eae2a53 disable google test tracking
257ac81f7 Merge pull request #4900 from nextcloud/v2withActivity
a2357181a fix tests
6eb4ac7c4 revert to master snapshot
8b61e7405 remove unneeded accountManager
e5cd5ffcd use nextcloudClient.execute(…)
066f4c25a Initial work on v2 with activity
45f114671 [tx-robot] updated from transifex
d913950b5 daily dev 20191211
2019-12-13 03:40:10 +01:00
dependabot-preview[bot] 508403a925 Bump orchestrator from 1.1.0 to 1.2.0
Bumps orchestrator from 1.1.0 to 1.2.0.

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-13 02:16:30 +00:00
tobiasKaminsky 76bbc110a9 test ui diff
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-12 14:05:31 +01:00
Andy Scherzinger 10789e900c Merge pull request #4932 from nextcloud/useTestOrchestrator
Use android test orchestrator
2019-12-12 13:05:22 +01:00
tobiasKaminsky 50a73b4a58 on smaller displays we have to swipe up
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-12 11:02:20 +01:00
tobiasKaminsky 9fce154e99 Use android test orchestrator
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-12 10:03:08 +01:00
Andy Scherzinger cbf59eb04a Merge pull request #4983 from nextcloud/disableGoogleTracking
disable google test tracking
2019-12-12 09:40:01 +01:00
tobiasKaminsky e8eae2a537 disable google test tracking
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-12 08:30:55 +01:00
tobiasKaminsky f61c70d796 only add account, but not go to main app.
Usage: start com.nextcloud.client/com.owncloud.android.authentication.AuthenticatorActivity with "onlyAdd" set to true as boolean

Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-12 08:28:20 +01:00
Tobias Kaminsky 257ac81f73 Merge pull request #4900 from nextcloud/v2withActivity
Initial work on v2 with activity
2019-12-12 08:10:15 +01:00
tobiasKaminsky a2357181ab fix tests
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-12 07:13:29 +01:00
tobiasKaminsky 6eb4ac7c47 revert to master snapshot
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-12 06:50:52 +01:00
tobiasKaminsky 8b61e74057 remove unneeded accountManager
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-12 06:50:52 +01:00
tobiasKaminsky e5cd5ffcd6 use nextcloudClient.execute(…)
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-12 06:50:52 +01:00
tobiasKaminsky 066f4c25aa Initial work on v2 with activity
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-12 06:50:52 +01:00
Nextcloud bot 45f114671a [tx-robot] updated from transifex 2019-12-12 03:53:43 +00:00
Tobias Kaminsky d913950b50 daily dev 20191211
5f6dc23a5 Merge pull request #4973 from nextcloud/addFastlane
1145c3813 Merge pull request #4958 from Infomaniak/fix/see-detail-from-preview-nc
fd3ff4cbc Merge pull request #4898 from siddharths2710/master
988e79702 [tx-robot] updated from transifex
8062340f6 Merge pull request #4657 from nextcloud/bumpSDK
4b328cbe3 manually increase spotbugs and lint
1290bbe52 Merge pull request #4918 from Infomaniak/fix/calendar-not-refreshed
da104fc48 Merge pull request #4962 from Infomaniak/fix/add-activities-empty-icon
702c4f71f Merge pull request #4954 from nextcloud/dependabot/gradle/com.android.tools.build-gradle-3.5.3
f7597c147 [tx-robot] updated from transifex
c27f4cea3 [tx-robot] updated from transifex
75442575f [tx-robot] updated from transifex
4576d45ce daily dev 20191207
2019-12-11 03:38:43 +01:00
Andy Scherzinger 5f6dc23a5a Merge pull request #4973 from nextcloud/addFastlane
Add fastlane scripts
2019-12-10 09:46:49 +01:00
Tobias Kaminsky 1145c3813e Merge pull request #4958 from Infomaniak/fix/see-detail-from-preview-nc
Fixed issue relative to Properties from ImagePreview
2019-12-10 09:32:23 +01:00
Tobias Kaminsky fd3ff4cbcb Merge pull request #4898 from siddharths2710/master
Refresh issue for file movment/file restore operations
2019-12-10 09:22:57 +01:00
Nextcloud bot 988e797025 [tx-robot] updated from transifex 2019-12-10 03:17:14 +00:00
Andy Scherzinger 8062340f63 Merge pull request #4657 from nextcloud/bumpSDK
bump to latest SDK
2019-12-09 17:51:09 +01:00
tobiasKaminsky 4b328cbe3e manually increase spotbugs and lint
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-09 11:59:54 +01:00
Tobias Kaminsky 1290bbe52e Merge pull request #4918 from Infomaniak/fix/calendar-not-refreshed
Resolved issue relative to calendar refresh in link-sharing
2019-12-09 11:58:21 +01:00
Tobias Kaminsky da104fc48a Merge pull request #4962 from Infomaniak/fix/add-activities-empty-icon
Fixed bug relative to activities empty icon
2019-12-09 11:54:18 +01:00
Tobias Kaminsky 702c4f71fe Merge pull request #4954 from nextcloud/dependabot/gradle/com.android.tools.build-gradle-3.5.3
Bump gradle from 3.5.2 to 3.5.3
2019-12-09 09:00:40 +01:00
Nextcloud bot f7597c1472 [tx-robot] updated from transifex 2019-12-09 03:13:39 +00:00
Nextcloud bot c27f4cea39 [tx-robot] updated from transifex 2019-12-08 03:15:17 +00:00
Nextcloud bot 75442575f0 [tx-robot] updated from transifex 2019-12-07 03:15:41 +00:00
Tobias Kaminsky 4576d45ce3 daily dev 20191207
f9bd91b4b Merge pull request #4956 from nextcloud/fixScreenshot
d95351b04 Merge pull request #4953 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.2.2
3ed9ce2e2 Merge pull request #4920 from nextcloud/theming_server_input
b01f71972 fix #4955
01e532929 fix #4752
d8722b52d [tx-robot] updated from transifex
ed52ad56a daily dev 20191206
2019-12-07 03:40:51 +01:00
Siddharth Srinivasan aabc97de82 Renamed refresh methods and updated ETag parameter accordingly
Signed-off-by: Siddharth Srinivasan <[email protected]>

Renamed refresh methods and updated ETag parameter accordingly with sign-off
2019-12-06 21:57:14 +05:30
Siddharth Srinivasan c608f0081c Merge remote-tracking branch 'upstream/master'
Keep in line with upstream
2019-12-06 20:36:26 +05:30
Kilian Périsset 88fe5069eb Fixed bug relative to activities icon + applied DRY 2019-12-06 15:10:41 +01:00
Kilian Périsset 9b94cc2b58 Fixed the indentation for ExpirationDatePicker 2019-12-06 12:46:50 +01:00
Kilian Périsset 65b82c2ee5 Allowed onbackpressed from properties (without redisplaying file) + Removed useless intent data 2019-12-06 12:07:53 +01:00
Kilian Périsset 25d9c46f82 Fixed bug relative to details from Image Preview 2019-12-06 11:52:47 +01:00
Andy Scherzinger f9bd91b4b3 Merge pull request #4956 from nextcloud/fixScreenshot
fix #4955
2019-12-06 10:21:22 +01:00
Tobias Kaminsky d95351b040 Merge pull request #4953 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.2.2
Bump detekt-gradle-plugin from 1.2.1 to 1.2.2
2019-12-06 10:07:29 +01:00
Tobias Kaminsky 3ed9ce2e2b Merge pull request #4920 from nextcloud/theming_server_input
Fix theming: server url input
2019-12-06 10:04:23 +01:00
tobiasKaminsky b01f71972f fix #4955
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-06 08:25:50 +01:00
tobiasKaminsky 01e532929d fix #4752
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-06 08:06:42 +01:00
Nextcloud bot d8722b52de [tx-robot] updated from transifex 2019-12-06 03:15:42 +00:00
Tobias Kaminsky ed52ad56aa daily dev 20191206
645f194c8 Merge pull request #4950 from nextcloud/changelog-master-stable-3.9.2
d006ac257 Merge pull request #4923 from nextcloud/theming_sharing_box
1f861dfb5 Add changelog for 3.9.2
eb74b5230 Merge pull request #4947 from nextcloud/fixTime
1584de976 use SystemClock.elapsedRealtime() everywhere
664727b2a Merge pull request #4945 from nextcloud/dependabot/gradle/com.pinterest-ktlint-0.36.0
ead35eb3a [tx-robot] updated from transifex
17914038c daily dev 20191205
2019-12-06 03:36:59 +01:00
dependabot-preview[bot] b3e0d7721e Bump gradle from 3.5.2 to 3.5.3
Bumps gradle from 3.5.2 to 3.5.3.

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-06 02:14:58 +00:00
dependabot-preview[bot] 4a46d01c4b Bump detekt-gradle-plugin from 1.2.1 to 1.2.2
Bumps detekt-gradle-plugin from 1.2.1 to 1.2.2.

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-06 02:14:12 +00:00
Andy Scherzinger 21baad4fdc fix #4752 for landscape
Signed-off-by: Andy Scherzinger <[email protected]>
2019-12-05 18:30:15 +01:00
tobiasKaminsky 04d59133ca fix #4752
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-05 18:30:14 +01:00
Andy Scherzinger 645f194c88 Merge pull request #4950 from nextcloud/changelog-master-stable-3.9.2
Add changelog for 3.9.2
2019-12-05 18:17:31 +01:00
Kilian Périsset acd5d48d96 Applied the expiration date in each instance of DatePicker 2019-12-05 11:52:33 +01:00
tobiasKaminsky 866d163a73 Add fastlane scripts
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-05 11:38:16 +01:00
Andy Scherzinger d006ac257e Merge pull request #4923 from nextcloud/theming_sharing_box
fix wrong text color on edit text input on dark mode
2019-12-05 11:20:44 +01:00
tobiasKaminsky 1f861dfb58 Add changelog for 3.9.2
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-05 11:18:53 +01:00
Tobias Kaminsky eb74b5230f Merge pull request #4947 from nextcloud/fixTime
use SystemClock.elapsedRealtime() everywhere
2019-12-05 11:08:15 +01:00
tobiasKaminsky 1584de9769 use SystemClock.elapsedRealtime() everywhere
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-05 11:05:47 +01:00
Tobias Kaminsky 664727b2a6 Merge pull request #4945 from nextcloud/dependabot/gradle/com.pinterest-ktlint-0.36.0
Bump ktlint from 0.35.0 to 0.36.0
2019-12-05 08:39:58 +01:00
Nextcloud bot ead35eb3a1 [tx-robot] updated from transifex 2019-12-05 03:13:49 +00:00
Tobias Kaminsky 17914038ca daily dev 20191205
adbc1f27a Merge pull request #4940 from nextcloud/changelog-master-stable-3.9.1
e0ec1c163 Add changelog for 3.9.1
9dcb91526 [tx-robot] updated from transifex
92510cb16 Merge pull request #4938 from nextcloud/disableMissingDefaultResource
a89481461 disable MissingDefaultResource
dda56defb Merge pull request #4933 from nextcloud/appLocking
cb0067717 Merge pull request #4926 from nextcloud/deleteChecksFor16
fd48163e2 Merge pull request #4922 from nextcloud/themeFollowOS
5e687f2c1 Dark mode: light, dark, follow system
fb69c1bd5 remove all checks for <= JELLY_BEAN as we have this as our new minimum.
683faab11 [tx-robot] updated from transifex
c3eec4777 daily dev 20191204
2019-12-05 03:36:55 +01:00
dependabot-preview[bot] 86c5179c8e Bump ktlint from 0.35.0 to 0.36.0
Bumps [ktlint](https://github.com/pinterest/ktlint) from 0.35.0 to 0.36.0.
- [Release notes](https://github.com/pinterest/ktlint/releases)
- [Changelog](https://github.com/pinterest/ktlint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pinterest/ktlint/compare/0.35.0...0.36.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-05 02:14:52 +00:00
Andy Scherzinger adbc1f27aa Merge pull request #4940 from nextcloud/changelog-master-stable-3.9.1
Add changelog for 3.9.1
2019-12-04 20:25:17 +01:00
tobiasKaminsky e0ec1c1637 Add changelog for 3.9.1
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-04 11:26:19 +01:00
Nextcloud bot 9dcb915266 [tx-robot] updated from transifex 2019-12-04 10:24:52 +00:00
Tobias Kaminsky 92510cb168 Merge pull request #4938 from nextcloud/disableMissingDefaultResource
disable MissingDefaultResource
2019-12-04 10:58:33 +01:00
tobiasKaminsky a894814611 disable MissingDefaultResource
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-04 10:57:47 +01:00
Tobias Kaminsky dda56defb4 Merge pull request #4933 from nextcloud/appLocking
Use SystemClock.elapsedRealtime() instead of System.currentTimeMillis()
2019-12-04 08:21:04 +01:00
Andy Scherzinger cb00677172 Merge pull request #4926 from nextcloud/deleteChecksFor16
remove all checks for <= JELLY_BEAN as we have this as our new minimum.
2019-12-04 06:59:17 +01:00
Tobias Kaminsky fd48163e22 Merge pull request #4922 from nextcloud/themeFollowOS
Dark mode: light, dark, follow system
2019-12-04 06:47:36 +01:00
tobiasKaminsky 5e687f2c17 Dark mode: light, dark, follow system
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-04 06:33:34 +01:00
tobiasKaminsky fb69c1bd51 remove all checks for <= JELLY_BEAN as we have this as our new minimum.
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-04 06:15:30 +01:00
Nextcloud bot 683faab116 [tx-robot] updated from transifex 2019-12-04 03:13:38 +00:00
Tobias Kaminsky c3eec47779 daily dev 20191204
7cf3ba93c Merge pull request #4925 from nextcloud/NotNull
cd86ff16c Merge pull request #4924 from nextcloud/theming_auto_upload
2f9c5e976 replace org.jetbrains.annotations with androidx.annotations
83903ea1d fix wrong sync status in auto upload on white theming
2dbf724b3 [tx-robot] updated from transifex
2d68e2e1c daily dev 20191203
2019-12-04 03:37:14 +01:00
Tobias Kaminsky 7cf3ba93c6 Merge pull request #4925 from nextcloud/NotNull
replace org.jetbrains.annotations with androidx.annotations
2019-12-03 15:49:40 +01:00
Kilian Périsset ba58d37aff Changed indentation of Picker new instance 2019-12-03 14:15:37 +01:00
Andy Scherzinger cd86ff16c2 Merge pull request #4924 from nextcloud/theming_auto_upload
fix wrong sync status in auto upload on white theming
2019-12-03 13:54:02 +01:00
tobiasKaminsky 2f9c5e9761 replace org.jetbrains.annotations with androidx.annotations
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-03 13:31:02 +01:00
tobiasKaminsky 3cf0e6e5e4 replaced distinct by manually unique via HashMap
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-03 09:48:23 +01:00
tobiasKaminsky 92d872ceec bump to latest SDK
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-03 09:48:23 +01:00
tobiasKaminsky 83903ea1db fix wrong sync status in auto upload on white theming
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-03 08:55:17 +01:00
tobiasKaminsky e0bd44cf83 fix wrong text color on search input on dark mode
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-03 08:36:20 +01:00
Nextcloud bot 2dbf724b33 [tx-robot] updated from transifex 2019-12-03 03:14:10 +00:00
Tobias Kaminsky 2d68e2e1c5 daily dev 20191203
d27075239 Merge pull request #4865 from Infomaniak/feature/fix-restore-btn-size
34db13482 Merge pull request #4910 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.2.1
eac9c9df6 Merge pull request #4911 from nextcloud/dependabot/gradle/org.mockito-mockito-core-3.2.0
dc0181bac [tx-robot] updated from transifex
82e226f86 Bump mockito-core from 3.1.0 to 3.2.0
85e13f291 Bump detekt-gradle-plugin from 1.2.0 to 1.2.1
30f96aa98 daily dev 20191129
2019-12-03 03:38:47 +01:00
Kilian Périsset 0b86d6a1d9 Resolved issue relative to calendar refresh in link-sharing 2019-12-02 18:40:58 +01:00
Tobias Kaminsky d270752390 Merge pull request #4865 from Infomaniak/feature/fix-restore-btn-size
Added new restore icon (to replace the small one)
2019-12-02 12:30:09 +01:00
dependabot-preview[bot] 34db134829 Merge pull request #4910 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.2.1 2019-12-02 11:16:19 +00:00
Tobias Kaminsky eac9c9df67 Merge pull request #4911 from nextcloud/dependabot/gradle/org.mockito-mockito-core-3.2.0
Bump mockito-core from 3.1.0 to 3.2.0
2019-12-02 12:16:04 +01:00
Nextcloud bot dc0181bac9 [tx-robot] updated from transifex 2019-12-02 07:19:08 +00:00
tobiasKaminsky c612e2f547 Use SystemClock.elapsedRealtime() instead of System.currentTimeMillis()
Signed-off-by: tobiasKaminsky <[email protected]>
2019-12-02 07:52:17 +01:00
dependabot-preview[bot] 82e226f867 Bump mockito-core from 3.1.0 to 3.2.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.1.0...v3.2.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-02 02:14:04 +00:00
dependabot-preview[bot] 85e13f2910 Bump detekt-gradle-plugin from 1.2.0 to 1.2.1
Bumps detekt-gradle-plugin from 1.2.0 to 1.2.1.

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-12-02 02:13:38 +00:00
Tobias Kaminsky 30f96aa984 daily dev 20191129
2c57e3709 Merge pull request #4784 from nextcloud/hideAutoUploadEntries
5257fb236 [tx-robot] updated from transifex
aa431815a Merge pull request #4882 from nextcloud/dependabot/gradle/com.google.android-flexbox-2.0.0
1f4e85768 Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
d17c85349 re-add button/action and improve upon code review
74bfe473c remove action button, use checkable menu item for shown/hidden state display
3e872df68 add more spotbug exclusions (for 3rd party libs)
4e0b40517 Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
7c62ad6b0 unify use of boolean, make use of lombok getter/setters, remove unneeded boolean boxing
bedc2b48e housekeeping, removing unused resources
ca6918f9f show/hide improvements when list is completed hidden + nicer empty UI + action button
23e44243d show/hide auto upload list items
540c649ef Merge pull request #4894 from nextcloud/dependabot/gradle/kotlin_version-1.3.61
f34ba2cdc Bump kotlin_version from 1.3.60 to 1.3.61
48038d564 Merge pull request #4883 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.2.0
83e0ebc46 [tx-robot] updated from transifex
21c0de3cd daily dev 20191127
2019-11-29 03:39:58 +01:00
Siddharth Srinivasan 041a6787b8 Explicitly refreshing list on resume and on file move operation
Signed-off-by: Siddharth Srinivasan <[email protected]>

Explicitly refreshing list on resume and on file move operation
2019-11-28 22:59:37 +05:30
Kilian Périsset dd574f99a0 Replaced restore icon by Material Replay 2019-11-28 17:20:05 +01:00
Tobias Kaminsky 2c57e37097 Merge pull request #4784 from nextcloud/hideAutoUploadEntries
Show/Hide auto upload list items
2019-11-28 08:19:15 +01:00
Nextcloud bot 5257fb236c [tx-robot] updated from transifex 2019-11-28 03:14:35 +00:00
Andy Scherzinger aa431815aa Merge pull request #4882 from nextcloud/dependabot/gradle/com.google.android-flexbox-2.0.0
Bump flexbox from 1.1.1 to 2.0.0
2019-11-27 23:36:39 +01:00
nextcloud-android-bot 1f4e857681 Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2019-11-27 20:55:41 +00:00
Andy Scherzinger d17c853493 re-add button/action and improve upon code review
Signed-off-by: Andy Scherzinger <[email protected]>
2019-11-27 21:43:53 +01:00
Andy Scherzinger 74bfe473c4 remove action button, use checkable menu item for shown/hidden state display
(design review)

Signed-off-by: Andy Scherzinger <[email protected]>
2019-11-27 21:35:31 +01:00
Andy Scherzinger 3e872df68c add more spotbug exclusions (for 3rd party libs)
Signed-off-by: Andy Scherzinger <[email protected]>
2019-11-27 21:35:19 +01:00
nextcloud-android-bot 4e0b40517c Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2019-11-27 21:35:18 +01:00
Andy Scherzinger 7c62ad6b06 unify use of boolean, make use of lombok getter/setters, remove unneeded boolean boxing
Signed-off-by: Andy Scherzinger <[email protected]>
2019-11-27 21:35:05 +01:00
Andy Scherzinger bedc2b48ee housekeeping, removing unused resources
Signed-off-by: Andy Scherzinger <[email protected]>
2019-11-27 21:35:05 +01:00
Andy Scherzinger ca6918f9fc show/hide improvements when list is completed hidden + nicer empty UI + action button
Signed-off-by: Andy Scherzinger <[email protected]>
2019-11-27 21:35:03 +01:00
Andy Scherzinger 23e44243da show/hide auto upload list items
Signed-off-by: Andy Scherzinger <[email protected]>
2019-11-27 21:34:40 +01:00
Andy Scherzinger 540c649efe Merge pull request #4894 from nextcloud/dependabot/gradle/kotlin_version-1.3.61
Bump kotlin_version from 1.3.60 to 1.3.61
2019-11-27 20:16:12 +01:00
dependabot-preview[bot] f34ba2cdca Bump kotlin_version from 1.3.60 to 1.3.61
Bumps `kotlin_version` from 1.3.60 to 1.3.61.

Updates `kotlin-gradle-plugin` from 1.3.60 to 1.3.61

Updates `kotlin-stdlib-jdk7` from 1.3.60 to 1.3.61
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.3.61/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.3.60...v1.3.61)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-11-27 13:03:07 +00:00
Tobias Kaminsky 48038d564e Merge pull request #4883 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.2.0
Bump detekt-gradle-plugin from 1.1.1 to 1.2.0
2019-11-27 14:01:50 +01:00
Nextcloud bot 83e0ebc463 [tx-robot] updated from transifex 2019-11-27 03:10:14 +00:00
Tobias Kaminsky 21c0de3cdd daily dev 20191127
e92daa2fc Merge pull request #4853 from nextcloud/migrate-simple-cases-of-get-current-account-to-get-user
99d9a6923 Merge pull request #4885 from nextcloud/disable_android_backup_qa
10960bf3a [tx-robot] updated from transifex
9f24b254f [tx-robot] updated from transifex
b7876c425 disable GoogleAppIndexingWarning lint check
11687c65c Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
80fb800ef Merge commit 'a7eb7148fa0ceb42981366eb2ddcf0ff921e6a55'
b91136c36 Disable android backup on the QA app
a7eb7148f Migrate simple cases of getCurrentAccount() to getUser()
6249a06a8 daily dev 20191123
2019-11-27 03:37:10 +01:00
Tobias Kaminsky e92daa2fc4 Merge pull request #4853 from nextcloud/migrate-simple-cases-of-get-current-account-to-get-user
Migrate simple cases of get current account to get user
2019-11-26 14:04:32 +01:00
Andy Scherzinger 99d9a6923e Merge pull request #4885 from nextcloud/disable_android_backup_qa
Disable android backup on the QA app
2019-11-26 08:47:53 +01:00
Nextcloud bot 10960bf3a2 [tx-robot] updated from transifex 2019-11-26 03:10:16 +00:00
Nextcloud bot 9f24b254f9 [tx-robot] updated from transifex 2019-11-25 14:33:17 +00:00
tobiasKaminsky b7876c4252 disable GoogleAppIndexingWarning lint check
Signed-off-by: tobiasKaminsky <[email protected]>
2019-11-25 15:26:08 +01:00
nextcloud-android-bot 11687c65cb Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2019-11-25 12:22:26 +00:00
drone 80fb800ef1 Merge commit 'a7eb7148fa0ceb42981366eb2ddcf0ff921e6a55' 2019-11-25 12:08:09 +00:00
Alice Gaudon b91136c362 Disable android backup on the QA app
Signed-off-by: Alice Gaudon <[email protected]>
2019-11-25 10:22:12 +01:00
Chris Narkiewicz a7eb7148fa Migrate simple cases of getCurrentAccount() to getUser()
Migrate trivially convertible uses of getCurrentAccount()
to new user model - getUser().

Signed-off-by: Chris Narkiewicz <[email protected]>
2019-11-25 08:53:50 +00:00
dependabot-preview[bot] 4f26261bf8 Bump detekt-gradle-plugin from 1.1.1 to 1.2.0
Bumps detekt-gradle-plugin from 1.1.1 to 1.2.0.

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-11-25 02:15:52 +00:00
dependabot-preview[bot] 0691786fb8 Bump flexbox from 1.1.1 to 2.0.0
Bumps [flexbox](https://github.com/google/flexbox-layout) from 1.1.1 to 2.0.0.
- [Release notes](https://github.com/google/flexbox-layout/releases)
- [Commits](https://github.com/google/flexbox-layout/compare/1.1.1...2.0.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-11-25 02:15:12 +00:00
Tobias Kaminsky 6249a06a8d daily dev 20191123
c8eba1d5a Merge pull request #4835 from nextcloud/ezaquarii/new-user-model
609b99666 New user model
44220d73f Merge pull request #4867 from nextcloud/dependabot/gradle/androidx.exifinterface-exifinterface-1.1.0
6e5d7a89c daily dev 20191121
2019-11-23 03:36:58 +01:00
Tobias Kaminsky c8eba1d5ad Merge pull request #4835 from nextcloud/ezaquarii/new-user-model
New user model
2019-11-22 07:57:04 +01:00
Chris Narkiewicz 609b99666f New user model
New non-nullable user model abstracts away all complexities of Nextcloud
user account and provides.

- backported java.util.Optional
- extended UserAccountManager with User getters
- deprecated CurrentAccountProvider.getCurrentAccount() method
- migrated connectivity service to new user model
- migrated UploadsStorageManager to new user model
- migrated OCFileListAdapter

Signed-off-by: Chris Narkiewicz <[email protected]>
2019-11-21 19:58:57 +00:00
Tobias Kaminsky 44220d73fe Merge pull request #4867 from nextcloud/dependabot/gradle/androidx.exifinterface-exifinterface-1.1.0
Bump exifinterface from 1.0.0 to 1.1.0
2019-11-21 10:05:00 +01:00
Tobias Kaminsky 6e5d7a89c1 daily dev 20191121
b9ff6cecf Merge pull request #4843 from Unpublished/fix4842
0977c9d2e daily dev 20191120
2019-11-21 03:37:08 +01:00
dependabot-preview[bot] 16c220e7af Bump exifinterface from 1.0.0 to 1.1.0
Bumps exifinterface from 1.0.0 to 1.1.0.

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-11-21 02:16:42 +00:00
Tobias Kaminsky b9ff6cecfc Merge pull request #4843 from Unpublished/fix4842
Use png instead of vector drawable for bitmap
2019-11-20 16:09:22 +01:00
Kilian Périsset ddb015bda8 Added new restore icon 2019-11-20 16:05:42 +01:00
Tobias Kaminsky 0977c9d2e1 daily dev 20191120
21ef00654 Merge pull request #4858 from nextcloud/changeScreenshot
0223085a8 shorten text a bit
8879179cf Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
94502f66b Merge pull request #4787 from ArisuOngaku/auto-upload-start-date-persistence
21109375c Merge pull request #4839 from nextcloud/dependabot/gradle/markwonVersion-4.2.0
f1a0ac5c2 [tx-robot] updated from transifex
a00677cd6 daily dev 20191119
2019-11-20 03:37:09 +01:00
Unpublished 26c5c5e015 Use png for checker image to use it via bitmap
Signed-off-by: Unpublished <[email protected]>
2019-11-19 20:10:19 +01:00
Andy Scherzinger 21ef006544 Merge pull request #4858 from nextcloud/changeScreenshot
Screenshots: shorten text a bit
2019-11-19 17:45:37 +01:00
tobiasKaminsky 0223085a8d shorten text a bit
Signed-off-by: tobiasKaminsky <[email protected]>
2019-11-19 14:35:31 +01:00
nextcloud-android-bot 8879179cff Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2019-11-19 12:28:44 +00:00
Tobias Kaminsky 94502f66b5 Merge pull request #4787 from ArisuOngaku/auto-upload-start-date-persistence
Make synced folder init/enable date persistent
2019-11-19 13:21:43 +01:00
Tobias Kaminsky 21109375c3 Merge pull request #4839 from nextcloud/dependabot/gradle/markwonVersion-4.2.0
Bump markwonVersion from 4.1.2 to 4.2.0
2019-11-19 07:44:51 +01:00
Nextcloud bot f1a0ac5c26 [tx-robot] updated from transifex 2019-11-19 03:10:54 +00:00
Tobias Kaminsky a00677cd63 daily dev 20191119
dbe12e6d2 Merge pull request #4789 from nextcloud/name_pattern_menus
77b6b178a Merge pull request #4841 from nextcloud/disableOldLoginMethod
b561f6883 allow to switch off old login method
b59d96ace [tx-robot] updated from transifex
9ae550731 [tx-robot] updated from transifex
bfdaba8bd [tx-robot] updated from transifex
c82c08059 daily dev 20191116
2019-11-19 03:37:08 +01:00
Tobias Kaminsky dbe12e6d20 Merge pull request #4789 from nextcloud/name_pattern_menus
Improve menu file name pattern
2019-11-18 15:26:35 +01:00
Tobias Kaminsky 77b6b178a9 Merge pull request #4841 from nextcloud/disableOldLoginMethod
allow to switch off old login method
2019-11-18 13:51:38 +01:00
tobiasKaminsky b561f68834 allow to switch off old login method
Signed-off-by: tobiasKaminsky <[email protected]>
2019-11-18 10:13:09 +01:00
Nextcloud bot b59d96ace0 [tx-robot] updated from transifex 2019-11-18 03:09:26 +00:00
dependabot-preview[bot] b6d682683c Bump markwonVersion from 4.1.2 to 4.2.0
Bumps `markwonVersion` from 4.1.2 to 4.2.0.

Updates `core` from 4.1.2 to 4.2.0
- [Release notes](https://github.com/noties/Markwon/releases)
- [Changelog](https://github.com/noties/Markwon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/noties/Markwon/compare/v4.1.2...v4.2.0)

Updates `ext-strikethrough` from 4.1.2 to 4.2.0
- [Release notes](https://github.com/noties/Markwon/releases)
- [Changelog](https://github.com/noties/Markwon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/noties/Markwon/compare/v4.1.2...v4.2.0)

Updates `ext-tables` from 4.1.2 to 4.2.0
- [Release notes](https://github.com/noties/Markwon/releases)
- [Changelog](https://github.com/noties/Markwon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/noties/Markwon/compare/v4.1.2...v4.2.0)

Updates `ext-tasklist` from 4.1.2 to 4.2.0
- [Release notes](https://github.com/noties/Markwon/releases)
- [Changelog](https://github.com/noties/Markwon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/noties/Markwon/compare/v4.1.2...v4.2.0)

Updates `html` from 4.1.2 to 4.2.0
- [Release notes](https://github.com/noties/Markwon/releases)
- [Changelog](https://github.com/noties/Markwon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/noties/Markwon/compare/v4.1.2...v4.2.0)

Updates `syntax-highlight` from 4.1.2 to 4.2.0
- [Release notes](https://github.com/noties/Markwon/releases)
- [Changelog](https://github.com/noties/Markwon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/noties/Markwon/compare/v4.1.2...v4.2.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-11-18 02:15:46 +00:00
Nextcloud bot 9ae550731e [tx-robot] updated from transifex 2019-11-17 03:12:24 +00:00
Nextcloud bot bfdaba8bde [tx-robot] updated from transifex 2019-11-16 03:09:26 +00:00
Tobias Kaminsky c82c08059a daily dev 20191116
5273e1e7f Merge pull request #4832 from nextcloud/dependabot/gradle/kotlin_version-1.3.60
bd503a86c [tx-robot] updated from transifex
20c9ce361 Bump kotlin_version from 1.3.50 to 1.3.60
3943e1c75 [tx-robot] updated from transifex
75de7b88d daily dev 20191114
2019-11-16 03:40:11 +01:00
Alice Gaudon 65da616f81 FilesSyncHelper: use our own logging framework
Signed-off-by: Alice Gaudon <[email protected]>
2019-11-15 07:56:17 +01:00
Andy Scherzinger 5273e1e7fc Merge pull request #4832 from nextcloud/dependabot/gradle/kotlin_version-1.3.60
Bump kotlin_version from 1.3.50 to 1.3.60
2019-11-15 07:36:39 +01:00
Nextcloud bot bd503a86c7 [tx-robot] updated from transifex 2019-11-15 03:10:28 +00:00
dependabot-preview[bot] 20c9ce361a Bump kotlin_version from 1.3.50 to 1.3.60
Bumps `kotlin_version` from 1.3.50 to 1.3.60.

Updates `kotlin-gradle-plugin` from 1.3.50 to 1.3.60
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

Updates `kotlin-stdlib-jdk7` from 1.3.50 to 1.3.60
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-11-15 02:18:56 +00:00
Nextcloud bot 3943e1c753 [tx-robot] updated from transifex 2019-11-14 03:10:34 +00:00
Tobias Kaminsky 75de7b88d4 daily dev 20191114
ed8b9cbb7 Merge pull request #4713 from nextcloud/ezaquarii/remove-set-account-from-first-run-activity
f38900d98 [tx-robot] updated from transifex
e43ef8e06 daily dev 20191113
2019-11-14 03:36:56 +01:00
Andy Scherzinger 693f408276 Improve menu file name pattern
Signed-off-by: Andy Scherzinger <[email protected]>
2019-11-13 11:47:23 +01:00
Tobias Kaminsky ed8b9cbb72 Merge pull request #4713 from nextcloud/ezaquarii/remove-set-account-from-first-run-activity
Remove out of band setAccount/onAccountSet calls
2019-11-13 10:02:29 +01:00
Nextcloud bot f38900d989 [tx-robot] updated from transifex 2019-11-13 03:10:02 +00:00
Tobias Kaminsky e43ef8e062 daily dev 20191113
f245b72de Merge pull request #4823 from nextcloud/changelog-master-stable-3.9.0
d30b574ff Add changelog for 3.9.0
df6d847f2 [tx-robot] updated from transifex
4343c3d67 Merge pull request #4814 from nextcloud/dependabot/gradle/org.jetbrains-annotations-18.0.0
86027dd09 Bump annotations from 17.0.0 to 18.0.0
4690042b0 [tx-robot] updated from transifex
ff646aa3d daily dev 20191108
2019-11-13 03:37:07 +01:00
Andy Scherzinger f245b72ded Merge pull request #4823 from nextcloud/changelog-master-stable-3.9.0
Add changelog for 3.9.0
2019-11-12 12:37:16 +01:00
tobiasKaminsky d30b574ff6 Add changelog for 3.9.0
Signed-off-by: tobiasKaminsky <[email protected]>
2019-11-12 10:53:05 +01:00
Chris Narkiewicz fb615ef279 Remove out-of-band setAccount/onAccountSet calls
Activity account is set in FilesActivity.onAccount(),
but related components are updated in BaseActivity.onStart().

1. Initialize account in BaseActivity.onCreate()
2. Update storage manager and capabilities immediately
   on account set, not waiting for onStart() lifecycle.
3. inline storage manager and capabilities update in setAccount()
4. Remove setAccount()/onAccountSet() calls that sets default
   account, as this duplicates BaseActivity.onCreate()

Signed-off-by: Chris Narkiewicz <[email protected]>
2019-11-12 06:21:05 +00:00
Nextcloud bot df6d847f29 [tx-robot] updated from transifex 2019-11-12 03:11:59 +00:00
Tobias Kaminsky 4343c3d67f Merge pull request #4814 from nextcloud/dependabot/gradle/org.jetbrains-annotations-18.0.0
Bump annotations from 17.0.0 to 18.0.0
2019-11-11 10:14:50 +01:00
dependabot-preview[bot] 86027dd091 Bump annotations from 17.0.0 to 18.0.0
Bumps [annotations](https://github.com/JetBrains/java-annotations) from 17.0.0 to 18.0.0.
- [Release notes](https://github.com/JetBrains/java-annotations/releases)
- [Commits](https://github.com/JetBrains/java-annotations/compare/17.0.0...18.0.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-11-11 02:14:20 +00:00
Nextcloud bot 4690042b06 [tx-robot] updated from transifex 2019-11-10 03:14:29 +00:00
Tobias Kaminsky ff646aa3d0 daily dev 20191108
403fc8756 [tx-robot] updated from transifex
142c79bc0 daily dev 20191107
2019-11-08 03:38:19 +01:00
Nextcloud bot 403fc87562 [tx-robot] updated from transifex 2019-11-07 03:08:34 +00:00
Tobias Kaminsky 142c79bc03 daily dev 20191107
890789f0a Merge pull request #4797 from nextcloud/ezaquarii/replace-shared-preferences-with-app-preferences-in-base-activity
180bdee72 Merge pull request #4801 from Infomaniak/feature/resolve-set-as-wallpaper-issue
039adc0a1 [tx-robot] updated from transifex
b59938d96 daily dev 20191106
2019-11-07 03:36:57 +01:00
Tobias Kaminsky 890789f0a7 Merge pull request #4797 from nextcloud/ezaquarii/replace-shared-preferences-with-app-preferences-in-base-activity
Replace BaseActivity.sharedPreferences with app preferences
2019-11-06 13:52:54 +01:00
Tobias Kaminsky 180bdee721 Merge pull request #4801 from Infomaniak/feature/resolve-set-as-wallpaper-issue
Fixing picture "set as wallpaper" issue in properties (duplicate)
2019-11-06 13:48:23 +01:00
Nextcloud bot 039adc0a18 [tx-robot] updated from transifex 2019-11-06 03:10:30 +00:00
Tobias Kaminsky b59938d960 daily dev 20191106
9e15f5ea3 Merge pull request #4799 from nextcloud/dependabot/gradle/com.android.tools.build-gradle-3.5.2
d208681fe Merge pull request #4796 from nextcloud/datepicker
7a8aee3e2 [tx-robot] updated from transifex
a3ae32129 Bump gradle from 3.5.1 to 3.5.2
b0563b931 Theming: Fix date picker button text colour
207f8947c [tx-robot] updated from transifex
1ec09848b [tx-robot] updated from transifex
513151491 [tx-robot] updated from transifex
38a83bb36 daily dev 20191102
2019-11-06 03:39:59 +01:00
Alice Gaudon 2e13212752 SyncedFolderProvider: pass Clock dependency via constructor instead of dagger
Signed-off-by: Alice Gaudon <[email protected]>
2019-11-06 01:59:06 +01:00
Alice Gaudon c2ea4de802 FileContentProvider: add dagger injection
Signed-off-by: Alice Gaudon <[email protected]>
2019-11-06 01:50:32 +01:00
Alice Gaudon 7f4db3fdd0 Make synced folder init/enable date persistent
Signed-off-by: Alice Gaudon <[email protected]>
2019-11-05 21:23:45 +01:00
Andy Scherzinger 9e15f5ea39 Merge pull request #4799 from nextcloud/dependabot/gradle/com.android.tools.build-gradle-3.5.2
Bump gradle from 3.5.1 to 3.5.2
2019-11-05 20:35:08 +01:00
Tobias Kaminsky d208681fed Merge pull request #4796 from nextcloud/datepicker
Theming: Fix date picker button text colour
2019-11-05 20:10:13 +01:00
Kilian Périsset 25aaf4b907 Applied ability to set as wallpaper from properties of a picture
Signed-off-by: Kilian Périsset <[email protected]>
2019-11-05 14:20:35 +01:00
Chris Narkiewicz 6b01382e7f Replace BaseActivity.sharedPreferences with app preferences
- Eliminate access to shared preferences when setting dark theme.
- Extend AppPreferences interface to allow subscription for preference changes
- Improve preferences interface documentation

Fixes #4791

Signed-off-by: Chris Narkiewicz <[email protected]>
2019-11-05 06:00:58 +00:00
Nextcloud bot 7a8aee3e22 [tx-robot] updated from transifex 2019-11-05 03:07:49 +00:00
dependabot-preview[bot] a3ae32129d Bump gradle from 3.5.1 to 3.5.2
Bumps gradle from 3.5.1 to 3.5.2.

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-11-05 02:19:42 +00:00
Daniel Bailey b0563b9310 Theming: Fix date picker button text colour
Signed-off-by: Daniel Bailey <[email protected]>
2019-11-04 14:52:54 +00:00
Nextcloud bot 207f8947cf [tx-robot] updated from transifex 2019-11-04 03:10:40 +00:00
Nextcloud bot 1ec09848b6 [tx-robot] updated from transifex 2019-11-03 03:12:13 +00:00
Nextcloud bot 5131514917 [tx-robot] updated from transifex 2019-11-02 03:06:45 +00:00
Tobias Kaminsky 38a83bb361 daily dev 20191102
62fc6fa53 Merge pull request #4782 from nextcloud/internalLinkWording
71264e19b use file/folder in "copy internal link" description
bd3ce6098 Merge pull request #4777 from nextcloud/v16
327817c04 [tx-robot] updated from transifex
a39022fbb daily dev 20191101
2019-11-02 03:38:27 +01:00
Tobias Kaminsky 62fc6fa53d Merge pull request #4782 from nextcloud/internalLinkWording
use file/folder in "copy internal link" description
2019-11-01 15:17:11 +01:00
tobiasKaminsky 71264e19b8 use file/folder in "copy internal link" description
Signed-off-by: tobiasKaminsky <[email protected]>
2019-11-01 12:32:07 +01:00
Tobias Kaminsky bd3ce60985 Merge pull request #4777 from nextcloud/v16
Make Android v16/JellyBean the new min-supported Android version
2019-11-01 09:11:36 +01:00
Nextcloud bot 327817c047 [tx-robot] updated from transifex 2019-11-01 02:59:14 +00:00
Tobias Kaminsky a39022fbbe daily dev 20191101
e3280b0bb Merge pull request #4775 from nextcloud/dependabot/gradle/com.h3xstream.findsecbugs-findsecbugs-plugin-1.10.1
575cd014d Bump findsecbugs-plugin from 1.10.0 to 1.10.1
946e5c2c1 Merge pull request #4768 from nextcloud/colorNames
78ed97ca0 [tx-robot] updated from transifex
f77b5bd4b daily dev 20191031
2019-11-01 03:38:35 +01:00
Andy Scherzinger d3d0df46f1 make Android v16/JellyBean the new min-supported Android version
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-31 23:36:06 +01:00
Andy Scherzinger e3280b0bb7 Merge pull request #4775 from nextcloud/dependabot/gradle/com.h3xstream.findsecbugs-findsecbugs-plugin-1.10.1
Bump findsecbugs-plugin from 1.10.0 to 1.10.1
2019-10-31 23:35:36 +01:00
dependabot-preview[bot] 575cd014d2 Bump findsecbugs-plugin from 1.10.0 to 1.10.1
Bumps [findsecbugs-plugin](https://github.com/find-sec-bugs/find-sec-bugs) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/find-sec-bugs/find-sec-bugs/releases)
- [Changelog](https://github.com/find-sec-bugs/find-sec-bugs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/find-sec-bugs/find-sec-bugs/compare/version-1.10.0...version-1.10.1)

Signed-off-by: dependabot-preview[bot] <[email protected]>
2019-10-31 22:06:14 +00:00
Andy Scherzinger 946e5c2c1e Merge pull request #4768 from nextcloud/colorNames
consistently use snake_case for color resources
2019-10-31 08:51:59 +01:00
Nextcloud bot 78ed97ca07 [tx-robot] updated from transifex 2019-10-31 03:00:33 +00:00
Tobias Kaminsky f77b5bd4b8 daily dev 20191031
c4e20a652 Merge pull request #4762 from nextcloud/color
af63eed65 overwrite in values-night/colors only values that differ move branding colors back to setup.xml
a9fcc7b03 daily dev 20191030
2019-10-31 03:36:52 +01:00
Andy Scherzinger fe353a7561 consistently use snake_case for color resources
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-30 16:13:29 +01:00
Tobias Kaminsky c4e20a652d Merge pull request #4762 from nextcloud/color
Dark theme: color enhancements
2019-10-30 11:08:30 +01:00
tobiasKaminsky af63eed654 overwrite in values-night/colors only values that differ
move branding colors back to setup.xml

Signed-off-by: tobiasKaminsky <[email protected]>
2019-10-30 09:32:58 +01:00
Tobias Kaminsky a9fcc7b03a daily dev 20191030
2a43da6bd Merge pull request #4746 from nextcloud/createChooser
f8d7ddd9d Merge pull request #4758 from nextcloud/fixDarkTheme
bee8770ce - fix typo in styles - fix sign up with provider in dark primary color
cc710b09c Merge pull request #3459 from nextcloud/dark_theme
c1aa005db changes due to code review
c801a2c7b Merge pull request #4744 from nextcloud/v3100_Alpha1
12fe91a6d use default open chooser with "just once", "always"
8b4481f7f [tx-robot] updated from transifex
2ea1f4e59 daily dev 20191029
2019-10-30 03:37:08 +01:00
Andy Scherzinger 2a43da6bdf Merge pull request #4746 from nextcloud/createChooser
use default open chooser with "just once", "always"
2019-10-29 16:23:00 +01:00
Andy Scherzinger f8d7ddd9de Merge pull request #4758 from nextcloud/fixDarkTheme
Fix dark theme #1
2019-10-29 14:01:49 +01:00
tobiasKaminsky bee8770ce0 - fix typo in styles
- fix sign up with provider in dark primary color

Signed-off-by: tobiasKaminsky <[email protected]>
2019-10-29 11:27:03 +01:00
Tobias Kaminsky cc710b09cb Merge pull request #3459 from nextcloud/dark_theme
Dark theme
2019-10-29 11:18:48 +01:00
Andy Scherzinger c1aa005db9 changes due to code review
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-29 11:05:44 +01:00
tobiasKaminsky 12fe91a6dd use default open chooser with "just once", "always"
Signed-off-by: tobiasKaminsky <[email protected]>
2019-10-29 07:28:51 +01:00
Andy Scherzinger 3de5e8fa52 remove possible overdraws
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 22:24:44 +01:00
Andy Scherzinger ae2dcbea33 align user info toolbar theming with main toolbar theming
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 18:11:36 +01:00
Andy Scherzinger 48e1384219 make circular checkIcon background day/night aware
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 17:48:25 +01:00
Andy Scherzinger 2021da0a8b proper contacts backup button theming
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 15:36:30 +01:00
Andy Scherzinger 48b43581cc proper button theming for notification actions
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 15:36:06 +01:00
Daniel Bailey 9a9e0e6c42 Merge branch 'dark_theme' of github.com:nextcloud/android into dark_theme
Signed-off-by: Daniel Bailey <[email protected]>
2019-10-28 13:32:14 +00:00
Daniel Bailey 853d7cd113 Dark theme updates
TextInputLayout in share password dialog is styled to match the app.
Receive files picker shows server primary colour on Upload button.

Signed-off-by: Daniel Bailey <[email protected]>
2019-10-28 13:03:19 +00:00
Daniel Bailey 4ce4027250 Update to Alert Dialogs in api 21 and upwards.
Signed-off-by: Daniel Bailey <[email protected]>
2019-10-28 12:59:34 +01:00
Andy Scherzinger b5d1de3601 bump material to 1.1.0-beta01
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:33 +01:00
Daniel Bailey 1615130093 Fix activity foreground text colour for >=API21.
Share expiration date picker now has buttons that are the primary
colour.

Theme change is now done in BaseActivity and ThemedPreferenceActivity.
This should help any activities in the back stack show the correct
theme.

Fixed style issues on firstrun and authenticator activities.

Signed-off-by: Daniel Bailey <[email protected]>
2019-10-28 12:59:32 +01:00
Andy Scherzinger a518885612 add dark/light theming for activities headline
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:32 +01:00
Andy Scherzinger f5a1a9a9cc bump to alpha10
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:31 +01:00
Andy Scherzinger 284bbf34e6 material design alpha09
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:30 +01:00
Andy Scherzinger 57db615a33 icons with light background need to be keep with dark color
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:29 +01:00
Andy Scherzinger cc2593cbdb proper icon display for night theme for activities and notifications
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:29 +01:00
Andy Scherzinger 44020dcc76 make progress bar day/night aware
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:28 +01:00
Andy Scherzinger 1e3f86cfe1 Bump material to alpha-08
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:27 +01:00
Andy Scherzinger 375fb97c06 use day/night color
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:27 +01:00
Andy Scherzinger cf839eac08 bump material lib to alpha07
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:26 +01:00
Andy Scherzinger 9a88ee24d3 remove unused radio button preference code
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:25 +01:00
Andy Scherzinger 110ce5e951 bump material lib to alpha06
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:24 +01:00
Andy Scherzinger 5554585348 make toolbar menu use the proper day/night popup theme
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:24 +01:00
Andy Scherzinger 1bdccebce8 use proper colors storage selector text
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:23 +01:00
Andy Scherzinger e14dc52fa7 use correct color after rebase
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:22 +01:00
Daniel Bailey 6bb9a70603 Various improvements to dark theme
Signed-off-by: Daniel Bailey <[email protected]>
2019-10-28 12:59:22 +01:00
Andy Scherzinger 6eb0744986 use proper color for storage location text
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:21 +01:00
Andy Scherzinger 8f8b67f57f don't tint avatars within the drawer menu
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:20 +01:00
Andy Scherzinger e32ec7a192 rebase fixing plus proper theming of legacy login fields
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:59:19 +01:00
Andy Scherzinger dc4cbb71e2 bump com.google.android.material:material to alpha5
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:58:52 +01:00
Daniel 689a0a216b "Activities" drawer selection background colour.
Signed-off-by: Daniel <[email protected]>
2019-10-28 12:58:51 +01:00
Andy Scherzinger b7e9d3f954 remove unused theme getter from interface
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:58:51 +01:00
Daniel Bailey 8d0ff8fecc Corrects "Choose" button colour in FolderPickerActivity. Removes un-used import from NotificationListAdapter.
MaterialButtons.
SearchView highlight text colour.
First run activity, outlined button colour.

Signed-off-by: Daniel Bailey <[email protected]>
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:58:50 +01:00
Andy Scherzinger c6218a0e5f bump material lib to alpha03
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:58:08 +01:00
Daniel Bailey c7049788f7 DatePickerDialog theme and style.
Button styling.
Small improvements to layouts and correction of spelling errors.
Sets edittext highlight colour to theme colour.

Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:58:07 +01:00
Andy Scherzinger 30a5ec6ee1 improve codacy score
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:58:07 +01:00
Andy Scherzinger 562338cad1 set background color for primary action buttons on upload and participate
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:58:06 +01:00
Andy Scherzinger 913d8276e1 use xml drawables for shared state icon including day/night state
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:58:05 +01:00
Andy Scherzinger 790e3fa2f8 findbugs: accesses list or array with constant index
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:58:04 +01:00
Andy Scherzinger 3d60c83ba2 use right colors for drawer menu item text and icons
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:58:04 +01:00
Andy Scherzinger 55a32df928 use style instead of theme attribute for secondary action buttons
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:58:03 +01:00
Daniel 27b8ed4327 Dark theme v1
Fixing migration to androidx
Dark theme styling
File details fragment tab text colour
File list overflow menu background colour

Signed-off-by: Daniel Bailey <[email protected]>
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-28 12:57:58 +01:00
Daniel Bailey bf0779a3ed Update to Alert Dialogs in api 21 and upwards.
Signed-off-by: Daniel Bailey <[email protected]>
2019-10-27 20:51:01 +00:00
Andy Scherzinger 25f58cd259 bump material to 1.1.0-beta01
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:54:13 +02:00
Daniel Bailey f5aa60bae9 Fix activity foreground text colour for >=API21.
Share expiration date picker now has buttons that are the primary
colour.

Theme change is now done in BaseActivity and ThemedPreferenceActivity.
This should help any activities in the back stack show the correct
theme.

Fixed style issues on firstrun and authenticator activities.

Signed-off-by: Daniel Bailey <[email protected]>
2019-10-07 16:43:36 +02:00
Andy Scherzinger 8aaf29a7c3 add dark/light theming for activities headline
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:35 +02:00
Andy Scherzinger 9eb6fe838e bump to alpha10
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:34 +02:00
Andy Scherzinger f6680a3375 material design alpha09
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:33 +02:00
Andy Scherzinger a2963d9fc3 icons with light background need to be keep with dark color
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:32 +02:00
Andy Scherzinger 2d0f4e83a6 proper icon display for night theme for activities and notifications
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:31 +02:00
Andy Scherzinger 01642564ed make progress bar day/night aware
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:30 +02:00
Andy Scherzinger ff9795d421 Bump material to alpha-08
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:28 +02:00
Andy Scherzinger 196e33998a use day/night color
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:27 +02:00
Andy Scherzinger 4a808ab15c bump material lib to alpha07
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:26 +02:00
Andy Scherzinger 916580cb19 remove unused radio button preference code
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:25 +02:00
Andy Scherzinger 21fb11d79b bump material lib to alpha06
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:24 +02:00
Andy Scherzinger e54db7c7c5 make toolbar menu use the proper day/night popup theme
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:23 +02:00
Andy Scherzinger 691ee27cc5 use proper colors storage selector text
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:21 +02:00
Andy Scherzinger dc0ca5cc84 use correct color after rebase
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:20 +02:00
Daniel Bailey c43633ebb9 Various improvements to dark theme
Signed-off-by: Daniel Bailey <[email protected]>
2019-10-07 16:43:19 +02:00
Andy Scherzinger 01cfd0ad33 use proper color for storage location text
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:18 +02:00
Andy Scherzinger eff6a5bed9 don't tint avatars within the drawer menu
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:16 +02:00
Andy Scherzinger f53f246f6e rebase fixing plus proper theming of legacy login fields
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:15 +02:00
Andy Scherzinger 5a4df84fc4 bump com.google.android.material:material to alpha5
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:13 +02:00
Daniel f459cd2c98 "Activities" drawer selection background colour.
Signed-off-by: Daniel <[email protected]>
2019-10-07 16:43:12 +02:00
Andy Scherzinger 55d5f2f41a remove unused theme getter from interface
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:11 +02:00
Daniel Bailey 66144bb8b6 Corrects "Choose" button colour in FolderPickerActivity. Removes un-used import from NotificationListAdapter.
MaterialButtons.
SearchView highlight text colour.
First run activity, outlined button colour.

Signed-off-by: Daniel Bailey <[email protected]>
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:09 +02:00
Andy Scherzinger d1f1e6cff7 bump material lib to alpha03
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:08 +02:00
Daniel Bailey 9f7fa6b6b6 DatePickerDialog theme and style.
Button styling.
Small improvements to layouts and correction of spelling errors.
Sets edittext highlight colour to theme colour.

Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:07 +02:00
Andy Scherzinger b0734f5768 improve codacy score
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:06 +02:00
Andy Scherzinger 34cef89ce8 set background color for primary action buttons on upload and participate
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:04 +02:00
Andy Scherzinger c4b5d8f2e9 use xml drawables for shared state icon including day/night state
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:03 +02:00
Andy Scherzinger 1930e5dc74 findbugs: accesses list or array with constant index
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:02 +02:00
Andy Scherzinger cab2b12594 use right colors for drawer menu item text and icons
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:01 +02:00
Andy Scherzinger df15340fc2 use style instead of theme attribute for secondary action buttons
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:43:00 +02:00
Daniel 44099c0792 Dark theme v1
Fixing migration to androidx
Dark theme styling
File details fragment tab text colour
File list overflow menu background colour

Signed-off-by: Daniel Bailey <[email protected]>
Signed-off-by: Andy Scherzinger <[email protected]>
2019-10-07 16:42:49 +02:00
474 changed files with 15015 additions and 10752 deletions

No files matched your search

+3 -2
View File
@@ -66,13 +66,14 @@ steps:
ORG_GRADLE_PROJECT_coverage: ''
commands:
- scripts/checkIfRunDrone.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST || exit 0
- emulator-headless -avd android-27 -no-snapshot -gpu swiftshader_indirect -no-window -no-audio &
- emulator-headless -avd android-27 -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
- ./gradlew assembleGplay
- ./gradlew assembleGplayDebug
- ./wait_for_emulator.sh
- scripts/wait_for_emulator.sh
- ./gradlew jacocoTestGplayDebugUnitTestReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
- ./gradlew installGplayDebugAndroidTest
- ./gradlew createGplayDebugCoverageReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
- ./gradlew executeScreenshotTests || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "Screenshot" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
- ./gradlew combinedTestReport
- curl -o codecov.sh https://codecov.io/bash
- bash ./codecov.sh -t fc506ba4-33c3-43e4-a760-aada38c24fd5
+5 -6
View File
@@ -5,17 +5,16 @@ labels: bug
---
### Actual behaviour
- Tell us what happens
### Expected behaviour
- Tell us what should happen
### Steps to reproduce
1.
2.
3.
### Expected behaviour
- Tell us what should happen
### Actual behaviour
- Tell us what happens
### Environment data
Android version:
+11
View File
@@ -36,3 +36,14 @@ build
fastlane/Fastfile
*.hprof
# fastlane specific
**/fastlane/report.xml
# deliver temporary files
**/fastlane/Preview.html
# snapshot generated screenshots
**/fastlane/screenshots
# scan temporary files
**/fastlane/test_output
+14
View File
@@ -27,6 +27,11 @@
<emptyLine />
</value>
</option>
<option name="RIGHT_MARGIN" value="120" />
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="true" />
<AndroidXmlCodeStyleSettings>
<option name="ARRANGEMENT_SETTINGS_MIGRATED_TO_191" value="true" />
</AndroidXmlCodeStyleSettings>
<JavaCodeStyleSettings>
<option name="IMPORT_LAYOUT_TABLE">
<value>
@@ -86,6 +91,7 @@
<match>
<AND>
<NAME>xmlns:android</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
@@ -96,6 +102,7 @@
<match>
<AND>
<NAME>xmlns:.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
@@ -107,6 +114,7 @@
<match>
<AND>
<NAME>.*:id</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
@@ -117,6 +125,7 @@
<match>
<AND>
<NAME>.*:name</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
@@ -127,6 +136,7 @@
<match>
<AND>
<NAME>name</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
@@ -137,6 +147,7 @@
<match>
<AND>
<NAME>style</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
@@ -147,6 +158,7 @@
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
@@ -158,6 +170,7 @@
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
@@ -169,6 +182,7 @@
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>.*</XML_NAMESPACE>
</AND>
</match>
+26
View File
@@ -1,3 +1,29 @@
3.9.2 (December, 05, 2019)
- HOTFIX: fix login loop
- Fix crash on opening png images
- Translation updates
3.9.1 (December, 04, 2019)
- Fix crash on opening png images
- Translation updates
For a full list, please see https://github.com/nextcloud/android/milestone/43
3.9.0 (November, 12, 2019)
- preview Markdown with syntax highlighting @AndyScherzinger
- improved DavX5 integration @bitfireAT
- AutoUpload: allow files to upload into subfolder
- new media player service @ezaquarii
- Remote wipe integration
- Print from within Collabora
- enhanced SingleSignOn
- outdated server warning set to NC14
For a full list, please see https://github.com/nextcloud/android/milestone/38
## 3.8.1 (October, 11, 2019)
- upload images into subfolder, if source folder also has subfolder
+20
View File
@@ -23,6 +23,8 @@
1. Backport pull request
1. Pull requests that also need changes on library
1. Adding new files
1. File naming
1. Menu files
1. Translations
1. Releases
1. Types
@@ -236,6 +238,24 @@ Source code of app:
-->
```
## File naming
The file naming patterns are inspired and based on [Ribot's Android Project And Code Guidelines](https://github.com/ribot/android-guidelines/blob/c1d8c9c904eb31bf01fe24aadb963b74281fe79a/project_and_code_guidelines.md).
### Menu files
Similar to layout files, menu files should match the name of the component. For example, if we are defining a menu file that is going to be used in the `UserProfileActivity`, then the name of the file should be `activity_user_profile.xml`. Same pattern applies for menus used in adapter view items, dialogs, etc.
| Component | Class Name | Menu Name |
| ---------------- | ---------------------- | ----------------------------- |
| Activity | `UserProfileActivity` | `activity_user_profile.xml` |
| Fragment | `SignUpFragment` | `fragment_sign_up.xml` |
| Dialog | `ChangePasswordDialog` | `dialog_change_password.xml` |
| AdapterView item | --- | `item_person.xml` |
| Partial layout | --- | `partial_stats_bar.xml` |
A good practice is to not include the word `menu` as part of the name because these files are already located in the `menu` directory. In case a component uses several menus in different places (via popup menus) then the resource name would be extended. For example, if the user profile activity has two popup menus for configuring the users settings and one for the handling group assignments then the file names for the menus would be: `activity_user_profile_user_settings.xml` and `activity_user_profile_group_assignments.xml`.
## Translations
We manage translations via [Transifex](https://www.transifex.com/nextcloud/nextcloud/android/). So just request joining the translation team for Android on the site and start translating. All translations will then be automatically pushed to this repository, there is no need for any pull request for translations.
+9 -9
View File
@@ -1,4 +1,4 @@
# [Nextcloud](https://nextcloud.com) Android app
# [Nextcloud](https://nextcloud.com) Android app :iphone:
[![Build Status](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/80401cb343854343b4d94acbfb72d3ec)](https://www.codacy.com/app/Nextcloud/android?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=nextcloud/android&amp;utm_campaign=Badge_Grade) [![Releases](https://img.shields.io/github/release/nextcloud/android.svg)](https://github.com/nextcloud/android/releases/latest) [![irc](https://img.shields.io/badge/IRC-%23nextcloud--mobile%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=nextcloud-mobile)
@@ -13,7 +13,7 @@
![App screenshots](/doc/Nextcloud_Android_Screenshots.png "App screenshots")
## How to contribute
## How to contribute :rocket:
If you want to [contribute](https://nextcloud.com/contribute/) to Nextcloud, you are very welcome:
- on our IRC channels [![irc](https://img.shields.io/badge/IRC-%23nextcloud%20on%20freenode-orange.svg)](https://webchat.freenode.net/?channels=nextcloud) and [![irc](https://img.shields.io/badge/IRC-%23nextcloud--mobile%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=nextcloud-mobile) on freenode
@@ -21,7 +21,7 @@ If you want to [contribute](https://nextcloud.com/contribute/) to Nextcloud, you
- for translations of the app on [Transifex](https://www.transifex.com/nextcloud/nextcloud/android/)
- opening issues and PRs (including a corresponding issue)
## Contribution Guidelines & License
## Contribution Guidelines & License :scroll:
[GPLv2](https://github.com/nextcloud/android/blob/master/LICENSE.txt). All contributions to this repository from June, 16 2016 on are considered to be licensed under the AGPLv3 or any later version.
@@ -37,11 +37,11 @@ Please review the [guidelines for contributing](https://github.com/nextcloud/and
More information how to contribute: [https://nextcloud.com/contribute/](https://nextcloud.com/contribute/)
## Start contributing
## Start contributing :hammer_and_wrench:
Make sure you read [SETUP.md](https://github.com/nextcloud/android/blob/master/SETUP.md) and [CONTRIBUTING.md](https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md) before you start working on this project. But basically: fork this repository and contribute back using pull requests to the master branch.
Easy starting points are also reviewing [pull requests](https://github.com/nextcloud/android/pulls) and working on [starter issues](https://github.com/nextcloud/android/issues?q=is%3Aopen+is%3Aissue+label%3A%22starter+issue%22).
### Getting debug info via logcat
### Getting debug info via logcat :mag:
#### With a computer:
- connect the device via USB
- open command prompt/terminal
@@ -49,7 +49,7 @@ Easy starting points are also reviewing [pull requests](https://github.com/nextc
**Note:** You must have [adb](https://developer.android.com/studio/releases/platform-tools.html) installed first!
#### On a device (with root)
#### On a device (with root) :wrench:
- open terminal app *(can be enabled in developer options)*
- get root access via "su"
- enter `logcat -d -f /sdcard/logcatOutput.txt`
@@ -61,14 +61,14 @@ or
**Note:** Your device needs to be rooted for this approach!
## Development version
## Development version :hammer:
- [APK (direct download)](https://download.nextcloud.com/android/dev/latest.apk)
- [F-Droid](https://f-droid.org/en/packages/com.nextcloud.android.beta/)
## Support
## Support :rescue_worker_helmet:
If you need assistance or want to ask a question about the Android app, you are welcome to [ask for support](https://help.nextcloud.com/c/clients/android) in our Forums or the [IRC-Channel](https://webchat.freenode.net/?channels=nextcloud-mobile). If you have found a bug, feel free to [open a new Issue on GitHub](https://github.com/nextcloud/android/issues). Keep in mind, that this repository only manages the Android app. If you find bugs or have problems with the server/backend, you should ask the [Nextcloud server team](https://github.com/nextcloud/server) for help!
## Remarks
## Remarks :scroll:
Google Play and the Google Play logo are trademarks of Google Inc.
+49 -29
View File
@@ -7,7 +7,7 @@
import com.github.spotbugs.SpotBugsTask
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.3.61'
repositories {
google()
jcenter()
@@ -20,13 +20,15 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.android.tools.build:gradle:3.5.3'
classpath('com.dicedmelon.gradle:jacoco-android:0.1.4') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
classpath 'gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:1.6.6'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.1.1"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.3.0"
classpath "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
classpath 'com.karumi:shot:3.1.0'
}
}
@@ -38,8 +40,9 @@ apply plugin: 'kotlin-kapt'
apply plugin: 'checkstyle'
apply plugin: 'pmd'
apply plugin: 'jacoco-android'
apply plugin: "com.github.spotbugs"
apply plugin: "io.gitlab.arturbosch.detekt"
apply plugin: 'com.github.spotbugs'
apply plugin: 'io.gitlab.arturbosch.detekt'
apply plugin: 'shot'
configurations {
ktlint
@@ -57,8 +60,8 @@ configurations {
ext {
jacocoVersion = "0.8.2"
daggerVersion = "2.25.2"
markwonVersion = "4.1.2"
daggerVersion = "2.25.4"
markwonVersion = "4.2.0"
prismVersion = "2.0.0"
androidLibraryVersion = "master-SNAPSHOT"
@@ -81,7 +84,7 @@ repositories {
// semantic versioning for version code
def versionMajor = 3
def versionMinor = 10
def versionMinor = 11
def versionPatch = 0
def versionBuild = 0 // 0-50=Alpha / 51-98=RC / 90-99=stable
@@ -100,29 +103,41 @@ spotbugs {
toolVersion = '3.1.12'
}
shot {
appId = 'com.nextcloud.client'
instrumentationTestTask = 'connectedGenericDebugAndroidTest'
}
android {
lintOptions {
abortOnError false
htmlReport true
htmlOutput file("$project.buildDir/reports/lint/lint.html")
disable 'MissingTranslation', 'GradleDependency', 'VectorPath', 'IconMissingDensityFolder', 'IconDensities'
disable 'MissingTranslation',
'GradleDependency',
'VectorPath',
'IconMissingDensityFolder',
'IconDensities',
'GoogleAppIndexingWarning',
'MissingDefaultResource'
}
dexOptions {
javaMaxHeapSize "4g"
}
compileSdkVersion 28
compileSdkVersion 29
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
minSdkVersion 16
targetSdkVersion 29
// arguments to be passed to functional tests
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "com.nextcloud.client.ScreenshotTestRunner"
testInstrumentationRunnerArgument "TEST_SERVER_URL", "${NC_TEST_SERVER_BASEURL}"
testInstrumentationRunnerArgument "TEST_SERVER_USERNAME", "${NC_TEST_SERVER_USERNAME}"
testInstrumentationRunnerArgument "TEST_SERVER_PASSWORD", "${NC_TEST_SERVER_PASSWORD}"
testInstrumentationRunnerArguments disableAnalytics: 'true'
multiDexEnabled true
@@ -143,7 +158,7 @@ android {
buildTypes {
debug {
testCoverageEnabled (project.hasProperty('coverage'))
testCoverageEnabled true
}
}
@@ -162,8 +177,8 @@ android {
versionDev {
applicationId "com.nextcloud.android.beta"
dimension "default"
versionCode 20191029
versionName "20191029"
versionCode 20200110
versionName "20200110"
}
qa {
@@ -176,6 +191,7 @@ android {
testOptions {
unitTests.returnDefaultValues = true
execution 'ANDROIDX_TEST_ORCHESTRATOR'
}
}
@@ -267,22 +283,25 @@ dependencies {
gplayImplementation "com.github.nextcloud:android-library:$androidLibraryVersion"
versionDevImplementation "com.github.nextcloud:android-library:$androidLibraryVersion"
qaImplementation "com.github.nextcloud:android-library:$androidLibraryVersion"
compileOnly 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2' // remove after entire switch to lib v2
implementation "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
implementation 'org.apache.jackrabbit:jackrabbit-webdav:2.13.1' // remove after entire switch to lib v2
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.google.android.material:material:1.1.0-beta02'
implementation 'com.jakewharton:disklrucache:2.0.2'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.exifinterface:exifinterface:1.0.0'
implementation 'androidx.exifinterface:exifinterface:1.1.0'
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.1.0"
implementation "androidx.work:work-runtime:2.2.0"
implementation "androidx.work:work-runtime-ktx:2.2.0"
implementation 'com.github.albfernandez:juniversalchardet:2.0.3' // need this version for Android <7
implementation 'com.google.code.findbugs:annotations:2.0.1'
compileOnly 'com.google.code.findbugs:annotations:2.0.1'
implementation 'commons-io:commons-io:2.6'
implementation 'com.github.tobiaskaminsky:android-job:v1.2.6.1' // 'com.github.evernote:android-job:v1.2.5'
implementation 'com.jakewharton:butterknife:10.2.0'
kapt 'com.jakewharton:butterknife-compiler:10.2.0'
implementation 'com.jakewharton:butterknife:10.2.1'
kapt 'com.jakewharton:butterknife-compiler:10.2.1'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5'
implementation 'org.lukhnos:nnio:0.2'
@@ -292,7 +311,7 @@ dependencies {
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.15'
implementation 'com.github.tobiaskaminsky:qrcodescanner:0.1.2.2' // 'com.github.blikoon:QRCodeScanner:0.1.2'
implementation 'com.google.android:flexbox:1.1.1'
implementation 'com.google.android:flexbox:2.0.0'
implementation 'org.parceler:parceler-api:1.1.12'
kapt 'org.parceler:parceler:1.1.12'
implementation('com.github.bumptech.glide:glide:3.8.0') {
@@ -301,11 +320,10 @@ dependencies {
implementation 'com.caverock:androidsvg:1.4'
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'org.jetbrains:annotations:17.0.0'
implementation 'com.github.cotechde.hwsecurity:hwsecurity-fido:2.5.1'
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.10.0'
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.10.1'
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.4.7'
implementation "com.google.dagger:dagger:$daggerVersion"
@@ -317,7 +335,7 @@ dependencies {
compileOnly "org.projectlombok:lombok:1.18.10"
annotationProcessor "org.projectlombok:lombok:1.18.10"
ktlint "com.pinterest:ktlint:0.35.0"
ktlint "com.pinterest:ktlint:0.36.0"
implementation 'org.conscrypt:conscrypt-android:2.2.1'
// dependencies for markdown rendering
@@ -332,8 +350,8 @@ dependencies {
kapt "io.noties:prism4j-bundler:$prismVersion"
// dependencies for local unit tests
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:3.1.0'
testImplementation 'junit:junit:4.13'
testImplementation 'org.mockito:mockito-core:3.2.4'
testImplementation 'androidx.test:core:1.2.0'
testImplementation 'org.powermock:powermock-core:2.0.4'
testImplementation 'org.powermock:powermock-module-junit4:2.0.4'
@@ -348,17 +366,19 @@ dependencies {
androidTestImplementation 'androidx.test:rules:1.2.0'
// Android JUnit Runner
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestUtil 'androidx.test:orchestrator:1.2.0'
// Espresso core
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.2.0'
androidTestImplementation 'org.mockito:mockito-core:3.1.0'
androidTestImplementation 'org.mockito:mockito-core:3.2.4'
// UIAutomator - for cross-app UI tests, and to grant screen is turned on in Espresso tests
// androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
// fix conflict in dependencies; see http://g.co/androidstudio/app-test-app-conflict for details
//androidTestImplementation "com.android.support:support-annotations:${supportLibraryVersion}"
androidTestImplementation 'tools.fastlane:screengrab:1.2.0'
androidTestImplementation 'tools.fastlane:screengrab:2.0.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
androidTestCompile('com.android.support.test.espresso:espresso-intents:3.0.2')
// jacocoAnt "org.jacoco:org.jacoco.ant:${jacocoVersion}"
// jacocoAgent "org.jacoco:org.jacoco.agent:${jacocoVersion}"
@@ -1,94 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
enable-background="new 0 0 595.275 311.111"
xml:space="preserve"
height="1064"
width="1064"
version="1.1"
y="0px"
x="0px"
viewBox="0 0 1064 1063.9999"
id="svg2"
inkscape:version="0.92.1 r"
sodipodi:docname="icon-android.svg"
inkscape:export-filename="/tmp/ic_launcher.png"
inkscape:export-xdpi="16.24"
inkscape:export-ydpi="16.24"><metadata
id="metadata12"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
id="defs10"><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath3350"><rect
style="opacity:1;fill:#0082c9;fill-opacity:1;stroke:none;stroke-width:5.56599998;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="rect3352"
width="1064"
height="1064"
x="-20"
y="-20.000061"
rx="84"
ry="84" /></clipPath></defs><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1600"
inkscape:window-height="835"
id="namedview8"
showgrid="false"
inkscape:zoom="0.32"
inkscape:cx="-19.248807"
inkscape:cy="657.06295"
inkscape:current-layer="layer1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1" /><image
width="2400"
height="1600"
preserveAspectRatio="none"
xlink:href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIf IiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7 Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAUAB4ADAREA AhEBAxEB/8QAGQABAQEBAQEAAAAAAAAAAAAAAAECAwQF/8QAGQEBAQEBAQEAAAAAAAAAAAAAAAEC AwQF/9oADAMBAAIQAxAAAAHw/V+IAALQAEKAQoAAAAAAAAQAAFIAAAAALQEi0AJFoBCgAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABItCQAAAAAAAAAAAAUhQAAAAAAAAAJAFq RaEgAWpAAAAAAAVQAAAAAAAAAAAEBSAAAAAAAAC0AAJFoAIUAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAEKAAAAAkAAAAAAAAAAAAFICghQAAAAAAAAAJAVSRakAAKQAAAAAAAALUKAA AAAAAAAhSAAAAAAAAC0AAEKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ qQAAAAAAAAAAAAAUAAAAAAAAAAAASAFUAkAAAAAQpCgCkAAC0AAAAACFAAAABAAAAAAAABaAAAAQ oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACRakAAAAAAAAAAAAAAFAAAAAAAh QAASAFIAAAAAAAAAEAKAAAC1ItAAAAAAAAAAEAKQAAAAAAAAWgAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAhQAACIAAAAAAAAAAAFIAACgAAAhQAAAAABIAFqQpFoSAALUgAAAACFBCk KABSABaAAAAAAAAAAAIAAAAAAAAAKQtSLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAkC0ABIAAAAAAAABQAAAAAAAAIUAAEhSLUi1ItSBakWoItCQAAAAAAAAABAUAAAAtQoAAAAAAA QoAABAAAAAAAAAABaAAAAAAAAAACFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABChIAAFoSLUgAAAAA FAAIAUEKACRaQoAABItASAApAFoCQAALQkAAAAAAAAAAQpACgAAAFqQLQAAAAAAAAIUgAAAAAAAA FIC1ItACRaAAAAAAAAAAAAAAAAAAAAAAAAAAACFAAAAAAAABChItCQAAAAAAAAAAUAAAhSFAEBQA QpCgkWhIFoACQABaEi0JFoSLUgWhIAAAAKQQoBCkKCAoAAAFIVQAAAAAAAAAEKQAAAAAAAAAAAAA WpFqQBakWhItAAASLQkWgAAAAAAAAAAAAAAAAAAAhQAEgC1IAAAAAAAAAAAAKAQFAAAAhQAAAAAA ASBahQCQpAAAVQCRakC1IAAAAAAAAEAKACFAAFIUgBSLQAAAAAAAhQEKAQAAAAAAAAAAAAAAAAAA AAAAAAAWgAAAAAAAAAAAAhQEi0AAJAAAAAAAAAAAAAABSFIUhQAAAAAAAAAAAAAABIFoACQAALQE gAAAAAAAAAAAAAAAAAAAAAAKQLQAAAAAAAAAABCghQAQAAAAAAAAAAAAAAAAAAAC0AAAAAAAAAAA AEKkAAAAAAAAAAAAAAAAFIUgKAAAAAAAAAAAAAJFoASABaAAEhSLUgC1IAtSAAAAAAAAAAAAAAAI UEKAAAAAAKAQAFIFoAAAAAhQAAAAQAAAAAAAAAAAAAWpAAAAAtAABCgAAAAAAiAAAAAAAAAAAAAA KQFIUAAAEKAACFAhQAAAAAAAAAAAAAAAAASAFUEKAAACQAAAAAAAAAAAAICrEApCgAAAAAAAAAtS LQAAAAAAICgAAgAAAAAAAAAAAAAAAAAAAAtBCgAhQAkAAAAAAAAAAAAoIUhSAoAAAAAAAEKQoAAA AAAAAAAAAAAAAAAAAAAAAAAABCgAAAAkC1CghSAoAMwAAAKAQpCgAAAAUEABSBaEi0AIUAAABAAA AAAAAAAAAAAACkAAAAAAAAAFqQAAAAAAAACgAhQAAAAAAAAAAAAAAIUAAAAAAhQAAAAAAAAAAAQo AAAAAAAAAABACghQAAAAACFMwUhSAAAAAAUAAAAUEC0BItAAAAAAAAEKQoAAIUEAKCAoAAAIUAhQ CAAAAAAAAAAAAAAAFAIUAAAEKAAAQoAAAAAAAAAAAAAhQAACFAAAAAAAAAAAAACFABACkKQAoAIC gAhQAAAAAMygAgBSAAAUAAAAtAAAAAAAAAAAAAAQFAAAAAAAAAAAAAAQpCggAAAAAAAAAAAAABQA AAAAAIUAAAAAAAAAAAAAAAAAAIUAAAAhQCFAAAAABCgEBSFIUAAAAAAEKQoAAAAAEBTMoBCkFWIA AKAAABSBahQAAQQAAFIAFqCFIUAEAKRakWgAAAAAAAAIUAAABAAAAAAAAAAUAEAKAAACFAgKAAhQ AAAACFABAUEKQFBCgAAAAAAAEBSApAAUhSFICkAKQFIAUAAhQAAAAIUAAAEKACRazKCFIUAEAAoA AApAAAAUhSAAAAAAAAAAAApCkWhBAtCRaEhVJFoAACFAQoAIUhSAAAAAAApAUhSFAAAAAABCgAAA AhSAAAAAAAAAAAAoAIAAAAAAAAKQFIAAAAAAFAAAAAAAAAAAAAAAAkCKAAAACACgACkAAAAAAAAQ AAFAAAAApAAAAAAFqQAAAALUgC0IUAAAICkAAAAAAAAKQAoAAAICkBSAAAAAAAAAAAAAApAAAAKA AQFAIAAAAAAFAIAUgAAKCFAAAAAAAAAAAEAAgACKAAAAAACACkAAAABSFAABAAAACgAAACkAAC1I AAAAFqQAALUi0IVCgAgAAAAAAApAAAAAAAAAAAAAAAAAC1IAAAApCgAAAAUAAAAJFoSAAAAAAAUE KQAAApCgAAAAAAAAQAACAFIAAAytAIUAAAAAABAAABViAUAAgAAAUgAFAAAAAAAAALQkWpAAAFoA AAEAAAFIACkAAAAAKCAAAtSAALSIWgJFoSLUgWgiFABCgAUEKCIC0BIFqQAALUgAAAAoIAAAAAAA UgBQAQoAAAAAAAAAAkAKQIoAkKAAoAAAAACFIAUgAAAApAAAAAAAACkBQAAAC0IUEgC0BItAAEAA AAFIAWkQAAFoSLQkWpAFAqRaQpELQAAkUUEAAABQAAAAEgAC1IAFoSBakAWpAAFqQACkBSCkAAAA UEBQQpCgAACFAAIUEAAAgCBQAAAJKsAAFAAAAAAAAAAQoBAACkAABQCAVSQFAAAALQkWgBCgAAAA EKgAooAIUAAAAAEKQoAAAAAABAACghQAAAQoAAABAUBItIgBQQtSALUgAAAAAAoICkAAAAKCAoIU AAACFIAIUgACKAQFAICgAAgk0sCVYKAAAAAAAAAAAAAAgKCAAApAABQAAWpAtQoAAAAACFIWFCAW pFpCgAAAAhQAAAAAAAQoBCgAAAAAAAAABItIhakAC1IAAAtCQBakUUgQpAAAUgAUgAAKAAAAAABA AIUgAACApAUAAAAAAhQADKpQFgRaAAAAAAAAAAABAAAAKQAAAFABaAkWgAAAACFAIAAUEAFoAAAA AAAAAAAAAAAAAAAAAAACRakC0JFIAC0AJAFqQLQkAC1ItSLUi1IFICkAAAUAAEKACAoBIoCFIAAA AACkBSAAAFIUgAAKQAAMzRCgLBQAAAAAAAEAAAAAAAoAAAAALQEKAAAAEAABSAAAFIABaAAAAAAA AAAAAAAAAAAAAAQoAASLUgC1IAFoAASLUgC0ECFAIAAAAAAAAFABCgkUCgkAAAAAAABQAQFIAAAA AAAAAAAAzNAhSC1CgAAABCggAFUkBQACFAAAAAqgkWgAAAQoIAAAAAAAAAAKKAAAAAAAAAAAAAAQ oAABCpFoAAAAAAAACRaAkUAAAEAAAAAAAAACghQAAAIUEBQQAFBItQFAAAIUAkWgBIAAAAAAAAAA zNAEFoAAAUiAAVYgAFAAAAABakC1IFoAAAAAAEAAAAAAFIUAEAKKAAAAAAAAAAAAAAAAAAAAAAAA AACAAoIhQCApAAAAAAAAAoIUAAAAAAAAAAAAAAAAAACRaAAAEgC1IAAACqSLQhQCAzmlWCgAAABA AAKAAAAKQFUkWpAtCRaAAAAABAAAABQQAoFAABCgAAAAAAAAAAAAAAAAAAAAAAAhSFIEAKAQFIAA AAAAAAAAoIUhQAAAQpACgAEKAAAAAAAAAAAAAABIUgC1IFqRaAgKAAAAgxNCgAAAIABSFAAAAAAL QEi0AAACFIUAEBSAAAAUUhQAAQoABCgAAAAAAAAAAAAAAAAAAhSFBEKCApACkKQAoBAAAAApCggA BQCAAAAFIUAAAEKAQFAABCgAAAEKAQAoIWFIUkWpFqQFCgAhQgAAAElyooAAAQAAAUAAtQFBCkKA hQAQAAAAAAAAAWgAJFoACRaAAAAAAAAAAAAAAAAAAAQoASLQkCipFIAAUEAAAAUgKQoIAUgAAAAA KQAAFIUAAAAAAAAAAAAAEKAQAAAAAAogKCAoAAQCkBQADMvl5d/T14gAAAEApCgAtCFAAAAQAAAF BAAAAAAAAAALUgWgABIAtCRaAAAAAAAAAAAAAAAAAAEi0JFIUgAAAUgBQACACkAAAAAAAAAAACkK AAQFBCghQAAAAACAAAAAUUAjE1q5AAAKQpAAAKAZl8/PtmUVOm8as6axzzvhy6xfV24AAVAAAAFC kKhSFBAAUhSAAAAAAAAAAAAAAAAC1IFLine truncated
id="image4891"
x="-535.60559"
y="-188.14987"
clip-path="url(#clipPath3350)"
transform="translate(20,20)"
inkscape:export-filename="/tmp/icon.png"
inkscape:export-xdpi="3"
inkscape:export-ydpi="3" /><path
style="color:#000000;text-indent:0;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;text-transform:none;block-progression:tb;white-space:normal;isolation:auto;mix-blend-mode:normal;solid-color:#000000;fill:#ffffff;color-rendering:auto;image-rendering:auto;shape-rendering:auto;enable-background:accumulate"
d="m 532.68096,316.07009 c -93.35126,0.009 -171.73632,63.92879 -195.6864,149.91791 -20.90398,-45.99328 -66.91627,-78.5879 -120.3776,-78.59385 -72.77312,0.008 -132.608,59.84889 -132.61696,132.62749 -0.0144,72.79356 59.82891,132.64544 132.61696,132.6544 53.46731,-0.007 99.45003,-32.62151 120.35072,-78.62074 23.94141,86.00403 102.35306,149.9358 195.71626,149.9448 92.84054,0.01 170.84032,-63.22992 195.27726,-148.4992 21.2426,45.14803 66.5489,77.16618 119.395,77.17216 C 920.1591,652.68596 980.0119,592.82717 980,520.01866 979.99,447.22512 920.1442,387.3792 847.3562,387.39114 794.5071,387.39714 749.1755,419.40935 727.9343,464.5633 703.49738,379.297 625.52448,316.05812 532.68394,316.0641 Z m 0,77.85612 c 70.10602,-0.005 126.10902,55.98698 126.11498,126.09843 0.004,70.12039 -56,126.13127 -126.11498,126.12532 -70.10602,-0.007 -126.09408,-56.01389 -126.0881,-126.12532 0.007,-70.10249 55.99104,-126.08947 126.0881,-126.09843 z m -316.07893,71.32407 c 30.71189,0.004 54.76352,24.05843 54.7665,54.77136 0.005,30.71894 -24.04983,54.79529 -54.7665,54.79827 -30.71787,-0.004 -54.77248,-24.07933 -54.76651,-54.79827 0.004,-30.71293 24.05641,-54.76839 54.76651,-54.77136 z m 630.75417,0 c 30.7178,-0.005 54.7904,24.05155 54.7933,54.77136 0.01,30.7279 -24.0695,54.80425 -54.7933,54.79827 -30.7179,-0.004 -54.7725,-24.07933 -54.7695,-54.79827 0,-30.71293 24.0573,-54.76839 54.7695,-54.77136 z"
id="path6"
inkscape:connector-curvature="0"
inkscape:export-filename="/tmp/icon.png"
inkscape:export-xdpi="3"
inkscape:export-ydpi="3" /><g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Dev"
style="display:none"><text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:0%;font-family:Helvetica;-inkscape-font-specification:Helvetica;text-align:start;letter-spacing:0px;word-spacing:0px;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="357.40527"
y="946.11914"
id="text4136"><tspan
sodipodi:role="line"
id="tspan4138"
x="357.40527"
y="946.11914"
style="font-style:normal;font-variant:normal;font-weight:600;font-stretch:normal;font-size:180px;line-height:1.25;font-family:'Open Sans';-inkscape-font-specification:'Open Sans Semi-Bold';fill:#ffffff;fill-opacity:1">Dev</tspan></text>
</g></svg>

Before

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

+4 -308
View File
@@ -1,308 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 1344 1344" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
<rect x="-30.496" y="-19.169" width="1488.2" height="1362.73" style="fill:rgb(0,130,201);"/>
<g id="g13338" transform="matrix(5.13054,0,0,5.13054,-5362.99,82.5409)">
<path id="path256" d="M1298,54.1C1299.6,54.1 1300.9,52.8 1300.9,51.2C1300.9,49.6 1299.6,48.3 1298,48.3C1296.4,48.3 1295.1,49.6 1295.1,51.2C1295.1,52.8 1296.4,54.1 1298,54.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path258" d="M1307.5,54.1C1309.1,54.1 1310.4,52.8 1310.4,51.2C1310.4,49.6 1309.1,48.3 1307.5,48.3C1305.9,48.3 1304.6,49.6 1304.6,51.2C1304.6,52.8 1305.9,54.1 1307.5,54.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path310" d="M1298,63.5C1299.6,63.5 1300.9,62.2 1300.9,60.6C1300.9,59 1299.6,57.7 1298,57.7C1296.4,57.7 1295.1,59 1295.1,60.6C1295.1,62.2 1296.4,63.5 1298,63.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path312" d="M1307.5,63.5C1309.1,63.5 1310.4,62.2 1310.4,60.6C1310.4,59 1309.1,57.7 1307.5,57.7C1305.9,57.7 1304.6,59 1304.6,60.6C1304.6,62.2 1305.9,63.5 1307.5,63.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path366" d="M1260.3,73C1262,73 1263.3,71.7 1263.3,70C1263.3,68.4 1262,67 1260.3,67C1258.7,67 1257.3,68.3 1257.3,70C1257.3,71.7 1258.7,73 1260.3,73Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path368" d="M1279.2,72.9C1280.8,72.9 1282.1,71.6 1282.1,70C1282.1,68.4 1280.8,67.1 1279.2,67.1C1277.6,67.1 1276.3,68.4 1276.3,70C1276.3,71.6 1277.6,72.9 1279.2,72.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path370" d="M1288.6,73.5C1290.5,73.5 1292,72 1292,70.1C1292,68.2 1290.5,66.7 1288.6,66.7C1286.7,66.7 1285.2,68.2 1285.2,70.1C1285.2,71.9 1286.7,73.5 1288.6,73.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path372" d="M1298,73C1299.6,73 1301,71.7 1301,70.1C1301,68.5 1299.7,67.2 1298,67.2C1296.4,67.2 1295.1,68.5 1295.1,70.1C1295.1,71.7 1296.4,73 1298,73Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path374" d="M1307.5,73C1309.2,73 1310.5,71.7 1310.5,70C1310.5,68.4 1309.2,67 1307.5,67C1305.8,67 1304.5,68.3 1304.5,70C1304.5,71.7 1305.8,73 1307.5,73Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path438" d="M1250.8,82.4C1252.4,82.4 1253.7,81.1 1253.7,79.5C1253.7,77.9 1252.4,76.6 1250.8,76.6C1249.2,76.6 1247.9,77.9 1247.9,79.5C1248,81.1 1249.3,82.4 1250.8,82.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path440" d="M1260.3,82.4C1262,82.4 1263.3,81.1 1263.3,79.4C1263.3,77.8 1262,76.4 1260.3,76.4C1258.7,76.4 1257.3,77.7 1257.3,79.4C1257.3,81.1 1258.7,82.4 1260.3,82.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path442" d="M1279.2,82.4C1280.8,82.4 1282.1,81.1 1282.1,79.5C1282.1,77.9 1280.8,76.6 1279.2,76.6C1277.6,76.6 1276.3,77.9 1276.3,79.5C1276.3,81.1 1277.6,82.4 1279.2,82.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path444" d="M1288.6,82.4C1290.2,82.4 1291.5,81.1 1291.5,79.5C1291.5,77.9 1290.2,76.6 1288.6,76.6C1287,76.6 1285.7,77.9 1285.7,79.5C1285.7,81.1 1287,82.4 1288.6,82.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path446" d="M1307.5,82.4C1309.2,82.4 1310.5,81.1 1310.5,79.4C1310.5,77.8 1309.2,76.4 1307.5,76.4C1305.8,76.4 1304.5,77.7 1304.5,79.4C1304.5,81.1 1305.8,82.4 1307.5,82.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path504" d="M1279.2,91.8C1280.8,91.8 1282.1,90.5 1282.1,88.9C1282.1,87.3 1280.8,86 1279.2,86C1277.6,86 1276.3,87.3 1276.3,88.9C1276.3,90.5 1277.6,91.8 1279.2,91.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path564" d="M1260.3,101.2C1261.9,101.2 1263.2,99.9 1263.2,98.3C1263.2,96.7 1261.9,95.4 1260.3,95.4C1258.7,95.4 1257.4,96.7 1257.4,98.3C1257.4,99.9 1258.7,101.2 1260.3,101.2Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path566" d="M1269.7,101.3C1271.3,101.3 1272.6,100 1272.6,98.4C1272.6,96.8 1271.3,95.5 1269.7,95.5C1268.1,95.5 1266.7,96.8 1266.7,98.4C1266.8,100 1268.1,101.3 1269.7,101.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path568" d="M1279.2,101.4C1280.9,101.4 1282.3,100 1282.3,98.3C1282.3,96.6 1280.9,95.2 1279.2,95.2C1277.5,95.2 1276.1,96.6 1276.1,98.3C1276.1,100.1 1277.4,101.4 1279.2,101.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path570" d="M1288.6,101.7C1290.5,101.7 1292,100.2 1292,98.3C1292,96.5 1290.5,94.9 1288.6,94.9C1286.8,94.9 1285.3,96.4 1285.3,98.3C1285.2,100.2 1286.7,101.7 1288.6,101.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path572" d="M1298,102.1C1300.1,102.1 1301.7,100.4 1301.7,98.4C1301.7,96.3 1300,94.7 1298,94.7C1296,94.7 1294.3,96.4 1294.3,98.4C1294.3,100.4 1296,102.1 1298,102.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path574" d="M1307.5,101.2C1309.1,101.2 1310.4,99.9 1310.4,98.3C1310.4,96.7 1309.1,95.4 1307.5,95.4C1305.9,95.4 1304.6,96.7 1304.6,98.3C1304.6,99.9 1305.9,101.2 1307.5,101.2Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path642" d="M1250.8,110.7C1252.4,110.7 1253.7,109.4 1253.7,107.8C1253.7,106.2 1252.4,104.9 1250.8,104.9C1249.2,104.9 1247.9,106.2 1247.9,107.8C1248,109.4 1249.3,110.7 1250.8,110.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path644" d="M1260.3,110.8C1262,110.8 1263.3,109.5 1263.3,107.8C1263.3,106.2 1262,104.8 1260.3,104.8C1258.7,104.8 1257.3,106.1 1257.3,107.8C1257.3,109.4 1258.7,110.8 1260.3,110.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path646" d="M1269.7,110.8C1271.3,110.8 1272.7,109.5 1272.7,107.8C1272.7,106.2 1271.4,104.8 1269.7,104.8C1268,104.8 1266.7,106.1 1266.7,107.8C1266.8,109.4 1268.1,110.8 1269.7,110.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path648" d="M1279.2,111.5C1281.2,111.5 1282.9,109.8 1282.9,107.8C1282.9,105.8 1281.2,104.1 1279.2,104.1C1277.2,104.1 1275.5,105.8 1275.5,107.8C1275.4,109.8 1277.1,111.5 1279.2,111.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path650" d="M1288.6,110.7C1290.2,110.7 1291.5,109.4 1291.5,107.8C1291.5,106.2 1290.2,104.9 1288.6,104.9C1287,104.9 1285.7,106.2 1285.7,107.8C1285.7,109.4 1287,110.7 1288.6,110.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path652" d="M1298,111.2C1299.9,111.2 1301.4,109.7 1301.4,107.8C1301.4,105.9 1299.9,104.4 1298,104.4C1296.1,104.4 1294.6,105.9 1294.6,107.8C1294.6,109.7 1296.1,111.2 1298,111.2Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path654" d="M1307.5,111.8C1309.7,111.8 1311.5,110 1311.5,107.8C1311.5,105.6 1309.7,103.8 1307.5,103.8C1305.3,103.8 1303.5,105.6 1303.5,107.8C1303.5,110 1305.2,111.8 1307.5,111.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path722" d="M1250.8,120.8C1252.8,120.8 1254.4,119.2 1254.4,117.2C1254.4,115.2 1252.8,113.6 1250.8,113.6C1248.8,113.6 1247.2,115.2 1247.2,117.2C1247.3,119.2 1248.9,120.8 1250.8,120.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path724" d="M1260.3,120.2C1262,120.2 1263.3,118.9 1263.3,117.2C1263.3,115.6 1262,114.2 1260.3,114.2C1258.7,114.2 1257.3,115.5 1257.3,117.2C1257.3,118.9 1258.7,120.2 1260.3,120.2Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path726" d="M1269.7,120.2C1271.3,120.2 1272.7,118.9 1272.7,117.2C1272.7,115.6 1271.4,114.2 1269.7,114.2C1268,114.2 1266.7,115.5 1266.7,117.2C1266.8,118.9 1268.1,120.2 1269.7,120.2Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path728" d="M1279.2,120.9C1281.2,120.9 1282.9,119.2 1282.9,117.2C1282.9,115.2 1281.2,113.5 1279.2,113.5C1277.2,113.5 1275.5,115.2 1275.5,117.2C1275.4,119.3 1277.1,120.9 1279.2,120.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path730" d="M1288.6,120.1C1290.2,120.1 1291.5,118.8 1291.5,117.2C1291.5,115.6 1290.2,114.3 1288.6,114.3C1287,114.3 1285.7,115.6 1285.7,117.2C1285.7,118.8 1287,120.1 1288.6,120.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path732" d="M1298,120.6C1299.9,120.6 1301.4,119.1 1301.4,117.2C1301.4,115.3 1299.9,113.8 1298,113.8C1296.1,113.8 1294.6,115.3 1294.6,117.2C1294.6,119.1 1296.1,120.6 1298,120.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path734" d="M1307.5,120.1C1309.1,120.1 1310.4,118.8 1310.4,117.2C1310.4,115.6 1309.1,114.3 1307.5,114.3C1305.9,114.3 1304.6,115.6 1304.6,117.2C1304.6,118.8 1305.9,120.1 1307.5,120.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path798" d="M1250.8,129.5C1252.4,129.5 1253.7,128.2 1253.7,126.6C1253.7,125 1252.4,123.7 1250.8,123.7C1249.2,123.7 1247.9,125 1247.9,126.6C1248,128.3 1249.3,129.5 1250.8,129.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path800" d="M1260.3,129.5C1261.9,129.5 1263.2,128.2 1263.2,126.6C1263.2,125 1261.9,123.7 1260.3,123.7C1258.7,123.7 1257.4,125 1257.4,126.6C1257.4,128.3 1258.7,129.5 1260.3,129.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path802" d="M1269.7,129.5C1271.3,129.5 1272.6,128.2 1272.6,126.6C1272.6,125 1271.3,123.7 1269.7,123.7C1268.1,123.7 1266.8,125 1266.8,126.6C1266.8,128.3 1268.1,129.5 1269.7,129.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path804" d="M1279.2,129.6C1280.8,129.6 1282.2,128.3 1282.2,126.6C1282.2,124.9 1280.9,123.6 1279.2,123.6C1277.5,123.6 1276.2,124.9 1276.2,126.6C1276.2,128.3 1277.5,129.6 1279.2,129.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path806" d="M1288.6,130C1290.5,130 1292,128.5 1292,126.7C1292,124.8 1290.5,123.3 1288.6,123.3C1286.8,123.3 1285.3,124.8 1285.3,126.7C1285.2,128.5 1286.7,130 1288.6,130Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path808" d="M1298,129.5C1299.6,129.5 1300.9,128.2 1300.9,126.6C1300.9,125 1299.6,123.7 1298,123.7C1296.4,123.7 1295.1,125 1295.1,126.6C1295.1,128.3 1296.4,129.5 1298,129.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path810" d="M1307.5,129.5C1309.1,129.5 1310.4,128.2 1310.4,126.6C1310.4,125 1309.1,123.7 1307.5,123.7C1305.9,123.7 1304.6,125 1304.6,126.6C1304.6,128.3 1305.9,129.5 1307.5,129.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path874" d="M1203.7,139C1205.3,139 1206.6,137.7 1206.6,136.1C1206.6,134.5 1205.3,133.2 1203.7,133.2C1202.1,133.2 1200.8,134.5 1200.8,136.1C1200.8,137.7 1202.1,139 1203.7,139Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path876" d="M1213.1,139.8C1215.2,139.8 1216.8,138.1 1216.8,136.1C1216.8,134 1215.1,132.4 1213.1,132.4C1211.1,132.4 1209.4,134.1 1209.4,136.1C1209.4,138.1 1211.1,139.8 1213.1,139.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path878" d="M1232,139C1233.6,139 1234.9,137.7 1234.9,136.1C1234.9,134.5 1233.6,133.2 1232,133.2C1230.4,133.2 1229.1,134.5 1229.1,136.1C1229.1,137.7 1230.4,139 1232,139Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path880" d="M1241.4,139.7C1243.4,139.7 1245,138.1 1245,136.1C1245,134.1 1243.4,132.5 1241.4,132.5C1239.4,132.5 1237.8,134.1 1237.8,136.1C1237.8,138.1 1239.4,139.7 1241.4,139.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path882" d="M1260.3,139C1261.9,139 1263.2,137.7 1263.2,136.1C1263.2,134.5 1261.9,133.2 1260.3,133.2C1258.7,133.2 1257.4,134.5 1257.4,136.1C1257.4,137.7 1258.7,139 1260.3,139Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path884" d="M1269.7,139C1271.3,139 1272.6,137.7 1272.6,136.1C1272.6,134.5 1271.3,133.2 1269.7,133.2C1268.1,133.2 1266.8,134.5 1266.8,136.1C1266.8,137.7 1268.1,139 1269.7,139Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path886" d="M1288.6,139C1290.2,139 1291.5,137.7 1291.5,136.1C1291.5,134.5 1290.2,133.2 1288.6,133.2C1287,133.2 1285.7,134.5 1285.7,136.1C1285.7,137.7 1287,139 1288.6,139Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path888" d="M1298,139C1299.6,139 1300.9,137.7 1300.9,136.1C1300.9,134.5 1299.6,133.2 1298,133.2C1296.4,133.2 1295.1,134.5 1295.1,136.1C1295.1,137.7 1296.4,139 1298,139Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path890" d="M1307.5,140C1309.7,140 1311.4,138.3 1311.4,136.1C1311.4,134 1309.7,132.2 1307.5,132.2C1305.3,132.2 1303.6,133.9 1303.6,136.1C1303.6,138.2 1305.3,140 1307.5,140Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path954" d="M1203.7,148.4C1205.3,148.4 1206.6,147.1 1206.6,145.5C1206.6,143.9 1205.3,142.6 1203.7,142.6C1202.1,142.6 1200.8,143.9 1200.8,145.5C1200.8,147.1 1202.1,148.4 1203.7,148.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path956" d="M1213.1,149.3C1215.2,149.3 1216.8,147.6 1216.8,145.6C1216.8,143.5 1215.1,141.9 1213.1,141.9C1211.1,141.9 1209.4,143.6 1209.4,145.6C1209.4,147.6 1211.1,149.3 1213.1,149.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path958" d="M1241.4,148.4C1243,148.4 1244.3,147.1 1244.3,145.5C1244.3,143.9 1243,142.6 1241.4,142.6C1239.8,142.6 1238.5,143.9 1238.5,145.5C1238.5,147.1 1239.8,148.4 1241.4,148.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path960" d="M1260.3,148.4C1261.9,148.4 1263.2,147.1 1263.2,145.5C1263.2,143.9 1261.9,142.6 1260.3,142.6C1258.7,142.6 1257.4,143.9 1257.4,145.5C1257.4,147.1 1258.7,148.4 1260.3,148.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path962" d="M1269.7,148.9C1271.6,148.9 1273.1,147.4 1273.1,145.5C1273.1,143.6 1271.6,142.1 1269.7,142.1C1267.8,142.1 1266.3,143.6 1266.3,145.5C1266.3,147.4 1267.8,148.9 1269.7,148.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path964" d="M1279.2,148.4C1280.8,148.4 1282.1,147.1 1282.1,145.5C1282.1,143.9 1280.8,142.6 1279.2,142.6C1277.6,142.6 1276.3,143.9 1276.3,145.5C1276.3,147.1 1277.6,148.4 1279.2,148.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path966" d="M1288.6,148.4C1290.2,148.4 1291.5,147.1 1291.5,145.5C1291.5,143.9 1290.2,142.6 1288.6,142.6C1287,142.6 1285.7,143.9 1285.7,145.5C1285.7,147.1 1287,148.4 1288.6,148.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path968" d="M1298,148.5C1299.6,148.5 1301,147.2 1301,145.6C1301,144 1299.7,142.7 1298,142.7C1296.4,142.7 1295.1,144 1295.1,145.6C1295.1,147.1 1296.4,148.5 1298,148.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path970" d="M1307.5,148.4C1309.1,148.4 1310.4,147.1 1310.4,145.5C1310.4,143.9 1309.1,142.6 1307.5,142.6C1305.9,142.6 1304.6,143.9 1304.6,145.5C1304.6,147.1 1305.9,148.4 1307.5,148.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1034" d="M1203.7,157.8C1205.3,157.8 1206.6,156.5 1206.6,154.9C1206.6,153.3 1205.3,152 1203.7,152C1202.1,152 1200.8,153.3 1200.8,154.9C1200.8,156.5 1202.1,157.8 1203.7,157.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1036" d="M1222.5,157.8C1224.1,157.8 1225.4,156.5 1225.4,154.9C1225.4,153.3 1224.1,152 1222.5,152C1220.9,152 1219.6,153.3 1219.6,154.9C1219.7,156.5 1221,157.8 1222.5,157.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1038" d="M1232,158.5C1233.9,158.5 1235.5,156.9 1235.5,155C1235.5,153.1 1233.9,151.5 1232,151.5C1230,151.5 1228.5,153.1 1228.5,155C1228.5,156.9 1230,158.5 1232,158.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1040" d="M1241.4,157.8C1243,157.8 1244.3,156.5 1244.3,154.9C1244.3,153.3 1243,152 1241.4,152C1239.8,152 1238.5,153.3 1238.5,154.9C1238.6,156.5 1239.8,157.8 1241.4,157.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1042" d="M1250.8,157.8C1252.4,157.8 1253.7,156.5 1253.7,154.9C1253.7,153.3 1252.4,152 1250.8,152C1249.2,152 1247.9,153.3 1247.9,154.9C1248,156.5 1249.3,157.8 1250.8,157.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1044" d="M1260.3,158.3C1262.1,158.3 1263.6,156.8 1263.6,155C1263.6,153.2 1262.1,151.7 1260.3,151.7C1258.5,151.7 1257,153.2 1257,155C1257,156.8 1258.4,158.3 1260.3,158.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1046" d="M1269.7,158.3C1271.5,158.3 1273,156.8 1273,155C1273,153.2 1271.5,151.7 1269.7,151.7C1267.9,151.7 1266.4,153.2 1266.4,155C1266.4,156.8 1267.9,158.3 1269.7,158.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1048" d="M1279.2,158.3C1281,158.3 1282.5,156.8 1282.5,154.9C1282.5,153.1 1281,151.6 1279.2,151.6C1277.3,151.6 1275.8,153.1 1275.8,154.9C1275.8,156.8 1277.3,158.3 1279.2,158.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1050" d="M1288.6,158.3C1290.5,158.3 1292,156.8 1292,154.9C1292,153.1 1290.5,151.6 1288.6,151.6C1286.8,151.6 1285.3,153.1 1285.3,154.9C1285.2,156.8 1286.7,158.3 1288.6,158.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1052" d="M1298,158.4C1299.9,158.4 1301.4,156.9 1301.4,155C1301.4,153.1 1299.9,151.6 1298,151.6C1296.1,151.6 1294.6,153.1 1294.6,155C1294.6,156.8 1296.1,158.4 1298,158.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1054" d="M1307.5,157.8C1309.1,157.8 1310.4,156.5 1310.4,154.9C1310.4,153.3 1309.1,152 1307.5,152C1305.9,152 1304.6,153.3 1304.6,154.9C1304.6,156.5 1305.9,157.8 1307.5,157.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1118" d="M1147.1,167.3C1148.7,167.3 1150,166 1150,164.4C1150,162.8 1148.7,161.5 1147.1,161.5C1145.5,161.5 1144.2,162.8 1144.2,164.4C1144.2,166 1145.5,167.3 1147.1,167.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1120" d="M1156.5,167.3C1158.1,167.3 1159.4,166 1159.4,164.4C1159.4,162.8 1158.1,161.5 1156.5,161.5C1154.9,161.5 1153.6,162.8 1153.6,164.4C1153.6,166 1154.9,167.3 1156.5,167.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1122" d="M1166,167.3C1167.6,167.3 1168.9,166 1168.9,164.4C1168.9,162.8 1167.6,161.5 1166,161.5C1164.4,161.5 1163.1,162.8 1163.1,164.4C1163.1,166 1164.4,167.3 1166,167.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1124" d="M1175.4,167.6C1177.2,167.6 1178.6,166.2 1178.6,164.4C1178.6,162.6 1177.1,161.2 1175.4,161.2C1173.6,161.2 1172.2,162.6 1172.2,164.4C1172.2,166.2 1173.6,167.6 1175.4,167.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1126" d="M1213.1,167.3C1214.7,167.3 1216,166 1216,164.4C1216,162.8 1214.7,161.5 1213.1,161.5C1211.5,161.5 1210.2,162.8 1210.2,164.4C1210.2,166 1211.5,167.3 1213.1,167.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1128" d="M1222.5,168.4C1224.7,168.4 1226.5,166.6 1226.5,164.4C1226.5,162.2 1224.7,160.4 1222.5,160.4C1220.3,160.4 1218.5,162.2 1218.5,164.4C1218.5,166.6 1220.4,168.4 1222.5,168.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1130" d="M1232,167.3C1233.6,167.3 1234.9,166 1234.9,164.4C1234.9,162.8 1233.6,161.5 1232,161.5C1230.4,161.5 1229.1,162.8 1229.1,164.4C1229.1,166 1230.4,167.3 1232,167.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1132" d="M1241.4,168.4C1243.6,168.4 1245.4,166.6 1245.4,164.4C1245.4,162.2 1243.6,160.4 1241.4,160.4C1239.2,160.4 1237.4,162.2 1237.4,164.4C1237.4,166.6 1239.2,168.4 1241.4,168.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1134" d="M1250.8,167.7C1252.6,167.7 1254.1,166.2 1254.1,164.4C1254.1,162.6 1252.6,161.1 1250.8,161.1C1249,161.1 1247.5,162.6 1247.5,164.4C1247.6,166.2 1249,167.7 1250.8,167.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1136" d="M1260.3,167.7C1262.1,167.7 1263.6,166.2 1263.6,164.4C1263.6,162.6 1262.1,161.1 1260.3,161.1C1258.5,161.1 1257,162.6 1257,164.4C1257,166.2 1258.4,167.7 1260.3,167.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1138" d="M1269.7,167.7C1271.5,167.7 1273,166.2 1273,164.4C1273,162.6 1271.5,161.1 1269.7,161.1C1267.9,161.1 1266.4,162.6 1266.4,164.4C1266.4,166.2 1267.9,167.7 1269.7,167.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1140" d="M1279.2,167.7C1281,167.7 1282.5,166.2 1282.5,164.4C1282.5,162.5 1281,161 1279.2,161C1277.3,161 1275.8,162.5 1275.8,164.4C1275.8,166.2 1277.3,167.7 1279.2,167.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1142" d="M1288.6,167.3C1290.2,167.3 1291.5,166 1291.5,164.4C1291.5,162.8 1290.2,161.5 1288.6,161.5C1287,161.5 1285.7,162.8 1285.7,164.4C1285.7,166 1287,167.3 1288.6,167.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1144" d="M1298,167.9C1300,167.9 1301.5,166.3 1301.5,164.4C1301.5,162.4 1299.9,160.9 1298,160.9C1296.1,160.9 1294.5,162.5 1294.5,164.4C1294.5,166.3 1296.1,167.9 1298,167.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1146" d="M1307.5,167.8C1309.4,167.8 1310.9,166.3 1310.9,164.4C1310.9,162.5 1309.4,161 1307.5,161C1305.6,161 1304.1,162.5 1304.1,164.4C1304.1,166.3 1305.6,167.8 1307.5,167.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1210" d="M1156.5,176.7C1158.1,176.7 1159.4,175.4 1159.4,173.8C1159.4,172.2 1158.1,170.9 1156.5,170.9C1154.9,170.9 1153.6,172.2 1153.6,173.8C1153.6,175.4 1154.9,176.7 1156.5,176.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1212" d="M1166,176.7C1167.6,176.7 1168.9,175.4 1168.9,173.8C1168.9,172.2 1167.6,170.9 1166,170.9C1164.4,170.9 1163.1,172.2 1163.1,173.8C1163.1,175.4 1164.4,176.7 1166,176.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1214" d="M1175.4,176.7C1177,176.7 1178.3,175.4 1178.3,173.8C1178.3,172.2 1177,170.9 1175.4,170.9C1173.8,170.9 1172.5,172.2 1172.5,173.8C1172.5,175.4 1173.8,176.7 1175.4,176.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1216" d="M1184.8,176.7C1186.4,176.7 1187.7,175.4 1187.7,173.8C1187.7,172.2 1186.4,170.9 1184.8,170.9C1183.2,170.9 1181.9,172.2 1181.9,173.8C1181.9,175.4 1183.2,176.7 1184.8,176.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1218" d="M1213.1,176.7C1214.7,176.7 1216,175.4 1216,173.8C1216,172.2 1214.7,170.9 1213.1,170.9C1211.5,170.9 1210.2,172.2 1210.2,173.8C1210.2,175.4 1211.5,176.7 1213.1,176.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1220" d="M1222.5,176.7C1224.1,176.7 1225.4,175.4 1225.4,173.8C1225.4,172.2 1224.1,170.9 1222.5,170.9C1220.9,170.9 1219.6,172.2 1219.6,173.8C1219.7,175.4 1221,176.7 1222.5,176.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1222" d="M1232,177.5C1234,177.5 1235.7,175.8 1235.7,173.8C1235.7,171.7 1234,170.1 1232,170.1C1229.9,170.1 1228.3,171.8 1228.3,173.8C1228.3,175.9 1229.9,177.5 1232,177.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1224" d="M1241.4,177.8C1243.6,177.8 1245.4,176 1245.4,173.8C1245.4,171.6 1243.6,169.8 1241.4,169.8C1239.2,169.8 1237.4,171.6 1237.4,173.8C1237.4,176 1239.2,177.8 1241.4,177.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1226" d="M1250.8,177.8C1253,177.8 1254.8,176 1254.8,173.8C1254.8,171.6 1253,169.8 1250.8,169.8C1248.6,169.8 1246.8,171.6 1246.8,173.8C1246.8,176 1248.6,177.8 1250.8,177.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1228" d="M1260.3,177.2C1262.1,177.2 1263.6,175.7 1263.6,173.9C1263.6,172.1 1262.1,170.6 1260.3,170.6C1258.5,170.6 1257,172.1 1257,173.9C1257,175.7 1258.4,177.2 1260.3,177.2Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1230" d="M1269.7,176.7C1271.3,176.7 1272.6,175.4 1272.6,173.8C1272.6,172.2 1271.3,170.9 1269.7,170.9C1268.1,170.9 1266.8,172.2 1266.8,173.8C1266.8,175.4 1268.1,176.7 1269.7,176.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1232" d="M1279.2,176.7C1280.8,176.7 1282.1,175.4 1282.1,173.8C1282.1,172.2 1280.8,170.9 1279.2,170.9C1277.6,170.9 1276.3,172.2 1276.3,173.8C1276.3,175.4 1277.6,176.7 1279.2,176.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1234" d="M1288.6,176.7C1290.2,176.7 1291.5,175.4 1291.5,173.8C1291.5,172.2 1290.2,170.9 1288.6,170.9C1287,170.9 1285.7,172.2 1285.7,173.8C1285.7,175.4 1287,176.7 1288.6,176.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1236" d="M1298,177.4C1300,177.4 1301.5,175.8 1301.5,173.8C1301.5,171.9 1299.9,170.3 1298,170.3C1296.1,170.3 1294.5,171.9 1294.5,173.8C1294.5,175.8 1296.1,177.4 1298,177.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1238" d="M1307.5,177.2C1309.4,177.2 1310.9,175.7 1310.9,173.8C1310.9,171.9 1309.4,170.4 1307.5,170.4C1305.6,170.4 1304.1,171.9 1304.1,173.8C1304,175.7 1305.6,177.2 1307.5,177.2Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1302" d="M1156.5,186.1C1158.1,186.1 1159.4,184.8 1159.4,183.2C1159.4,181.6 1158.1,180.3 1156.5,180.3C1154.9,180.3 1153.6,181.6 1153.6,183.2C1153.6,184.9 1154.9,186.1 1156.5,186.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1304" d="M1166,186.4C1167.7,186.4 1169.2,185 1169.2,183.2C1169.2,181.4 1167.7,180 1166,180C1164.2,180 1162.8,181.4 1162.8,183.2C1162.8,185 1164.2,186.4 1166,186.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1306" d="M1175.4,186.1C1177,186.1 1178.3,184.8 1178.3,183.2C1178.3,181.6 1177,180.3 1175.4,180.3C1173.8,180.3 1172.5,181.6 1172.5,183.2C1172.5,184.9 1173.8,186.1 1175.4,186.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1308" d="M1184.8,186.1C1186.4,186.1 1187.7,184.8 1187.7,183.2C1187.7,181.6 1186.4,180.3 1184.8,180.3C1183.2,180.3 1181.9,181.6 1181.9,183.2C1181.9,184.9 1183.2,186.1 1184.8,186.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1310" d="M1194.3,187C1196.3,187 1198,185.3 1198,183.3C1198,181.2 1196.3,179.6 1194.3,179.6C1192.2,179.6 1190.6,181.3 1190.6,183.3C1190.5,185.3 1192.2,187 1194.3,187Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1312" d="M1203.7,186.2C1205.3,186.2 1206.7,184.9 1206.7,183.2C1206.7,181.6 1205.4,180.2 1203.7,180.2C1202.1,180.2 1200.7,181.5 1200.7,183.2C1200.7,184.9 1202.1,186.2 1203.7,186.2Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1314" d="M1213.1,186.1C1214.7,186.1 1216,184.8 1216,183.2C1216,181.6 1214.7,180.3 1213.1,180.3C1211.5,180.3 1210.2,181.6 1210.2,183.2C1210.2,184.9 1211.5,186.1 1213.1,186.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1316" d="M1222.5,186.1C1224.1,186.1 1225.4,184.8 1225.4,183.2C1225.4,181.6 1224.1,180.3 1222.5,180.3C1220.9,180.3 1219.6,181.6 1219.6,183.2C1219.7,184.9 1221,186.1 1222.5,186.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1318" d="M1232,187C1234,187 1235.7,185.3 1235.7,183.3C1235.7,181.2 1234,179.6 1232,179.6C1229.9,179.6 1228.3,181.3 1228.3,183.3C1228.3,185.3 1229.9,187 1232,187Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1320" d="M1241.4,186.6C1243.2,186.6 1244.7,185.1 1244.7,183.2C1244.7,181.3 1243.2,179.8 1241.4,179.8C1239.5,179.8 1238,181.3 1238,183.2C1238.1,185.1 1239.6,186.6 1241.4,186.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1322" d="M1250.8,186.5C1252.6,186.5 1254.1,185 1254.1,183.2C1254.1,181.4 1252.6,179.9 1250.8,179.9C1249,179.9 1247.5,181.4 1247.5,183.2C1247.6,185.1 1249,186.5 1250.8,186.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1324" d="M1260.3,186.6C1262.1,186.6 1263.6,185.1 1263.6,183.3C1263.6,181.5 1262.1,180 1260.3,180C1258.5,180 1257,181.5 1257,183.3C1257,185.1 1258.4,186.6 1260.3,186.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1326" d="M1269.7,186.6C1271.5,186.6 1273,185.1 1273,183.3C1273,181.5 1271.5,180 1269.7,180C1267.9,180 1266.4,181.5 1266.4,183.3C1266.4,185.1 1267.9,186.6 1269.7,186.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1328" d="M1279.2,186.1C1280.8,186.1 1282.1,184.8 1282.1,183.2C1282.1,181.6 1280.8,180.3 1279.2,180.3C1277.6,180.3 1276.3,181.6 1276.3,183.2C1276.3,184.9 1277.6,186.1 1279.2,186.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1330" d="M1288.6,186.6C1290.5,186.6 1292,185.1 1292,183.2C1292,181.3 1290.5,179.8 1288.6,179.8C1286.8,179.8 1285.3,181.3 1285.3,183.2C1285.2,185.1 1286.7,186.6 1288.6,186.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1332" d="M1298,186.7C1299.9,186.7 1301.4,185.2 1301.4,183.3C1301.4,181.4 1299.9,179.9 1298,179.9C1296.1,179.9 1294.6,181.4 1294.6,183.3C1294.6,185.1 1296.1,186.7 1298,186.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1334" d="M1307.5,186.7C1309.4,186.7 1310.9,185.2 1310.9,183.3C1310.9,181.4 1309.4,179.9 1307.5,179.9C1305.6,179.9 1304.1,181.4 1304.1,183.3C1304,185.1 1305.6,186.7 1307.5,186.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1398" d="M1166,195.6C1167.6,195.6 1168.9,194.3 1168.9,192.7C1168.9,191.1 1167.6,189.8 1166,189.8C1164.4,189.8 1163.1,191.1 1163.1,192.7C1163.1,194.3 1164.4,195.6 1166,195.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1400" d="M1175.4,195.6C1177,195.6 1178.3,194.3 1178.3,192.7C1178.3,191.1 1177,189.8 1175.4,189.8C1173.8,189.8 1172.5,191.1 1172.5,192.7C1172.5,194.3 1173.8,195.6 1175.4,195.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1402" d="M1194.3,195.6C1195.9,195.6 1197.2,194.3 1197.2,192.7C1197.2,191.1 1195.9,189.8 1194.3,189.8C1192.7,189.8 1191.4,191.1 1191.4,192.7C1191.4,194.3 1192.6,195.6 1194.3,195.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1404" d="M1203.7,195.6C1205.3,195.6 1206.6,194.3 1206.6,192.7C1206.6,191.1 1205.3,189.8 1203.7,189.8C1202.1,189.8 1200.8,191.1 1200.8,192.7C1200.8,194.3 1202.1,195.6 1203.7,195.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1406" d="M1213.1,195.6C1214.7,195.6 1216,194.3 1216,192.7C1216,191.1 1214.7,189.8 1213.1,189.8C1211.5,189.8 1210.2,191.1 1210.2,192.7C1210.2,194.3 1211.5,195.6 1213.1,195.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1408" d="M1222.5,195.6C1224.1,195.6 1225.4,194.3 1225.4,192.7C1225.4,191.1 1224.1,189.8 1222.5,189.8C1220.9,189.8 1219.6,191.1 1219.6,192.7C1219.7,194.3 1221,195.6 1222.5,195.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1410" d="M1232,195.6C1233.6,195.6 1234.9,194.3 1234.9,192.7C1234.9,191.1 1233.6,189.8 1232,189.8C1230.4,189.8 1229.1,191.1 1229.1,192.7C1229.1,194.3 1230.4,195.6 1232,195.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1412" d="M1241.4,196C1243.2,196 1244.7,194.5 1244.7,192.6C1244.7,190.8 1243.2,189.3 1241.4,189.3C1239.5,189.3 1238,190.8 1238,192.6C1238.1,194.5 1239.6,196 1241.4,196Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1414" d="M1250.8,196C1252.6,196 1254.1,194.5 1254.1,192.7C1254.1,190.9 1252.6,189.4 1250.8,189.4C1249,189.4 1247.5,190.9 1247.5,192.7C1247.6,194.5 1249,196 1250.8,196Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1416" d="M1260.3,196C1262.1,196 1263.6,194.5 1263.6,192.7C1263.6,190.9 1262.1,189.4 1260.3,189.4C1258.5,189.4 1257,190.9 1257,192.7C1257,194.5 1258.4,196 1260.3,196Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1418" d="M1269.7,196C1271.5,196 1273,194.5 1273,192.7C1273,190.9 1271.5,189.4 1269.7,189.4C1267.9,189.4 1266.4,190.9 1266.4,192.7C1266.4,194.5 1267.9,196 1269.7,196Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1420" d="M1279.2,196C1281,196 1282.5,194.5 1282.5,192.6C1282.5,190.8 1281,189.3 1279.2,189.3C1277.3,189.3 1275.8,190.8 1275.8,192.6C1275.8,194.5 1277.3,196 1279.2,196Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1422" d="M1288.6,196C1290.5,196 1292,194.5 1292,192.6C1292,190.8 1290.5,189.3 1288.6,189.3C1286.8,189.3 1285.3,190.8 1285.3,192.6C1285.2,194.5 1286.7,196 1288.6,196Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1424" d="M1298,196.1C1299.9,196.1 1301.4,194.6 1301.4,192.7C1301.4,190.8 1299.9,189.3 1298,189.3C1296.1,189.3 1294.6,190.8 1294.6,192.7C1294.6,194.6 1296.1,196.1 1298,196.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1426" d="M1307.5,196.1C1309.4,196.1 1310.9,194.6 1310.9,192.7C1310.9,190.8 1309.4,189.3 1307.5,189.3C1305.6,189.3 1304.1,190.8 1304.1,192.7C1304.1,194.6 1305.6,196.1 1307.5,196.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1490" d="M1118.8,205C1120.4,205 1121.7,203.7 1121.7,202.1C1121.7,200.5 1120.4,199.2 1118.8,199.2C1117.2,199.2 1115.9,200.5 1115.9,202.1C1115.9,203.7 1117.2,205 1118.8,205Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1492" d="M1128.2,205C1129.8,205 1131.1,203.7 1131.1,202.1C1131.1,200.5 1129.8,199.2 1128.2,199.2C1126.6,199.2 1125.3,200.5 1125.3,202.1C1125.3,203.7 1126.6,205 1128.2,205Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1494" d="M1137.6,205C1139.2,205 1140.5,203.7 1140.5,202.1C1140.5,200.5 1139.2,199.2 1137.6,199.2C1136,199.2 1134.7,200.5 1134.7,202.1C1134.8,203.7 1136.1,205 1137.6,205Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1496" d="M1166,205C1167.6,205 1168.9,203.7 1168.9,202.1C1168.9,200.5 1167.6,199.2 1166,199.2C1164.4,199.2 1163.1,200.5 1163.1,202.1C1163.1,203.7 1164.4,205 1166,205Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1498" d="M1175.4,205.1C1177,205.1 1178.4,203.8 1178.4,202.2C1178.4,200.6 1177.1,199.3 1175.4,199.3C1173.8,199.3 1172.5,200.6 1172.5,202.2C1172.5,203.7 1173.8,205.1 1175.4,205.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1500" d="M1184.8,205.1C1186.5,205.1 1187.8,203.7 1187.8,202.1C1187.8,200.4 1186.4,199.1 1184.8,199.1C1183.1,199.1 1181.8,200.4 1181.8,202.1C1181.8,203.8 1183.2,205.1 1184.8,205.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1502" d="M1194.3,205.4C1196.1,205.4 1197.5,203.9 1197.5,202.2C1197.5,200.4 1196,199 1194.3,199C1192.6,199 1191.1,200.4 1191.1,202.2C1191,203.9 1192.5,205.4 1194.3,205.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1504" d="M1203.7,205C1205.3,205 1206.6,203.7 1206.6,202.1C1206.6,200.5 1205.3,199.2 1203.7,199.2C1202.1,199.2 1200.8,200.5 1200.8,202.1C1200.8,203.7 1202.1,205 1203.7,205Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1506" d="M1213.1,205C1214.7,205 1216,203.7 1216,202.1C1216,200.5 1214.7,199.2 1213.1,199.2C1211.5,199.2 1210.2,200.5 1210.2,202.1C1210.2,203.7 1211.5,205 1213.1,205Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1508" d="M1222.5,206.1C1224.7,206.1 1226.4,204.3 1226.4,202.2C1226.4,200 1224.7,198.3 1222.5,198.3C1220.4,198.3 1218.6,200.1 1218.6,202.2C1218.6,204.3 1220.4,206.1 1222.5,206.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1510" d="M1232,205.4C1233.8,205.4 1235.2,203.9 1235.2,202.2C1235.2,200.4 1233.7,199 1232,199C1230.3,199 1228.8,200.4 1228.8,202.2C1228.8,203.9 1230.2,205.4 1232,205.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1512" d="M1241.4,205.4C1243.2,205.4 1244.6,203.9 1244.6,202.2C1244.6,200.4 1243.1,199 1241.4,199C1239.6,199 1238.2,200.4 1238.2,202.2C1238.2,203.9 1239.6,205.4 1241.4,205.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1514" d="M1250.8,205.4C1252.6,205.4 1254.1,203.9 1254.1,202.1C1254.1,200.3 1252.6,198.8 1250.8,198.8C1249,198.8 1247.5,200.3 1247.5,202.1C1247.6,203.9 1249,205.4 1250.8,205.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1516" d="M1260.3,205.4C1262.1,205.4 1263.6,203.9 1263.6,202.1C1263.6,200.3 1262.1,198.8 1260.3,198.8C1258.5,198.8 1257,200.3 1257,202.1C1257,204 1258.4,205.4 1260.3,205.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1518" d="M1269.7,205.4C1271.5,205.4 1273,203.9 1273,202.1C1273,200.3 1271.5,198.8 1269.7,198.8C1267.9,198.8 1266.4,200.3 1266.4,202.1C1266.4,204 1267.9,205.4 1269.7,205.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1520" d="M1279.2,205.5C1281,205.5 1282.5,204 1282.5,202.1C1282.5,200.3 1281,198.7 1279.2,198.7C1277.3,198.7 1275.8,200.2 1275.8,202.1C1275.8,204 1277.3,205.5 1279.2,205.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1522" d="M1288.6,205.5C1290.5,205.5 1292,204 1292,202.1C1292,200.3 1290.5,198.7 1288.6,198.7C1286.8,198.7 1285.3,200.2 1285.3,202.1C1285.2,204 1286.7,205.5 1288.6,205.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1524" d="M1298,205.5C1299.9,205.5 1301.4,204 1301.4,202.1C1301.4,200.2 1299.9,198.7 1298,198.7C1296.1,198.7 1294.6,200.2 1294.6,202.1C1294.6,204 1296.1,205.5 1298,205.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1526" d="M1307.5,205.5C1309.4,205.5 1310.9,204 1310.9,202.1C1310.9,200.2 1309.4,198.7 1307.5,198.7C1305.6,198.7 1304.1,200.2 1304.1,202.1C1304,204 1305.6,205.5 1307.5,205.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1590" d="M1081,214.5C1082.6,214.5 1083.9,213.2 1083.9,211.6C1083.9,210 1082.6,208.7 1081,208.7C1079.4,208.7 1078.1,210 1078.1,211.6C1078.2,213.1 1079.5,214.5 1081,214.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1592" d="M1090.5,215.6C1092.7,215.6 1094.5,213.8 1094.5,211.6C1094.5,209.4 1092.7,207.6 1090.5,207.6C1088.3,207.6 1086.5,209.4 1086.5,211.6C1086.5,213.8 1088.3,215.6 1090.5,215.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1594" d="M1156.5,214.5C1158.1,214.5 1159.4,213.2 1159.4,211.6C1159.4,210 1158.1,208.7 1156.5,208.7C1154.9,208.7 1153.6,210 1153.6,211.6C1153.6,213.1 1154.9,214.5 1156.5,214.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1596" d="M1166,214.5C1167.6,214.5 1168.9,213.2 1168.9,211.6C1168.9,210 1167.6,208.7 1166,208.7C1164.4,208.7 1163.1,210 1163.1,211.6C1163.1,213.1 1164.4,214.5 1166,214.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1598" d="M1184.8,214.5C1186.4,214.5 1187.7,213.2 1187.7,211.6C1187.7,210 1186.4,208.7 1184.8,208.7C1183.2,208.7 1181.9,210 1181.9,211.6C1181.9,213.1 1183.2,214.5 1184.8,214.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1600" d="M1194.3,214.5C1195.9,214.5 1197.2,213.2 1197.2,211.6C1197.2,210 1195.9,208.7 1194.3,208.7C1192.7,208.7 1191.4,210 1191.4,211.6C1191.4,213.1 1192.6,214.5 1194.3,214.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1602" d="M1203.7,214.6C1205.4,214.6 1206.8,213.2 1206.8,211.5C1206.8,209.8 1205.4,208.4 1203.7,208.4C1202,208.4 1200.6,209.8 1200.6,211.5C1200.6,213.3 1202,214.6 1203.7,214.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1604" d="M1213.1,214.8C1214.9,214.8 1216.3,213.4 1216.3,211.6C1216.3,209.8 1214.9,208.4 1213.1,208.4C1211.3,208.4 1209.9,209.8 1209.9,211.6C1209.9,213.3 1211.3,214.8 1213.1,214.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1606" d="M1222.5,214.8C1224.3,214.8 1225.7,213.4 1225.7,211.6C1225.7,209.8 1224.2,208.4 1222.5,208.4C1220.7,208.4 1219.3,209.8 1219.3,211.6C1219.3,213.3 1220.8,214.8 1222.5,214.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1608" d="M1232,214.5C1233.6,214.5 1234.9,213.2 1234.9,211.6C1234.9,210 1233.6,208.7 1232,208.7C1230.4,208.7 1229.1,210 1229.1,211.6C1229.1,213.1 1230.4,214.5 1232,214.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1610" d="M1241.4,214.8C1243.2,214.8 1244.6,213.4 1244.6,211.6C1244.6,209.8 1243.1,208.4 1241.4,208.4C1239.6,208.4 1238.2,209.8 1238.2,211.6C1238.2,213.3 1239.6,214.8 1241.4,214.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1612" d="M1250.8,214.8C1252.6,214.8 1254.1,213.3 1254.1,211.5C1254.1,209.7 1252.6,208.2 1250.8,208.2C1249,208.2 1247.5,209.7 1247.5,211.5C1247.6,213.4 1249,214.8 1250.8,214.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1614" d="M1260.3,214.9C1262.1,214.9 1263.6,213.4 1263.6,211.6C1263.6,209.8 1262.1,208.3 1260.3,208.3C1258.5,208.3 1257,209.8 1257,211.6C1257,213.4 1258.4,214.9 1260.3,214.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1616" d="M1269.7,214.9C1271.5,214.9 1273,213.4 1273,211.6C1273,209.8 1271.5,208.3 1269.7,208.3C1267.9,208.3 1266.4,209.8 1266.4,211.6C1266.4,213.4 1267.9,214.9 1269.7,214.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1618" d="M1279.2,214.9C1281,214.9 1282.5,213.4 1282.5,211.5C1282.5,209.7 1281,208.2 1279.2,208.2C1277.3,208.2 1275.8,209.7 1275.8,211.5C1275.8,213.4 1277.3,214.9 1279.2,214.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1620" d="M1288.6,214.9C1290.5,214.9 1292,213.4 1292,211.5C1292,209.7 1290.5,208.2 1288.6,208.2C1286.8,208.2 1285.3,209.7 1285.3,211.5C1285.2,213.4 1286.7,214.9 1288.6,214.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1622" d="M1298,215C1299.9,215 1301.4,213.5 1301.4,211.6C1301.4,209.7 1299.9,208.2 1298,208.2C1296.1,208.2 1294.6,209.7 1294.6,211.6C1294.6,213.4 1296.1,215 1298,215Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1624" d="M1307.5,215C1309.4,215 1310.9,213.5 1310.9,211.6C1310.9,209.7 1309.4,208.2 1307.5,208.2C1305.6,208.2 1304.1,209.7 1304.1,211.6C1304,213.4 1305.6,215 1307.5,215Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1688" d="M1194.3,223.9C1195.9,223.9 1197.2,222.6 1197.2,221C1197.2,219.4 1195.9,218.1 1194.3,218.1C1192.7,218.1 1191.4,219.4 1191.4,221C1191.4,222.6 1192.6,223.9 1194.3,223.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1690" d="M1213.1,223.9C1214.7,223.9 1216,222.6 1216,221C1216,219.4 1214.7,218.1 1213.1,218.1C1211.5,218.1 1210.2,219.4 1210.2,221C1210.2,222.6 1211.5,223.9 1213.1,223.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1692" d="M1222.5,223.9C1224.1,223.9 1225.4,222.6 1225.4,221C1225.4,219.4 1224.1,218.1 1222.5,218.1C1220.9,218.1 1219.6,219.4 1219.6,221C1219.6,222.6 1221,223.9 1222.5,223.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1694" d="M1232,223.9C1233.6,223.9 1234.9,222.6 1234.9,221C1234.9,219.4 1233.6,218.1 1232,218.1C1230.4,218.1 1229.1,219.4 1229.1,221C1229.1,222.6 1230.4,223.9 1232,223.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1696" d="M1241.4,223.9C1243,223.9 1244.3,222.6 1244.3,221C1244.3,219.4 1243,218.1 1241.4,218.1C1239.8,218.1 1238.5,219.4 1238.5,221C1238.5,222.6 1239.8,223.9 1241.4,223.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1698" d="M1250.8,224.8C1252.9,224.8 1254.6,223.1 1254.6,221C1254.6,218.9 1252.9,217.2 1250.8,217.2C1248.7,217.2 1247,218.9 1247,221C1247.1,223.1 1248.8,224.8 1250.8,224.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1700" d="M1260.3,223.9C1261.9,223.9 1263.2,222.6 1263.2,221C1263.2,219.4 1261.9,218.1 1260.3,218.1C1258.7,218.1 1257.4,219.4 1257.4,221C1257.4,222.6 1258.7,223.9 1260.3,223.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1702" d="M1269.7,223.9C1271.3,223.9 1272.6,222.6 1272.6,221C1272.6,219.4 1271.3,218.1 1269.7,218.1C1268.1,218.1 1266.8,219.4 1266.8,221C1266.8,222.6 1268.1,223.9 1269.7,223.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1704" d="M1279.2,223.9C1280.8,223.9 1282.1,222.6 1282.1,221C1282.1,219.4 1280.8,218.1 1279.2,218.1C1277.6,218.1 1276.3,219.4 1276.3,221C1276.3,222.6 1277.6,223.9 1279.2,223.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1706" d="M1288.6,224.4C1290.5,224.4 1292,222.9 1292,221C1292,219.2 1290.5,217.6 1288.6,217.6C1286.8,217.6 1285.3,219.1 1285.3,221C1285.2,222.8 1286.7,224.4 1288.6,224.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1708" d="M1298,224.4C1299.9,224.4 1301.4,222.9 1301.4,221C1301.4,219.1 1299.9,217.6 1298,217.6C1296.1,217.6 1294.6,219.1 1294.6,221C1294.6,222.9 1296.1,224.4 1298,224.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1710" d="M1307.5,224.4C1309.4,224.4 1310.9,222.9 1310.9,221C1310.9,219.1 1309.4,217.6 1307.5,217.6C1305.6,217.6 1304.1,219.1 1304.1,221C1304.1,222.9 1305.6,224.4 1307.5,224.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1774" d="M1175.4,233.3C1177,233.3 1178.3,232 1178.3,230.4C1178.3,228.8 1177,227.5 1175.4,227.5C1173.8,227.5 1172.5,228.8 1172.5,230.4C1172.5,232 1173.8,233.3 1175.4,233.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1776" d="M1184.8,233.9C1186.7,233.9 1188.3,232.3 1188.3,230.4C1188.3,228.5 1186.8,226.9 1184.8,226.9C1182.9,226.9 1181.3,228.5 1181.3,230.4C1181.4,232.3 1182.9,233.9 1184.8,233.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1778" d="M1194.3,233.3C1195.9,233.3 1197.2,232 1197.2,230.4C1197.2,228.8 1195.9,227.5 1194.3,227.5C1192.7,227.5 1191.4,228.8 1191.4,230.4C1191.4,232 1192.6,233.3 1194.3,233.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1780" d="M1203.7,233.3C1205.3,233.3 1206.6,232 1206.6,230.4C1206.6,228.8 1205.3,227.5 1203.7,227.5C1202.1,227.5 1200.8,228.8 1200.8,230.4C1200.8,232 1202.1,233.3 1203.7,233.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1782" d="M1213.1,233.3C1214.7,233.3 1216,232 1216,230.4C1216,228.8 1214.7,227.5 1213.1,227.5C1211.5,227.5 1210.2,228.8 1210.2,230.4C1210.2,232 1211.5,233.3 1213.1,233.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1784" d="M1222.5,233.3C1224.1,233.3 1225.4,232 1225.4,230.4C1225.4,228.8 1224.1,227.5 1222.5,227.5C1220.9,227.5 1219.6,228.8 1219.6,230.4C1219.7,232 1221,233.3 1222.5,233.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1786" d="M1232,233.5C1233.7,233.5 1235.1,232.1 1235.1,230.4C1235.1,228.7 1233.7,227.3 1232,227.3C1230.3,227.3 1228.9,228.7 1228.9,230.4C1228.9,232.1 1230.3,233.5 1232,233.5Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1788" d="M1241.4,233.3C1243,233.3 1244.3,232 1244.3,230.4C1244.3,228.8 1243,227.5 1241.4,227.5C1239.8,227.5 1238.5,228.8 1238.5,230.4C1238.6,232 1239.8,233.3 1241.4,233.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1790" d="M1250.8,233.3C1252.4,233.3 1253.7,232 1253.7,230.4C1253.7,228.8 1252.4,227.5 1250.8,227.5C1249.2,227.5 1247.9,228.8 1247.9,230.4C1248,232 1249.3,233.3 1250.8,233.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1792" d="M1260.3,233.3C1261.9,233.3 1263.2,232 1263.2,230.4C1263.2,228.8 1261.9,227.5 1260.3,227.5C1258.7,227.5 1257.4,228.8 1257.4,230.4C1257.4,232 1258.7,233.3 1260.3,233.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1794" d="M1269.7,233.3C1271.3,233.3 1272.6,232 1272.6,230.4C1272.6,228.8 1271.3,227.5 1269.7,227.5C1268.1,227.5 1266.8,228.8 1266.8,230.4C1266.8,232 1268.1,233.3 1269.7,233.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1796" d="M1279.2,234.4C1281.4,234.4 1283.2,232.6 1283.2,230.4C1283.2,228.2 1281.4,226.4 1279.2,226.4C1277,226.4 1275.2,228.2 1275.2,230.4C1275.1,232.6 1276.9,234.4 1279.2,234.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1798" d="M1288.6,233.8C1290.5,233.8 1292,232.3 1292,230.4C1292,228.6 1290.5,227.1 1288.6,227.1C1286.8,227.1 1285.3,228.6 1285.3,230.4C1285.2,232.3 1286.7,233.8 1288.6,233.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1800" d="M1298,233.8C1299.9,233.8 1301.4,232.3 1301.4,230.4C1301.4,228.5 1299.9,227 1298,227C1296.1,227 1294.6,228.5 1294.6,230.4C1294.6,232.3 1296.1,233.8 1298,233.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1802" d="M1307.5,233.8C1309.4,233.8 1310.9,232.3 1310.9,230.4C1310.9,228.5 1309.4,227 1307.5,227C1305.6,227 1304.1,228.5 1304.1,230.4C1304,232.3 1305.6,233.8 1307.5,233.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1866" d="M1175.4,242.7C1177,242.7 1178.3,241.4 1178.3,239.8C1178.3,238.2 1177,236.9 1175.4,236.9C1173.8,236.9 1172.5,238.2 1172.5,239.8C1172.5,241.5 1173.8,242.7 1175.4,242.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1868" d="M1184.8,242.8C1186.4,242.8 1187.8,241.5 1187.8,239.9C1187.8,238.3 1186.5,237 1184.8,237C1183.2,237 1181.9,238.3 1181.9,239.9C1181.9,241.5 1183.2,242.8 1184.8,242.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1870" d="M1194.3,242.7C1195.9,242.7 1197.2,241.4 1197.2,239.8C1197.2,238.2 1195.9,236.9 1194.3,236.9C1192.7,236.9 1191.4,238.2 1191.4,239.8C1191.4,241.5 1192.6,242.7 1194.3,242.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1872" d="M1203.7,242.7C1205.3,242.7 1206.6,241.4 1206.6,239.8C1206.6,238.2 1205.3,236.9 1203.7,236.9C1202.1,236.9 1200.8,238.2 1200.8,239.8C1200.8,241.5 1202.1,242.7 1203.7,242.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1874" d="M1213.1,242.7C1214.7,242.7 1216,241.4 1216,239.8C1216,238.2 1214.7,236.9 1213.1,236.9C1211.5,236.9 1210.2,238.2 1210.2,239.8C1210.2,241.5 1211.5,242.7 1213.1,242.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1876" d="M1222.5,242.7C1224.1,242.7 1225.4,241.4 1225.4,239.8C1225.4,238.2 1224.1,236.9 1222.5,236.9C1220.9,236.9 1219.6,238.2 1219.6,239.8C1219.7,241.5 1221,242.7 1222.5,242.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1878" d="M1232,242.7C1233.6,242.7 1234.9,241.4 1234.9,239.8C1234.9,238.2 1233.6,236.9 1232,236.9C1230.4,236.9 1229.1,238.2 1229.1,239.8C1229.1,241.5 1230.4,242.7 1232,242.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1880" d="M1241.4,243.1C1243.2,243.1 1244.6,241.7 1244.6,239.9C1244.6,238.1 1243.1,236.7 1241.4,236.7C1239.6,236.7 1238.2,238.1 1238.2,239.9C1238.2,241.7 1239.6,243.1 1241.4,243.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1882" d="M1250.8,243.1C1252.6,243.1 1254.1,241.6 1254.1,239.8C1254.1,238 1252.6,236.5 1250.8,236.5C1249,236.5 1247.5,238 1247.5,239.8C1247.5,241.6 1249,243.1 1250.8,243.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1884" d="M1260.3,242.7C1261.9,242.7 1263.2,241.4 1263.2,239.8C1263.2,238.2 1261.9,236.9 1260.3,236.9C1258.7,236.9 1257.4,238.2 1257.4,239.8C1257.4,241.5 1258.7,242.7 1260.3,242.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1886" d="M1269.7,242.8C1271.3,242.8 1272.7,241.5 1272.7,239.8C1272.7,238.2 1271.4,236.8 1269.7,236.8C1268,236.8 1266.7,238.1 1266.7,239.8C1266.8,241.5 1268.1,242.8 1269.7,242.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1888" d="M1279.2,243.6C1281.2,243.6 1282.9,241.9 1282.9,239.9C1282.9,237.8 1281.2,236.2 1279.2,236.2C1277.1,236.2 1275.5,237.9 1275.5,239.9C1275.4,241.9 1277.1,243.6 1279.2,243.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1890" d="M1288.6,243.2C1290.5,243.2 1292,241.7 1292,239.8C1292,238 1290.5,236.4 1288.6,236.4C1286.8,236.4 1285.3,237.9 1285.3,239.8C1285.2,241.7 1286.7,243.2 1288.6,243.2Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1892" d="M1298,243.3C1299.9,243.3 1301.4,241.8 1301.4,239.9C1301.4,238 1299.9,236.5 1298,236.5C1296.1,236.5 1294.6,238 1294.6,239.9C1294.6,241.8 1296.1,243.3 1298,243.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1894" d="M1307.5,243.3C1309.4,243.3 1310.9,241.8 1310.9,239.9C1310.9,238 1309.4,236.5 1307.5,236.5C1305.6,236.5 1304.1,238 1304.1,239.9C1304.1,241.8 1305.6,243.3 1307.5,243.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1972" d="M1203.7,253.3C1205.9,253.3 1207.7,251.5 1207.7,249.3C1207.7,247.1 1205.9,245.3 1203.7,245.3C1201.5,245.3 1199.7,247.1 1199.7,249.3C1199.7,251.5 1201.5,253.3 1203.7,253.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1976" d="M1222.5,253.3C1224.7,253.3 1226.5,251.5 1226.5,249.3C1226.5,247.1 1224.7,245.3 1222.5,245.3C1220.3,245.3 1218.5,247.1 1218.5,249.3C1218.6,251.5 1220.4,253.3 1222.5,253.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1982" d="M1250.8,252.6C1252.6,252.6 1254.1,251.1 1254.1,249.3C1254.1,247.5 1252.6,246 1250.8,246C1249,246 1247.5,247.5 1247.5,249.3C1247.6,251.1 1249,252.6 1250.8,252.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1984" d="M1260.3,252.6C1262.1,252.6 1263.6,251.1 1263.6,249.3C1263.6,247.5 1262.1,246 1260.3,246C1258.5,246 1257,247.5 1257,249.3C1257,251.1 1258.4,252.6 1260.3,252.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1988" d="M1279.2,253C1281.2,253 1282.9,251.3 1282.9,249.3C1282.9,247.3 1281.2,245.6 1279.2,245.6C1277.1,245.6 1275.5,247.3 1275.5,249.3C1275.4,251.3 1277.1,253 1279.2,253Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1990" d="M1288.6,252.6C1290.5,252.6 1292,251.1 1292,249.2C1292,247.4 1290.5,245.9 1288.6,245.9C1286.8,245.9 1285.3,247.4 1285.3,249.2C1285.2,251.1 1286.7,252.6 1288.6,252.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1992" d="M1298,252.7C1299.9,252.7 1301.4,251.2 1301.4,249.3C1301.4,247.4 1299.9,245.9 1298,245.9C1296.1,245.9 1294.6,247.4 1294.6,249.3C1294.6,251.2 1296.1,252.7 1298,252.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path1994" d="M1307.5,252.7C1309.4,252.7 1310.9,251.2 1310.9,249.3C1310.9,247.4 1309.4,245.9 1307.5,245.9C1305.6,245.9 1304.1,247.4 1304.1,249.3C1304,251.2 1305.6,252.7 1307.5,252.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
</g>
<g id="g26674" transform="matrix(5.83508,0,0,5.79928,-2923.37,-686.141)">
<path id="path15294" d="M586,223.7C584.4,223.7 583.1,225 583.1,226.6C583.1,228.2 584.4,229.5 586,229.5C587.6,229.5 588.9,228.2 588.9,226.6C588.8,225 587.6,223.7 586,223.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15296" d="M576.5,223.1C574.6,223.1 573,224.7 573,226.6C573,228.5 574.6,230.1 576.5,230.1C578.4,230.1 580,228.5 580,226.6C580,224.7 578.5,223.1 576.5,223.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15506" d="M586,204.9C584.4,204.9 583.1,206.2 583.1,207.8C583.1,209.4 584.4,210.7 586,210.7C587.6,210.7 588.9,209.4 588.9,207.8C588.8,206.2 587.6,204.9 586,204.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15508" d="M576.5,204.9C574.9,204.9 573.6,206.2 573.6,207.8C573.6,209.4 574.9,210.7 576.5,210.7C578.1,210.7 579.4,209.4 579.4,207.8C579.4,206.2 578.1,204.9 576.5,204.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15510" d="M519.9,204.9C518.3,204.9 517,206.2 517,207.8C517,209.4 518.3,210.7 519.9,210.7C521.5,210.7 522.8,209.4 522.8,207.8C522.8,206.2 521.5,204.9 519.9,204.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15512" d="M510.5,204.9C508.9,204.9 507.6,206.2 507.6,207.8C507.6,209.4 508.9,210.7 510.5,210.7C512.1,210.7 513.4,209.4 513.4,207.8C513.4,206.2 512.1,204.9 510.5,204.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15634" d="M567.1,195.4C565.5,195.4 564.2,196.7 564.2,198.3C564.2,199.9 565.5,201.2 567.1,201.2C568.7,201.2 570,199.9 570,198.3C570,196.7 568.7,195.4 567.1,195.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15636" d="M538.8,195.4C537.2,195.4 535.9,196.7 535.9,198.3C535.9,199.9 537.2,201.2 538.8,201.2C540.4,201.2 541.7,199.9 541.7,198.3C541.7,196.7 540.4,195.4 538.8,195.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15638" d="M519.9,195.4C518.3,195.4 517,196.7 517,198.3C517,199.9 518.3,201.2 519.9,201.2C521.5,201.2 522.8,199.9 522.8,198.3C522.8,196.7 521.5,195.4 519.9,195.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<circle id="circle15640" cx="510.5" cy="198.3" r="3" style="fill:rgb(76,167,217);"/>
<path id="path15766" d="M595.4,186C593.8,186 592.5,187.3 592.5,188.9C592.5,190.5 593.8,191.8 595.4,191.8C597,191.8 598.3,190.5 598.3,188.9C598.3,187.3 597,186 595.4,186Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15768" d="M567.1,186C565.5,186 564.2,187.3 564.2,188.9C564.2,190.5 565.5,191.8 567.1,191.8C568.7,191.8 570,190.5 570,188.9C570,187.3 568.7,186 567.1,186Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15770" d="M548.2,186C546.6,186 545.3,187.3 545.3,188.9C545.3,190.5 546.6,191.8 548.2,191.8C549.8,191.8 551.1,190.5 551.1,188.9C551.1,187.3 549.8,186 548.2,186Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15772" d="M538.8,186C537.2,186 535.9,187.3 535.9,188.9C535.9,190.5 537.2,191.8 538.8,191.8C540.4,191.8 541.7,190.5 541.7,188.9C541.7,187.3 540.4,186 538.8,186Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15774" d="M529.4,185C527.3,185 525.5,186.7 525.5,188.9C525.5,191 527.2,192.8 529.4,192.8C531.5,192.8 533.3,191.1 533.3,188.9C533.2,186.7 531.5,185 529.4,185Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15776" d="M519.9,185.7C518.1,185.7 516.7,187.1 516.7,188.9C516.7,190.7 518.1,192.1 519.9,192.1C521.7,192.1 523.1,190.7 523.1,188.9C523.1,187.1 521.7,185.7 519.9,185.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15778" d="M510.5,184.9C508.3,184.9 506.5,186.7 506.5,188.9C506.5,191.1 508.3,192.9 510.5,192.9C512.7,192.9 514.5,191.1 514.5,188.9C514.5,186.7 512.7,184.9 510.5,184.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15780" d="M501.1,186C499.5,186 498.2,187.3 498.2,188.9C498.2,190.5 499.5,191.8 501.1,191.8C502.7,191.8 504,190.5 504,188.9C503.9,187.3 502.6,186 501.1,186Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15904" d="M595.4,176.6C593.8,176.6 592.5,177.9 592.5,179.5C592.5,181.1 593.8,182.4 595.4,182.4C597,182.4 598.3,181.1 598.3,179.5C598.3,177.9 597,176.6 595.4,176.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15906" d="M576.5,176.6C574.9,176.6 573.6,177.9 573.6,179.5C573.6,181.1 574.9,182.4 576.5,182.4C578.1,182.4 579.4,181.1 579.4,179.5C579.4,177.9 578.1,176.6 576.5,176.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15908" d="M567.1,176.6C565.5,176.6 564.2,177.9 564.2,179.5C564.2,181.1 565.5,182.4 567.1,182.4C568.7,182.4 570,181.1 570,179.5C570,177.9 568.7,176.6 567.1,176.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15910" d="M557.7,176.4C556,176.4 554.6,177.8 554.6,179.5C554.6,181.2 556,182.6 557.7,182.6C559.4,182.6 560.8,181.2 560.8,179.5C560.7,177.7 559.4,176.4 557.7,176.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15912" d="M548.2,175.4C546,175.4 544.2,177.2 544.2,179.4C544.2,181.6 546,183.4 548.2,183.4C550.4,183.4 552.2,181.6 552.2,179.4C552.2,177.2 550.4,175.4 548.2,175.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15914" d="M538.8,176.6C537.2,176.6 535.9,177.9 535.9,179.5C535.9,181.1 537.2,182.4 538.8,182.4C540.4,182.4 541.7,181.1 541.7,179.5C541.7,177.9 540.4,176.6 538.8,176.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15916" d="M529.4,176.6C527.8,176.6 526.5,177.9 526.5,179.5C526.5,181.1 527.8,182.4 529.4,182.4C531,182.4 532.3,181.1 532.3,179.5C532.2,177.9 531,176.6 529.4,176.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15918" d="M519.9,176.4C518.2,176.4 516.9,177.7 516.9,179.4C516.9,181.1 518.3,182.4 519.9,182.4C521.6,182.4 522.9,181.1 522.9,179.4C522.9,177.8 521.6,176.4 519.9,176.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15920" d="M510.5,176.2C508.7,176.2 507.3,177.6 507.3,179.4C507.3,181.2 508.7,182.6 510.5,182.6C512.3,182.6 513.7,181.2 513.7,179.4C513.7,177.7 512.3,176.2 510.5,176.2Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path15922" d="M501.1,176.6C499.5,176.6 498.2,177.9 498.2,179.5C498.2,181.1 499.5,182.4 501.1,182.4C502.7,182.4 504,181.1 504,179.5C503.9,177.9 502.6,176.6 501.1,176.6Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16048" d="M652,167.1C650.4,167.1 649.1,168.4 649.1,170C649.1,171.6 650.4,172.9 652,172.9C653.6,172.9 654.9,171.6 654.9,170C654.9,168.4 653.6,167.1 652,167.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16050" d="M623.7,167.1C622.1,167.1 620.8,168.4 620.8,170C620.8,171.6 622.1,172.9 623.7,172.9C625.3,172.9 626.6,171.6 626.6,170C626.6,168.4 625.3,167.1 623.7,167.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16052" d="M614.3,167.1C612.7,167.1 611.4,168.4 611.4,170C611.4,171.6 612.7,172.9 614.3,172.9C615.9,172.9 617.2,171.6 617.2,170C617.2,168.4 615.8,167.1 614.3,167.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16054" d="M604.8,167.1C603.2,167.1 601.9,168.4 601.9,170C601.9,171.6 603.2,172.9 604.8,172.9C606.4,172.9 607.7,171.6 607.7,170C607.7,168.4 606.4,167.1 604.8,167.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16056" d="M595.4,167.1C593.8,167.1 592.5,168.4 592.5,170C592.5,171.6 593.8,172.9 595.4,172.9C597,172.9 598.3,171.6 598.3,170C598.3,168.4 597,167.1 595.4,167.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16058" d="M586,166.3C584,166.3 582.3,168 582.3,170C582.3,172.1 584,173.7 586,173.7C588,173.7 589.7,172 589.7,170C589.6,168 588,166.3 586,166.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16060" d="M576.5,167.1C574.9,167.1 573.6,168.4 573.6,170C573.6,171.6 574.9,172.9 576.5,172.9C578.1,172.9 579.4,171.6 579.4,170C579.4,168.4 578.1,167.1 576.5,167.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16062" d="M567.1,167C565.4,167 564,168.4 564,170.1C564,171.8 565.4,173.2 567.1,173.2C568.8,173.2 570.2,171.8 570.2,170.1C570.2,168.3 568.8,167 567.1,167Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16064" d="M557.7,166.7C555.9,166.7 554.4,168.2 554.4,170C554.4,171.9 555.9,173.4 557.7,173.4C559.6,173.4 561.1,171.9 561.1,170C561,168.2 559.5,166.7 557.7,166.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16066" d="M548.2,166.2C546.1,166.2 544.4,167.9 544.4,170C544.4,172.1 546.1,173.8 548.2,173.8C550.3,173.8 552,172.1 552,170C552,167.9 550.3,166.2 548.2,166.2Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16068" d="M538.8,166C536.6,166 534.8,167.8 534.8,170C534.8,172.2 536.6,174 538.8,174C541,174 542.8,172.2 542.8,170C542.8,167.8 541,166 538.8,166Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16070" d="M529.4,167.1C527.8,167.1 526.5,168.4 526.5,170C526.5,171.6 527.8,172.9 529.4,172.9C531,172.9 532.3,171.6 532.3,170C532.2,168.4 531,167.1 529.4,167.1Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16072" d="M519.9,167C518.2,167 516.9,168.4 516.9,170C516.9,171.7 518.3,173 519.9,173C521.6,173 522.9,171.7 522.9,170C522.9,168.4 521.6,167 519.9,167Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16074" d="M510.5,166.8C508.7,166.8 507.3,168.2 507.3,170C507.3,171.8 508.7,173.2 510.5,173.2C512.3,173.2 513.7,171.8 513.7,170C513.7,168.3 512.3,166.8 510.5,166.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16076" d="M501.1,166.7C499.3,166.7 497.8,168.2 497.8,170C497.8,171.9 499.3,173.4 501.1,173.4C503,173.4 504.5,171.9 504.5,170C504.4,168.2 502.9,166.7 501.1,166.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16158" d="M614.3,157.7C612.7,157.7 611.4,159 611.4,160.6C611.4,162.2 612.7,163.5 614.3,163.5C615.9,163.5 617.2,162.2 617.2,160.6C617.2,159 615.8,157.7 614.3,157.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16160" d="M604.8,157.7C603.2,157.7 601.9,159 601.9,160.6C601.9,162.2 603.2,163.5 604.8,163.5C606.4,163.5 607.7,162.2 607.7,160.6C607.8,159 606.4,157.7 604.8,157.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16162" d="M595.4,157.7C593.8,157.7 592.5,159 592.5,160.6C592.5,162.2 593.8,163.5 595.4,163.5C597,163.5 598.3,162.2 598.3,160.6C598.3,159 597,157.7 595.4,157.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16244" d="M548.2,148.3C546.6,148.3 545.3,149.6 545.3,151.2C545.3,152.8 546.6,154.1 548.2,154.1C549.8,154.1 551.1,152.8 551.1,151.2C551.1,149.6 549.8,148.3 548.2,148.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16246" d="M538.8,148.3C537.2,148.3 535.9,149.6 535.9,151.2C535.9,152.8 537.2,154.1 538.8,154.1C540.4,154.1 541.7,152.8 541.7,151.2C541.7,149.6 540.4,148.3 538.8,148.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16248" d="M529.4,147.7C527.5,147.7 525.9,149.3 525.9,151.2C525.9,153.1 527.4,154.7 529.4,154.7C531.3,154.7 532.9,153.1 532.9,151.2C532.8,149.2 531.3,147.7 529.4,147.7Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16370" d="M576.5,138.8C574.9,138.8 573.6,140.1 573.6,141.7C573.6,143.3 574.9,144.6 576.5,144.6C578.1,144.6 579.4,143.3 579.4,141.7C579.4,140.1 578.1,138.8 576.5,138.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16372" d="M557.7,138.8C556.1,138.8 554.8,140.1 554.8,141.7C554.8,143.3 556.1,144.6 557.7,144.6C559.3,144.6 560.6,143.3 560.6,141.7C560.5,140.1 559.2,138.8 557.7,138.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16374" d="M548.2,138.8C546.6,138.8 545.3,140.1 545.3,141.7C545.3,143.3 546.6,144.6 548.2,144.6C549.8,144.6 551.1,143.3 551.1,141.7C551.1,140.1 549.8,138.8 548.2,138.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16376" d="M538.8,138.8C537.2,138.8 535.8,140.1 535.8,141.8C535.8,143.4 537.1,144.8 538.8,144.8C540.4,144.8 541.8,143.5 541.8,141.8C541.8,140.1 540.4,138.8 538.8,138.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16378" d="M529.4,138.3C527.5,138.3 525.9,139.8 525.9,141.8C525.9,143.7 527.4,145.3 529.4,145.3C531.3,145.3 532.9,143.7 532.9,141.8C532.8,139.8 531.3,138.3 529.4,138.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16380" d="M519.9,138.8C518.3,138.8 517,140.1 517,141.7C517,143.3 518.3,144.6 519.9,144.6C521.5,144.6 522.8,143.3 522.8,141.7C522.8,140.1 521.5,138.8 519.9,138.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<circle id="circle16382" cx="510.5" cy="141.7" r="3.1" style="fill:rgb(76,167,217);"/>
<path id="path16384" d="M501.1,138.8C499.5,138.8 498.2,140.1 498.2,141.7C498.2,143.3 499.5,144.6 501.1,144.6C502.7,144.6 504,143.3 504,141.7C503.9,140.1 502.6,138.8 501.1,138.8Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16514" d="M689.7,129.4C688.1,129.4 686.8,130.7 686.8,132.3C686.8,133.9 688.1,135.2 689.7,135.2C691.3,135.2 692.6,133.9 692.6,132.3C692.6,130.7 691.3,129.4 689.7,129.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16516" d="M680.3,129C678.5,129 677,130.5 677,132.3C677,134.1 678.5,135.6 680.3,135.6C682.1,135.6 683.6,134.1 683.6,132.3C683.6,130.5 682.1,129 680.3,129Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16518" d="M652,129.4C650.4,129.4 649.1,130.7 649.1,132.3C649.1,133.9 650.4,135.2 652,135.2C653.6,135.2 654.9,133.9 654.9,132.3C654.9,130.7 653.6,129.4 652,129.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16520" d="M642.6,128.9C640.8,128.9 639.2,130.4 639.2,132.2C639.2,134.1 640.7,135.6 642.6,135.6C644.4,135.6 646,134.1 646,132.2C645.9,130.4 644.4,128.9 642.6,128.9Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16522" d="M623.7,129.4C622.1,129.4 620.8,130.7 620.8,132.3C620.8,133.9 622.1,135.2 623.7,135.2C625.3,135.2 626.6,133.9 626.6,132.3C626.6,130.7 625.3,129.4 623.7,129.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16524" d="M614.3,129.4C612.7,129.4 611.4,130.7 611.4,132.3C611.4,133.9 612.7,135.2 614.3,135.2C615.9,135.2 617.2,133.9 617.2,132.3C617.2,130.7 615.8,129.4 614.3,129.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16526" d="M604.8,129.4C603.2,129.4 601.9,130.7 601.9,132.3C601.9,133.9 603.2,135.2 604.8,135.2C606.4,135.2 607.7,133.9 607.7,132.3C607.7,130.7 606.4,129.4 604.8,129.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16528" d="M595.4,129.4C593.8,129.4 592.5,130.7 592.5,132.3C592.5,133.9 593.8,135.2 595.4,135.2C597,135.2 598.3,133.9 598.3,132.3C598.3,130.7 597,129.4 595.4,129.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16530" d="M586,129.4C584.4,129.4 583.1,130.7 583.1,132.3C583.1,133.9 584.4,135.2 586,135.2C587.6,135.2 588.9,133.9 588.9,132.3C588.9,130.7 587.6,129.4 586,129.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16532" d="M576.5,129.4C574.9,129.4 573.6,130.7 573.6,132.3C573.6,133.9 574.9,135.2 576.5,135.2C578.1,135.2 579.4,133.9 579.4,132.3C579.4,130.7 578.1,129.4 576.5,129.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16534" d="M567.1,129.3C565.5,129.3 564.2,130.6 564.2,132.2C564.2,133.8 565.5,135.1 567.1,135.1C568.7,135.1 570,133.8 570,132.2C570,130.7 568.7,129.3 567.1,129.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16536" d="M557.7,129.4C556.1,129.4 554.8,130.7 554.8,132.3C554.8,133.9 556.1,135.2 557.7,135.2C559.3,135.2 560.6,133.9 560.6,132.3C560.6,130.7 559.2,129.4 557.7,129.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16538" d="M548.2,129.4C546.6,129.4 545.3,130.7 545.3,132.3C545.3,133.9 546.6,135.2 548.2,135.2C549.8,135.2 551.1,133.9 551.1,132.3C551.1,130.7 549.8,129.4 548.2,129.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16540" d="M538.8,129.3C537.2,129.3 535.8,130.6 535.8,132.3C535.8,134 537.1,135.3 538.8,135.3C540.4,135.3 541.8,134 541.8,132.3C541.8,130.6 540.4,129.3 538.8,129.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16542" d="M529.4,129.3C527.8,129.3 526.4,130.6 526.4,132.3C526.4,134 527.7,135.3 529.4,135.3C531,135.3 532.4,134 532.4,132.3C532.4,130.6 531,129.3 529.4,129.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16544" d="M519.9,129.3C518.3,129.3 516.9,130.6 516.9,132.3C516.9,134 518.2,135.3 519.9,135.3C521.5,135.3 522.9,134 522.9,132.3C522.9,130.6 521.6,129.3 519.9,129.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16546" d="M510.5,129.3C508.9,129.3 507.5,130.6 507.5,132.3C507.5,134 508.8,135.3 510.5,135.3C512.1,135.3 513.5,134 513.5,132.3C513.5,130.6 512.1,129.3 510.5,129.3Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16548" d="M501.1,129.4C499.5,129.4 498.2,130.7 498.2,132.3C498.2,133.9 499.5,135.2 501.1,135.2C502.7,135.2 504,133.9 504,132.3C504,130.7 502.6,129.4 501.1,129.4Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16670" d="M708.6,120C707,120 705.7,121.3 705.7,122.9C705.7,124.5 707,125.8 708.6,125.8C710.2,125.8 711.5,124.5 711.5,122.9C711.5,121.3 710.2,120 708.6,120Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16672" d="M699.2,120C697.6,120 696.3,121.3 696.3,122.9C696.3,124.5 697.6,125.8 699.2,125.8C700.8,125.8 702.1,124.5 702.1,122.9C702,121.3 700.8,120 699.2,120Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16674" d="M595.4,120C593.8,120 592.5,121.3 592.5,122.9C592.5,124.5 593.8,125.8 595.4,125.8C597,125.8 598.3,124.5 598.3,122.9C598.3,121.3 597,120 595.4,120Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
<path id="path16676" d="M586,120C584.4,120 583.1,121.3 583.1,122.9C583.1,124.5 584.4,125.8 586,125.8C587.6,125.8 588.9,124.5 588.9,122.9C588.8,121.3 587.6,120 586,120Z" style="fill:rgb(76,167,217);fill-rule:nonzero;"/>
</g>
</svg>
<svg clip-rule="evenodd" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.4142" version="1.1"
viewBox="0 0 1344 1344" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="a" x1="18.23" x2="150" y1="150" y2="-7.6294e-6" gradientTransform="matrix(8.96 0 0 8.96 -7.8457e-5 .00019795)" gradientUnits="userSpaceOnUse"><stop stop-color="#0082c9" offset="0"/><stop
stop-color="#1cafff" offset="1" /></linearGradient></defs>
<rect y=".00012207" width="1344" height="1344" fill="url(#a)" fill-rule="evenodd" /></svg>

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 565 B

+14 -27
View File
@@ -1,24 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="100%"
height="100%"
viewBox="0 0 1064 1064"
version="1.1"
xml:space="preserve"
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"
id="svg15"
sodipodi:docname="logo_dev.svg"
inkscape:version="0.92.1 r15371"><metadata
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="100%" height="100%" viewBox="0 0 1064 1064"
version="1.1" xml:space="preserve"
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;" id="svg15"
sodipodi:docname="logo_dev.svg" inkscape:version="0.92.4 5da689c313, 2019-01-14"><metadata
id="metadata21"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata>
<defs
id="defs19" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
@@ -28,17 +19,13 @@
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1005"
inkscape:window-width="1920" inkscape:window-height="1141"
id="namedview17"
showgrid="false"
inkscape:zoom="0.22180451"
inkscape:cx="532"
inkscape:cy="532"
inkscape:window-x="-9"
inkscape:window-y="-9"
inkscape:window-maximized="1"
inkscape:current-layer="svg15" /><g
inkscape:zoom="0.22180451" inkscape:cx="-351.66102"
inkscape:cy="532" inkscape:window-x="0" inkscape:window-y="0"
inkscape:window-maximized="1" inkscape:current-layer="svg15" inkscape:pagecheckerboard="true" />
<g
id="text4136"
transform="translate(0,-8)"><g
id="path4491"

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

+20 -21
View File
@@ -2,34 +2,33 @@
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="898" height="850" viewBox="0 0 898 850"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="100%" height="100%" viewBox="0 0 1064 1064"
version="1.1" xml:space="preserve"
style="clip-rule:evenodd;fill-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41420996" id="svg15"
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;" id="svg15"
sodipodi:docname="logo_qa.svg" inkscape:version="0.92.4 5da689c313, 2019-01-14"><metadata
id="metadata21"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
id="metadata21"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata>
<defs id="defs19" />
<sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10"
gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2"
inkscape:window-width="1600" inkscape:window-height="835" id="namedview17" showgrid="false"
inkscape:zoom="0.15683947" inkscape:cx="-571.18742" inkscape:cy="822.76257" inkscape:window-x="1600"
inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg15" fit-margin-top="1"
fit-margin-left="1" fit-margin-right="1" fit-margin-bottom="1" />
inkscape:window-width="1920" inkscape:window-height="1171" id="namedview17" showgrid="false"
inkscape:zoom="0.44360902" inkscape:cx="322.43529" inkscape:cy="149.39575" inkscape:window-x="1920"
inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg15"
inkscape:pagecheckerboard="true" />
<g id="path6" transform="translate(-140,-136.064)"><path
d="M 672.681,456.07 C 579.33,456.08 500.945,519.999 476.995,605.988 456.091,559.995 410.078,527.4 356.617,527.394 283.844,527.404 224.009,587.243 224,660.022 c -0.014,72.793 59.829,132.645 132.617,132.654 53.467,-0.01 99.45,-32.621 120.351,-78.621 23.941,86.004 102.353,149.936 195.716,149.945 92.84,0.01 170.84,-63.23 195.277,-148.499 21.243,45.148 66.549,77.166 119.395,77.172 72.804,0.013 132.654,-59.846 132.644,-132.654 -0.01,-72.794 -59.86,-132.64 -132.644,-132.628 -52.849,0.01 -98.18,32.018 -119.422,77.172 -24.437,-85.266 -102.41,-148.505 -195.25,-148.499 z m 0,77.856 c 70.106,0 126.109,55.987 126.115,126.099 0,70.12 -56,126.131 -126.115,126.125 -70.106,-0.01 -126.094,-56.014 -126.088,-126.125 0.01,-70.103 55.991,-126.09 126.088,-126.099 z M 356.602,605.25 c 30.712,0 54.764,24.059 54.767,54.772 0,30.719 -24.05,54.795 -54.767,54.798 -30.718,0 -54.772,-24.079 -54.766,-54.798 0,-30.713 24.056,-54.769 54.766,-54.772 z m 630.754,0 c 30.714,-0.01 54.794,24.052 54.794,54.772 0.01,30.728 -24.07,54.804 -54.794,54.798 -30.718,0 -54.772,-24.079 -54.769,-54.798 0,-30.713 24.057,-54.769 54.769,-54.772 z"
style="fill:#ffffff;fill-rule:nonzero"
id="path12"
inkscape:connector-curvature="0" /></g>
<g aria-label="QA"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:163.70762634px;line-height:125%;font-family:Helvetica;-inkscape-font-specification:Helvetica;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:8.18538094px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="text828" transform="translate(-82.999998,-85.30353)"><path
d="m 521.96809,867.9572 q 0,11.35082 -3.99677,21.023 -3.99677,9.67218 -11.19095,16.38675 l 19.74403,18.62494 -10.79127,10.31166 -22.06216,-20.54339 q -4.47638,1.83851 -9.35244,2.7178 -4.79612,0.95923 -9.91199,0.95923 -20.38351,0 -33.17317,-14.06863 -12.70973,-14.06862 -12.70973,-35.41136 v -20.70326 q 0,-21.26281 12.70973,-35.41137 12.78966,-14.14856 33.17317,-14.14856 21.10294,0 34.29228,14.14856 13.26927,14.06863 13.26927,35.41137 z m -15.74727,-20.86313 q 0,-15.98708 -8.63302,-26.2188 -8.63302,-10.23173 -23.18126,-10.23173 -13.74888,0 -21.98222,10.23173 -8.15341,10.23172 -8.15341,26.2188 v 20.86313 q 0,16.14694 8.15341,26.37867 8.23334,10.23172 21.98222,10.23172 14.62818,0 23.18126,-10.15179 8.63302,-10.23172 8.63302,-26.4586 z"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Roboto;-inkscape-font-specification:Roboto;fill:#ffffff;stroke-width:8.18538094px"
id="path815"
inkscape:connector-curvature="0" />
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:163.70762634px;line-height:125%;font-family:Helvetica;-inkscape-font-specification:Helvetica;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;clip-rule:evenodd;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:8.18538094px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:1.41420996;stroke-opacity:1"
id="text828" transform="translate(3e-5,-2.7252)"><path
d="m 521.96809,867.9572 q 0,11.35082 -3.99677,21.023 -3.99677,9.67218 -11.19095,16.38675 l 19.74403,18.62494 -10.79127,10.31166 -22.06216,-20.54339 q -4.47638,1.83851 -9.35244,2.7178 -4.79612,0.95923 -9.91199,0.95923 -20.38351,0 -33.17317,-14.06863 -12.70973,-14.06862 -12.70973,-35.41136 v -20.70326 q 0,-21.26281 12.70973,-35.41137 12.78966,-14.14856 33.17317,-14.14856 21.10294,0 34.29228,14.14856 13.26927,14.06863 13.26927,35.41137 z m -15.74727,-20.86313 q 0,-15.98708 -8.63302,-26.2188 -8.63302,-10.23173 -23.18126,-10.23173 -13.74888,0 -21.98222,10.23173 -8.15341,10.23172 -8.15341,26.2188 v 20.86313 q 0,16.14694 8.15341,26.37867 8.23334,10.23172 21.98222,10.23172 14.62818,0 23.18126,-10.15179 8.63302,-10.23172 8.63302,-26.4586 z"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Roboto;-inkscape-font-specification:Roboto;fill:#ffffff;stroke-width:8.18538094px"
id="path815"
inkscape:connector-curvature="0" />
<path
d="m 608.53808,885.78278 h -48.76057 l -11.03108,29.97576 h -16.06701 l 45.00361,-116.38589 h 13.50908 L 635.4763,915.75854 H 619.40929 Z M 564.65357,872.59345 H 603.8219 L 584.63741,819.5963 h -0.47961 z"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Roboto;-inkscape-font-specification:Roboto;fill:#ffffff;stroke-width:8.18538094px"
id="path817" inkscape:connector-curvature="0" /></g>
<g id="path6" transform="translate(-223,-211.36753)" style="fill:#ffffff"><path
d="M 672.681,456.07 C 579.33,456.08 500.945,519.999 476.995,605.988 456.091,559.995 410.078,527.4 356.617,527.394 283.844,527.404 224.009,587.243 224,660.022 c -0.014,72.793 59.829,132.645 132.617,132.654 53.467,-0.01 99.45,-32.621 120.351,-78.621 23.941,86.004 102.353,149.936 195.716,149.945 92.84,0.01 170.84,-63.23 195.277,-148.499 21.243,45.148 66.549,77.166 119.395,77.172 72.804,0.013 132.654,-59.846 132.644,-132.654 -0.01,-72.794 -59.86,-132.64 -132.644,-132.628 -52.849,0.01 -98.18,32.018 -119.422,77.172 -24.437,-85.266 -102.41,-148.505 -195.25,-148.499 z m 0,77.856 c 70.106,0 126.109,55.987 126.115,126.099 0,70.12 -56,126.131 -126.115,126.125 -70.106,-0.01 -126.094,-56.014 -126.088,-126.125 0.01,-70.103 55.991,-126.09 126.088,-126.099 z M 356.602,605.25 c 30.712,0 54.764,24.059 54.767,54.772 0,30.719 -24.05,54.795 -54.767,54.798 -30.718,0 -54.772,-24.079 -54.766,-54.798 0,-30.713 24.056,-54.769 54.766,-54.772 z m 630.754,0 c 30.714,-0.01 54.794,24.052 54.794,54.772 0.01,30.728 -24.07,54.804 -54.794,54.798 -30.718,0 -54.772,-24.079 -54.769,-54.798 0,-30.713 24.057,-54.769 54.769,-54.772 z"
style="fill:#ffffff;fill-rule:nonzero"
id="path12"
inkscape:connector-curvature="0" /></g></svg>
id="path817" inkscape:connector-curvature="0" /></g></svg>

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

+263 -3
View File
@@ -1,7 +1,20 @@
# This is the minimum version number required.
fastlane_version "2.58.0"
## config
# add following to your shell rc:
# export FASTLANE_NEXTCLOUD_STORE_FILE=""
# export FASTLANE_NEXTCLOUD_STORE_PASSWORD=""
# export FASTLANE_NEXTCLOUD_KEY_ALIAS=""
# export FASTLANE_NEXTCLOUD_KEY_PASSWORD=""
# export FASTLANE_NEXTCLOUD_GITHUB_API_TOKEN=""
skip_docs
## public lanes
lane :screenshotsPhone do
beautifyPhone()
build_for_screengrab()
screengrab(
@@ -12,15 +25,99 @@ lane :screenshotsPhone do
end
lane :screenshotsTablet do
beautifyPhone()
build_for_screengrab()
screengrab(
device_type: "sevenInch",
app_apk_path: APK_LOCATION,
tests_apk_path: TEST_APK_LOCATION
device_type: "sevenInch",
app_apk_path: APK_LOCATION,
tests_apk_path: TEST_APK_LOCATION
)
end
desc "Release phase 1: make gplay/generic for RC, then test it"
lane :releasePhase1_RC do
disableLogger()
makeReleases()
enableLogger()
end
desc "Release phase 1: make gplay/generic for FINAL, then test it"
lane :releasePhase1_Final do
makeReleases()
end
desc "Release phase 2 for RC: checks, tag, upload gplay to playstore with values from build.gradle"
lane :releasePhase2_RC do |options|
info = androidVersion
checkChangelog(info)
checkLibrary_RC()
checkIfScreenshotsExist()
checkIfAPKexists()
tag(info)
uploadToPlaystore_RC(info)
createGithubRelease_RC(info)
fdroidMergeRequest_RC(info)
createChangelogPullRequest_RC(info)
end
desc "Release phase 2 for FINAL: checks, tag, upload gplay to playstore with values from build.gradle"
lane :releasePhase2_Final do |options|
info = androidVersion
checkChangelog(info)
checkLibrary_Final()
checkIfScreenshotsExist()
checkIfAPKexists()
tag(info)
uploadToPlaystore_Final(info)
createGithubRelease_Final(info)
fdroidMergeRequest_Final(info)
createChangelogPullRequest_Final(info)
end
desc "Makes gplay and generic releases in ../releases/"
lane :makeReleases do
sh("mkdir -p ../release")
sh("rm -rf ../release/*")
sh("rm -rf ../build")
SignedRelease(flavor:"Generic")
sh("mv ../build/outputs/apk/generic/release/*.apk ../release/")
sh("rename 'generic-release' 'nextcloud' ../release/generic-release*")
SignedRelease(flavor:"Gplay")
sh("cp ../build/outputs/apk/gplay/release/*.apk ../release/")
end
desc "Create GPlay release"
lane :createGplayRelease do |options|
SignedRelease(flavor:"Gplay")
sh("mv ../build/outputs/apk/gplay/release/*.apk ../release/")
end
desc "Create Generic release"
lane :createGenericRelease do |options|
SignedRelease(flavor:"Generic")
sh("mv ../build/outputs/apk/generic/release/*.apk ../release/")
end
desc "Create Dev release"
lane :createDevRelease do |options|
SignedRelease(flavor:"VersionDev")
sh("mv ../build/outputs/apk/versionDev/release/*.apk ../release/")
end
desc "Beautify phone for screenshots: set time, remove other icons, no charging"
lane :beautifyPhone do
sh("adb shell settings put global sysui_demo_allowed 1")
sh("adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 1200")
sh("adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e level 4 -e datatype false")
sh("adb shell am broadcast -a com.android.systemui.demo -e command notifications -e visible false")
sh("adb shell am broadcast -a com.android.systemui.demo -e command battery -e plugged false -e level 100")
end
## private lanes
desc "Build debug and test APK for screenshots"
private_lane :build_for_screengrab do
build_android_app(
@@ -37,3 +134,166 @@ private_lane :build_for_screengrab do
)
TEST_APK_LOCATION = lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].select{ |i| i[/androidTest/] }[0]
end
private_lane :createChangelogPullRequest_RC do |options|
sh("createChangelogPullRequestRC " + options["tag"] + " \"" + options["versionName"] + "\" " + options["versionCode"] + " \"" + options["branch"] + "\" ")
end
private_lane :createChangelogPullRequest_Final do |options|
sh("createChangelogPullRequestFinal " + options["tag"] + " \"" + options["versionName"] + "\" " + options["versionCode"] + " \"" + options["branch"] + "\" ")
end
private_lane :checkIfAPKexists do |options|
sh("if [ $(/bin/ls -1 ../release | wc -l) -ne 2 ]; then echo 'APKs do not exist ../release/; aborting!' ; exit 1 ;
fi")
end
desc "compute version"
private_lane :androidVersion do |options|
File.open("../build.gradle","r") do |f|
text = f.read
# everything between Document and Authors
major = text.match(/def versionMajor = ([0-9]*)$/)
minor = text.match(/def versionMinor = ([0-9]*)$/)
patch = text.match(/def versionPatch = ([0-9]*)$/)
build = text.match(/def versionBuild = ([0-9]*).*$/)
majorInt = major[1].to_i
minorInt = minor[1].to_i
patchInt = patch[1].to_i
buildInt = build[1].to_i
versionCode = majorInt * 10000000 + minorInt * 10000 + patchInt * 100 + buildInt
if buildInt > 89
name = major[1] + "." + minor[1] + "." + patch[1]
tag = "stable-" + major[1] + "." + minor[1] + "." + patch[1]
branch = "stable-" + major[1] + "." + minor[1]
elsif buildInt > 50
name = major[1] + "." + minor[1] + "." + patch[1] + " RC" + (buildInt - 50).to_s
tag = "rc-" + major[1] + "." + minor[1] + "." + patch[1] + "-" + format('%02d', (buildInt - 50))
branch = "stable-" + major[1] + "." + minor[1]
else
name = major[1] + "." + minor[1] + "." + patch[1] + " Alpha " + format('%02d', (buildInt + 1))
tag = "/"
branch = "stable-" + major[1] + "." + minor[1]
end
print "VersionCode: " + versionCode.to_s + "\n"
print "Name: " + name + "\n"
print "Tag: " + tag + "\n"
print "Branch: " + branch + "\n"
print "\ndisable IPv6 to upload to Gplay!!!\n"
answer = prompt(text: "is this okay?", boolean: true)
if !answer
exit
end
{ "versionCode" => versionCode.to_s, "versionName" => name, "tag" => tag, "branch" => branch }
end
end
desc "check if library is set correctly"
private_lane :checkLibrary_RC do
sh(" if [ $(egrep 'androidLibraryVersion.*master.*' ../build.gradle -c) -eq 1 ] ; then echo 'Library is set to master tag; aborting!' ; exit 1 ; fi")
end
desc "check if library is set correctly: must NOT contain master nor rc"
private_lane :checkLibrary_Final do
sh(" if [ $(grep 'androidLibraryVersion' ../build.gradle | egrep 'master|rc' -c) -eq 1 ] ; then echo 'Library is still set to rc tag; aborting!' ; exit 1 ; fi")
end
desc "check if screenshots exists and exit"
private_lane :checkIfScreenshotsExist do
sh(" if [ -e metadata/android/*/images ] ; then echo 'Screenshots in fastlane folder exist; aborting!' ; exit 1 ; fi")
end
private_lane :tag do |options|
add_git_tag(
tag: options["tag"],
sign: true
)
push_git_tags(
tag: options["tag"])
end
private_lane :disableLogger do
sh("sed -i s'#<bool name=\"logger_enabled\">false</bool>#<bool name=\"logger_enabled\">true</bool>#' ../src/main/res/values/setup.xml")
end
private_lane :enableLogger do
sh("sed -i s'#<bool name=\"logger_enabled\">true</bool>#<bool name=\"logger_enabled\">false</bool>#' ../src/main/res/values/setup.xml")
end
desc "Upload to play store"
private_lane :uploadToPlaystore_RC do |options|
upload_to_play_store(
skip_upload_images: true,
track: 'beta',
apk: "release/gplay-release-" + options["versionCode"] + ".apk"
)
end
desc "Upload to play store"
private_lane :uploadToPlaystore_Final do |options|
upload_to_play_store(
skip_upload_images: true,
apk: "release/gplay-release-" + options["versionCode"] + ".apk"
)
end
private_lane :SignedRelease do |options|
gradle(
task: 'assemble',
flavor: options[:flavor],
build_type: 'Release',
print_command: false,
properties: {
"android.injected.signing.store.file" => ENV["FASTLANE_NEXTCLOUD_STORE_FILE"],
"android.injected.signing.store.password" => ENV["FASTLANE_NEXTCLOUD_STORE_PASSWORD"],
"android.injected.signing.key.alias" => ENV["FASTLANE_NEXTCLOUD_KEY_ALIAS"],
"android.injected.signing.key.password" => ENV["FASTLANE_NEXTCLOUD_KEY_PASSWORD"],
}
)
end
private_lane :createGithubRelease_RC do |options|
set_github_release(
repository_name: "nextcloud/android",
api_token: ENV["FASTLANE_NEXTCLOUD_GITHUB_API_TOKEN"],
name: options["versionName"],
tag_name: options["tag"],
is_prerelease: true,
description: (File.read("metadata/android/en-US/changelogs/" + options["versionCode"] + ".txt") rescue "No changelog provided"),
upload_assets: [ "release/gplay-release-" + options["versionCode"] + ".apk", "release/nextcloud-" +
options["versionCode"] + ".apk" ]
)
end
private_lane :createGithubRelease_Final do |options|
set_github_release(
repository_name: "nextcloud/android",
api_token: ENV["FASTLANE_NEXTCLOUD_GITHUB_API_TOKEN"],
name: options["versionName"],
tag_name: options["tag"],
description: (File.read("metadata/android/en-US/changelogs/" + options["versionCode"] + ".txt") rescue "No changelog provided"),
upload_assets: [ "release/gplay-release-" + options["versionCode"] + ".apk", "release/nextcloud-" +
options["versionCode"] + ".apk" ]
)
end
private_lane :fdroidMergeRequest_RC do |options|
sh("fdroidMergeRequestRC " + options["tag"] + " \"" + options["versionName"] + "\" " + options["versionCode"])
end
private_lane :fdroidMergeRequest_Final do |options|
sh("fdroidMergeRequestFinal " + options["tag"] + " \"" + options["versionName"] + "\" " + options["versionCode"])
end
private_lane :checkChangelog do |options|
sh(" if [ ! -e metadata/android/en-US/changelogs/" + options["versionCode"] + ".txt ] ; then echo 'Changelog fastlane/metadata/android/en-US/changelogs/" + options["versionCode"] + ".txt does not exist' ; exit 1 ; fi")
sh(" if [ $(wc -m metadata/android/en-US/changelogs/" + options["versionCode"] + ".txt | cut -d' ' -f1) -ge 500 ] ; then echo 'Changlog more than 500 chars' ; exit 1 ; fi")
end
Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

+1 -1
View File
@@ -1 +1 @@
423
414
+1 -1
View File
@@ -1,2 +1,2 @@
DO NOT TOUCH; GENERATED BY DRONE
<span class="mdl-layout-title">Lint Report: 59 warnings</span>
<span class="mdl-layout-title">Lint Report: 74 warnings</span>
+2
View File
@@ -36,6 +36,8 @@ lastBuildTime=$(date --date="$(git log -1 --format=%ai $(git tag | grep dev | ta
changelog=$(git log --after=$lastBuildTime --pretty=oneline --abbrev-commit)
echo "$changelog" > src/versionDev/fastlane/metadata/android/en-US/changelogs/$date.txt
echo "library commit: $(curl https://api.github.com/repos/nextcloud/android-library/commits/master | jq .sha | sed s'/\"//g')" >> src/versionDev/fastlane/metadata/android/en-US/changelogs/$date.txt
git add build.gradle
git add src/versionDev/fastlane/metadata/android/en-US/changelogs/$date.txt
git commit -m "daily dev $date" -m "$changelog"
+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
## emulator
if ( [[ $(emulator -list-avds | grep uiComparison -c) -eq 0 ]] ); then
(sleep 5; echo "no") | avdmanager create avd -n uiComparison -c 100M -k "system-images;android-27;google_apis;x86" --abi "google_apis/x86"
fi
emulator -avd uiComparison -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 1>/dev/null &
PID=$(echo $!)
## server
docker run --name=uiComparison nextcloudci/server:server-3 1>/dev/null &
sleep 5
IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' uiComparison)
if [[ $IP = "" ]]; then
echo "no server"
exit 1
fi
## run on server
cp gradle.properties gradle.properties_
sed -i s"/server/$IP/" gradle.properties
scripts/wait_for_emulator.sh
scripts/wait_for_server.sh ${IP}
./gradlew executeScreenshotTests -Precord
mv gradle.properties_ gradle.properties
# tidy up
kill $PID
docker stop uiComparison
docker rm uiComparison
+8 -5
View File
@@ -13,20 +13,23 @@ ID=$3
USER=$1
PASS=$2
TYPE=$4
FOLDER=$ID-$TYPE
set -e
if [ $TYPE = "IT" ]; then
cd build/reports/androidTests/connected/flavors/GPLAY
else
elif [ $TYPE = "Unit" ]; then
cd build/reports/tests/testGplayDebugUnitTest
else
cd build/reports/shot/verification/
fi
find . -type d -exec curl -u $USER:$PASS -X MKCOL $URL/$ID/$(echo {} | sed s#\./##) \;
find . -type f -exec curl -u $USER:$PASS -X PUT $URL/$ID/$(echo {} | sed s#\./##) --upload-file {} \;
find . -type d -exec curl -u $USER:$PASS -X MKCOL $URL/$FOLDER/$(echo {} | sed s#\./##) \;
find . -type f -exec curl -u $USER:$PASS -X PUT $URL/$FOLDER/$(echo {} | sed s#\./##) --upload-file {} \;
echo "Uploaded failing tests to https://www.kaminsky.me/nc-dev/android-integrationTests/$ID"
echo "Uploaded failing tests to https://www.kaminsky.me/nc-dev/android-integrationTests/$FOLDER"
curl -u $6:$7 -X POST https://api.github.com/repos/nextcloud/android/issues/$5/comments -d "{ \"body\" : \"$TYPE test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/$ID \" }"
curl -u $6:$7 -X POST https://api.github.com/repos/nextcloud/android/issues/$5/comments -d "{ \"body\" : \"$TYPE test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/$FOLDER \" }"
exit 1
File renamed without changes.
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
counter=0
status=""
until [[ $status = "false" ]]; do
status=$(curl 2>/dev/null "http://$1/status.php" | jq .maintenance)
if [[ "$status" =~ "false" || "$status" = "" ]]; then
let "counter += 1"
if [[ $counter -gt 2 ]]; then
echo "Failed to wait for server"
exit 1
fi
fi
sleep 10
done
+1 -1
View File
@@ -1,2 +1,2 @@
include ':'
//include 'nextcloud-android-library'
//include ':nextcloud-android-library'
+7 -2
View File
@@ -17,7 +17,8 @@
<Match>
<Or>
<Class name="~.*\.Dagger.*" />
<Class name="~com.nextcloud.client.di\..*_.*" />
<Class name="~com\.nextcloud\.client\.di\..*_.*" />
<Class name="~dagger\.android\..*" />
</Or>
</Match>
<!-- Dagger generated code uses internal APIs -->
@@ -30,7 +31,7 @@
<Match>
<Or>
<Class name="~.*BindingImpl"/>
<Class name="~.*\.DataBinderMapperImpl"/>
<Class name="~.*\.DataBinderMapperImpl"/>
</Or>
</Match>
@@ -39,6 +40,10 @@
<Or>
<Package name="~io\.noties\..*" />
<Package name="~third_parties\.ezvcard_android\..*" />
<Package name="~com\.afollestad\.sectionedrecyclerview\..*" />
<Package name="~butterknife\..*" />
<Package name="~de\.cotech\..*" />
<Package name="~pl\.droidsonroids\..*" />
</Or>
</Match>
<Match>
+4 -2
View File
@@ -26,7 +26,9 @@
-->
<manifest xmlns:tools="http://schemas.android.com/tools"
package="${applicationId}.test">
xmlns:android="http://schemas.android.com/apk/res/android"
package="${applicationId}.test"
android:sharedUserId="${applicationId}.uid">
<uses-sdk tools:overrideLibrary="android_libs.ub_uiautomator" />
<uses-sdk tools:overrideLibrary="android_libs.ub_uiautomator, tools.fastlane.screengrab" />
</manifest>
@@ -0,0 +1,81 @@
/*
*
* Nextcloud Android client application
*
* @author Tobias Kaminsky
* Copyright (C) 2019 Tobias Kaminsky
* Copyright (C) 2019 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.nextcloud.client;
import android.Manifest;
import android.app.Activity;
import com.facebook.testing.screenshot.Screenshot;
import com.owncloud.android.AbstractIT;
import com.owncloud.android.R;
import com.owncloud.android.ui.activity.FileDisplayActivity;
import org.junit.Rule;
import org.junit.Test;
import androidx.test.espresso.contrib.DrawerActions;
import androidx.test.espresso.intent.rule.IntentsTestRule;
import androidx.test.rule.GrantPermissionRule;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.action.ViewActions.click;
import static androidx.test.espresso.matcher.ViewMatchers.withId;
public class FileDisplayActivityIT extends AbstractIT {
@Rule public IntentsTestRule<FileDisplayActivity> activityRule = new IntentsTestRule<>(FileDisplayActivity.class,
true,
false);
@Rule
public final GrantPermissionRule permissionRule = GrantPermissionRule.grant(
Manifest.permission.WRITE_EXTERNAL_STORAGE);
@Test
public void open() throws InterruptedException {
Activity sut = activityRule.launchActivity(null);
Thread.sleep(3000);
Screenshot.snapActivity(sut).record();
}
@Test
public void drawer() {
Activity sut = activityRule.launchActivity(null);
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
Screenshot.snapActivity(sut).record();
}
@Test
public void showAccounts() {
Activity sut = activityRule.launchActivity(null);
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
onView(withId(R.id.drawer_active_user)).perform(click());
Screenshot.snapActivity(sut).record();
}
}
@@ -0,0 +1,55 @@
/*
*
* Nextcloud Android client application
*
* @author Tobias Kaminsky
* Copyright (C) 2019 Tobias Kaminsky
* Copyright (C) 2019 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.nextcloud.client;
import android.Manifest;
import android.app.Activity;
import com.facebook.testing.screenshot.Screenshot;
import com.nextcloud.client.onboarding.FirstRunActivity;
import com.owncloud.android.AbstractIT;
import org.junit.Rule;
import org.junit.Test;
import androidx.test.espresso.intent.rule.IntentsTestRule;
import androidx.test.rule.GrantPermissionRule;
public class FirstRunActivityIT extends AbstractIT {
@Rule public IntentsTestRule<FirstRunActivity> activityRule = new IntentsTestRule<>(FirstRunActivity.class,
true,
false);
@Rule
public final GrantPermissionRule permissionRule = GrantPermissionRule.grant(
Manifest.permission.WRITE_EXTERNAL_STORAGE);
@Test
public void open() {
Activity sut = activityRule.launchActivity(null);
Screenshot.snapActivity(sut).record();
}
}
@@ -0,0 +1,44 @@
/*
*
* Nextcloud Android client application
*
* @author Tobias Kaminsky
* Copyright (C) 2019 Tobias Kaminsky
* Copyright (C) 2019 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.nextcloud.client;
import android.os.Bundle;
import com.facebook.testing.screenshot.ScreenshotRunner;
import androidx.test.runner.AndroidJUnitRunner;
public class ScreenshotTestRunner extends AndroidJUnitRunner {
@Override
public void onCreate(Bundle args) {
super.onCreate(args);
ScreenshotRunner.onCreate(this, args);
}
@Override
public void finish(int resultCode, Bundle results) {
ScreenshotRunner.onDestroy();
super.finish(resultCode, results);
}
}
@@ -0,0 +1,54 @@
/*
*
* Nextcloud Android client application
*
* @author Tobias Kaminsky
* Copyright (C) 2019 Tobias Kaminsky
* Copyright (C) 2019 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.nextcloud.client;
import android.Manifest;
import android.app.Activity;
import com.facebook.testing.screenshot.Screenshot;
import com.owncloud.android.AbstractIT;
import com.owncloud.android.ui.activity.SettingsActivity;
import org.junit.Rule;
import org.junit.Test;
import androidx.test.espresso.intent.rule.IntentsTestRule;
import androidx.test.rule.GrantPermissionRule;
public class SettingsActivityIT extends AbstractIT {
@Rule public IntentsTestRule<SettingsActivity> activityRule = new IntentsTestRule<>(SettingsActivity.class,
true,
false);
@Rule
public final GrantPermissionRule permissionRule = GrantPermissionRule.grant(
Manifest.permission.WRITE_EXTERNAL_STORAGE);
@Test
public void open() {
Activity test = activityRule.launchActivity(null);
Screenshot.snapActivity(test).record();
}
}
@@ -41,7 +41,7 @@ public class UserAccountManagerImplTest extends AbstractIT {
boolean success = sut.migrateUserId();
assertTrue(success);
Bundle arguments = androidx.test.platform.app.InstrumentationRegistry.getArguments();
String userId = arguments.getString("TEST_SERVER_USERNAME");
@@ -12,6 +12,7 @@ import android.os.Bundle;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.account.UserAccountManagerImpl;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.datamodel.FileDataStorageManagerImpl;
import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.OwnCloudClientFactory;
import com.owncloud.android.lib.common.accounts.AccountUtils;
@@ -88,7 +89,7 @@ public abstract class AbstractIT {
}
FileDataStorageManager getStorageManager() {
return new FileDataStorageManager(account, targetContext.getContentResolver());
return new FileDataStorageManagerImpl(account, targetContext.getContentResolver());
}
private static void createDummyFiles() throws IOException {
@@ -32,6 +32,7 @@ import tools.fastlane.screengrab.locale.LocaleTestRule;
import static androidx.test.espresso.Espresso.onData;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.action.ViewActions.click;
import static androidx.test.espresso.action.ViewActions.swipeUp;
import static androidx.test.espresso.matcher.ViewMatchers.withId;
import static androidx.test.espresso.matcher.ViewMatchers.withText;
import static org.hamcrest.core.AnyOf.anyOf;
@@ -133,6 +134,7 @@ public class ScreenshotsIT extends AbstractIT {
ActivityScenario.launch(FileDisplayActivity.class);
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
onView(withId(R.id.nav_view)).perform(swipeUp());
onView(anyOf(withText(R.string.drawer_synced_folders), withId(R.id.nav_synced_folders))).perform(click());
Screengrab.screenshot("05_autoUpload");
@@ -469,7 +469,6 @@ public class TestSorting {
}
return false;
}
}
@@ -1,19 +1,17 @@
Svobodně licencovaná Nexcloud Android aplikace, dávající vám mobilní svobodu.
Software, který můžete nasadit na vlastní server a ten organizuje ukládání a synchronizaci souborů. Díky doplňkům jde o kompletní groupwarové řešení.
Funkce:
* Snadno použitelné moderní rozhraní, přizpůsobené vzhledu, používaném na vašem serveru
* Nahrávejte soubory na svůj Nextcloud server
* Sdílejte je s ostatními
* Udržujte své oblíbené soubory a složky synchronizované
* Hledejte napříč všemi složkami na svém serveru
* Automaticky nahrávejte své fotky a videa, pořízená zařízením
* Udržujte si přehled pomocí oznámení
* Podporuje vícero účtů
* Zabezpečený přístup k vašim datům pomocí otisku prstu nebo PIN kódu
* Napojení na DAVx5 (dříve známé pod názvem DAVdroid) pro snadné nastavení synchronizace kalendáře a kontaktů
* Soubory nahrané do nexcloudu lze snadno sdílet s ostatními.
* Přístup odkudkoli přes webové a mobilní rozhraní.
* Synchronizace s počítačem umožňující offline práci.
* Vaše data jsou na vašem serveru a máte nad nimi plnou kontrolu.
* Jde o svobodný software, který snadno můžete sami hostovat a volně si ho přizplsobit. V případě potřeby je ale k dispozici komerční podpora.
* Vyhledávání napříč soubory.
* Synchronizace kontaktů a zpráv.
* Sdílení kalendářů do mobilu (DAVx5/DAVdroid)
* Neomezený počet uživatelů, autoupload fotek přímo z mobilu, oznámení,
* Klienti pro WIndows, MacOS, iOS, Android, web.
* Mnoho dalších doplňků s dalšími funkcemi.
Veškeré nalezené problémy hlaste na https://github.com/nextcloud/android/issues a diskutujte o aplikaci na https://help.nextcloud.com/c/clients/android
Díky Nextcloudu budete mít kompletní privátní řešení pro všechy vaše soubory, fotky, kalendáře a kontakty.
Noví v Nextcloud? Nextcloud je soukromý server pro synchronizaci souborů a jejich sdílení, dále pro komunikaci. Jedná se o svobodný software a můžete ho hostovat svými silami nebo za to zaplatit nějaké společnosti. Tím máte pod kontrolou své fotky, kalendář a kontakty, dokumenty a vše ostatní.
Podívejte se na Nextcloud na https://nextcloud.com
Připomínky zasílejte na https://github.com/nextcloud/android/issues, diskutovat lze na https://help.nextcloud.com/c/clients a vše ostatní najdete na https://nextcloud.com 
@@ -1 +1 @@
Produktivní platforma hostovaná u vás, kde vaše data jsou opravdu vaše
Platforma pro produktivitu hostovaná u vás, kde vaše data jsou opravdu vaše
@@ -0,0 +1,19 @@
Μια αυτόνομη πλατφόρμα που έχετε τον πλήρη έλεγχο.
Features:
* Εύκολο, μοντέρνο, συμβατό με το θέμα του διακομιστή σας
* Μεταφόρτωση αρχείων στον Nextclound διακομιστή σας
* Κοινή χρήση
* Κρατήστε τα αγαπημένα σας αρχεία και φακέλους συγχρονισμένα
* Αναζήτηση σε όλ΄ους τους φακέλους στον διακομιστή σας
* Αυτόματη μεταφόρτωση φωτογραφιών και βίντεο από την συσκευή σας
* Ενημέρωση με ειδοποιήσεις
* Υποστήριξη πολλαπλών λογαριασμών
* Ασφαλή σύνδεση στα δεδομένα σας με χρήση δακτυλικού αποτυπώματος ή κωδικού PIN
* Συνεργασία με DADVx5 (γνωστό ως DAVdroid) για εύκολη εγκατάσταση και συγχρονισμό ημερολογίου &
Παρακαλώ αναφέρετε τα σφάλματα στο https://github.com/nextcloud/android/issues και συζητήστε για την εφαρμογή στο https://help.nextcloud.com/c/clients/android
Καινούργιος στο Nextclound? To Nextclound είναι ένας διακομιστής &συγχρονισμού αρχείων κοινόχρηστων και επικοινωνίας. Ένα ελεύθερο λογισμικό, οπου μπορείτε να το υποστηρίξετε μόνοι σας ή επι πληρωμής. Με αυτό τον τρόπο έχετε τον έλεγχο των φωτογραφιών σας, του ημερολογίου σας και των δεδομένων των επαφών σας, των αρχείων σας και οτιδήποτε άλλο.
Ενημερωθείτε για το Nextclound στο https://nextcloud.com
@@ -0,0 +1 @@
Nextcloud
@@ -0,0 +1 @@
Kontrolpean mantentzen zaituen norberak ostatutako produktibitate plataforma
@@ -1 +1 @@
Nextcloud Android 앱으로 내 Nextcloud에 있는 모든 파일을 사용하십시오.
컨트롤 가능한 자체 호스팅 생산성 플랫폼
+5 -1
View File
@@ -96,6 +96,7 @@
android:installLocation="internalOnly"
android:manageSpaceActivity="com.owncloud.android.ui.activity.ManageSpaceActivity"
android:usesCleartextTraffic="true"
android:requestLegacyExternalStorage="true"
tools:ignore="UnusedAttribute">
<uses-library
@@ -132,7 +133,10 @@
<activity android:name=".ui.activity.ExternalSiteWebView"
android:configChanges="orientation|screenSize|keyboardHidden" />
<activity
android:name=".ui.activity.RichDocumentsWebView"
android:name=".ui.activity.RichDocumentsEditorWebView"
android:configChanges="orientation|screenSize|keyboardHidden" />
<activity
android:name=".ui.activity.TextEditorWebView"
android:configChanges="orientation|screenSize|keyboardHidden"/>
<activity android:name=".ui.activity.ContactsPreferenceActivity"
android:launchMode="singleInstance"/>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 44 KiB

@@ -0,0 +1,58 @@
/*
* Nextcloud Android client application
*
* @author Chris Narkiewicz <[email protected]>
* Copyright (C) 2019 Chris Narkiewicz
* Copyright (C) 2019 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.nextcloud.client.account
import android.accounts.Account
import android.content.Context
import android.net.Uri
import com.owncloud.android.MainApp
import com.owncloud.android.R
import com.owncloud.android.lib.common.OwnCloudAccount
import com.owncloud.android.lib.common.OwnCloudBasicCredentials
import java.net.URI
/**
* This object represents anonymous user, ie. user that did not log in the Nextcloud server.
* It serves as a semantically correct "empty value", allowing simplification of logic
* in various components requiring user data, such as DB queries.
*/
internal class AnonymousUser(private val accountType: String) : User {
companion object {
@JvmStatic
fun fromContext(context: Context): AnonymousUser {
val type = context.getString(R.string.account_type)
return AnonymousUser(type)
}
}
override val accountName: String = "anonymous"
override val server = Server(URI.create(""), MainApp.MINIMUM_SUPPORTED_SERVER_VERSION)
override val isAnonymous = true
override fun toPlatformAccount(): Account {
return Account(accountName, accountType)
}
override fun toOwnCloudAccount(): OwnCloudAccount {
return OwnCloudAccount(Uri.EMPTY, OwnCloudBasicCredentials("", ""))
}
}
@@ -2,19 +2,31 @@ package com.nextcloud.client.account;
import android.accounts.Account;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
/**
* This interface provides access to currently selected user Account.
* This interface provides access to currently selected user.
*
* @see UserAccountManager
*/
@FunctionalInterface
public interface CurrentAccountProvider {
/**
* Get currently active account.
* Get currently active account.
*
* @return Currently selected {@link Account} or first valid {@link Account} registered in OS or null, if not available at all.
*/
@Deprecated
@Nullable
Account getCurrentAccount();
/**
* Get currently active user profile. If there is no actice user, anonymous user is returned.
*
* @return User profile. Profile is never null.
*/
@NonNull
default User getUser() {
return new AnonymousUser("dummy");
}
}
@@ -0,0 +1,47 @@
/*
* Nextcloud Android client application
*
* @author Chris Narkiewicz <[email protected]>
* Copyright (C) 2019 Chris Narkiewicz
* Copyright (C) 2019 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.nextcloud.client.account
import android.accounts.Account
import com.owncloud.android.lib.common.OwnCloudAccount
/**
* This class represents normal user logged into the Nextcloud server.
*/
internal class RegisteredUser(
private val account: Account,
private val ownCloudAccount: OwnCloudAccount,
override val server: Server
) : User {
override val isAnonymous = false
override val accountName: String get() {
return account.name
}
override fun toPlatformAccount(): Account {
return account
}
override fun toOwnCloudAccount(): OwnCloudAccount {
return ownCloudAccount
}
}
@@ -0,0 +1,30 @@
/*
* Nextcloud Android client application
*
* @author Chris Narkiewicz <[email protected]>
* Copyright (C) 2019 Chris Narkiewicz
* Copyright (C) 2019 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.nextcloud.client.account
import com.owncloud.android.lib.resources.status.OwnCloudVersion
import java.net.URI
/**
* This object provides all information necessary to interact
* with backend server.
*/
data class Server(val uri: URI, val version: OwnCloudVersion)
@@ -0,0 +1,54 @@
/*
* Nextcloud Android client application
*
* @author Chris Narkiewicz <[email protected]>
* Copyright (C) 2019 Chris Narkiewicz
* Copyright (C) 2019 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.nextcloud.client.account
import android.accounts.Account
import com.owncloud.android.lib.common.OwnCloudAccount
interface User {
val accountName: String
val server: Server
val isAnonymous: Boolean
/**
* This is temporary helper method created to facilitate incremental refactoring.
* Code using legacy platform Account can be partially converted to instantiate User
* object and use account instance when required.
*
* This method calls will allow tracing code awaiting further refactoring.
*
* @return Account instance that is associated with this User object.
*/
@Deprecated("Temporary workaround")
fun toPlatformAccount(): Account
/**
* This is temporary helper method created to facilitate incremental refactoring.
* Code using legacy ownCloud account can be partially converted to instantiate User
* object and use account instance when required.
*
* This method calls will allow tracing code awaiting further refactoring.
*
* @return OwnCloudAccount instance that is associated with this User object.
*/
@Deprecated("Temporary workaround")
fun toOwnCloudAccount(): OwnCloudAccount
}
@@ -21,10 +21,13 @@ package com.nextcloud.client.account;
import android.accounts.Account;
import com.nextcloud.java.util.Optional;
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.lib.common.OwnCloudAccount;
import com.owncloud.android.lib.resources.status.OwnCloudVersion;
import java.util.List;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
@@ -51,6 +54,22 @@ public interface UserAccountManager extends CurrentAccountProvider {
@NonNull
Account[] getAccounts();
/**
* Get configured nextcloud user accounts
* @return List of users or empty list, if users are not registered.
*/
@NonNull
List<User> getAllUsers();
/**
* Get user with a specific account name.
*
* @param accountName Account name of the requested user
* @return User or empty optional if user does not exist.
*/
@NonNull
Optional<User> getUser(CharSequence accountName);
/**
* Check if Nextcloud account is registered in {@link android.accounts.AccountManager}
*
@@ -78,10 +97,21 @@ public interface UserAccountManager extends CurrentAccountProvider {
* @return Version of the OC server corresponding to account, according to the data saved
* in the system AccountManager
*/
@Deprecated
@NonNull
OwnCloudVersion getServerVersion(Account account);
boolean isSearchSupported(@Nullable Account account);
/**
* Check if user's account supports media streaming. This is a property of server where user has his account.
*
* @deprecated Please use {@link OwnCloudVersion#isMediaStreamingSupported()} directly,
* obtainable from {@link User#getServer()} and {@link Server#getVersion()}
*
* @param account Account used to perform {@link android.accounts.AccountManager} lookup.
*
* @return true is server supports media streaming, false otherwise
*/
@Deprecated
boolean isMediaStreamingSupported(@Nullable Account account);
void resetOwnCloudAccount();
@@ -27,6 +27,7 @@ import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.text.TextUtils;
import com.nextcloud.java.util.Optional;
import com.owncloud.android.MainApp;
import com.owncloud.android.R;
import com.owncloud.android.datamodel.ArbitraryDataProvider;
@@ -35,11 +36,16 @@ import com.owncloud.android.lib.common.OwnCloudAccount;
import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.OwnCloudClientManagerFactory;
import com.owncloud.android.lib.common.UserInfo;
import com.owncloud.android.lib.common.accounts.AccountUtils;
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
import com.owncloud.android.lib.common.utils.Log_OC;
import com.owncloud.android.lib.resources.status.OwnCloudVersion;
import com.owncloud.android.lib.resources.users.GetUserInfoRemoteOperation;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import androidx.annotation.NonNull;
@@ -80,6 +86,20 @@ public class UserAccountManagerImpl implements UserAccountManager {
return accountManager.getAccountsByType(getAccountType());
}
@Override
@NonNull
public List<User> getAllUsers() {
Account[] accounts = getAccounts();
List<User> users = new ArrayList<>(accounts.length);
for (Account account : accounts) {
User user = createUserFromAccount(account);
if (user != null) {
users.add(user);
}
}
return users;
}
@Override
public boolean exists(Account account) {
Account[] nextcloudAccounts = getAccounts();
@@ -103,6 +123,7 @@ public class UserAccountManagerImpl implements UserAccountManager {
return false;
}
@Override
@Nullable
public Account getCurrentAccount() {
Account[] ocAccounts = getAccounts();
@@ -139,6 +160,76 @@ public class UserAccountManagerImpl implements UserAccountManager {
return defaultAccount;
}
/**
* Temporary solution to convert platform account to user instance.
* It takes null and returns null on error to ease error handling
* in legacy code.
*
* @param account Account instance
* @return User instance or null, if conversion failed
*/
@Nullable
private User createUserFromAccount(@Nullable Account account) {
if (account == null) {
return null;
}
OwnCloudAccount ownCloudAccount = null;
try {
ownCloudAccount = new OwnCloudAccount(account, context);
} catch (AccountUtils.AccountNotFoundException ex) {
return null;
}
/*
* Server version
*/
String serverVersionStr = accountManager.getUserData(account, AccountUtils.Constants.KEY_OC_VERSION);
OwnCloudVersion serverVersion;
if (serverVersionStr != null) {
serverVersion = new OwnCloudVersion(serverVersionStr);
} else {
serverVersion = MainApp.MINIMUM_SUPPORTED_SERVER_VERSION;
}
/*
* Server address
*/
String serverAddressStr = accountManager.getUserData(account, AccountUtils.Constants.KEY_OC_BASE_URL);
if (serverAddressStr == null || serverAddressStr.isEmpty()) {
return AnonymousUser.fromContext(context);
}
URI serverUri = URI.create(serverAddressStr); // TODO: validate
return new RegisteredUser(
account,
ownCloudAccount,
new Server(serverUri, serverVersion)
);
}
/**
* Get user. If user cannot be retrieved due to data error, anonymous user is returned instead.
*
*
* @return User instance
*/
@NonNull
@Override
public User getUser() {
Account account = getCurrentAccount();
User user = createUserFromAccount(account);
return user != null ? user : AnonymousUser.fromContext(context);
}
@Override
@NonNull
public Optional<User> getUser(CharSequence accountName) {
Account account = getAccountByName(accountName.toString());
User user = createUserFromAccount(account);
return Optional.of(user);
}
@Override
@Nullable
public OwnCloudAccount getCurrentOwnCloudAccount() {
@@ -197,6 +288,7 @@ public class UserAccountManagerImpl implements UserAccountManager {
return result;
}
@Deprecated
@Override
@NonNull
public OwnCloudVersion getServerVersion(Account account) {
@@ -214,11 +306,6 @@ public class UserAccountManagerImpl implements UserAccountManager {
return serverVersion;
}
@Override
public boolean isSearchSupported(Account account) {
return account != null && getServerVersion(account).isSearchSupported();
}
@Override
public boolean isMediaStreamingSupported(Account account) {
return account != null && getServerVersion(account).isMediaStreamingSupported();
@@ -233,7 +320,8 @@ public class UserAccountManagerImpl implements UserAccountManager {
@Override
public boolean accountOwnsFile(OCFile file, Account account) {
return !TextUtils.isEmpty(file.getOwnerId()) && account.name.split("@")[0].equals(file.getOwnerId());
final String ownerId = file.getOwnerId();
return TextUtils.isEmpty(ownerId) || account.name.split("@")[0].equals(ownerId);
}
public boolean migrateUserId() {
@@ -19,6 +19,8 @@
*/
package com.nextcloud.client.appinfo;
import android.content.Context;
/**
* This class provides general, static information about application
* build.
@@ -36,4 +38,5 @@ public interface AppInfo {
boolean isDebugBuild();
String getAppVersion(Context context);
}
@@ -19,7 +19,12 @@
*/
package com.nextcloud.client.appinfo;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import com.owncloud.android.BuildConfig;
import com.owncloud.android.lib.common.utils.Log_OC;
class AppInfoImpl implements AppInfo {
@@ -32,4 +37,20 @@ class AppInfoImpl implements AppInfo {
public boolean isDebugBuild() {
return BuildConfig.DEBUG;
}
@Override
public String getAppVersion(Context context) {
try {
PackageInfo pInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
if (pInfo != null) {
return pInfo.versionName;
} else {
return "n/a";
}
} catch (PackageManager.NameNotFoundException e) {
Log_OC.e(this, "Trying to get packageName", e.getCause());
return "n/a";
}
}
}
@@ -29,8 +29,13 @@ import java.util.Locale
class DeviceInfo {
val vendor: String = Build.MANUFACTURER.toLowerCase(Locale.ROOT)
val apiLevel: Int = Build.VERSION.SDK_INT
val androidVersion = Build.VERSION.RELEASE
fun hasCamera(context: Context): Boolean {
return context.packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA)
}
fun editorSupported(): Boolean {
return apiLevel < Build.VERSION_CODES.LOLLIPOP
}
}
@@ -41,6 +41,7 @@ import com.nextcloud.client.logger.FileLogHandler;
import com.nextcloud.client.logger.Logger;
import com.nextcloud.client.logger.LoggerImpl;
import com.nextcloud.client.logger.LogsRepository;
import com.nextcloud.client.network.ClientFactory;
import com.owncloud.android.datamodel.ArbitraryDataProvider;
import com.owncloud.android.datamodel.UploadsStorageManager;
import com.owncloud.android.ui.activities.data.activities.ActivitiesRepository;
@@ -106,8 +107,8 @@ class AppModule {
}
@Provides
FilesRepository filesRepository(UserAccountManager accountManager) {
return new RemoteFilesRepository(new FilesServiceApiImpl(accountManager));
FilesRepository filesRepository(UserAccountManager accountManager, ClientFactory clientFactory) {
return new RemoteFilesRepository(new FilesServiceApiImpl(accountManager, clientFactory));
}
@Provides
@@ -32,6 +32,7 @@ import com.owncloud.android.files.services.FileDownloader;
import com.owncloud.android.files.services.FileUploader;
import com.owncloud.android.jobs.NotificationJob;
import com.owncloud.android.providers.DiskLruImageCacheFileProvider;
import com.owncloud.android.providers.FileContentProvider;
import com.owncloud.android.providers.UsersAndGroupsSearchProvider;
import com.owncloud.android.services.AccountManagerService;
import com.owncloud.android.services.OperationsService;
@@ -53,14 +54,16 @@ import com.owncloud.android.ui.activity.NotificationsActivity;
import com.owncloud.android.ui.activity.PassCodeActivity;
import com.owncloud.android.ui.activity.ReceiveExternalFilesActivity;
import com.owncloud.android.ui.activity.RequestCredentialsActivity;
import com.owncloud.android.ui.activity.RichDocumentsWebView;
import com.owncloud.android.ui.activity.RichDocumentsEditorWebView;
import com.owncloud.android.ui.activity.SettingsActivity;
import com.owncloud.android.ui.activity.ShareActivity;
import com.owncloud.android.ui.activity.SsoGrantPermissionActivity;
import com.owncloud.android.ui.activity.SyncedFoldersActivity;
import com.owncloud.android.ui.activity.TextEditorWebView;
import com.owncloud.android.ui.activity.UploadFilesActivity;
import com.owncloud.android.ui.activity.UploadListActivity;
import com.owncloud.android.ui.activity.UserInfoActivity;
import com.owncloud.android.ui.dialog.ChooseRichDocumentsTemplateDialogFragment;
import com.owncloud.android.ui.dialog.ChooseTemplateDialogFragment;
import com.owncloud.android.ui.dialog.MultipleAccountsDialog;
import com.owncloud.android.ui.fragment.ExtendedListFragment;
@@ -74,7 +77,9 @@ import com.owncloud.android.ui.fragment.contactsbackup.ContactListFragment;
import com.owncloud.android.ui.preview.PreviewImageActivity;
import com.owncloud.android.ui.preview.PreviewImageFragment;
import com.owncloud.android.ui.preview.PreviewMediaFragment;
import com.owncloud.android.ui.preview.PreviewTextFileFragment;
import com.owncloud.android.ui.preview.PreviewTextFragment;
import com.owncloud.android.ui.preview.PreviewTextStringFragment;
import com.owncloud.android.ui.preview.PreviewVideoActivity;
import com.owncloud.android.ui.trashbin.TrashbinActivity;
@@ -111,7 +116,6 @@ abstract class ComponentsModule {
@ContributesAndroidInjector abstract PreviewVideoActivity previewVideoActivity();
@ContributesAndroidInjector abstract ReceiveExternalFilesActivity receiveExternalFilesActivity();
@ContributesAndroidInjector abstract RequestCredentialsActivity requestCredentialsActivity();
@ContributesAndroidInjector abstract RichDocumentsWebView richDocumentsWebView();
@ContributesAndroidInjector abstract SettingsActivity settingsActivity();
@ContributesAndroidInjector abstract ShareActivity shareActivity();
@ContributesAndroidInjector abstract SsoGrantPermissionActivity ssoGrantPermissionActivity();
@@ -123,6 +127,9 @@ abstract class ComponentsModule {
@ContributesAndroidInjector abstract WhatsNewActivity whatsNewActivity();
@ContributesAndroidInjector abstract EtmActivity etmActivity();
@ContributesAndroidInjector abstract RichDocumentsEditorWebView richDocumentsWebView();
@ContributesAndroidInjector abstract TextEditorWebView textEditorWebView();
@ContributesAndroidInjector abstract ExtendedListFragment extendedListFragment();
@ContributesAndroidInjector abstract FileDetailFragment fileDetailFragment();
@ContributesAndroidInjector abstract LocalFileListFragment localFileListFragment();
@@ -130,11 +137,16 @@ abstract class ComponentsModule {
@ContributesAndroidInjector abstract FileDetailActivitiesFragment fileDetailActivitiesFragment();
@ContributesAndroidInjector abstract FileDetailSharingFragment fileDetailSharingFragment();
@ContributesAndroidInjector abstract ChooseTemplateDialogFragment chooseTemplateDialogFragment();
@ContributesAndroidInjector
abstract ChooseRichDocumentsTemplateDialogFragment chooseRichDocumentsTemplateDialogFragment();
@ContributesAndroidInjector abstract PreviewImageFragment previewImageFragment();
@ContributesAndroidInjector abstract ContactListFragment chooseContactListFragment();
@ContributesAndroidInjector abstract PreviewMediaFragment previewMediaFragment();
@ContributesAndroidInjector abstract PreviewTextFragment previewTextFragment();
@ContributesAndroidInjector abstract PreviewTextFileFragment previewTextFileFragment();
@ContributesAndroidInjector abstract PreviewTextStringFragment previewTextStringFragment();
@ContributesAndroidInjector abstract PhotoFragment photoFragment();
@ContributesAndroidInjector abstract MultipleAccountsDialog multipleAccountsDialog();
@@ -146,6 +158,7 @@ abstract class ComponentsModule {
@ContributesAndroidInjector abstract BootupBroadcastReceiver bootupBroadcastReceiver();
@ContributesAndroidInjector abstract NotificationJob.NotificationReceiver notificationJobBroadcastReceiver();
@ContributesAndroidInjector abstract FileContentProvider fileContentProvider();
@ContributesAndroidInjector abstract UsersAndGroupsSearchProvider usersAndGroupsSearchProvider();
@ContributesAndroidInjector abstract DiskLruImageCacheFileProvider diskLruImageCacheFileProvider();
@@ -69,7 +69,7 @@ class ShowErrorActivity : AppCompatActivity() {
}
override fun onCreateOptionsMenu(menu: Menu?): Boolean {
menuInflater.inflate(R.menu.activity_error_show, menu)
menuInflater.inflate(R.menu.activity_show_error, menu)
return super.onCreateOptionsMenu(menu)
}
@@ -51,7 +51,7 @@ class EtmPreferencesFragment : EtmBaseFragment() {
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
super.onCreateOptionsMenu(menu, inflater)
inflater.inflate(R.menu.etm_preferences, menu)
inflater.inflate(R.menu.fragment_etm_preferences, menu)
}
override fun onOptionsItemSelected(item: MenuItem): Boolean {
@@ -26,6 +26,7 @@ import androidx.annotation.RequiresApi
import androidx.work.ListenableWorker
import androidx.work.WorkerFactory
import androidx.work.WorkerParameters
import com.nextcloud.client.core.Clock
import com.nextcloud.client.device.DeviceInfo
import com.nextcloud.client.device.PowerManagementService
import com.nextcloud.client.preferences.AppPreferences
@@ -40,6 +41,7 @@ import javax.inject.Provider
class BackgroundJobFactory @Inject constructor(
private val preferences: AppPreferences,
private val contentResolver: ContentResolver,
private val clock: Clock,
private val powerManagerService: PowerManagementService,
private val backgroundJobManager: Provider<BackgroundJobManager>,
private val deviceInfo: DeviceInfo
@@ -58,13 +60,14 @@ class BackgroundJobFactory @Inject constructor(
}
return when (workerClass) {
ContentObserverWork::class -> createContentObserverJob(context, workerParameters)
ContentObserverWork::class -> createContentObserverJob(context, workerParameters, clock)
else -> null // falls back to default factory
}
}
private fun createContentObserverJob(context: Context, workerParameters: WorkerParameters): ListenableWorker? {
val folderResolver = SyncedFolderProvider(contentResolver, preferences)
private fun createContentObserverJob(context: Context, workerParameters: WorkerParameters, clock: Clock):
ListenableWorker? {
val folderResolver = SyncedFolderProvider(contentResolver, preferences, clock)
@RequiresApi(Build.VERSION_CODES.N)
if (deviceInfo.apiLevel >= Build.VERSION_CODES.N) {
return ContentObserverWork(
@@ -84,7 +84,7 @@ class LogsActivity : ToolbarActivity() {
}
override fun onCreateOptionsMenu(menu: Menu): Boolean {
menuInflater.inflate(R.menu.logs_menu, menu)
menuInflater.inflate(R.menu.activity_logs, menu)
(menu.findItem(R.id.action_search).actionView as SearchView).apply {
setOnQueryTextListener(searchBoxListener)
@@ -26,6 +26,8 @@ import android.accounts.OperationCanceledException;
import android.app.Activity;
import android.net.Uri;
import com.nextcloud.client.account.User;
import com.nextcloud.common.NextcloudClient;
import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.accounts.AccountUtils;
@@ -35,10 +37,33 @@ import java.io.IOException;
public interface ClientFactory {
/**
* This exception wraps all possible errors thrown by trigger-happy
* OwnCloudClient constructor, making try-catch blocks manageable.
*
* This is a temporary refactoring measure, until a better
* error handling method can be procured.
*/
@Deprecated
class CreationException extends Exception {
private static final long serialVersionUID = 0L;
CreationException(Throwable t) {
super(t);
}
}
OwnCloudClient create(User user) throws CreationException;
NextcloudClient createNextcloudClient(User user) throws CreationException;
@Deprecated
OwnCloudClient create(Account account)
throws OperationCanceledException, AuthenticatorException, IOException,
AccountUtils.AccountNotFoundException;
@Deprecated
OwnCloudClient create(Account account, Activity currentActivity)
throws OperationCanceledException, AuthenticatorException, IOException,
AccountUtils.AccountNotFoundException;
@@ -27,6 +27,8 @@ import android.app.Activity;
import android.content.Context;
import android.net.Uri;
import com.nextcloud.client.account.User;
import com.nextcloud.common.NextcloudClient;
import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.OwnCloudClientFactory;
import com.owncloud.android.lib.common.accounts.AccountUtils;
@@ -41,6 +43,30 @@ class ClientFactoryImpl implements ClientFactory {
this.context = context;
}
@Override
public OwnCloudClient create(User user) throws CreationException {
try {
return OwnCloudClientFactory.createOwnCloudClient(user.toPlatformAccount(), context);
} catch (OperationCanceledException|
AuthenticatorException|
IOException|
AccountUtils.AccountNotFoundException e) {
throw new CreationException(e);
}
}
@Override
public NextcloudClient createNextcloudClient(User user) throws CreationException {
try {
return OwnCloudClientFactory.createNextcloudClient(user.toPlatformAccount(), context);
} catch (OperationCanceledException |
AuthenticatorException |
IOException |
AccountUtils.AccountNotFoundException e) {
throw new CreationException(e);
}
}
@Override
public OwnCloudClient create(Account account)
throws OperationCanceledException, AuthenticatorException, IOException,
@@ -20,14 +20,13 @@
package com.nextcloud.client.network;
import android.accounts.Account;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import com.evernote.android.job.JobRequest;
import com.nextcloud.client.account.Server;
import com.nextcloud.client.account.UserAccountManager;
import com.owncloud.android.lib.common.OwnCloudAccount;
import com.owncloud.android.lib.common.utils.Log_OC;
import com.nextcloud.client.logger.Logger;
import com.owncloud.android.lib.resources.status.OwnCloudVersion;
import org.apache.commons.httpclient.HttpClient;
@@ -44,10 +43,11 @@ class ConnectivityServiceImpl implements ConnectivityService {
private final static String TAG = ConnectivityServiceImpl.class.getName();
private ConnectivityManager connectivityManager;
private UserAccountManager accountManager;
private ClientFactory clientFactory;
private GetRequestBuilder requestBuilder;
private final ConnectivityManager connectivityManager;
private final UserAccountManager accountManager;
private final ClientFactory clientFactory;
private final GetRequestBuilder requestBuilder;
private final Logger logger;
static class GetRequestBuilder implements Function1<String, GetMethod> {
@Override
@@ -59,55 +59,55 @@ class ConnectivityServiceImpl implements ConnectivityService {
ConnectivityServiceImpl(ConnectivityManager connectivityManager,
UserAccountManager accountManager,
ClientFactory clientFactory,
GetRequestBuilder requestBuilder) {
GetRequestBuilder requestBuilder,
Logger logger) {
this.connectivityManager = connectivityManager;
this.accountManager = accountManager;
this.clientFactory = clientFactory;
this.requestBuilder = requestBuilder;
this.logger = logger;
}
@Override
public boolean isInternetWalled() {
if (isOnlineWithWifi()) {
try {
Account account = accountManager.getCurrentAccount();
OwnCloudAccount ocAccount = accountManager.getCurrentOwnCloudAccount();
if (account != null && ocAccount != null) {
OwnCloudVersion serverVersion = accountManager.getServerVersion(account);
Server server = accountManager.getUser().getServer();
String baseServerAddress = server.getUri().toString();
if (baseServerAddress.isEmpty()) {
return true;
}
String url;
if (server.getVersion().compareTo(OwnCloudVersion.nextcloud_13) > 0) {
url = baseServerAddress + "/index.php/204";
} else {
url = baseServerAddress + "/status.php";
}
String url;
if (serverVersion.compareTo(OwnCloudVersion.nextcloud_13) > 0) {
url = ocAccount.getBaseUri() + "/index.php/204";
} else {
url = ocAccount.getBaseUri() + "/status.php";
}
GetMethod get = requestBuilder.invoke(url);
HttpClient client = clientFactory.createPlainClient();
GetMethod get = requestBuilder.invoke(url);
HttpClient client = clientFactory.createPlainClient();
int status = client.executeMethod(get);
int status = client.executeMethod(get);
if (serverVersion.compareTo(OwnCloudVersion.nextcloud_13) > 0) {
return !(status == HttpStatus.SC_NO_CONTENT &&
(get.getResponseContentLength() == -1 || get.getResponseContentLength() == 0));
} else {
if (status == HttpStatus.SC_OK) {
try {
// try parsing json to verify response
// check if json contains maintenance and it should be false
String json = get.getResponseBodyAsString();
return new JSONObject(json).getBoolean("maintenance");
} catch (Exception e) {
return true;
}
} else {
if (server.getVersion().compareTo(OwnCloudVersion.nextcloud_13) > 0) {
return !(status == HttpStatus.SC_NO_CONTENT &&
(get.getResponseContentLength() == -1 || get.getResponseContentLength() == 0));
} else {
if (status == HttpStatus.SC_OK) {
try {
// try parsing json to verify response
// check if json contains maintenance and it should be false
String json = get.getResponseBodyAsString();
return new JSONObject(json).getBoolean("maintenance");
} catch (Exception e) {
return true;
}
} else {
return true;
}
}
} catch (IOException e) {
Log_OC.e(TAG, "Error checking internet connection", e);
logger.e(TAG, "Error checking internet connection", e);
}
} else {
return getActiveNetworkType() == JobRequest.NetworkType.ANY;
@@ -24,6 +24,7 @@ import android.content.Context;
import android.net.ConnectivityManager;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.logger.Logger;
import javax.inject.Singleton;
@@ -36,11 +37,13 @@ public class NetworkModule {
@Provides
ConnectivityService connectivityService(ConnectivityManager connectivityManager,
UserAccountManager accountManager,
ClientFactory clientFactory) {
ClientFactory clientFactory,
Logger logger) {
return new ConnectivityServiceImpl(connectivityManager,
accountManager,
clientFactory,
new ConnectivityServiceImpl.GetRequestBuilder());
new ConnectivityServiceImpl.GetRequestBuilder(),
logger);
}
@Provides
@@ -28,7 +28,6 @@ import android.accounts.Account;
import android.accounts.AccountManager;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
@@ -73,6 +72,8 @@ public class FirstRunActivity extends BaseActivity implements ViewPager.OnPageCh
@Override
protected void onCreate(Bundle savedInstanceState) {
enableAccountHandling = false;
super.onCreate(savedInstanceState);
setContentView(R.layout.first_run_activity);
@@ -81,7 +82,7 @@ public class FirstRunActivity extends BaseActivity implements ViewPager.OnPageCh
setSlideshowSize(getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE);
Button loginButton = findViewById(R.id.login);
loginButton.setBackgroundColor(Color.WHITE);
loginButton.setBackgroundColor(getResources().getColor(R.color.login_btn_tint));
loginButton.setTextColor(getResources().getColor(R.color.primary));
loginButton.setOnClickListener(v -> {
@@ -95,7 +96,7 @@ public class FirstRunActivity extends BaseActivity implements ViewPager.OnPageCh
});
Button providerButton = findViewById(R.id.signup);
providerButton.setBackgroundColor(getResources().getColor(R.color.primary_dark));
providerButton.setBackgroundColor(getResources().getColor(R.color.primary));
providerButton.setTextColor(getResources().getColor(R.color.login_text_color));
providerButton.setVisibility(isProviderOrOwnInstallationVisible ? View.VISIBLE : View.GONE);
providerButton.setOnClickListener(v -> {
@@ -218,17 +219,19 @@ public class FirstRunActivity extends BaseActivity implements ViewPager.OnPageCh
return;
}
setAccount(account);
userAccountManager.setCurrentOwnCloudAccount(account.name);
onAccountSet();
Intent i = new Intent(this, FileDisplayActivity.class);
i.setAction(FileDisplayActivity.RESTART);
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(i);
finish();
}
}
public static FeatureItem[] getFirstRun() {
return new FeatureItem[]{
new FeatureItem(R.drawable.logo, R.string.first_run_1_text, R.string.empty, true, false),
@@ -23,7 +23,6 @@
*/
package com.nextcloud.client.onboarding;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
@@ -99,11 +98,7 @@ public class WhatsNewActivity extends FragmentActivity implements ViewPager.OnPa
updateNextButtonIfNeeded();
});
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
mForwardFinishButton.setBackground(null);
} else {
mForwardFinishButton.setBackgroundDrawable(null);
}
mForwardFinishButton.setBackground(null);
mSkipButton = findViewById(R.id.skip);
mSkipButton.setTextColor(fontColor);
@@ -23,8 +23,42 @@ package com.nextcloud.client.preferences;
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.utils.FileSortOrder;
import androidx.annotation.Nullable;
/**
* This interface provides single point of entry for access to all application
* preferences and allows clients to subscribe for specific configuration
* changes.
*/
public interface AppPreferences {
/**
* Preferences listener. Callbacks should be invoked on main thread.
*
* Miantainers should extend this interface with callbacks for specific
* events.
*/
interface Listener {
default void onDarkThemeModeChanged(DarkMode mode) {
/* default empty implementation */
};
}
/**
* Registers preferences listener. It no-ops if listener
* is already registered.
*
* @param listener application preferences listener
*/
void addListener(@Nullable Listener listener);
/**
* Unregister listener. It no-ops if listener is not registered.
*
* @param listener application preferences listener
*/
void removeListener(@Nullable Listener listener);
void setKeysReInitEnabled();
boolean isKeysReInitEnabled();
@@ -239,6 +273,20 @@ public interface AppPreferences {
*/
int getUploaderBehaviour();
/**
* Changes dark theme mode
*
* This is reactive property. Listeners will be invoked if registered.
*
* @param mode dark mode setting: on, off, system
*/
void setDarkThemeMode(DarkMode mode);
/**
* @return dark mode setting: on, off, system
*/
DarkMode getDarkThemeMode();
/**
* Saves the uploader behavior which the user has set last.
*
@@ -21,33 +21,45 @@
package com.nextcloud.client.preferences;
import android.accounts.Account;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import com.nextcloud.client.account.CurrentAccountProvider;
import com.nextcloud.client.account.User;
import com.nextcloud.client.account.UserAccountManagerImpl;
import com.owncloud.android.datamodel.ArbitraryDataProvider;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.datamodel.FileDataStorageManagerImpl;
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.ui.activity.PassCodeActivity;
import com.owncloud.android.ui.activity.SettingsActivity;
import com.owncloud.android.utils.FileSortOrder;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;
import androidx.annotation.Nullable;
import static com.owncloud.android.ui.fragment.OCFileListFragment.FOLDER_LAYOUT_LIST;
/**
* Helper to simplify reading of Preferences all around the app
* Implementation of application-wide preferences using {@link SharedPreferences}.
*
* Users should not use this class directly. Please use {@link AppPreferences} interafce
* instead.
*/
public final class AppPreferencesImpl implements AppPreferences {
/**
* Constant to access value of last path selected by the user to upload a file shared from other app.
* Value handled by the app without direct access in the UI.
*/
public static final String AUTO_PREF__LAST_SEEN_VERSION_CODE = "lastSeenVersionCode";
public static final String STORAGE_PATH = "storage_path";
public static final String PREF__DARK_THEME = "dark_theme_mode";
public static final float DEFAULT_GRID_COLUMN = 4.0f;
private static final String AUTO_PREF__LAST_UPLOAD_PATH = "last_upload_path";
private static final String AUTO_PREF__UPLOAD_FROM_LOCAL_LAST_PATH = "upload_from_local_last_path";
private static final String AUTO_PREF__UPLOAD_FILE_EXTENSION_MAP_URL = "prefs_upload_file_extension_map_url";
@@ -68,6 +80,7 @@ public final class AppPreferencesImpl implements AppPreferences {
private static final String PREF__AUTO_UPLOAD_INIT = "autoUploadInit";
private static final String PREF__FOLDER_SORT_ORDER = "folder_sort_order";
private static final String PREF__FOLDER_LAYOUT = "folder_layout";
private static final String PREF__LOCK_TIMESTAMP = "lock_timestamp";
private static final String PREF__SHOW_MEDIA_SCAN_NOTIFICATIONS = "show_media_scan_notifications";
private static final String PREF__LOCK = SettingsActivity.PREFERENCE_LOCK;
@@ -79,7 +92,54 @@ public final class AppPreferencesImpl implements AppPreferences {
private final Context context;
private final SharedPreferences preferences;
private final CurrentAccountProvider currentAccountProvider;
private final ListenerRegistry listeners;
/**
* Adapter delegating raw {@link SharedPreferences.OnSharedPreferenceChangeListener} calls
* with key-value pairs to respective {@link com.nextcloud.client.preferences.AppPreferences.Listener} method.
*/
static class ListenerRegistry implements SharedPreferences.OnSharedPreferenceChangeListener {
private final AppPreferences preferences;
private final Set<Listener> listeners;
ListenerRegistry(AppPreferences preferences) {
this.preferences = preferences;
this.listeners = new CopyOnWriteArraySet<>();
}
void add(@Nullable final Listener listener) {
if (listener != null) {
listeners.add(listener);
}
}
void remove(@Nullable final Listener listener) {
if (listener != null) {
listeners.remove(listener);
}
}
@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
if (PREF__DARK_THEME.equals(key)) {
DarkMode mode = preferences.getDarkThemeMode();
for(Listener l : listeners) {
l.onDarkThemeModeChanged(mode);
}
}
}
}
/**
* This is a temporary workaround to access app preferences in places that cannot use
* dependency injection yet. Use injected component via {@link AppPreferences} interface.
*
* WARNING: this creates new instance! it does not return app-wide singleton
*
* @param context Context used to create shared preferences
* @return New instance of app preferences component
*/
@Deprecated
public static AppPreferences fromContext(Context context) {
final CurrentAccountProvider currentAccountProvider = UserAccountManagerImpl.fromContext(context);
final SharedPreferences prefs = android.preference.PreferenceManager.getDefaultSharedPreferences(context);
@@ -90,6 +150,18 @@ public final class AppPreferencesImpl implements AppPreferences {
this.context = appContext;
this.preferences = preferences;
this.currentAccountProvider = currentAccountProvider;
this.listeners = new ListenerRegistry(this);
this.preferences.registerOnSharedPreferenceChangeListener(listeners);
}
@Override
public void addListener(@Nullable AppPreferences.Listener listener) {
this.listeners.add(listener);
}
@Override
public void removeListener(@Nullable AppPreferences.Listener listener) {
this.listeners.remove(listener);
}
@Override
@@ -211,7 +283,7 @@ public final class AppPreferencesImpl implements AppPreferences {
@Override
public String getFolderLayout(OCFile folder) {
return getFolderPreference(context,
currentAccountProvider.getCurrentAccount(),
currentAccountProvider.getUser(),
PREF__FOLDER_LAYOUT,
folder,
FOLDER_LAYOUT_LIST);
@@ -220,7 +292,7 @@ public final class AppPreferencesImpl implements AppPreferences {
@Override
public void setFolderLayout(OCFile folder, String layout_name) {
setFolderPreference(context,
currentAccountProvider.getCurrentAccount(),
currentAccountProvider.getUser(),
PREF__FOLDER_LAYOUT,
folder,
layout_name);
@@ -229,7 +301,7 @@ public final class AppPreferencesImpl implements AppPreferences {
@Override
public FileSortOrder getSortOrderByFolder(OCFile folder) {
return FileSortOrder.sortOrders.get(getFolderPreference(context,
currentAccountProvider.getCurrentAccount(),
currentAccountProvider.getUser(),
PREF__FOLDER_SORT_ORDER,
folder,
FileSortOrder.sort_a_to_z.name));
@@ -238,7 +310,7 @@ public final class AppPreferencesImpl implements AppPreferences {
@Override
public void setSortOrder(OCFile folder, FileSortOrder sortOrder) {
setFolderPreference(context,
currentAccountProvider.getCurrentAccount(),
currentAccountProvider.getUser(),
PREF__FOLDER_SORT_ORDER,
folder,
sortOrder.name);
@@ -251,28 +323,23 @@ public final class AppPreferencesImpl implements AppPreferences {
@Override
public FileSortOrder getSortOrderByType(FileSortOrder.Type type, FileSortOrder defaultOrder) {
Account account = currentAccountProvider.getCurrentAccount();
if (account == null) {
User user = currentAccountProvider.getUser();
if (user.isAnonymous()) {
return defaultOrder;
}
ArbitraryDataProvider dataProvider = new ArbitraryDataProvider(context.getContentResolver());
String value = dataProvider.getValue(account.name, PREF__FOLDER_SORT_ORDER + "_" + type);
String value = dataProvider.getValue(user.getAccountName(), PREF__FOLDER_SORT_ORDER + "_" + type);
return value.isEmpty() ? defaultOrder : FileSortOrder.sortOrders.get(value);
}
@Override
public void setSortOrder(FileSortOrder.Type type, FileSortOrder sortOrder) {
Account account = currentAccountProvider.getCurrentAccount();
if (account == null) {
throw new IllegalArgumentException("Account may not be null!");
}
User user = currentAccountProvider.getUser();
ArbitraryDataProvider dataProvider = new ArbitraryDataProvider(context.getContentResolver());
dataProvider.storeOrUpdateKeyValue(account.name, PREF__FOLDER_SORT_ORDER + "_" + type, sortOrder.name);
dataProvider.storeOrUpdateKeyValue(user.getAccountName(), PREF__FOLDER_SORT_ORDER + "_" + type, sortOrder.name);
}
@Override
@@ -340,6 +407,21 @@ public final class AppPreferencesImpl implements AppPreferences {
return preferences.getInt(AUTO_PREF__UPLOADER_BEHAVIOR, 1);
}
@Override
public void setDarkThemeMode(DarkMode mode) {
preferences.edit().putString(PREF__DARK_THEME, mode.name()).apply();
}
@Override
public DarkMode getDarkThemeMode() {
try {
return DarkMode.valueOf(preferences.getString(PREF__DARK_THEME, DarkMode.LIGHT.name()));
} catch (ClassCastException e) {
preferences.edit().putString(PREF__DARK_THEME, DarkMode.LIGHT.name()).apply();
return DarkMode.DARK;
}
}
@Override
public void setUploaderBehaviour(int uploaderBehaviour) {
preferences.edit().putInt(AUTO_PREF__UPLOADER_BEHAVIOR, uploaderBehaviour).apply();
@@ -495,22 +577,23 @@ public final class AppPreferencesImpl implements AppPreferences {
* @return Preference value
*/
private static String getFolderPreference(final Context context,
final Account account,
final User user,
final String preferenceName,
final OCFile folder,
final String defaultValue) {
if (account == null) {
if (user.isAnonymous()) {
return defaultValue;
}
ArbitraryDataProvider dataProvider = new ArbitraryDataProvider(context.getContentResolver());
FileDataStorageManager storageManager = new FileDataStorageManager(account, context.getContentResolver());
FileDataStorageManager storageManager = new FileDataStorageManagerImpl(user.toPlatformAccount(),
context);
String value = dataProvider.getValue(account.name, getKeyFromFolder(preferenceName, folder));
String value = dataProvider.getValue(user.getAccountName(), getKeyFromFolder(preferenceName, folder));
OCFile prefFolder = folder;
while (prefFolder != null && value.isEmpty()) {
prefFolder = storageManager.getFileById(prefFolder.getParentId());
value = dataProvider.getValue(account.name, getKeyFromFolder(preferenceName, prefFolder));
value = dataProvider.getValue(user.getAccountName(), getKeyFromFolder(preferenceName, prefFolder));
}
return value.isEmpty() ? defaultValue : value;
}
@@ -524,16 +607,12 @@ public final class AppPreferencesImpl implements AppPreferences {
* @param value Preference value to set.
*/
private static void setFolderPreference(final Context context,
final Account account,
final User user,
final String preferenceName,
final OCFile folder,
final String value) {
if (account == null) {
throw new IllegalArgumentException("Account may not be null!");
}
ArbitraryDataProvider dataProvider = new ArbitraryDataProvider(context.getContentResolver());
dataProvider.storeOrUpdateKeyValue(account.name, getKeyFromFolder(preferenceName, folder), value);
dataProvider.storeOrUpdateKeyValue(user.getAccountName(), getKeyFromFolder(preferenceName, folder), value);
}
private static String getKeyFromFolder(String preferenceName, OCFile folder) {
@@ -0,0 +1,27 @@
/*
*
* Nextcloud Android client application
*
* @author Tobias Kaminsky
* Copyright (C) 2019 Tobias Kaminsky
* Copyright (C) 2019 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.nextcloud.client.preferences;
public enum DarkMode {
DARK, LIGHT, SYSTEM
}
@@ -0,0 +1,366 @@
/*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.nextcloud.java.util;
import com.nextcloud.java.util.function.Predicate;
import java.util.NoSuchElementException;
import androidx.core.util.Consumer;
import androidx.core.util.ObjectsCompat;
import androidx.core.util.Supplier;
import kotlin.jvm.functions.Function1;
/**
* This class is backported from Java 8 to be used on older Android API levels.
* It uses available interfaces from Kotlin and androidx. It is semantically
* identical with Java 8 API, allowing smooth migration when those APIs become
* available.
*
* A container object which may or may not contain a non-null value.
* If a value is present, {@code isPresent()} will return {@code true} and
* {@code get()} will return the value.
*
* <p>Additional methods that depend on the presence or absence of a contained
* value are provided, such as {@link #orElse(java.lang.Object) orElse()}
* (return a default value if value not present) and
* {@link #ifPresent(Consumer) ifPresent()} (execute a block
* of code if the value is present).
*/
public final class Optional<T> {
/**
* Common instance for {@code empty()}.
*/
private static final Optional<?> EMPTY = new Optional<>();
/**
* If non-null, the value; if null, indicates no value is present
*/
private final T value;
/**
* Constructs an empty instance.
*
* @implNote Generally only one empty instance, {@link Optional#EMPTY},
* should exist per VM.
*/
private Optional() {
this.value = null;
}
/**
* Returns an empty {@code Optional} instance. No value is present for this
* Optional.
*
* @apiNote Though it may be tempting to do so, avoid testing if an object
* is empty by comparing with {@code ==} against instances returned by
* {@code Option.empty()}. There is no guarantee that it is a singleton.
* Instead, use {@link #isPresent()}.
*
* @param <T> Type of the non-existent value
* @return an empty {@code Optional}
*/
public static<T> Optional<T> empty() {
@SuppressWarnings("unchecked")
Optional<T> t = (Optional<T>) EMPTY;
return t;
}
/**
* Constructs an instance with the value present.
*
* @param value the non-null value to be present
* @throws NullPointerException if value is null
*/
private Optional(T value) {
if (value == null) {
throw new NullPointerException();
}
this.value = value;
}
/**
* Returns an {@code Optional} with the specified present non-null value.
*
* @param <T> the class of the value
* @param value the value to be present, which must be non-null
* @return an {@code Optional} with the value present
* @throws NullPointerException if value is null
*/
public static <T> Optional<T> of(T value) {
return new Optional<>(value);
}
/**
* Returns an {@code Optional} describing the specified value, if non-null,
* otherwise returns an empty {@code Optional}.
*
* @param <T> the class of the value
* @param value the possibly-null value to describe
* @return an {@code Optional} with a present value if the specified value
* is non-null, otherwise an empty {@code Optional}
*/
public static <T> Optional<T> ofNullable(T value) {
return value == null ? empty() : of(value);
}
/**
* If a value is present in this {@code Optional}, returns the value,
* otherwise throws {@code NoSuchElementException}.
*
* @return the non-null value held by this {@code Optional}
* @throws NoSuchElementException if there is no value present
*
* @see Optional#isPresent()
*/
public T get() {
if (value == null) {
throw new NoSuchElementException("No value present");
}
return value;
}
/**
* Return {@code true} if there is a value present, otherwise {@code false}.
*
* @return {@code true} if there is a value present, otherwise {@code false}
*/
public boolean isPresent() {
return value != null;
}
/**
* If a value is present, invoke the specified consumer with the value,
* otherwise do nothing.
*
* @param consumer block to be executed if a value is present
* @throws NullPointerException if value is present and {@code consumer} is
* null
*/
public void ifPresent(Consumer<? super T> consumer) {
if (value != null) {
consumer.accept(value);
}
}
/**
* If a value is present, and the value matches the given predicate,
* return an {@code Optional} describing the value, otherwise return an
* empty {@code Optional}.
*
* @param predicate a predicate to apply to the value, if present
* @return an {@code Optional} describing the value of this {@code Optional}
* if a value is present and the value matches the given predicate,
* otherwise an empty {@code Optional}
* @throws NullPointerException if the predicate is null
*/
public Optional<T> filter(Predicate<? super T> predicate) {
if (predicate == null) {
throw new NullPointerException();
}
if (!isPresent()) {
return this;
} else {
return predicate.test(value) ? this : empty();
}
}
/**
* If a value is present, apply the provided mapping function to it,
* and if the result is non-null, return an {@code Optional} describing the
* result. Otherwise return an empty {@code Optional}.
*
* @apiNote This method supports post-processing on optional values, without
* the need to explicitly check for a return status. For example, the
* following code traverses a stream of file names, selects one that has
* not yet been processed, and then opens that file, returning an
* {@code Optional<FileInputStream>}:
*
* <pre>{@code
* Optional<FileInputStream> fis =
* names.stream().filter(name -> !isProcessedYet(name))
* .findFirst()
* .map(name -> new FileInputStream(name));
* }</pre>
*
* Here, {@code findFirst} returns an {@code Optional<String>}, and then
* {@code map} returns an {@code Optional<FileInputStream>} for the desired
* file if one exists.
*
* @param <U> The type of the result of the mapping function
* @param mapper a mapping function to apply to the value, if present
* @return an {@code Optional} describing the result of applying a mapping
* function to the value of this {@code Optional}, if a value is present,
* otherwise an empty {@code Optional}
* @throws NullPointerException if the mapping function is null
*/
public<U> Optional<U> map(Function1<? super T, ? extends U> mapper) {
if (mapper == null) {
throw new NullPointerException();
}
if (!isPresent()) {
return empty();
} else {
return Optional.ofNullable(mapper.invoke(value));
}
}
/**
* If a value is present, apply the provided {@code Optional}-bearing
* mapping function to it, return that result, otherwise return an empty
* {@code Optional}. This method is similar to {@link #map(Function1)},
* but the provided mapper is one whose result is already an {@code Optional},
* and if invoked, {@code flatMap} does not wrap it with an additional
* {@code Optional}.
*
* @param <U> The type parameter to the {@code Optional} returned by
* @param mapper a mapping function to apply to the value, if present
* the mapping function
* @return the result of applying an {@code Optional}-bearing mapping
* function to the value of this {@code Optional}, if a value is present,
* otherwise an empty {@code Optional}
* @throws NullPointerException if the mapping function is null or returns
* a null result
*/
public<U> Optional<U> flatMap(Function1<? super T, Optional<U>> mapper) {
if(mapper == null) {
throw new NullPointerException();
}
if (!isPresent()) {
return empty();
} else {
Optional<U> u = mapper.invoke(value);
if (u == null) {
throw new NullPointerException();
}
return u;
}
}
/**
* Return the value if present, otherwise return {@code other}.
*
* @param other the value to be returned if there is no value present, may
* be null
* @return the value, if present, otherwise {@code other}
*/
public T orElse(T other) {
return value != null ? value : other;
}
/**
* Return the value if present, otherwise invoke {@code other} and return
* the result of that invocation.
*
* @param other a {@code Supplier} whose result is returned if no value
* is present
* @return the value if present otherwise the result of {@code other.get()}
* @throws NullPointerException if value is not present and {@code other} is
* null
*/
public T orElseGet(Supplier<? extends T> other) {
return value != null ? value : other.get();
}
/**
* Return the contained value, if present, otherwise throw an exception
* to be created by the provided supplier.
*
* @apiNote A method reference to the exception constructor with an empty
* argument list can be used as the supplier. For example,
* {@code IllegalStateException::new}
*
* @param <X> Type of the exception to be thrown
* @param exceptionSupplier The supplier which will return the exception to
* be thrown
* @return the present value
* @throws X if there is no value present
* @throws NullPointerException if no value is present and
* {@code exceptionSupplier} is null
*/
public <X extends Throwable> T orElseThrow(Supplier<? extends X> exceptionSupplier) throws X {
if (value != null) {
return value;
} else {
throw exceptionSupplier.get();
}
}
/**
* Indicates whether some other object is "equal to" this Optional. The
* other object is considered equal if:
* <ul>
* <li>it is also an {@code Optional} and;
* <li>both instances have no value present or;
* <li>the present values are "equal to" each other via {@code equals()}.
* </ul>
*
* @param obj an object to be tested for equality
* @return {code true} if the other object is "equal to" this object
* otherwise {@code false}
*/
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Optional)) {
return false;
}
Optional<?> other = (Optional<?>) obj;
return ObjectsCompat.equals(value, other.value);
}
/**
* Returns the hash code value of the present value, if any, or 0 (zero) if
* no value is present.
*
* @return hash code value of the present value or 0 if no value is present
*/
@Override
public int hashCode() {
return ObjectsCompat.hashCode(value);
}
/**
* Returns a non-empty string representation of this Optional suitable for
* debugging. The exact presentation format is unspecified and may vary
* between implementations and versions.
*
* @implSpec If a value is present the result must include its string
* representation in the result. Empty and present Optionals must be
* unambiguously differentiable.
*
* @return the string representation of this instance
*/
@Override
public String toString() {
return value != null
? String.format("Optional[%s]", value)
: "Optional.empty";
}
}
@@ -0,0 +1,121 @@
/*
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.nextcloud.java.util.function;
/**
* This class is backported from Java 8 to be used on older Android API levels.
*
* Represents a predicate (boolean-valued function) of one argument.
*
* <p>This is a <a href="package-summary.html">functional interface</a>
* whose functional method is {@link #test(Object)}.
*
* @param <T> the type of the input to the predicate
*/
@FunctionalInterface
public interface Predicate<T> {
/**
* Evaluates this predicate on the given argument.
*
* @param t the input argument
* @return {@code true} if the input argument matches the predicate,
* otherwise {@code false}
*/
boolean test(T t);
/**
* Returns a composed predicate that represents a short-circuiting logical
* AND of this predicate and another. When evaluating the composed
* predicate, if this predicate is {@code false}, then the {@code other}
* predicate is not evaluated.
*
* <p>Any exceptions thrown during evaluation of either predicate are relayed
* to the caller; if evaluation of this predicate throws an exception, the
* {@code other} predicate will not be evaluated.
*
* @param other a predicate that will be logically-ANDed with this
* predicate
* @return a composed predicate that represents the short-circuiting logical
* AND of this predicate and the {@code other} predicate
* @throws NullPointerException if other is null
*/
default Predicate<T> and(Predicate<? super T> other) {
if (other == null) {
throw new NullPointerException();
}
return (t) -> test(t) && other.test(t);
}
/**
* Returns a predicate that represents the logical negation of this
* predicate.
*
* @return a predicate that represents the logical negation of this
* predicate
*/
default Predicate<T> negate() {
return (t) -> !test(t);
}
/**
* Returns a composed predicate that represents a short-circuiting logical
* OR of this predicate and another. When evaluating the composed
* predicate, if this predicate is {@code true}, then the {@code other}
* predicate is not evaluated.
*
* <p>Any exceptions thrown during evaluation of either predicate are relayed
* to the caller; if evaluation of this predicate throws an exception, the
* {@code other} predicate will not be evaluated.
*
* @param other a predicate that will be logically-ORed with this
* predicate
* @return a composed predicate that represents the short-circuiting logical
* OR of this predicate and the {@code other} predicate
* @throws NullPointerException if other is null
*/
default Predicate<T> or(Predicate<? super T> other) {
if (other == null) {
throw new NullPointerException();
}
return (t) -> test(t) || other.test(t);
}
/**
* Returns a predicate that tests if two arguments are equal according
* to {@link androidx.core.util.ObjectsCompat#equals(Object, Object)}.
*
* @param <T> the type of arguments to the predicate
* @param targetRef the object reference with which to compare for equality,
* which may be {@code null}
* @return a predicate that tests if two arguments are equal according
* to {@link androidx.core.util.ObjectsCompat#equals(Object, Object)}
*/
static <T> Predicate<T> isEqual(Object targetRef) {
return (null == targetRef)
? object -> object == null
: object -> targetRef.equals(object);
}
}
@@ -0,0 +1,26 @@
/*
* Nextcloud Android client application
*
* @author Chris Narkiewicz <[email protected]>
* Copyright (C) 2019 Chris Narkiewicz
* Copyright (C) 2019 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* This is a compatibility package providing some backported Java 8 classes
* not available in some older Android runtimes.
*/
package com.nextcloud.java.util;
+41 -17
View File
@@ -45,6 +45,7 @@ import com.evernote.android.job.JobManager;
import com.evernote.android.job.JobRequest;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.appinfo.AppInfo;
import com.nextcloud.client.core.Clock;
import com.nextcloud.client.device.PowerManagementService;
import com.nextcloud.client.di.ActivityInjector;
import com.nextcloud.client.di.DaggerAppComponent;
@@ -56,6 +57,7 @@ import com.nextcloud.client.network.ConnectivityService;
import com.nextcloud.client.onboarding.OnboardingService;
import com.nextcloud.client.preferences.AppPreferences;
import com.nextcloud.client.preferences.AppPreferencesImpl;
import com.nextcloud.client.preferences.DarkMode;
import com.owncloud.android.authentication.PassCodeManager;
import com.owncloud.android.datamodel.ArbitraryDataProvider;
import com.owncloud.android.datamodel.MediaFolder;
@@ -100,6 +102,7 @@ import javax.net.ssl.SSLEngine;
import androidx.annotation.RequiresApi;
import androidx.annotation.StringRes;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.util.Pair;
import androidx.multidex.MultiDexApplication;
import dagger.android.AndroidInjector;
@@ -119,8 +122,8 @@ import static com.owncloud.android.ui.activity.ContactsPreferenceActivity.PREFER
*/
public class MainApp extends MultiDexApplication implements HasAndroidInjector {
public static final OwnCloudVersion OUTDATED_SERVER_VERSION = OwnCloudVersion.nextcloud_13;
public static final OwnCloudVersion MINIMUM_SUPPORTED_SERVER_VERSION = OwnCloudVersion.nextcloud_12;
public static final OwnCloudVersion OUTDATED_SERVER_VERSION = OwnCloudVersion.nextcloud_15;
public static final OwnCloudVersion MINIMUM_SUPPORTED_SERVER_VERSION = OwnCloudVersion.nextcloud_13;
private static final String TAG = MainApp.class.getSimpleName();
public static final String DOT = ".";
@@ -160,6 +163,9 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
@Inject
BackgroundJobManager backgroundJobManager;
@Inject
Clock clock;
private PassCodeManager passCodeManager;
@SuppressWarnings("unused")
@@ -242,6 +248,7 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
@SuppressFBWarnings("ST")
@Override
public void onCreate() {
setAppTheme(preferences.getDarkThemeMode());
super.onCreate();
insertConscrypt();
@@ -266,7 +273,8 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
preferences,
uploadsStorageManager,
connectivityService,
powerManagementService
powerManagementService,
clock
)
);
@@ -302,7 +310,8 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
accountManager,
connectivityService,
powerManagementService,
backgroundJobManager);
backgroundJobManager,
clock);
initContactsBackup(accountManager);
notificationChannels();
@@ -460,23 +469,24 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
final UserAccountManager accountManager,
final ConnectivityService connectivityService,
final PowerManagementService powerManagementService,
final BackgroundJobManager jobManager
final BackgroundJobManager jobManager,
final Clock clock
) {
updateToAutoUpload();
cleanOldEntries();
updateAutoUploadEntries();
cleanOldEntries(clock);
updateAutoUploadEntries(clock);
if (getAppContext() != null) {
if (PermissionUtil.checkSelfPermission(getAppContext(),
Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
splitOutAutoUploadEntries();
splitOutAutoUploadEntries(clock);
} else {
AppPreferences preferences = AppPreferencesImpl.fromContext(getAppContext());
preferences.setAutoUploadSplitEntriesEnabled(true);
}
}
initiateExistingAutoUploadEntries();
initiateExistingAutoUploadEntries(clock);
FilesSyncHelper.scheduleFilesSyncIfNeeded(mContext, jobManager);
FilesSyncHelper.restartJobsIfNeeded(
@@ -683,18 +693,18 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
}
}
private static void updateAutoUploadEntries() {
private static void updateAutoUploadEntries(Clock clock) {
// updates entries to reflect their true paths
Context context = getAppContext();
AppPreferences preferences = AppPreferencesImpl.fromContext(context);
if (!preferences.isAutoUploadPathsUpdateEnabled()) {
SyncedFolderProvider syncedFolderProvider =
new SyncedFolderProvider(MainApp.getAppContext().getContentResolver(), preferences);
new SyncedFolderProvider(MainApp.getAppContext().getContentResolver(), preferences, clock);
syncedFolderProvider.updateAutoUploadPaths(mContext);
}
}
private static void splitOutAutoUploadEntries() {
private static void splitOutAutoUploadEntries(Clock clock) {
Context context = getAppContext();
AppPreferences preferences = AppPreferencesImpl.fromContext(context);
if (!preferences.isAutoUploadSplitEntriesEnabled()) {
@@ -703,7 +713,7 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
Log_OC.i(TAG, "Migrate synced_folders records for image/video split");
ContentResolver contentResolver = context.getContentResolver();
SyncedFolderProvider syncedFolderProvider = new SyncedFolderProvider(contentResolver, preferences);
SyncedFolderProvider syncedFolderProvider = new SyncedFolderProvider(contentResolver, preferences, clock);
final List<MediaFolder> imageMediaFolders = MediaProvider.getImageFolders(contentResolver, 1, null, true);
final List<MediaFolder> videoMediaFolders = MediaProvider.getVideoFolders(contentResolver, 1, null, true);
@@ -749,12 +759,12 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
}
}
private static void initiateExistingAutoUploadEntries() {
private static void initiateExistingAutoUploadEntries(Clock clock) {
new Thread(() -> {
AppPreferences preferences = AppPreferencesImpl.fromContext(getAppContext());
if (!preferences.isAutoUploadInitialized()) {
SyncedFolderProvider syncedFolderProvider =
new SyncedFolderProvider(MainApp.getAppContext().getContentResolver(), preferences);
new SyncedFolderProvider(MainApp.getAppContext().getContentResolver(), preferences, clock);
for (SyncedFolder syncedFolder : syncedFolderProvider.getSyncedFolders()) {
if (syncedFolder.isEnabled()) {
@@ -768,7 +778,7 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
}).start();
}
private static void cleanOldEntries() {
private static void cleanOldEntries(Clock clock) {
// previous versions of application created broken entries in the SyncedFolderProvider
// database, and this cleans all that and leaves 1 (newest) entry per synced folder
@@ -777,7 +787,7 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
if (!preferences.isLegacyClean()) {
SyncedFolderProvider syncedFolderProvider =
new SyncedFolderProvider(context.getContentResolver(), preferences);
new SyncedFolderProvider(context.getContentResolver(), preferences, clock);
List<SyncedFolder> syncedFolderList = syncedFolderProvider.getSyncedFolders();
Map<Pair<String, String>, Long> syncedFolders = new HashMap<>();
@@ -811,4 +821,18 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
return dispatchingAndroidInjector;
}
public static void setAppTheme(DarkMode mode) {
switch (mode) {
case LIGHT:
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
break;
case DARK:
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
break;
case SYSTEM:
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM);
break;
}
}
}
@@ -92,6 +92,7 @@ import android.widget.Toast;
import com.blikoon.qrcodescanner.QrCodeActivity;
import com.google.android.material.snackbar.Snackbar;
import com.nextcloud.client.account.User;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.device.DeviceInfo;
import com.nextcloud.client.di.Injectable;
@@ -178,6 +179,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
private static final String KEY_SERVER_AUTH_METHOD = "SERVER_AUTH_METHOD";
private static final String KEY_WAITING_FOR_OP_ID = "WAITING_FOR_OP_ID";
private static final String KEY_AUTH_TOKEN = "AUTH_TOKEN";
private static final String KEY_ONLY_ADD = "onlyAdd";
public static final byte ACTION_CREATE = 0;
public static final byte ACTION_UPDATE_EXPIRED_TOKEN = 2; // detected by the app
@@ -259,6 +261,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
@Inject AppPreferences preferences;
@Inject OnboardingService onboarding;
@Inject DeviceInfo deviceInfo;
private boolean onlyAdd = false;
/**
* {@inheritDoc}
@@ -276,6 +279,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
onboarding.launchFirstRunIfNeeded(this);
}
onlyAdd = getIntent().getBooleanExtra(KEY_ONLY_ADD, false);
// delete cookies for webView
deleteCookies();
@@ -402,12 +407,14 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
setClient(progressBar);
// show snackbar after 60s to switch back to old login method
if (showLegacyLogin) {
if (showLegacyLogin && getResources().getBoolean(R.bool.show_old_login)) {
final String finalBaseURL = baseURL;
new Handler().postDelayed(() -> DisplayUtils.createSnackbar(mLoginWebView,
R.string.fallback_weblogin_text,
Snackbar.LENGTH_INDEFINITE)
.setActionTextColor(getResources().getColor(R.color.white))
.setActionTextColor(getResources().getColor(R.color.themed_fg))
.setBackgroundTint(getResources().getColor(R.color.themed_bg))
.setTextColor(getResources().getColor(R.color.themed_fg))
.setAction(R.string.fallback_weblogin_back, v -> {
mLoginWebView.setVisibility(View.INVISIBLE);
webViewLoginMethod = false;
@@ -886,6 +893,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
super.finish();
}
onlyAdd = intent.getBooleanExtra(KEY_ONLY_ADD, false);
// Passcode
PassCodeManager passCodeManager = new PassCodeManager(preferences);
passCodeManager.onActivityStarted(this);
@@ -1298,7 +1307,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
DisplayUtils.showServerOutdatedSnackbar(this, Snackbar.LENGTH_INDEFINITE);
}
webViewLoginMethod = mServerInfo.mVersion.isWebLoginSupported() && !forceOldLoginMethod;
webViewLoginMethod = !forceOldLoginMethod;
if (webViewUser != null && !webViewUser.isEmpty() &&
webViewPassword != null && !webViewPassword.isEmpty()) {
@@ -1562,10 +1571,12 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
accountManager.setCurrentOwnCloudAccount(mAccount.name);
Intent i = new Intent(this, FileDisplayActivity.class);
i.setAction(FileDisplayActivity.RESTART);
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(i);
if (!onlyAdd) {
Intent i = new Intent(this, FileDisplayActivity.class);
i.setAction(FileDisplayActivity.RESTART);
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(i);
}
} else {
// init webView again
@@ -1733,8 +1744,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
}
/// add the new account as default in preferences, if there is none already
Account defaultAccount = accountManager.getCurrentAccount();
if (defaultAccount == null) {
User defaultAccount = accountManager.getUser();
if (defaultAccount.isAnonymous()) {
SharedPreferences.Editor editor = PreferenceManager.getDefaultSharedPreferences(this).edit();
editor.putString("select_oc_account", accountName);
editor.apply();
@@ -24,6 +24,7 @@ import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.PowerManager;
import android.os.SystemClock;
import android.view.Window;
import android.view.WindowManager;
@@ -102,7 +103,7 @@ public final class PassCodeManager {
activity.startActivityForResult(i, PASSCODE_ACTIVITY);
} else {
if (!askedForPin && preferences.getLockTimestamp() != 0) {
preferences.setLockTimestamp(System.currentTimeMillis());
preferences.setLockTimestamp(SystemClock.elapsedRealtime());
}
}
@@ -124,7 +125,7 @@ public final class PassCodeManager {
}
private boolean passCodeShouldBeRequested(Long timestamp) {
return (System.currentTimeMillis() - timestamp) > PASS_CODE_TIMEOUT &&
return (SystemClock.elapsedRealtime() - timestamp) > PASS_CODE_TIMEOUT &&
visibleActivitiesCounter <= 0 && isPassCodeEnabled();
}
@@ -133,7 +134,7 @@ public final class PassCodeManager {
}
private boolean deviceCredentialsShouldBeRequested(Long timestamp, Activity activity) {
return (System.currentTimeMillis() - timestamp) > PASS_CODE_TIMEOUT && visibleActivitiesCounter <= 0 &&
return (SystemClock.elapsedRealtime() - timestamp) > PASS_CODE_TIMEOUT && visibleActivitiesCounter <= 0 &&
deviceCredentialsAreEnabled(activity);
}
@@ -37,6 +37,9 @@ import androidx.annotation.NonNull;
* Database provider for handling the persistence aspects of arbitrary data table.
*/
public class ArbitraryDataProvider {
public static final String DIRECT_EDITING = "DIRECT_EDITING";
public static final String DIRECT_EDITING_ETAG = "DIRECT_EDITING_ETAG";
private static final String TAG = ArbitraryDataProvider.class.getSimpleName();
private static final String TRUE = "true";
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -37,7 +37,9 @@ import com.owncloud.android.utils.ThemeUtils;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;
@@ -51,11 +53,11 @@ public final class MediaProvider {
private static final Uri IMAGES_MEDIA_URI = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
private static final String[] FILE_PROJECTION = new String[]{MediaStore.MediaColumns.DATA};
private static final String IMAGES_FILE_SELECTION = MediaStore.Images.Media.BUCKET_ID + "=";
private static final String[] IMAGES_FOLDER_PROJECTION = {"Distinct " + MediaStore.Images.Media.BUCKET_ID,
private static final String[] IMAGES_FOLDER_PROJECTION = {MediaStore.Images.Media.BUCKET_ID,
MediaStore.Images.Media.BUCKET_DISPLAY_NAME};
private static final String IMAGES_FOLDER_SORT_ORDER = MediaStore.Images.Media.BUCKET_DISPLAY_NAME + " ASC";
private static final String[] VIDEOS_FOLDER_PROJECTION = {"Distinct " + MediaStore.Video.Media.BUCKET_ID,
private static final String[] VIDEOS_FOLDER_PROJECTION = {MediaStore.Video.Media.BUCKET_ID,
MediaStore.Video.Media.BUCKET_DISPLAY_NAME};
private MediaProvider() {
@@ -86,28 +88,35 @@ public final class MediaProvider {
String dataPath = MainApp.getStoragePath() + File.separator + MainApp.getDataFolder();
if (cursorFolders != null) {
String folderName;
String fileSortOrder = MediaStore.Images.Media.DATE_TAKEN + " DESC LIMIT " + itemLimit;
Cursor cursorImages;
while (cursorFolders.moveToNext()) {
String folderId = cursorFolders.getString(cursorFolders.getColumnIndex(MediaStore.Images.Media
.BUCKET_ID));
Map<String, String> uniqueFolders = new HashMap<>();
// since sdk 29 we have to manually distinct on bucket id
while (cursorFolders.moveToNext()) {
uniqueFolders.put(cursorFolders.getString(
cursorFolders.getColumnIndex(MediaStore.Images.Media.BUCKET_ID)),
cursorFolders.getString(
cursorFolders.getColumnIndex(MediaStore.Images.Media.BUCKET_DISPLAY_NAME))
);
}
cursorFolders.close();
for (Map.Entry<String, String> folder : uniqueFolders.entrySet()) {
MediaFolder mediaFolder = new MediaFolder();
folderName = cursorFolders.getString(cursorFolders.getColumnIndex(
MediaStore.Images.Media.BUCKET_DISPLAY_NAME));
mediaFolder.type = MediaFolderType.IMAGE;
mediaFolder.folderName = folderName;
mediaFolder.folderName = folder.getValue();
mediaFolder.filePaths = new ArrayList<>();
// query images
cursorImages = contentResolver.query(
IMAGES_MEDIA_URI,
FILE_PROJECTION,
IMAGES_FILE_SELECTION + folderId,
null,
fileSortOrder
IMAGES_MEDIA_URI,
FILE_PROJECTION,
IMAGES_FILE_SELECTION + folder.getKey(),
null,
fileSortOrder
);
Log.d(TAG, "Reading images for " + mediaFolder.folderName);
@@ -116,7 +125,7 @@ public final class MediaProvider {
while (cursorImages.moveToNext()) {
filePath = cursorImages.getString(cursorImages.getColumnIndexOrThrow(
MediaStore.MediaColumns.DATA));
MediaStore.MediaColumns.DATA));
// check if valid path and file exists
if (isValidAndExistingFilePath(filePath)) {
@@ -131,11 +140,11 @@ public final class MediaProvider {
// count images
Cursor count = contentResolver.query(
IMAGES_MEDIA_URI,
FILE_PROJECTION,
IMAGES_FILE_SELECTION + folderId,
null,
null);
IMAGES_MEDIA_URI,
FILE_PROJECTION,
IMAGES_FILE_SELECTION + folder.getKey(),
null,
null);
if (count != null) {
mediaFolder.numberOfFiles = count.getCount();
@@ -146,7 +155,6 @@ public final class MediaProvider {
}
}
}
cursorFolders.close();
}
return mediaFolders;
@@ -203,31 +211,38 @@ public final class MediaProvider {
String fileSortOrder = MediaStore.Video.Media.DATE_TAKEN + " DESC LIMIT " + itemLimit;
Cursor cursorVideos;
while (cursorFolders.moveToNext()) {
String folderId = cursorFolders.getString(cursorFolders.getColumnIndex(MediaStore.Video.Media
.BUCKET_ID));
Map<String, String> uniqueFolders = new HashMap<>();
// since sdk 29 we have to manually distinct on bucket id
while (cursorFolders.moveToNext()) {
uniqueFolders.put(cursorFolders.getString(
cursorFolders.getColumnIndex(MediaStore.Video.Media.BUCKET_ID)),
cursorFolders.getString(
cursorFolders.getColumnIndex(MediaStore.Video.Media.BUCKET_DISPLAY_NAME))
);
}
cursorFolders.close();
for (Map.Entry<String, String> folder : uniqueFolders.entrySet()) {
MediaFolder mediaFolder = new MediaFolder();
folderName = cursorFolders.getString(cursorFolders.getColumnIndex(
MediaStore.Video.Media.BUCKET_DISPLAY_NAME));
mediaFolder.type = MediaFolderType.VIDEO;
mediaFolder.folderName = folderName;
mediaFolder.folderName = folder.getValue();
mediaFolder.filePaths = new ArrayList<>();
// query videos
cursorVideos = contentResolver.query(
MediaStore.Video.Media.EXTERNAL_CONTENT_URI,
FILE_PROJECTION,
MediaStore.Video.Media.BUCKET_ID + "=" + folderId,
null,
fileSortOrder);
MediaStore.Video.Media.EXTERNAL_CONTENT_URI,
FILE_PROJECTION,
MediaStore.Video.Media.BUCKET_ID + "=" + folder.getKey(),
null,
fileSortOrder);
Log.d(TAG, "Reading videos for " + mediaFolder.folderName);
if (cursorVideos != null) {
String filePath;
while (cursorVideos.moveToNext()) {
filePath = cursorVideos.getString(cursorVideos.getColumnIndexOrThrow(
MediaStore.MediaColumns.DATA));
MediaStore.MediaColumns.DATA));
if (filePath != null) {
mediaFolder.filePaths.add(filePath);
@@ -241,11 +256,11 @@ public final class MediaProvider {
// count images
Cursor count = contentResolver.query(
MediaStore.Video.Media.EXTERNAL_CONTENT_URI,
FILE_PROJECTION,
MediaStore.Video.Media.BUCKET_ID + "=" + folderId,
null,
null);
MediaStore.Video.Media.EXTERNAL_CONTENT_URI,
FILE_PROJECTION,
MediaStore.Video.Media.BUCKET_ID + "=" + folder.getKey(),
null,
null);
if (count != null) {
mediaFolder.numberOfFiles = count.getCount();
@@ -91,6 +91,7 @@ public class OCFile implements Parcelable, Comparable<OCFile>, ServerFileInterfa
@Getter @Setter private String ownerDisplayName;
@Getter @Setter String note;
@Getter @Setter private List<ShareeUser> sharees;
@Getter @Setter private String richWorkspace;
/**
* URI to the local path of the file contents, if stored in the device; cached after first call
@@ -155,7 +156,10 @@ public class OCFile implements Parcelable, Comparable<OCFile>, ServerFileInterfa
favorite = source.readInt() == 1;
encrypted = source.readInt() == 1;
encryptedFileName = source.readString();
ownerId = source.readString();
ownerDisplayName = source.readString();
mountType = (WebdavEntry.MountType) source.readSerializable();
richWorkspace = source.readString();
}
@Override
@@ -185,7 +189,10 @@ public class OCFile implements Parcelable, Comparable<OCFile>, ServerFileInterfa
dest.writeInt(favorite ? 1 : 0);
dest.writeInt(encrypted ? 1 : 0);
dest.writeString(encryptedFileName);
dest.writeString(ownerId);
dest.writeString(ownerDisplayName);
dest.writeSerializable(mountType);
dest.writeString(richWorkspace);
}
public String getDecryptedRemotePath() {
@@ -404,6 +411,7 @@ public class OCFile implements Parcelable, Comparable<OCFile>, ServerFileInterfa
encrypted = false;
encryptedFileName = null;
mountType = WebdavEntry.MountType.INTERNAL;
richWorkspace = "";
}
/**
@@ -23,30 +23,29 @@ package com.owncloud.android.datamodel;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
/**
* Synced folder entity containing all information per synced folder.
*/
@Getter
@Setter
@AllArgsConstructor
public class SyncedFolder implements Serializable, Cloneable {
public static final long UNPERSISTED_ID = Long.MIN_VALUE;
public static final long EMPTY_ENABLED_TIMESTAMP_MS = -1;
private static final long serialVersionUID = -793476118299906429L;
private long id = UNPERSISTED_ID;
private String localPath;
private String remotePath;
private Boolean wifiOnly;
private Boolean chargingOnly;
private Boolean subfolderByDate;
private String account;
private Integer uploadAction;
private boolean enabled;
private MediaFolderType type;
@Getter @Setter private long id;
@Getter @Setter private String localPath;
@Getter @Setter private String remotePath;
@Getter @Setter private boolean wifiOnly;
@Getter @Setter private boolean chargingOnly;
@Getter @Setter private boolean subfolderByDate;
@Getter @Setter private String account;
@Getter @Setter private int uploadAction;
@Getter private boolean enabled;
@Getter private long enabledTimestampMs;
@Getter @Setter private MediaFolderType type;
@Getter @Setter private boolean hidden;
/**
* constructor for new, to be persisted entity.
@@ -59,11 +58,43 @@ public class SyncedFolder implements Serializable, Cloneable {
* @param account the account owning the synced folder
* @param uploadAction the action to be done after the upload
* @param enabled flag if synced folder config is active
* @param timestampMs the current timestamp in milliseconds
* @param type the type of the folder
* @param hidden hide item flag
*/
public SyncedFolder(String localPath, String remotePath, Boolean wifiOnly, Boolean chargingOnly,
Boolean subfolderByDate, String account, Integer uploadAction, Boolean enabled,
MediaFolderType type) {
public SyncedFolder(String localPath,
String remotePath,
boolean wifiOnly,
boolean chargingOnly,
boolean subfolderByDate,
String account,
int uploadAction,
boolean enabled,
long timestampMs,
MediaFolderType type,
boolean hidden) {
this(UNPERSISTED_ID, localPath, remotePath, wifiOnly, chargingOnly, subfolderByDate, account, uploadAction,
enabled, timestampMs, type, hidden);
}
/**
* constructor for wrapping existing folders.
*
* @param id id
*/
protected SyncedFolder(long id,
String localPath,
String remotePath,
boolean wifiOnly,
boolean chargingOnly,
boolean subfolderByDate,
String account,
int uploadAction,
boolean enabled,
long timestampMs,
MediaFolderType type,
boolean hidden) {
this.id = id;
this.localPath = localPath;
this.remotePath = remotePath;
this.wifiOnly = wifiOnly;
@@ -71,8 +102,17 @@ public class SyncedFolder implements Serializable, Cloneable {
this.subfolderByDate = subfolderByDate;
this.account = account;
this.uploadAction = uploadAction;
this.enabled = enabled;
this.setEnabled(enabled, timestampMs);
this.type = type;
this.hidden = hidden;
}
/**
* @param timestampMs the current timestamp in milliseconds
*/
public void setEnabled(boolean enabled, long timestampMs) {
this.enabled = enabled;
this.enabledTimestampMs = enabled ? timestampMs : EMPTY_ENABLED_TIMESTAMP_MS;
}
public Object clone() {
@@ -53,21 +53,43 @@ public class SyncedFolderDisplayItem extends SyncedFolder {
* @param folderName the UI info for the folder's name
* @param numberOfFiles the UI info for number of files within the folder
* @param type the type of the folder
* @param hidden hide item flag
*/
public SyncedFolderDisplayItem(long id, String localPath, String remotePath, Boolean wifiOnly, Boolean chargingOnly,
Boolean subfolderByDate, String account, Integer uploadAction, Boolean enabled,
List<String> filePaths, String folderName, long numberOfFiles, MediaFolderType type)
{
super(id, localPath, remotePath, wifiOnly, chargingOnly, subfolderByDate, account, uploadAction, enabled, type);
public SyncedFolderDisplayItem(long id,
String localPath,
String remotePath,
boolean wifiOnly,
boolean chargingOnly,
boolean subfolderByDate,
String account,
int uploadAction,
boolean enabled,
long timestampMs,
List<String> filePaths,
String folderName,
long numberOfFiles,
MediaFolderType type,
boolean hidden) {
super(id, localPath, remotePath, wifiOnly, chargingOnly, subfolderByDate, account, uploadAction, enabled,
timestampMs, type, hidden);
this.filePaths = filePaths;
this.folderName = folderName;
this.numberOfFiles = numberOfFiles;
}
public SyncedFolderDisplayItem(long id, String localPath, String remotePath, Boolean wifiOnly, Boolean chargingOnly,
Boolean subfolderByDate, String account, Integer uploadAction, Boolean enabled,
String folderName, MediaFolderType type) {
super(id, localPath, remotePath, wifiOnly, chargingOnly, subfolderByDate, account, uploadAction, enabled, type);
public SyncedFolderDisplayItem(long id,
String localPath,
String remotePath,
boolean wifiOnly,
boolean chargingOnly,
boolean subfolderByDate,
String account,
int uploadAction,
boolean enabled,
long timestampMs,
String folderName, MediaFolderType type, boolean hidden) {
super(id, localPath, remotePath, wifiOnly, chargingOnly, subfolderByDate, account, uploadAction, enabled,
timestampMs, type, hidden);
this.folderName = folderName;
}
}
@@ -27,6 +27,7 @@ import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import com.nextcloud.client.core.Clock;
import com.nextcloud.client.preferences.AppPreferences;
import com.nextcloud.client.preferences.AppPreferencesImpl;
import com.owncloud.android.db.ProviderMeta;
@@ -47,20 +48,22 @@ import static com.owncloud.android.datamodel.OCFile.PATH_SEPARATOR;
public class SyncedFolderProvider extends Observable {
static private final String TAG = SyncedFolderProvider.class.getSimpleName();
private ContentResolver mContentResolver;
private AppPreferences preferences;
private final ContentResolver mContentResolver;
private final AppPreferences preferences;
private final Clock clock;
/**
* constructor.
*
* @param contentResolver the ContentResolver to work with.
*/
public SyncedFolderProvider(ContentResolver contentResolver, AppPreferences preferences) {
public SyncedFolderProvider(ContentResolver contentResolver, AppPreferences preferences, Clock clock) {
if (contentResolver == null) {
throw new IllegalArgumentException("Cannot create an instance with a NULL contentResolver");
}
mContentResolver = contentResolver;
this.preferences = preferences;
this.clock = clock;
}
/**
@@ -162,7 +165,7 @@ public class SyncedFolderProvider extends Observable {
// read sync folder object and update
SyncedFolder syncedFolder = createSyncedFolderFromCursor(cursor);
syncedFolder.setEnabled(enabled);
syncedFolder.setEnabled(enabled, clock.getCurrentTime());
// update sync folder object in db
result = updateSyncFolder(syncedFolder);
@@ -335,23 +338,27 @@ public class SyncedFolderProvider extends Observable {
ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_LOCAL_PATH));
String remotePath = cursor.getString(cursor.getColumnIndex(
ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_REMOTE_PATH));
Boolean wifiOnly = cursor.getInt(cursor.getColumnIndex(
boolean wifiOnly = cursor.getInt(cursor.getColumnIndex(
ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_WIFI_ONLY)) == 1;
Boolean chargingOnly = cursor.getInt(cursor.getColumnIndex(
boolean chargingOnly = cursor.getInt(cursor.getColumnIndex(
ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_CHARGING_ONLY)) == 1;
Boolean subfolderByDate = cursor.getInt(cursor.getColumnIndex(
boolean subfolderByDate = cursor.getInt(cursor.getColumnIndex(
ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_SUBFOLDER_BY_DATE)) == 1;
String accountName = cursor.getString(cursor.getColumnIndex(
ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_ACCOUNT));
Integer uploadAction = cursor.getInt(cursor.getColumnIndex(
int uploadAction = cursor.getInt(cursor.getColumnIndex(
ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_UPLOAD_ACTION));
Boolean enabled = cursor.getInt(cursor.getColumnIndex(
boolean enabled = cursor.getInt(cursor.getColumnIndex(
ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_ENABLED)) == 1;
long enabledTimestampMs = cursor.getLong(cursor.getColumnIndex(
ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_ENABLED_TIMESTAMP_MS));
MediaFolderType type = MediaFolderType.getById(cursor.getInt(cursor.getColumnIndex(
ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_TYPE)));
boolean hidden = cursor.getInt(cursor.getColumnIndex(
ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_HIDDEN)) == 1;
syncedFolder = new SyncedFolder(id, localPath, remotePath, wifiOnly, chargingOnly, subfolderByDate,
accountName, uploadAction, enabled, type);
accountName, uploadAction, enabled, enabledTimestampMs, type, hidden);
}
return syncedFolder;
}
@@ -367,13 +374,15 @@ public class SyncedFolderProvider extends Observable {
ContentValues cv = new ContentValues();
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_LOCAL_PATH, syncedFolder.getLocalPath());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_REMOTE_PATH, syncedFolder.getRemotePath());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_WIFI_ONLY, syncedFolder.getWifiOnly());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_CHARGING_ONLY, syncedFolder.getChargingOnly());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_WIFI_ONLY, syncedFolder.isWifiOnly());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_CHARGING_ONLY, syncedFolder.isChargingOnly());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_ENABLED, syncedFolder.isEnabled());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_SUBFOLDER_BY_DATE, syncedFolder.getSubfolderByDate());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_ENABLED_TIMESTAMP_MS, syncedFolder.getEnabledTimestampMs());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_SUBFOLDER_BY_DATE, syncedFolder.isSubfolderByDate());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_ACCOUNT, syncedFolder.getAccount());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_UPLOAD_ACTION, syncedFolder.getUploadAction());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_TYPE, syncedFolder.getType().getId());
cv.put(ProviderMeta.ProviderTableMeta.SYNCED_FOLDER_HIDDEN, syncedFolder.isHidden());
return cv;
}
@@ -22,6 +22,8 @@ package com.owncloud.android.datamodel;
import org.parceler.Parcel;
import java.util.Locale;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
@@ -37,10 +39,26 @@ import lombok.Setter;
@AllArgsConstructor
@NoArgsConstructor
public class Template {
public enum Type {
DOCUMENT, SPREADSHEET, PRESENTATION, UNKNOWN
}
public static Type parse(String type) {
switch (type.toLowerCase(Locale.US)) {
case "document":
return Type.DOCUMENT;
case "spreadsheet":
return Type.SPREADSHEET;
case "presentation":
return Type.PRESENTATION;
default:
return Type.UNKNOWN;
}
}
public int id;
public String name;
public String thumbnailLink;
public String type;
public Type type;
public String extension;
}
@@ -66,7 +66,6 @@ import com.owncloud.android.utils.MimeTypeUtil;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.methods.GetMethod;
import org.jetbrains.annotations.NotNull;
import java.io.File;
import java.io.FileNotFoundException;
@@ -76,6 +75,7 @@ import java.net.URLEncoder;
import java.util.List;
import java.util.Locale;
import androidx.annotation.NonNull;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
/**
@@ -433,7 +433,7 @@ public final class ThumbnailsCacheManager {
return getMethod;
}
public ThumbnailGenerationTask(FileDataStorageManager storageManager, Account account){
public ThumbnailGenerationTask(FileDataStorageManager storageManager, Account account) {
if (storageManager == null) {
throw new IllegalArgumentException("storageManager must not be NULL");
}
@@ -868,7 +868,7 @@ public final class ThumbnailsCacheManager {
return Math.round(r.getDimension(R.dimen.file_avatar_size));
}
private @NotNull
private @NonNull
Drawable doAvatarInBackground() {
Bitmap avatar;
@@ -1173,7 +1173,8 @@ public final class ThumbnailsCacheManager {
Bitmap resultBitmap = Bitmap.createBitmap(pxW, pxH, Bitmap.Config.ARGB_8888);
Canvas c = new Canvas(resultBitmap);
c.drawColor(MainApp.getAppContext().getResources().getColor(R.color.background_color));
// TODO check based on https://github.com/nextcloud/android/pull/3459#discussion_r339935975
c.drawColor(MainApp.getAppContext().getResources().getColor(R.color.background_color_png));
c.drawBitmap(bitmap, 0, 0, null);
return resultBitmap;
@@ -30,6 +30,7 @@ import android.database.Cursor;
import android.net.Uri;
import com.nextcloud.client.account.CurrentAccountProvider;
import com.nextcloud.client.account.User;
import com.owncloud.android.db.OCUpload;
import com.owncloud.android.db.ProviderMeta.ProviderTableMeta;
import com.owncloud.android.db.UploadResult;
@@ -345,24 +346,19 @@ public class UploadsStorageManager extends Observable {
}
public OCUpload[] getCurrentAndPendingUploadsForCurrentAccount() {
Account account = currentAccountProvider.getCurrentAccount();
User user = currentAccountProvider.getUser();
if (account != null) {
return getUploads(
ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_IN_PROGRESS.value +
" OR " + ProviderTableMeta.UPLOADS_LAST_RESULT +
"==" + UploadResult.DELAYED_FOR_WIFI.getValue() +
" OR " + ProviderTableMeta.UPLOADS_LAST_RESULT +
"==" + UploadResult.LOCK_FAILED.getValue() +
" OR " + ProviderTableMeta.UPLOADS_LAST_RESULT +
"==" + UploadResult.DELAYED_FOR_CHARGING.getValue() +
" OR " + ProviderTableMeta.UPLOADS_LAST_RESULT +
"==" + UploadResult.DELAYED_IN_POWER_SAVE_MODE.getValue() +
" AND " + ProviderTableMeta.UPLOADS_ACCOUNT_NAME + "== ?",
account.name);
} else {
return new OCUpload[0];
}
return getUploads(ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_IN_PROGRESS.value +
" OR " + ProviderTableMeta.UPLOADS_LAST_RESULT +
"==" + UploadResult.DELAYED_FOR_WIFI.getValue() +
" OR " + ProviderTableMeta.UPLOADS_LAST_RESULT +
"==" + UploadResult.LOCK_FAILED.getValue() +
" OR " + ProviderTableMeta.UPLOADS_LAST_RESULT +
"==" + UploadResult.DELAYED_FOR_CHARGING.getValue() +
" OR " + ProviderTableMeta.UPLOADS_LAST_RESULT +
"==" + UploadResult.DELAYED_IN_POWER_SAVE_MODE.getValue() +
" AND " + ProviderTableMeta.UPLOADS_ACCOUNT_NAME + "== ?",
user.getAccountName());
}
/**
@@ -384,14 +380,10 @@ public class UploadsStorageManager extends Observable {
}
public OCUpload[] getFinishedUploadsForCurrentAccount() {
Account account = currentAccountProvider.getCurrentAccount();
User user = currentAccountProvider.getUser();
if (account != null) {
return getUploads(ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_SUCCEEDED.value + AND +
ProviderTableMeta.UPLOADS_ACCOUNT_NAME + "== ?", account.name);
} else {
return new OCUpload[0];
}
return getUploads(ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_SUCCEEDED.value + AND +
ProviderTableMeta.UPLOADS_ACCOUNT_NAME + "== ?", user.getAccountName());
}
/**
@@ -403,23 +395,19 @@ public class UploadsStorageManager extends Observable {
}
public OCUpload[] getFailedButNotDelayedUploadsForCurrentAccount() {
Account account = currentAccountProvider.getCurrentAccount();
User user = currentAccountProvider.getUser();
if (account != null) {
return getUploads(ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_FAILED.value +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.DELAYED_FOR_WIFI.getValue() +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.LOCK_FAILED.getValue() +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.DELAYED_FOR_CHARGING.getValue() +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.DELAYED_IN_POWER_SAVE_MODE.getValue() +
AND + ProviderTableMeta.UPLOADS_ACCOUNT_NAME + "== ?",
account.name);
} else {
return new OCUpload[0];
}
return getUploads(ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_FAILED.value +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.DELAYED_FOR_WIFI.getValue() +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.LOCK_FAILED.getValue() +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.DELAYED_FOR_CHARGING.getValue() +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.DELAYED_IN_POWER_SAVE_MODE.getValue() +
AND + ProviderTableMeta.UPLOADS_ACCOUNT_NAME + "== ?",
user.getAccountName());
}
/**
@@ -446,50 +434,41 @@ public class UploadsStorageManager extends Observable {
}
public long clearFailedButNotDelayedUploads() {
Account account = currentAccountProvider.getCurrentAccount();
long result = 0;
if (account != null) {
result = getDB().delete(
ProviderTableMeta.CONTENT_URI_UPLOADS,
ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_FAILED.value +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.LOCK_FAILED.getValue() +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.DELAYED_FOR_WIFI.getValue() +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.DELAYED_FOR_CHARGING.getValue() +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.DELAYED_IN_POWER_SAVE_MODE.getValue() +
AND + ProviderTableMeta.UPLOADS_ACCOUNT_NAME + "== ?",
new String[]{account.name}
);
}
User user = currentAccountProvider.getUser();
final long deleted = getDB().delete(
ProviderTableMeta.CONTENT_URI_UPLOADS,
ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_FAILED.value +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.LOCK_FAILED.getValue() +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.DELAYED_FOR_WIFI.getValue() +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.DELAYED_FOR_CHARGING.getValue() +
AND + ProviderTableMeta.UPLOADS_LAST_RESULT +
"<>" + UploadResult.DELAYED_IN_POWER_SAVE_MODE.getValue() +
AND + ProviderTableMeta.UPLOADS_ACCOUNT_NAME + "== ?",
new String[]{user.getAccountName()}
);
Log_OC.d(TAG, "delete all failed uploads but those delayed for Wifi");
if (result > 0) {
if (deleted > 0) {
notifyObserversNow();
}
return result;
return deleted;
}
public long clearSuccessfulUploads() {
Account account = currentAccountProvider.getCurrentAccount();
long result = 0;
if (account != null) {
result = getDB().delete(
ProviderTableMeta.CONTENT_URI_UPLOADS,
ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_SUCCEEDED.value + AND +
ProviderTableMeta.UPLOADS_ACCOUNT_NAME + "== ?", new String[]{account.name}
);
}
User user = currentAccountProvider.getUser();
final long deleted = getDB().delete(
ProviderTableMeta.CONTENT_URI_UPLOADS,
ProviderTableMeta.UPLOADS_STATUS + "==" + UploadStatus.UPLOAD_SUCCEEDED.value + AND +
ProviderTableMeta.UPLOADS_ACCOUNT_NAME + "== ?", new String[]{user.getAccountName()}
);
Log_OC.d(TAG, "delete all successful uploads");
if (result > 0) {
if (deleted > 0) {
notifyObserversNow();
}
return result;
return deleted;
}
/**
@@ -31,7 +31,7 @@ import com.owncloud.android.MainApp;
*/
public class ProviderMeta {
public static final String DB_NAME = "filelist";
public static final int DB_VERSION = 49;
public static final int DB_VERSION = 53;
private ProviderMeta() {
// No instance
@@ -47,6 +47,8 @@ public class ProviderMeta {
public static final String ARBITRARY_DATA_TABLE_NAME = "arbitrary_data";
public static final String VIRTUAL_TABLE_NAME = "virtual";
public static final String FILESYSTEM_TABLE_NAME = "filesystem";
public static final String EDITORS_TABLE_NAME = "editors";
public static final String CREATORS_TABLE_NAME = "creators";
private static final String CONTENT_PREFIX = "content://";
@@ -110,6 +112,7 @@ public class ProviderMeta {
public static final String FILE_OWNER_DISPLAY_NAME = "owner_display_name";
public static final String FILE_NOTE = "note";
public static final String FILE_SHAREES = "sharees";
public static final String FILE_RICH_WORKSPACE = "rich_workspace";
public static final String[] FILE_ALL_COLUMNS = {
_ID, FILE_PARENT, FILE_NAME, FILE_CREATION, FILE_MODIFIED,
@@ -117,7 +120,8 @@ public class ProviderMeta {
FILE_PATH, FILE_ACCOUNT_OWNER, FILE_LAST_SYNC_DATE, FILE_LAST_SYNC_DATE_FOR_DATA, FILE_ETAG,
FILE_ETAG_ON_SERVER, FILE_SHARED_VIA_LINK, FILE_SHARED_WITH_SHAREE, FILE_PUBLIC_LINK, FILE_PERMISSIONS,
FILE_REMOTE_ID, FILE_UPDATE_THUMBNAIL, FILE_IS_DOWNLOADING, FILE_ETAG_IN_CONFLICT, FILE_FAVORITE,
FILE_IS_ENCRYPTED, FILE_MOUNT_TYPE, FILE_HAS_PREVIEW, FILE_UNREAD_COMMENTS_COUNT, FILE_SHAREES
FILE_IS_ENCRYPTED, FILE_MOUNT_TYPE, FILE_HAS_PREVIEW, FILE_UNREAD_COMMENTS_COUNT, FILE_SHAREES,
FILE_RICH_WORKSPACE
};
public static final String FILE_DEFAULT_SORT_ORDER = FILE_NAME + " collate nocase asc";
@@ -192,9 +196,9 @@ public class ProviderMeta {
public static final String CAPABILITIES_RICHDOCUMENT_DIRECT_EDITING = "richdocument_direct_editing";
public static final String CAPABILITIES_RICHDOCUMENT_TEMPLATES = "richdocument_direct_templates";
public static final String CAPABILITIES_RICHDOCUMENT_PRODUCT_NAME = "richdocument_product_name";
public static final String CAPABILITIES_DEFAULT_SORT_ORDER = CAPABILITIES_ACCOUNT_NAME
+ " collate nocase asc";
public static final String CAPABILITIES_DIRECT_EDITING_ETAG = "direct_editing_etag";
//Columns of Uploads table
public static final String UPLOADS_LOCAL_PATH = "local_path";
@@ -220,10 +224,12 @@ public class ProviderMeta {
public static final String SYNCED_FOLDER_WIFI_ONLY = "wifi_only";
public static final String SYNCED_FOLDER_CHARGING_ONLY = "charging_only";
public static final String SYNCED_FOLDER_ENABLED = "enabled";
public static final String SYNCED_FOLDER_ENABLED_TIMESTAMP_MS = "enabled_timestamp_ms";
public static final String SYNCED_FOLDER_TYPE = "type";
public static final String SYNCED_FOLDER_SUBFOLDER_BY_DATE = "subfolder_by_date";
public static final String SYNCED_FOLDER_ACCOUNT = "account";
public static final String SYNCED_FOLDER_UPLOAD_ACTION = "upload_option";
public static final String SYNCED_FOLDER_HIDDEN = "hidden";
// Columns of external links table
public static final String EXTERNAL_LINKS_ICON_URL = "icon_url";
@@ -28,6 +28,7 @@ import android.content.Context;
import android.content.Intent;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.core.Clock;
import com.nextcloud.client.device.PowerManagementService;
import com.nextcloud.client.jobs.BackgroundJobManager;
import com.nextcloud.client.network.ConnectivityService;
@@ -53,6 +54,7 @@ public class BootupBroadcastReceiver extends BroadcastReceiver {
@Inject ConnectivityService connectivityService;
@Inject PowerManagementService powerManagementService;
@Inject BackgroundJobManager backgroundJobManager;
@Inject Clock clock;
/**
* Receives broadcast intent reporting that the system was just boot up.
@@ -69,7 +71,8 @@ public class BootupBroadcastReceiver extends BroadcastReceiver {
accountManager,
connectivityService,
powerManagementService,
backgroundJobManager);
backgroundJobManager,
clock);
MainApp.initContactsBackup(accountManager);
} else {
Log_OC.d(TAG, "Getting wrong intent: " + intent.getAction());
@@ -25,7 +25,7 @@ import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.operations.RemoteOperation;
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
import com.owncloud.android.lib.common.utils.Log_OC;
import com.owncloud.android.ui.dialog.ChooseTemplateDialogFragment;
import com.owncloud.android.ui.dialog.ChooseRichDocumentsTemplateDialogFragment;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.methods.GetMethod;
@@ -41,14 +41,14 @@ public class FetchTemplateOperation extends RemoteOperation {
private static final int SYNC_CONNECTION_TIMEOUT = 5000;
private static final String TEMPLATE_URL = "/ocs/v2.php/apps/richdocuments/api/v1/templates/";
private ChooseTemplateDialogFragment.Type type;
private ChooseRichDocumentsTemplateDialogFragment.Type type;
// JSON node names
private static final String NODE_OCS = "ocs";
private static final String NODE_DATA = "data";
private static final String JSON_FORMAT = "?format=json";
public FetchTemplateOperation(ChooseTemplateDialogFragment.Type type) {
public FetchTemplateOperation(ChooseRichDocumentsTemplateDialogFragment.Type type) {
this.type = type;
}
@@ -79,10 +79,11 @@ public class FetchTemplateOperation extends RemoteOperation {
JSONObject templateObject = templates.getJSONObject(i);
templateArray.add(new Template(templateObject.getInt("id"),
templateObject.getString("name"),
templateObject.optString("preview"),
templateObject.getString("type"),
templateObject.getString("extension")));
templateObject.getString("name"),
templateObject.optString("preview"),
Template.parse(templateObject.getString("type")
.toUpperCase(Locale.ROOT)),
templateObject.getString("extension")));
}
result = new RemoteOperationResult(true, getMethod);
@@ -22,19 +22,27 @@
package com.owncloud.android.files;
import android.accounts.Account;
import android.content.ContentResolver;
import android.content.Context;
import android.os.Build;
import android.view.Menu;
import android.view.MenuItem;
import com.google.gson.Gson;
import com.nextcloud.client.account.User;
import com.nextcloud.client.device.DeviceInfo;
import com.owncloud.android.R;
import com.owncloud.android.datamodel.ArbitraryDataProvider;
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.files.services.FileDownloader.FileDownloaderBinder;
import com.owncloud.android.files.services.FileUploader.FileUploaderBinder;
import com.owncloud.android.lib.common.DirectEditing;
import com.owncloud.android.lib.common.Editor;
import com.owncloud.android.lib.resources.status.OCCapability;
import com.owncloud.android.services.OperationsService.OperationsServiceBinder;
import com.owncloud.android.ui.activity.ComponentsGetter;
import com.owncloud.android.ui.activity.RichDocumentsWebView;
import com.owncloud.android.utils.MimeTypeUtil;
import com.owncloud.android.utils.NextcloudServer;
import java.util.ArrayList;
import java.util.Collection;
@@ -42,6 +50,8 @@ import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import androidx.annotation.Nullable;
/**
* Filters out the file actions available in a given {@link Menu} for a given {@link OCFile}
* according to the current state of the latest.
@@ -50,45 +60,62 @@ public class FileMenuFilter {
private static final int SINGLE_SELECT_ITEMS = 1;
private int mNumberOfAllFiles;
private Collection<OCFile> mFiles;
private ComponentsGetter mComponentsGetter;
private Account mAccount;
private Context mContext;
private boolean mOverflowMenu;
private int numberOfAllFiles;
private Collection<OCFile> files;
private ComponentsGetter componentsGetter;
private Account account;
private Context context;
private boolean overflowMenu;
private DeviceInfo deviceInfo;
private User user;
/**
* Constructor
*
* @param numberOfAllFiles Number of all displayed files
* @param targetFiles Collection of {@link OCFile} file targets of the action to filter in the {@link Menu}.
* @param files Collection of {@link OCFile} file targets of the action to filter in the {@link Menu}.
* @param account ownCloud {@link Account} holding targetFile.
* @param cg Accessor to app components, needed to access synchronization services
* @param componentsGetter Accessor to app components, needed to access synchronization services
* @param context Android {@link Context}, needed to access build setup resources.
* @param overflowMenu true if the overflow menu items are being filtered
*/
public FileMenuFilter(int numberOfAllFiles, Collection<OCFile> targetFiles, Account account,
ComponentsGetter cg, Context context, boolean overflowMenu) {
mNumberOfAllFiles = numberOfAllFiles;
mFiles = targetFiles;
mAccount = account;
mComponentsGetter = cg;
mContext = context;
mOverflowMenu = overflowMenu;
public FileMenuFilter(int numberOfAllFiles,
Collection<OCFile> files,
Account account,
ComponentsGetter componentsGetter,
Context context,
boolean overflowMenu,
DeviceInfo deviceInfo,
User user
) {
this.numberOfAllFiles = numberOfAllFiles;
this.files = files;
this.account = account;
this.componentsGetter = componentsGetter;
this.context = context;
this.overflowMenu = overflowMenu;
this.deviceInfo = deviceInfo;
this.user = user;
}
/**
* Constructor
*
* @param targetFile {@link OCFile} target of the action to filter in the {@link Menu}.
* @param file {@link OCFile} target of the action to filter in the {@link Menu}.
* @param account ownCloud {@link Account} holding targetFile.
* @param cg Accessor to app components, needed to access synchronization services
* @param componentsGetter Accessor to app components, needed to access synchronization services
* @param context Android {@link Context}, needed to access build setup resources.
* @param overflowMenu true if the overflow menu items are being filtered
*/
public FileMenuFilter(OCFile targetFile, Account account, ComponentsGetter cg, Context context,
boolean overflowMenu) {
this(1, Collections.singletonList(targetFile), account, cg, context, overflowMenu);
public FileMenuFilter(OCFile file,
Account account,
ComponentsGetter componentsGetter,
Context context,
boolean overflowMenu,
DeviceInfo deviceInfo,
User user
) {
this(1, Collections.singletonList(file), account, componentsGetter, context, overflowMenu, deviceInfo, user);
}
/**
@@ -100,7 +127,7 @@ public class FileMenuFilter {
* @param isMediaSupported True is media playback is supported for this user
*/
public void filter(Menu menu, boolean inSingleFileFragment, boolean isMediaSupported) {
if (mFiles == null || mFiles.isEmpty()) {
if (files == null || files.isEmpty()) {
hideAll(menu);
} else {
List<Integer> toShow = new ArrayList<>();
@@ -169,9 +196,10 @@ public class FileMenuFilter {
boolean isMediaSupported,
Menu menu) {
boolean synchronizing = anyFileSynchronizing();
OCCapability capability = mComponentsGetter.getStorageManager().getCapability(mAccount.name);
OCCapability capability = componentsGetter.getStorageManager().getCapability(account.name);
boolean endToEndEncryptionEnabled = capability.getEndToEndEncryption().isTrue();
filterEdit(toShow, toHide, capability);
filterDownload(toShow, toHide, synchronizing);
filterRename(toShow, toHide, synchronizing);
filterMoveCopy(toShow, toHide, synchronizing);
@@ -189,13 +217,12 @@ public class FileMenuFilter {
filterUnsetEncrypted(toShow, toHide, endToEndEncryptionEnabled);
filterSetPictureAs(toShow, toHide);
filterStream(toShow, toHide, isMediaSupported);
filterOpenAsRichDocument(toShow, toHide, capability, menu);
}
private void filterShareFile(List<Integer> toShow, List<Integer> toHide, OCCapability capability) {
if (containsEncryptedFile() || (!isShareViaLinkAllowed() && !isShareWithUsersAllowed()) ||
!isSingleSelection() || !isShareApiEnabled(capability) || !mFiles.iterator().next().canReshare()
|| mOverflowMenu) {
!isSingleSelection() || !isShareApiEnabled(capability) || !files.iterator().next().canReshare()
|| overflowMenu) {
toHide.add(R.id.action_send_share_file);
} else {
toShow.add(R.id.action_send_share_file);
@@ -211,7 +238,7 @@ public class FileMenuFilter {
}
private void filterFavorite(List<Integer> toShow, List<Integer> toHide, boolean synchronizing) {
if (mFiles.isEmpty() || synchronizing || allFavorites()) {
if (files.isEmpty() || synchronizing || allFavorites()) {
toHide.add(R.id.action_favorite);
} else {
toShow.add(R.id.action_favorite);
@@ -219,7 +246,7 @@ public class FileMenuFilter {
}
private void filterUnfavorite(List<Integer> toShow, List<Integer> toHide, boolean synchronizing) {
if (mFiles.isEmpty() || synchronizing || allNotFavorites()) {
if (files.isEmpty() || synchronizing || allNotFavorites()) {
toHide.add(R.id.action_unset_favorite);
} else {
toShow.add(R.id.action_unset_favorite);
@@ -227,7 +254,7 @@ public class FileMenuFilter {
}
private void filterEncrypt(List<Integer> toShow, List<Integer> toHide, boolean endToEndEncryptionEnabled) {
if (mFiles.isEmpty() || !isSingleSelection() || isSingleFile() || isEncryptedFolder()
if (files.isEmpty() || !isSingleSelection() || isSingleFile() || isEncryptedFolder()
|| !endToEndEncryptionEnabled) {
toHide.add(R.id.action_encrypted);
} else {
@@ -236,7 +263,7 @@ public class FileMenuFilter {
}
private void filterUnsetEncrypted(List<Integer> toShow, List<Integer> toHide, boolean endToEndEncryptionEnabled) {
if (mFiles.isEmpty() || !isSingleSelection() || isSingleFile() || !isEncryptedFolder()
if (files.isEmpty() || !isSingleSelection() || isSingleFile() || !isEncryptedFolder()
|| !endToEndEncryptionEnabled) {
toHide.add(R.id.action_unset_encrypted);
} else {
@@ -245,40 +272,70 @@ public class FileMenuFilter {
}
private void filterSetPictureAs(List<Integer> toShow, List<Integer> toHide) {
if (isSingleImage() && !MimeTypeUtil.isSVG(mFiles.iterator().next())) {
if (isSingleImage() && !MimeTypeUtil.isSVG(files.iterator().next())) {
toShow.add(R.id.action_set_as_wallpaper);
} else {
toHide.add(R.id.action_set_as_wallpaper);
}
}
private void filterOpenAsRichDocument(List<Integer> toShow,
List<Integer> toHide,
OCCapability capability,
Menu menu) {
String mimeType = mFiles.iterator().next().getMimeType();
private void filterEdit(List<Integer> toShow,
List<Integer> toHide,
OCCapability capability
) {
if (deviceInfo.editorSupported()) {
toHide.add(R.id.action_edit);
return;
}
if (isSingleFile() && android.os.Build.VERSION.SDK_INT >= RichDocumentsWebView.MINIMUM_API &&
(capability.getRichDocumentsMimeTypeList().contains(mimeType) ||
capability.getRichDocumentsOptionalMimeTypeList().contains(mimeType)) &&
capability.getRichDocumentsDirectEditing().isTrue()) {
String mimeType = files.iterator().next().getMimeType();
String openWith = mContext.getResources().getString(R.string.actionbar_open_as_richdocument_parameter);
String productName = capability.getRichDocumentsProductName();
MenuItem item = menu.findItem(R.id.action_open_file_as_richdocument);
if (item != null) {
item.setTitle(String.format(openWith, productName));
}
toShow.add(R.id.action_open_file_as_richdocument);
if (isRichDocumentEditingSupported(capability, mimeType) || isEditorAvailable(context.getContentResolver(),
user,
mimeType)) {
toShow.add(R.id.action_edit);
} else {
toHide.add(R.id.action_open_file_as_richdocument);
toHide.add(R.id.action_edit);
}
}
public static boolean isEditorAvailable(ContentResolver contentResolver, User user, String mimeType) {
return getEditor(contentResolver, user, mimeType) != null;
}
@Nullable
public static Editor getEditor(ContentResolver contentResolver, User user, String mimeType) {
String json = new ArbitraryDataProvider(contentResolver).getValue(user.toPlatformAccount(),
ArbitraryDataProvider.DIRECT_EDITING);
if (json.isEmpty()) {
return null;
}
DirectEditing directEditing = new Gson().fromJson(json, DirectEditing.class);
for (Editor editor : directEditing.editors.values()) {
if (editor.mimetypes.contains(mimeType) || editor.optionalMimetypes.contains(mimeType)) {
return editor;
}
}
return null;
}
/**
* This will be replaced by unified editor and can be removed once EOL of corresponding server version.
*/
@NextcloudServer(max = 18)
private boolean isRichDocumentEditingSupported(OCCapability capability, String mimeType) {
return isSingleFile() && android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP &&
(capability.getRichDocumentsMimeTypeList().contains(mimeType) ||
capability.getRichDocumentsOptionalMimeTypeList().contains(mimeType)) &&
capability.getRichDocumentsDirectEditing().isTrue();
}
private void filterSync(List<Integer> toShow, List<Integer> toHide, boolean synchronizing) {
if (mFiles.isEmpty() || (!anyFileDown() && !containsFolder()) || synchronizing) {
if (files.isEmpty() || (!anyFileDown() && !containsFolder()) || synchronizing) {
toHide.add(R.id.action_sync_file);
} else {
toShow.add(R.id.action_sync_file);
@@ -286,7 +343,7 @@ public class FileMenuFilter {
}
private void filterCancelSync(List<Integer> toShow, List<Integer> toHide, boolean synchronizing) {
if (mFiles.isEmpty() || !synchronizing) {
if (files.isEmpty() || !synchronizing) {
toHide.add(R.id.action_cancel_sync);
} else {
toShow.add(R.id.action_cancel_sync);
@@ -307,7 +364,7 @@ public class FileMenuFilter {
toHide.add(R.id.action_deselect_all_action_menu);
} else {
// Show only if at least one item is selected.
if (mFiles.isEmpty() || mOverflowMenu) {
if (files.isEmpty() || overflowMenu) {
toHide.add(R.id.action_deselect_all_action_menu);
} else {
toShow.add(R.id.action_deselect_all_action_menu);
@@ -318,7 +375,7 @@ public class FileMenuFilter {
private void filterSelectAll(List<Integer> toShow, List<Integer> toHide, boolean inSingleFileFragment) {
if (!inSingleFileFragment) {
// Show only if at least one item isn't selected.
if (mFiles.size() >= mNumberOfAllFiles || mOverflowMenu) {
if (files.size() >= numberOfAllFiles || overflowMenu) {
toHide.add(R.id.action_select_all_action_menu);
} else {
toShow.add(R.id.action_select_all_action_menu);
@@ -330,7 +387,7 @@ public class FileMenuFilter {
}
private void filterRemove(List<Integer> toShow, List<Integer> toHide, boolean synchronizing) {
if (mFiles.isEmpty() || synchronizing || containsEncryptedFolder()) {
if (files.isEmpty() || synchronizing || containsEncryptedFolder()) {
toHide.add(R.id.action_remove_file);
} else {
toShow.add(R.id.action_remove_file);
@@ -338,7 +395,7 @@ public class FileMenuFilter {
}
private void filterMoveCopy(List<Integer> toShow, List<Integer> toHide, boolean synchronizing) {
if (mFiles.isEmpty() || synchronizing || containsEncryptedFile() || containsEncryptedFolder()) {
if (files.isEmpty() || synchronizing || containsEncryptedFile() || containsEncryptedFolder()) {
toHide.add(R.id.action_move);
toHide.add(R.id.action_copy);
} else {
@@ -356,7 +413,7 @@ public class FileMenuFilter {
}
private void filterDownload(List<Integer> toShow, List<Integer> toHide, boolean synchronizing) {
if (mFiles.isEmpty() || containsFolder() || anyFileDown() || synchronizing) {
if (files.isEmpty() || containsFolder() || anyFileDown() || synchronizing) {
toHide.add(R.id.action_download_file);
} else {
toShow.add(R.id.action_download_file);
@@ -364,7 +421,7 @@ public class FileMenuFilter {
}
private void filterStream(List<Integer> toShow, List<Integer> toHide, boolean isMediaSupported) {
if (mFiles.isEmpty() || !isSingleFile() || !isSingleMedia() || !isMediaSupported) {
if (files.isEmpty() || !isSingleFile() || !isSingleMedia() || !isMediaSupported) {
toHide.add(R.id.action_stream_media);
} else {
toShow.add(R.id.action_stream_media);
@@ -373,10 +430,10 @@ public class FileMenuFilter {
private boolean anyFileSynchronizing() {
boolean synchronizing = false;
if (mComponentsGetter != null && !mFiles.isEmpty() && mAccount != null) {
OperationsServiceBinder opsBinder = mComponentsGetter.getOperationsServiceBinder();
FileUploaderBinder uploaderBinder = mComponentsGetter.getFileUploaderBinder();
FileDownloaderBinder downloaderBinder = mComponentsGetter.getFileDownloaderBinder();
if (componentsGetter != null && !files.isEmpty() && account != null) {
OperationsServiceBinder opsBinder = componentsGetter.getOperationsServiceBinder();
FileUploaderBinder uploaderBinder = componentsGetter.getFileUploaderBinder();
FileDownloaderBinder downloaderBinder = componentsGetter.getFileDownloaderBinder();
synchronizing = anyFileSynchronizing(opsBinder) || // comparing local and remote
anyFileDownloading(downloaderBinder) ||
anyFileUploading(uploaderBinder);
@@ -387,8 +444,8 @@ public class FileMenuFilter {
private boolean anyFileSynchronizing(OperationsServiceBinder opsBinder) {
boolean synchronizing = false;
if (opsBinder != null) {
for (Iterator<OCFile> iterator = mFiles.iterator(); !synchronizing && iterator.hasNext(); ) {
synchronizing = opsBinder.isSynchronizing(mAccount, iterator.next());
for (Iterator<OCFile> iterator = files.iterator(); !synchronizing && iterator.hasNext(); ) {
synchronizing = opsBinder.isSynchronizing(account, iterator.next());
}
}
return synchronizing;
@@ -397,8 +454,8 @@ public class FileMenuFilter {
private boolean anyFileDownloading(FileDownloaderBinder downloaderBinder) {
boolean downloading = false;
if (downloaderBinder != null) {
for (Iterator<OCFile> iterator = mFiles.iterator(); !downloading && iterator.hasNext(); ) {
downloading = downloaderBinder.isDownloading(mAccount, iterator.next());
for (Iterator<OCFile> iterator = files.iterator(); !downloading && iterator.hasNext(); ) {
downloading = downloaderBinder.isDownloading(account, iterator.next());
}
}
return downloading;
@@ -407,8 +464,8 @@ public class FileMenuFilter {
private boolean anyFileUploading(FileUploaderBinder uploaderBinder) {
boolean uploading = false;
if (uploaderBinder != null) {
for (Iterator<OCFile> iterator = mFiles.iterator(); !uploading && iterator.hasNext(); ) {
uploading = uploaderBinder.isUploading(mAccount, iterator.next());
for (Iterator<OCFile> iterator = files.iterator(); !uploading && iterator.hasNext(); ) {
uploading = uploaderBinder.isUploading(account, iterator.next());
}
}
return uploading;
@@ -422,26 +479,26 @@ public class FileMenuFilter {
}
private boolean isShareWithUsersAllowed() {
return mContext != null &&
mContext.getResources().getBoolean(R.bool.share_with_users_feature);
return context != null &&
context.getResources().getBoolean(R.bool.share_with_users_feature);
}
private boolean isShareViaLinkAllowed() {
return mContext != null &&
mContext.getResources().getBoolean(R.bool.share_via_link_feature);
return context != null &&
context.getResources().getBoolean(R.bool.share_via_link_feature);
}
private boolean isSingleSelection() {
return mFiles.size() == SINGLE_SELECT_ITEMS;
return files.size() == SINGLE_SELECT_ITEMS;
}
private boolean isSingleFile() {
return isSingleSelection() && !mFiles.iterator().next().isFolder();
return isSingleSelection() && !files.iterator().next().isFolder();
}
private boolean isEncryptedFolder() {
if (isSingleSelection()) {
OCFile file = mFiles.iterator().next();
OCFile file = files.iterator().next();
return file.isFolder() && file.isEncrypted();
} else {
@@ -450,16 +507,16 @@ public class FileMenuFilter {
}
private boolean isSingleImage() {
return isSingleSelection() && MimeTypeUtil.isImage(mFiles.iterator().next());
return isSingleSelection() && MimeTypeUtil.isImage(files.iterator().next());
}
private boolean isSingleMedia() {
OCFile file = mFiles.iterator().next();
OCFile file = files.iterator().next();
return isSingleSelection() && (MimeTypeUtil.isVideo(file) || MimeTypeUtil.isAudio(file));
}
private boolean containsEncryptedFile() {
for (OCFile file : mFiles) {
for (OCFile file : files) {
if (!file.isFolder() && file.isEncrypted()) {
return true;
}
@@ -468,7 +525,7 @@ public class FileMenuFilter {
}
private boolean containsEncryptedFolder() {
for (OCFile file : mFiles) {
for (OCFile file : files) {
if (file.isFolder() && file.isEncrypted()) {
return true;
}
@@ -477,7 +534,7 @@ public class FileMenuFilter {
}
private boolean containsFolder() {
for (OCFile file : mFiles) {
for (OCFile file : files) {
if (file.isFolder()) {
return true;
}
@@ -486,7 +543,7 @@ public class FileMenuFilter {
}
private boolean anyFileDown() {
for (OCFile file : mFiles) {
for (OCFile file : files) {
if (file.isDown()) {
return true;
}
@@ -495,7 +552,7 @@ public class FileMenuFilter {
}
private boolean allFavorites() {
for (OCFile file : mFiles) {
for (OCFile file : files) {
if (!file.isFavorite()) {
return false;
}
@@ -504,7 +561,7 @@ public class FileMenuFilter {
}
private boolean allNotFavorites() {
for (OCFile file : mFiles) {
for (OCFile file : files) {
if (file.isFavorite()) {
return false;
}
@@ -42,6 +42,7 @@ import com.nextcloud.client.account.UserAccountManager;
import com.owncloud.android.R;
import com.owncloud.android.authentication.AuthenticatorActivity;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.datamodel.FileDataStorageManagerImpl;
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.lib.common.OwnCloudAccount;
import com.owncloud.android.lib.common.OwnCloudClient;
@@ -60,6 +61,7 @@ import com.owncloud.android.ui.notifications.NotificationUtils;
import com.owncloud.android.ui.preview.PreviewImageActivity;
import com.owncloud.android.ui.preview.PreviewImageFragment;
import com.owncloud.android.utils.ErrorMessageAdapter;
import com.owncloud.android.utils.MimeTypeUtil;
import com.owncloud.android.utils.ThemeUtils;
import java.io.File;
@@ -438,10 +440,7 @@ public class FileDownloader extends Service
if (mCurrentAccount == null ||
!mCurrentAccount.equals(mCurrentDownload.getAccount())) {
mCurrentAccount = mCurrentDownload.getAccount();
mStorageManager = new FileDataStorageManager(
mCurrentAccount,
getContentResolver()
);
mStorageManager = new FileDataStorageManagerImpl(mCurrentAccount, getBaseContext());
} // else, reuse storage manager from previous operation
// always get client from client manager, to get fresh credentials in case
@@ -504,7 +503,9 @@ public class FileDownloader extends Service
file.setFileLength(new File(mCurrentDownload.getSavePath()).length());
file.setRemoteId(mCurrentDownload.getFile().getRemoteId());
mStorageManager.saveFile(file);
FileDataStorageManager.triggerMediaScan(file.getStoragePath());
if (MimeTypeUtil.isMedia(mCurrentDownload.getMimeType())) {
mStorageManager.triggerMediaScan(file.getStoragePath());
}
mStorageManager.saveConflict(file, null);
}
@@ -55,6 +55,7 @@ import com.owncloud.android.MainApp;
import com.owncloud.android.R;
import com.owncloud.android.authentication.AuthenticatorActivity;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.datamodel.FileDataStorageManagerImpl;
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.datamodel.ThumbnailsCacheManager;
import com.owncloud.android.datamodel.UploadsStorageManager;
@@ -76,8 +77,6 @@ import com.owncloud.android.ui.notifications.NotificationUtils;
import com.owncloud.android.utils.ErrorMessageAdapter;
import com.owncloud.android.utils.ThemeUtils;
import org.jetbrains.annotations.NotNull;
import java.io.File;
import java.util.AbstractList;
import java.util.HashMap;
@@ -396,10 +395,10 @@ public class FileUploader extends Service
public void retryFailedUploads(
@NonNull final Context context,
@Nullable final Account account,
@NotNull final UploadsStorageManager uploadsStorageManager,
@NotNull final ConnectivityService connectivityService,
@NotNull final UserAccountManager accountManager,
@NotNull final PowerManagementService powerManagementService,
@NonNull final UploadsStorageManager uploadsStorageManager,
@NonNull final ConnectivityService connectivityService,
@NonNull final UserAccountManager accountManager,
@NonNull final PowerManagementService powerManagementService,
@Nullable final UploadResult uploadResult
) {
OCUpload[] failedUploads = uploadsStorageManager.getFailedUploads();
@@ -1084,10 +1083,7 @@ public class FileUploader extends Service
/// prepare client object to send the request to the ownCloud server
if (mCurrentAccount == null || !mCurrentAccount.equals(mCurrentUpload.getAccount())) {
mCurrentAccount = mCurrentUpload.getAccount();
mStorageManager = new FileDataStorageManager(
mCurrentAccount,
getContentResolver()
);
mStorageManager = new FileDataStorageManagerImpl(mCurrentAccount, getBaseContext());
} // else, reuse storage manager from previous operation
// always get client from client manager, to get fresh credentials in case of update
@@ -38,11 +38,13 @@ import com.evernote.android.job.Job;
import com.evernote.android.job.util.support.PersistableBundleCompat;
import com.google.gson.Gson;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.core.Clock;
import com.nextcloud.client.preferences.AppPreferencesImpl;
import com.owncloud.android.MainApp;
import com.owncloud.android.R;
import com.owncloud.android.datamodel.ArbitraryDataProvider;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.datamodel.FileDataStorageManagerImpl;
import com.owncloud.android.datamodel.FilesystemDataProvider;
import com.owncloud.android.datamodel.PushConfigurationState;
import com.owncloud.android.datamodel.SyncedFolder;
@@ -57,18 +59,16 @@ import com.owncloud.android.ui.activity.ContactsPreferenceActivity;
import com.owncloud.android.ui.events.AccountRemovedEvent;
import com.owncloud.android.utils.EncryptionUtils;
import com.owncloud.android.utils.FileStorageUtils;
import com.owncloud.android.utils.FilesSyncHelper;
import com.owncloud.android.utils.PushUtils;
import org.greenrobot.eventbus.EventBus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import static android.content.Context.ACCOUNT_SERVICE;
import static com.owncloud.android.ui.activity.ManageAccountsActivity.PENDING_FOR_REMOVAL;
@@ -81,17 +81,19 @@ public class AccountRemovalJob extends Job implements AccountManagerCallback<Boo
public static final String ACCOUNT = "account";
public static final String REMOTE_WIPE = "remote_wipe";
private UploadsStorageManager uploadsStorageManager;
private UserAccountManager userAccountManager;
private final UploadsStorageManager uploadsStorageManager;
private final UserAccountManager userAccountManager;
private final Clock clock;
public AccountRemovalJob(UploadsStorageManager uploadStorageManager, UserAccountManager accountManager) {
public AccountRemovalJob(UploadsStorageManager uploadStorageManager, UserAccountManager accountManager, Clock clock) {
this.uploadsStorageManager = uploadStorageManager;
this.userAccountManager = accountManager;
this.clock = clock;
}
@NonNull
@Override
protected Result onRunJob(@NotNull Params params) {
protected Result onRunJob(@NonNull Params params) {
Context context = MainApp.getAppContext();
PersistableBundleCompat bundle = params.getExtras();
Account account = userAccountManager.getAccountByName(bundle.getString(ACCOUNT, ""));
@@ -106,7 +108,7 @@ public class AccountRemovalJob extends Job implements AccountManagerCallback<Boo
removeAccount(account, accountManager);
FileDataStorageManager storageManager = new FileDataStorageManager(account, context.getContentResolver());
FileDataStorageManager storageManager = new FileDataStorageManagerImpl(account, context);
// remove all files
removeFiles(account, storageManager);
@@ -129,7 +131,7 @@ public class AccountRemovalJob extends Job implements AccountManagerCallback<Boo
arbitraryDataProvider.deleteKeyForAccount(account.name, PENDING_FOR_REMOVAL);
// remove synced folders set for account
remoceSyncedFolders(context, account, arbitraryDataProvider);
remoceSyncedFolders(context, account, clock);
// delete all uploads for account
uploadsStorageManager.removeAccountUploads(account);
@@ -174,17 +176,16 @@ public class AccountRemovalJob extends Job implements AccountManagerCallback<Boo
}
}
private void remoceSyncedFolders(Context context, Account account, ArbitraryDataProvider arbitraryDataProvider) {
private void remoceSyncedFolders(Context context, Account account, Clock clock) {
SyncedFolderProvider syncedFolderProvider = new SyncedFolderProvider(context.getContentResolver(),
AppPreferencesImpl.fromContext(context));
AppPreferencesImpl.fromContext(context),
clock);
List<SyncedFolder> syncedFolders = syncedFolderProvider.getSyncedFolders();
List<Long> syncedFolderIds = new ArrayList<>();
for (SyncedFolder syncedFolder : syncedFolders) {
if (syncedFolder.getAccount().equals(account.name)) {
arbitraryDataProvider.deleteKeyForAccount(FilesSyncHelper.GLOBAL,
FilesSyncHelper.SYNCEDFOLDERINITIATED + syncedFolder.getId());
syncedFolderIds.add(syncedFolder.getId());
}
}
@@ -37,6 +37,7 @@ import com.nextcloud.client.account.UserAccountManager;
import com.owncloud.android.R;
import com.owncloud.android.datamodel.ArbitraryDataProvider;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.datamodel.FileDataStorageManagerImpl;
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.files.services.FileUploader;
import com.owncloud.android.lib.common.utils.Log_OC;
@@ -175,7 +176,7 @@ public class ContactsBackupJob extends Job {
private void expireFiles(Integer daysToExpire, String backupFolderString, Account account) {
// -1 disables expiration
if (daysToExpire > -1) {
FileDataStorageManager storageManager = new FileDataStorageManager(account, getContext().getContentResolver());
FileDataStorageManager storageManager = new FileDataStorageManagerImpl(account, getContext());
OCFile backupFolder = storageManager.getFileByPath(backupFolderString);
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DAY_OF_YEAR, -daysToExpire);
@@ -34,6 +34,7 @@ import android.text.TextUtils;
import com.evernote.android.job.Job;
import com.evernote.android.job.util.support.PersistableBundleCompat;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.core.Clock;
import com.nextcloud.client.device.PowerManagementService;
import com.nextcloud.client.network.ConnectivityService;
import com.nextcloud.client.preferences.AppPreferences;
@@ -76,22 +77,25 @@ public class FilesSyncJob extends Job {
public static final String OVERRIDE_POWER_SAVING = "overridePowerSaving";
private static final String WAKELOCK_TAG_SEPARATION = ":";
private UserAccountManager userAccountManager;
private AppPreferences preferences;
private UploadsStorageManager uploadsStorageManager;
private ConnectivityService connectivityService;
private PowerManagementService powerManagementService;
private final UserAccountManager userAccountManager;
private final AppPreferences preferences;
private final UploadsStorageManager uploadsStorageManager;
private final ConnectivityService connectivityService;
private final PowerManagementService powerManagementService;
private final Clock clock;
FilesSyncJob(final UserAccountManager userAccountManager,
final AppPreferences preferences,
final UploadsStorageManager uploadsStorageManager,
final ConnectivityService connectivityService,
final PowerManagementService powerManagementService) {
final PowerManagementService powerManagementService,
final Clock clock) {
this.userAccountManager = userAccountManager;
this.preferences = preferences;
this.uploadsStorageManager = uploadsStorageManager;
this.connectivityService = connectivityService;
this.powerManagementService = powerManagementService;
this.clock = clock;
}
@NonNull
@@ -126,13 +130,12 @@ public class FilesSyncJob extends Job {
userAccountManager,
connectivityService,
powerManagementService);
FilesSyncHelper.insertAllDBEntries(preferences, skipCustom);
FilesSyncHelper.insertAllDBEntries(preferences, clock, skipCustom);
// Create all the providers we'll need
final ContentResolver contentResolver = context.getContentResolver();
final FilesystemDataProvider filesystemDataProvider = new FilesystemDataProvider(contentResolver);
SyncedFolderProvider syncedFolderProvider = new SyncedFolderProvider(contentResolver,
preferences);
SyncedFolderProvider syncedFolderProvider = new SyncedFolderProvider(contentResolver, preferences, clock);
Locale currentLocale = context.getResources().getConfiguration().locale;
SimpleDateFormat sFormatter = new SimpleDateFormat("yyyy:MM:dd HH:mm:ss", currentLocale);
@@ -189,10 +192,10 @@ public class FilesSyncJob extends Job {
remotePath = resources.getString(R.string.syncedFolder_remote_folder);
} else {
needsCharging = syncedFolder.getChargingOnly();
needsWifi = syncedFolder.getWifiOnly();
needsCharging = syncedFolder.isChargingOnly();
needsWifi = syncedFolder.isWifiOnly();
uploadAction = syncedFolder.getUploadAction();
subfolderByDate = syncedFolder.getSubfolderByDate();
subfolderByDate = syncedFolder.isSubfolderByDate();
remotePath = syncedFolder.getRemotePath();
}
@@ -39,6 +39,7 @@ import android.text.TextUtils;
import com.evernote.android.job.Job;
import com.google.gson.Gson;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.core.Clock;
import com.nextcloud.client.preferences.AppPreferences;
import com.nextcloud.client.preferences.AppPreferencesImpl;
import com.owncloud.android.R;
@@ -74,11 +75,13 @@ public class MediaFoldersDetectionJob extends Job {
private static final String DISABLE_DETECTION_CLICK = "DISABLE_DETECTION_CLICK";
private UserAccountManager userAccountManager;
private Random randomId = new Random();
private final UserAccountManager userAccountManager;
private final Clock clock;
private final Random randomId = new Random();
MediaFoldersDetectionJob(UserAccountManager accountManager) {
MediaFoldersDetectionJob(UserAccountManager accountManager, Clock clock) {
this.userAccountManager = accountManager;
this.clock = clock;
}
@NonNull
@@ -88,7 +91,8 @@ public class MediaFoldersDetectionJob extends Job {
ContentResolver contentResolver = context.getContentResolver();
ArbitraryDataProvider arbitraryDataProvider = new ArbitraryDataProvider(contentResolver);
SyncedFolderProvider syncedFolderProvider = new SyncedFolderProvider(contentResolver,
AppPreferencesImpl.fromContext(context));
AppPreferencesImpl.fromContext(context),
clock);
Gson gson = new Gson();
String arbitraryDataString;
MediaFoldersModel mediaFoldersModel;
@@ -29,6 +29,7 @@ import android.content.Context;
import com.evernote.android.job.Job;
import com.evernote.android.job.JobCreator;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.core.Clock;
import com.nextcloud.client.device.PowerManagementService;
import com.nextcloud.client.network.ConnectivityService;
import com.nextcloud.client.preferences.AppPreferences;
@@ -48,6 +49,7 @@ public class NCJobCreator implements JobCreator {
private final UploadsStorageManager uploadsStorageManager;
private final ConnectivityService connectivityService;
private final PowerManagementService powerManagementService;
private final Clock clock;
public NCJobCreator(
Context context,
@@ -55,7 +57,8 @@ public class NCJobCreator implements JobCreator {
AppPreferences preferences,
UploadsStorageManager uploadsStorageManager,
ConnectivityService connectivityServices,
PowerManagementService powerManagementService
PowerManagementService powerManagementService,
Clock clock
) {
this.context = context;
this.accountManager = accountManager;
@@ -63,6 +66,7 @@ public class NCJobCreator implements JobCreator {
this.uploadsStorageManager = uploadsStorageManager;
this.connectivityService = connectivityServices;
this.powerManagementService = powerManagementService;
this.clock = clock;
}
@Override
@@ -73,19 +77,20 @@ public class NCJobCreator implements JobCreator {
case ContactsImportJob.TAG:
return new ContactsImportJob();
case AccountRemovalJob.TAG:
return new AccountRemovalJob(uploadsStorageManager, accountManager);
return new AccountRemovalJob(uploadsStorageManager, accountManager, clock);
case FilesSyncJob.TAG:
return new FilesSyncJob(accountManager,
preferences,
uploadsStorageManager,
connectivityService,
powerManagementService);
powerManagementService,
clock);
case OfflineSyncJob.TAG:
return new OfflineSyncJob(accountManager, connectivityService, powerManagementService);
case NotificationJob.TAG:
return new NotificationJob(context, accountManager);
case MediaFoldersDetectionJob.TAG:
return new MediaFoldersDetectionJob(accountManager);
return new MediaFoldersDetectionJob(accountManager, clock);
default:
return null;
}
@@ -253,7 +253,6 @@ public class NotificationJob extends Job {
OwnCloudAccount ocAccount = new OwnCloudAccount(currentAccount, context);
OwnCloudClient client = OwnCloudClientManagerFactory.getDefaultSingleton()
.getClientFor(ocAccount, context);
client.setOwnCloudVersion(accountManager.getServerVersion(currentAccount));
RemoteOperationResult result = new GetNotificationRemoteOperation(decryptedPushMessage.nid)
.execute(client);
@@ -306,7 +305,6 @@ public class NotificationJob extends Job {
OwnCloudAccount ocAccount = new OwnCloudAccount(currentAccount, context);
OwnCloudClient client = OwnCloudClientManagerFactory.getDefaultSingleton()
.getClientFor(ocAccount, context);
client.setOwnCloudVersion(accountManager.getServerVersion(currentAccount));
String actionType = intent.getStringExtra(KEY_NOTIFICATION_ACTION_TYPE);
String actionLink = intent.getStringExtra(KEY_NOTIFICATION_ACTION_LINK);
Loaded 100 of 474 files, more files were not shown because too many files have changed in this diff. Show more