Compare commits

...
Author SHA1 Message Date
Tobias Kaminsky 52bc2ab7bd daily dev 20220331
fastlane: Increase number of expected artifacts to 4
ManageAccountsActivity: go back to AuthenticatorActivity after removing last account
AccountRemovalWork: remove cached owncloudClient after removing account
Update translations
Update Nextcloud Android library
2022-03-31 06:41:33 +02:00
Tobias Kaminsky aad23f9958 Merge remote-tracking branch 'origin/master' into dev 2022-03-31 06:35:44 +02:00
Nextcloud bot 7285ddc4cb [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-31 04:08:34 +00:00
Tobias Kaminsky 316d683d6a Merge remote-tracking branch 'origin/master' into dev 2022-03-31 05:33:38 +02:00
Álvaro Brey d9811e1f34 Merge pull request #10013 from nextcloud/fix/login-after-logout
Fix bugs when removing accounts
2022-03-30 18:29:24 +02:00
Álvaro Brey 1666224219 Merge pull request #10025 from nextcloud/fix/fastlane-artifact-number
fastlane: Increase number of expected artifacts to 4
2022-03-30 18:06:18 +02:00
Nextcloud bot 9a94cb1e12 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-30 04:03:28 +00:00
Tobias Kaminsky 7ef2b0255c daily dev 20220329
Update translations
Update Nextcloud Android library
Update 3rd-party dependencies
2022-03-29 06:42:09 +02:00
Tobias Kaminsky 7a87220c36 Merge remote-tracking branch 'origin/master' into dev 2022-03-29 05:33:39 +02:00
Álvaro Brey Vilas 2dc9ec212a fastlane: Increase number of expected artifacts to 4
3 APKs + 1 AAB

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-28 17:19:35 +02:00
Álvaro Brey 70c605fd78 Merge pull request #10022 from nextcloud/dependabot/github_actions/peter-evans/create-or-update-comment-2
Bump peter-evans/create-or-update-comment from 1 to 2
2022-03-28 13:42:41 +02:00
dependabot[bot] d931d37e91 Bump peter-evans/create-or-update-comment from 1 to 2
Bumps [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment) from 1 to 2.
- [Release notes](https://github.com/peter-evans/create-or-update-comment/releases)
- [Commits](https://github.com/peter-evans/create-or-update-comment/compare/v1...v2)

---
updated-dependencies:
- dependency-name: peter-evans/create-or-update-comment
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-28 11:14:54 +00:00
Nextcloud bot 4b8bb8a707 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-28 04:02:23 +00:00
Nextcloud bot ca751d0f71 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-27 04:01:42 +00:00
Nextcloud bot 3753ef361c [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-25 05:41:13 +00:00
Tobias Kaminsky 313ce06d2a daily dev 20220324
Fix FileDisplayActivity screenshot tests
Fix scrolling behaviour when changing dark mode
PreviewMediaFragment: fix crash when changing theme with audio fragment
FileDisplayActivity: properly lock scrollbar for media preview
build.gradle: Fix spacing for library version
Correctly show edit share link
SETUP: update local library linking instructions with composite builds
FileDetialsSharing...: add minHeight to content instead of scrollview
Fix sharing from media view
Update Nextcloud Android library
2022-03-24 05:39:08 +01:00
Tobias Kaminsky e989a32c03 Merge remote-tracking branch 'origin/master' into dev 2022-03-24 05:32:36 +01:00
Álvaro Brey Vilas a1901ca3e8 ManageAccountsActivity: go back to AuthenticatorActivity after removing last account
Instead of waiting for FileDisplayActivity to make a network request and fail

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-23 18:23:57 +01:00
Álvaro Brey Vilas 95046c4b5d AccountRemovalWork: remove cached owncloudClient after removing account
Otherwise, the account (which is identified by account name only) will reuse old token, if login is done right after account removal.

Three hours of debugging for one line of code

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-23 18:22:11 +01:00
Álvaro Brey 23a72722d3 Merge pull request #10009 from nextcloud/fix/dark-mode-scroll
Fix several scrolling bugs
2022-03-23 11:11:09 +01:00
Álvaro Brey Vilas 2e593a034b Fix FileDisplayActivity screenshot tests
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-23 10:38:08 +01:00
Álvaro Brey Vilas 154755af9b Fix scrolling behaviour when changing dark mode
Also fixes "scrolling on top bar" for empty folders

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-23 10:38:07 +01:00
Álvaro Brey Vilas b8bb261234 PreviewMediaFragment: fix crash when changing theme with audio fragment
Exoplayer is null when recreating

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-23 10:38:07 +01:00
Álvaro Brey Vilas 6a527a6e87 FileDisplayActivity: properly lock scrollbar for media preview
This locks the scrolling of the CoordinatorLayout AND removes the scroll flags from the AppbarLayout

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-23 10:38:07 +01:00
Álvaro Brey Vilas 17b695728e build.gradle: Fix spacing for library version
It's triggering false CI positives

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-23 10:37:41 +01:00
Álvaro Brey Vilas fb5de078f7 qa: fix head ref
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-23 10:29:31 +01:00
Álvaro Brey d013464320 Merge pull request #9959 from nextcloud/shareFromMediaView
Fix sharing from media view
2022-03-23 09:30:26 +01:00
Tobias Kaminsky 3aad1fc376 Merge pull request #9999 from nextcloud/chore/qa_pr_target
qa: run on pull_request_target, to enable running on fork PRs
2022-03-23 07:50:48 +01:00
Tobias Kaminsky 8f641e8aa2 Merge pull request #10006 from nextcloud/local-library-composite-build
SETUP: update local library linking instructions with composite builds
2022-03-23 07:48:31 +01:00
tobiasKaminsky f522446d13 Correctly show edit share link
Signed-off-by: tobiasKaminsky <[email protected]>
2022-03-23 06:50:51 +01:00
Tobias Kaminsky 3671f84040 daily dev 20220323
build.gradle: Restore library version
Update fastlane
fastlane: Sign the app bundle, and use it for google play upload
fastlane: Build AAB for gplayRelease in addition to APK
Update translations
Update Nextcloud Android library
2022-03-23 05:39:21 +01:00
Tobias Kaminsky ffe5a8b9dd Merge remote-tracking branch 'origin/master' into dev 2022-03-23 05:32:51 +01:00
Nextcloud bot 0c5a9fd155 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-23 03:59:59 +00:00
Álvaro Brey Vilas f65b99a265 SETUP: update local library linking instructions with composite builds
Reference: https://docs.gradle.org/current/userguide/composite_builds.html

Not only is this the "official" way to do this, but also:
 - It's much simpler (changes only one file)
 - No need for symlinks
 - Android Studio support seems to finally be perfect (understands lombok, knows that there are two Git roots...)

[skip ci][ci skip]

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-22 14:31:59 +01:00
Álvaro Brey Vilas ea27e54d26 build.gradle: Restore library version
Wrongly committed

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-22 14:30:54 +01:00
Álvaro Brey Vilas f6298f7904 FileDetialsSharing...: add minHeight to content instead of scrollview
This still keeps the minimum height, but doesn't center the content vertically which looked odd

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-22 10:10:55 +01:00
Tobias Kaminsky 6c858840cb Merge pull request #10001 from nextcloud/chore/android-app-bundles
Use app bundles for Google Play upload
2022-03-22 08:33:50 +01:00
Tobias Kaminsky 646f857890 daily dev 20220322
Update Nextcloud Android library
2022-03-22 08:03:02 +01:00
Tobias Kaminsky 4cf9b68fab Merge pull request #10004 from nextcloud/fixDevScript
correct location of different build.gradle files
2022-03-22 07:59:13 +01:00
tobiasKaminsky c18bf9983e correct location of different build.gradle files
Signed-off-by: tobiasKaminsky <[email protected]>
2022-03-22 07:58:39 +01:00
Tobias Kaminsky 2005d00ca1 daily dev 20220322
GooglePlayUtils: convert to Kotlin, fix spotbugs
build.gradle: Add clean task to root project
Update translations
Update Nextcloud Android library
Update 3rd-party dependencies
2022-03-22 06:48:52 +01:00
Tobias Kaminsky f56b0da4ea Merge remote-tracking branch 'origin/master' into dev 2022-03-22 05:38:19 +01:00
Álvaro Brey Vilas 5cfa23c14b Update fastlane
command ran: bundle update fastlane

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-21 16:30:23 +01:00
Álvaro Brey Vilas 042b6aa38a fastlane: Sign the app bundle, and use it for google play upload
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-21 16:14:19 +01:00
Álvaro Brey Vilas ae0840e5aa fastlane: Build AAB for gplayRelease in addition to APK
APK is generated from AAB using bundletool, for speed and to ensure contents are the same

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-21 15:25:36 +01:00
tobiasKaminsky d91d2996ab Fix sharing from media view
Signed-off-by: tobiasKaminsky <[email protected]>
2022-03-21 15:06:06 +01:00
Álvaro Brey bfccee5d15 Merge pull request #9995 from nextcloud/gradle-clean
build.gradle: Add clean task to root project
2022-03-21 14:30:37 +01:00
Álvaro Brey Vilas eeee70f472 qa: run on pull_request_target, to enable running on fork PRs
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-21 13:24:10 +01:00
Álvaro Brey 380585ea52 Merge pull request #9998 from nextcloud/dependabot/github_actions/actions/cache-3
Bump actions/cache from 2 to 3
2022-03-21 13:14:40 +01:00
dependabot[bot] efd6d88124 Bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-21 11:48:58 +00:00
Álvaro Brey a9bc999574 Merge pull request #9991 from nextcloud/dependabot/gradle/org.json-json-20220320
Bump json from 20211205 to 20220320
2022-03-21 10:48:01 +01:00
Álvaro Brey edac6e2870 Merge pull request #9983 from nextcloud/dependabot/gradle/com.google.firebase-firebase-messaging-23.0.2
Bump firebase-messaging from 20.1.3 to 23.0.2
2022-03-21 10:47:04 +01:00
Álvaro Brey Vilas d63d22d066 GooglePlayUtils: convert to Kotlin, fix spotbugs
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-21 09:40:18 +01:00
dependabot[bot] abf14b52cf Bump firebase-messaging from 20.1.3 to 23.0.2
Bumps firebase-messaging from 20.1.3 to 23.0.2.

---
updated-dependencies:
- dependency-name: com.google.firebase:firebase-messaging
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-21 09:40:09 +01:00
Álvaro Brey Vilas 354047fdce build.gradle: Add clean task to root project
Missed this when restructuring

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-21 09:19:15 +01:00
Nextcloud bot 321a97acf7 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-21 03:59:20 +00:00
dependabot[bot] 5cadf81c43 Bump json from 20211205 to 20220320
Bumps [json](https://github.com/douglascrockford/JSON-java) from 20211205 to 20220320.
- [Release notes](https://github.com/douglascrockford/JSON-java/releases)
- [Changelog](https://github.com/stleary/JSON-java/blob/master/docs/RELEASES.md)
- [Commits](https://github.com/douglascrockford/JSON-java/commits)

---
updated-dependencies:
- dependency-name: org.json:json
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-21 02:06:05 +00:00
Nextcloud bot 98575bc8ca [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-20 04:00:57 +00:00
Tobias Kaminsky 14525cdd96 daily dev 20220319
Update translations
Update Nextcloud Android library
2022-03-19 06:50:08 +01:00
Tobias Kaminsky d62a06de09 Merge remote-tracking branch 'origin/master' into dev 2022-03-19 05:35:17 +01:00
Nextcloud bot d7dbef4085 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-19 04:01:55 +00:00
Tobias Kaminsky 5d4788c240 daily dev 20220318
OCFileListFragment: extract seach async task and convert it to kotlin
Update FolderPickerActivity screenshot
ExtendedListFragment: Remove ViewTreeObserver on search frame
OCFileListFragment: make search async task static, fix loading animation usage
ReceiveExternalFilesActivity: don't crash if no user present
Update translations
Update Nextcloud Android library
2022-03-18 06:43:28 +01:00
Tobias Kaminsky 2986cf3c8b Merge remote-tracking branch 'origin/master' into dev 2022-03-18 05:34:20 +01:00
Nextcloud bot 6d1b14785c [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-18 04:00:34 +00:00
Álvaro Brey 138d3a03a9 Merge pull request #9972 from nextcloud/fix/search-loading
Fix search loading animation and display
2022-03-17 13:04:10 +01:00
Álvaro Brey e7e2ab8a96 Merge pull request #9976 from nextcloud/fix/receive-crash-no-account
ReceiveExternalFilesActivity: don't crash if no user present
2022-03-17 10:44:45 +01:00
Álvaro Brey Vilas 769816978a OCFileListFragment: extract seach async task and convert it to kotlin
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-17 10:38:30 +01:00
Tobias Kaminsky ad7c8add7e daily dev 20220317
Use ktlint plugin instead of manual ktlint tasks
build.gradle: Don't hardcode espresso-intents version, use the same as other espresso libs
if no shared files are on server, show correct empty message
FileDisplayActivity: set file when opening FileDetailsFragment
Centralize NDK and CMAKE versions
build: Specify NDK version (optional install)
Update translations
2022-03-17 05:39:03 +01:00
Tobias Kaminsky b305280727 Merge remote-tracking branch 'origin/master' into dev 2022-03-17 05:31:34 +01:00
Nextcloud bot 886400b5e0 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-17 04:04:03 +00:00
Álvaro Brey b70eeaae3a Merge pull request #9977 from nextcloud/chore/ktlint-gradle
Use ktlint plugin instead of manual ktlint tasks
2022-03-16 13:05:23 +01:00
Álvaro Brey ad13f544ee Merge pull request #9974 from nextcloud/chore/espresso-intents-version
build.gradle: Don't hardcode espresso-intents version, use the same as other espresso libs
2022-03-16 13:00:49 +01:00
nextcloud-android-bot a64986e2e3 Analysis: update lint results to reflect reduced error/warning count
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-03-16 11:40:41 +01:00
Álvaro Brey Vilas 3e2eba34a5 Update FolderPickerActivity screenshot
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-16 11:40:41 +01:00
Álvaro Brey Vilas 0af297735c ExtendedListFragment: Remove ViewTreeObserver on search frame
This was incorrectly setting empty message when switching search types. And it makes no sense: search is only executed when submitted.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-16 11:40:41 +01:00
Álvaro Brey Vilas e8e18609e5 OCFileListFragment: make search async task static, fix loading animation usage
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-16 11:40:41 +01:00
Álvaro Brey e8acc254b8 Merge pull request #9969 from nextcloud/chore/ndk-version
build: Specify NDK version (optional install)
2022-03-16 11:38:15 +01:00
Álvaro Brey Vilas 3597fb0a53 Use ktlint plugin instead of manual ktlint tasks
- Recommended by ktlint
 - Analyzes sources for all sourcesets without extra config
 - Less gradle code to maintain

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-16 11:30:39 +01:00
Tobias Kaminsky eccd9205bd Merge pull request #9970 from nextcloud/fix/share-screen-update
FileDisplayActivity: set file when opening FileDetailsFragment
2022-03-16 11:03:28 +01:00
Álvaro Brey 76d9bbfba3 Merge pull request #9432 from nextcloud/showCorrectNoShared
if no shared files are on server, show correct empty message
2022-03-16 10:45:08 +01:00
Álvaro Brey Vilas 3975839d53 ReceiveExternalFilesActivity: don't crash if no user present
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-16 10:38:37 +01:00
Álvaro Brey Vilas d6f32eb5ce build.gradle: Don't hardcode espresso-intents version, use the same as other espresso libs
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-16 10:01:04 +01:00
tobiasKaminsky d9b8b3baf8 Add NDK to buildDev
Signed-off-by: tobiasKaminsky <[email protected]>
2022-03-16 07:56:39 +01:00
Tobias Kaminsky 294b4d7385 daily dev 20220316
FileDisplayActivity: always try to reload folder on onResume
PermissionUtil: ensure permission choice dialog doesn't overlap itself
StoragePermissionDialogFragment: fix theming of buttons
Design updates for storage permission dialog
Choice between All Files and read-only external storage in SDK >=30
Make external storage permission optional
Update translations
2022-03-16 05:39:48 +01:00
Tobias Kaminsky 03928c7b6f Merge remote-tracking branch 'origin/master' into dev 2022-03-16 05:32:18 +01:00
Nextcloud bot e82fb2c6da [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-16 04:01:13 +00:00
tobiasKaminsky 080736af30 if no shared files are on server, show correct empty message
Signed-off-by: tobiasKaminsky <[email protected]>
2022-03-15 17:36:20 +01:00
Álvaro Brey Vilas 934953506f FileDisplayActivity: set file when opening FileDetailsFragment
Solves issues when creating or removing shares, at which point the file would be re-set to the root folder

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-15 17:26:35 +01:00
Tobias Kaminsky 91520971cd Merge pull request #9873 from nextcloud/optional-files-permission
Make external storage permission optional
2022-03-15 16:49:54 +01:00
Álvaro Brey Vilas ec98c5db52 Centralize NDK and CMAKE versions
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-15 14:43:05 +01:00
Álvaro Brey Vilas 3b5d9ddabf qa: Ensure NDK and cmake are present
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-15 13:14:57 +01:00
Álvaro Brey Vilas 12ce7c2837 build: Specify NDK version (optional install)
If this + CMake is installed, native libraries are correctly stripped, and then APK size is reduced.
If not installed, everything still works as we don't actually need to compile any native stuff.

If `ndkVersion` is not specified, then the default version for Android Gradle Plugin is expected,
and stripping will not work even if other NDK version is installed. So it's better to use a
specific version, to prevent it from stopping working in the future.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-15 10:29:20 +01:00
Tobias Kaminsky 42cd7090f3 daily dev 20220315
only have one place for capability update cache entry
Update translations
Update Nextcloud Android library
2022-03-15 06:44:39 +01:00
Tobias Kaminsky 1c12dd337a Merge remote-tracking branch 'origin/master' into dev 2022-03-15 05:33:40 +01:00
Álvaro Brey Vilas 1a9014ee3b FileDisplayActivity: always try to reload folder on onResume
This makes it so that the folder loads even without granting storage permission, which is the expected behaviour now

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-14 17:39:21 +01:00
Álvaro Brey Vilas 2a4316a298 PermissionUtil: ensure permission choice dialog doesn't overlap itself
(ensure only one instance of it is ever shown at the same time)

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-14 17:22:17 +01:00
Álvaro Brey Vilas d8811c97a1 StoragePermissionDialogFragment: fix theming of buttons
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-14 17:18:07 +01:00
Álvaro Brey Vilas db196c68a4 Design updates for storage permission dialog
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-14 17:04:18 +01:00
Álvaro Brey Vilas ad5b443489 Choice between All Files and read-only external storage in SDK >=30
- Allow users to choose between MANAGE_EXTERNAL_STORAGE (full access) and READ_EXTERNAL_STORAGE (media read-only) in sdk >=30, with a dialog
- If All Files is not available (activity to manage not present, or permission not in manifest), request READ_EXTERNAL_STORAGE instead
- Misc improvements to permission request in UploadFilesActivity and SyncedFoldersActivity

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-14 17:04:17 +01:00
Álvaro Brey Vilas 7d2f0fa017 Make external storage permission optional
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-14 17:04:12 +01:00
Álvaro Brey 55c9811db6 Merge pull request #9865 from nextcloud/centralizeThemeUtils
Cache capabilities
2022-03-14 16:32:07 +01:00
Álvaro Brey Vilas 91c46090e8 Increase findbugs-results.txt
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-14 14:09:57 +01:00
tobiasKaminsky 05bd775171 only have one place for capability
update cache entry

Signed-off-by: tobiasKaminsky <[email protected]>
2022-03-14 13:23:14 +01:00
Nextcloud bot d2f670369f [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-14 11:15:03 +00:00
Tobias Kaminsky f0e887acf1 daily dev 20220312
Update Nextcloud Android library
2022-03-12 05:37:11 +01:00
Álvaro Brey d4d18307b7 Merge pull request #9920 from nextcloud/fix/autoupload-select-folder
Fix folder selection in custom autoupload folders
2022-03-11 15:11:24 +01:00
Álvaro Brey Vilas a860761144 Increase lint and spotbugs
Lint is expected, spotbugs is false positive

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 13:22:52 +01:00
Álvaro Brey Vilas 785767ae70 Screenshot tests for UploadFilesActivity
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 13:22:50 +01:00
Álvaro Brey Vilas 900145da05 Fix folder selection in custom autoupload folders
Hide checkboxes and keep choose button enabled. The flow to select folders is to navigate into them and tap "Choose", as is typical in file browsers.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 13:21:31 +01:00
Álvaro Brey fbfa7fa746 Merge pull request #9960 from nextcloud/chore/modern-gradle-structure
Move app source to subproject, as per current gradle standards
2022-03-11 13:20:18 +01:00
Álvaro Brey Vilas 817bbe6d69 SETUP.md: update instructions to link library locally
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 12:19:45 +01:00
Álvaro Brey Vilas d23d20f31b Fix git hooks for new source location
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:42:11 +01:00
Álvaro Brey Vilas 797316b75a Fix screenshot screens for new source location
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:38:56 +01:00
Álvaro Brey Vilas b7c0e94b3d Fix scripts/buildDev for new source location
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:30:59 +01:00
Álvaro Brey Vilas 4c28ac03ff Fix scripts/androidScreenshotTest for new source location
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:28:21 +01:00
Álvaro Brey Vilas d8e5691366 Fix detekt and ktlint for new source path
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:23:31 +01:00
Álvaro Brey Vilas d2aa5520c6 Fix .codecov.yml after src path change
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:17:23 +01:00
Álvaro Brey Vilas 0282a98528 Fix generate_metadata.py
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:16:42 +01:00
Álvaro Brey Vilas f356311485 Update fastlane for new structurUpdate fastlane for new structure
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:15:24 +01:00
Álvaro Brey Vilas 4c4fb3cd1c Update transifex config
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:15:19 +01:00
Álvaro Brey Vilas b55c452f5f Fix uploadReport.sh for new structure
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:15:06 +01:00
Álvaro Brey Vilas 516544115c Fix screenshot tests after subproject change
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:14:46 +01:00
Álvaro Brey Vilas dd4085cf96 Fix analysis script for new project structure
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:12:47 +01:00
tobiasKaminsky 65fbc351e8 update drone
Signed-off-by: tobiasKaminsky <[email protected]>
2022-03-11 11:12:40 +01:00
tobiasKaminsky e32de23933 fix qa
fix lint
fix uploadArtifact.sh

Signed-off-by: tobiasKaminsky <[email protected]>
2022-03-11 11:11:43 +01:00
Álvaro Brey Vilas e57176f009 Move app source to subproject
Android Studio has started to fail for some stuff with that old structure (for example connected tests don't work).
It's about time to do this.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-11 11:10:51 +01:00
Álvaro Brey 1324529d36 Merge pull request #9957 from nextcloud/dependabot/gradle/exoplayerVersion-2.17.1
Bump exoplayerVersion from 2.17.0 to 2.17.1
2022-03-11 09:27:30 +01:00
Tobias Kaminsky a9e5e7fac0 daily dev 20220311
Exoplayer: use NextcloudClient's OkHttp client for connections
Update Nextcloud Android library
2022-03-11 06:42:53 +01:00
Tobias Kaminsky a3c79b8f06 Merge remote-tracking branch 'origin/master' into dev 2022-03-11 05:33:22 +01:00
dependabot[bot] d2b884e9fe Bump exoplayerVersion from 2.17.0 to 2.17.1
Bumps `exoplayerVersion` from 2.17.0 to 2.17.1.

Updates `exoplayer` from 2.17.0 to 2.17.1
- [Release notes](https://github.com/google/ExoPlayer/releases)
- [Changelog](https://github.com/google/ExoPlayer/blob/release-v2/RELEASENOTES.md)
- [Commits](https://github.com/google/ExoPlayer/compare/r2.17.0...r2.17.1)

Updates `extension-okhttp` from 2.17.0 to 2.17.1
- [Release notes](https://github.com/google/ExoPlayer/releases)
- [Changelog](https://github.com/google/ExoPlayer/blob/release-v2/RELEASENOTES.md)
- [Commits](https://github.com/google/ExoPlayer/compare/r2.17.0...r2.17.1)

---
updated-dependencies:
- dependency-name: com.google.android.exoplayer:exoplayer
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.google.android.exoplayer:extension-okhttp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-11 02:04:51 +00:00
Álvaro Brey e0c8d337c7 Merge pull request #9954 from nextcloud/changelog-master-stable-3.19.1
Add changelog for 3.19.1
2022-03-10 15:58:57 +01:00
Álvaro Brey Vilas e69bda3431 Add changelog for 3.19.1
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-10 13:36:47 +01:00
Álvaro Brey e5cf4dd231 Merge pull request #9951 from nextcloud/stableServer
Test against latest stable
2022-03-10 13:05:41 +01:00
tobiasKaminsky 6dbee33546 Test against latest stable
Signed-off-by: tobiasKaminsky <[email protected]>
2022-03-10 11:14:26 +01:00
Álvaro Brey 8dc0bbe14f Merge pull request #9933 from nextcloud/chore/drone-no-skip-ci
Fix CI on analysis commits
2022-03-10 10:58:45 +01:00
Tobias Kaminsky 8a2c587aea Merge pull request #9945 from nextcloud/fix/exoplayer-http
Exoplayer: use NextcloudClient's OkHttp client for connections
2022-03-10 10:54:21 +01:00
Tobias Kaminsky d6934f3f54 daily dev 20220310
FileActivity: don't try to get file from FileDetailSharingFragment
build.gradle: Restore juniversalchardet to 2.0.3
FileDownloader: EXTRA_USER should be User, not Account
SyncedFoldersActivity: cancel loading when activity stops
SyncedFolderAdapter: load thumbnails in parallel instead of sequentially
SyncedFoldersActivity: load content asynchronously
SyncedFoldersActivity: convert to Kotlin (step 2)
SyncedFoldersActivity: conver to Kotlin (step 1)
Update Nextcloud Android library
Update 3rd-party dependencies
2022-03-10 05:39:17 +01:00
Tobias Kaminsky 318f0f948e Merge remote-tracking branch 'origin/master' into dev 2022-03-10 05:31:34 +01:00
Álvaro Brey Vilas b4c241cef9 Update analysis.yml
Analysis: don't add "skip ci" to drone commit messages

Messes up Github Actions and doesn't work on Drone anyway

Signed-off-by: Álvaro Brey Vilas <[email protected]>

analysis: Fix commiter name and email

Not drone anymore

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-09 15:02:44 +01:00
Álvaro Brey c383abbc37 Merge pull request #9940 from nextcloud/fix/chardet-android7
build.gradle: Restore juniversalchardet to 2.0.3
2022-03-09 14:58:33 +01:00
Álvaro Brey 55bdccc807 Merge pull request #9930 from nextcloud/fix/share-title-bar
FileActivity: don't try to get file from FileDetailSharingFragment
2022-03-09 14:56:13 +01:00
Álvaro Brey Vilas 738c058b7a Exoplayer: use NextcloudClient's OkHttp client for connections
This fixes some issues with SSL in Android 7, and allows using custom certificates for streaming,
fixes IPv6 fallback, etc etc.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-09 14:28:05 +01:00
nextcloud-android-bot 3f61f6767f Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-03-09 09:34:24 +00:00
Álvaro Brey Vilas 3c5907816a FileActivity: don't try to get file from FileDetailSharingFragment
This solves some bugs with toolbar title.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-09 10:25:46 +01:00
Álvaro Brey 5affe302c9 Merge pull request #9936 from nextcloud/fix/extra-user-type
FileDownloader: EXTRA_USER should be User, not Account
2022-03-09 10:20:35 +01:00
Álvaro Brey Vilas 837a42b83e build.gradle: Restore juniversalchardet to 2.0.3
Newer versions cause crashes in android < 7. This was mistakenly bumped in dependabot

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-09 10:16:30 +01:00
Álvaro Brey 4a621176a4 Merge pull request #9922 from nextcloud/syncedfolders-async
SyncedFoldersActivity: asynchronous loading
2022-03-09 10:01:20 +01:00
Álvaro Brey 69a103543f Merge pull request #9938 from nextcloud/dependabot/gradle/mockitoVersion-4.4.0
Bump mockitoVersion from 4.3.1 to 4.4.0
2022-03-09 09:49:05 +01:00
Tobias Kaminsky 530dfbc51d Merge pull request #9916 from nextcloud/chore/update_project_codestyles
Chore: Update codeStyles/Project.xml
2022-03-09 09:34:42 +01:00
Álvaro Brey Vilas e7dbbb45b4 Analysis: use proper token for clone
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-09 09:01:50 +01:00
Tobias Kaminsky c61b9a31dc daily dev 20220309
DocumentsStorageProvider: clean up download threading
Fix #9842: Run DocumentProvider.openDocument network operations in async task
RetryTestRule: don't modify in scripts, use buildConfigField instead
FileDisplayActivity: finally get rid of secondFragment
Update Nextcloud Android library
2022-03-09 06:44:30 +01:00
Tobias Kaminsky dabc097869 Merge remote-tracking branch 'origin/master' into dev 2022-03-09 05:34:17 +01:00
dependabot[bot] bbd4718a14 Bump mockitoVersion from 4.3.1 to 4.4.0
Bumps `mockitoVersion` from 4.3.1 to 4.4.0.

Updates `mockito-core` from 4.3.1 to 4.4.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.3.1...v4.4.0)

Updates `mockito-android` from 4.3.1 to 4.4.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.3.1...v4.4.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.mockito:mockito-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-09 02:06:22 +00:00
Álvaro Brey Vilas 781fe1912c FileDownloader: EXTRA_USER should be User, not Account
Fixes #9935

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-08 16:30:51 +01:00
Álvaro Brey Vilas bee3403b21 analysis: Checkout branch, but use repo too
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-08 13:50:04 +01:00
Álvaro Brey Vilas 2a8123210a Analysis scripts: fix push
I am TIRED of fighting with this scripts and Github actions

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-08 13:16:53 +01:00
Álvaro Brey 59751c2fda Merge pull request #9921 from akallabeth/download_async_task
Fix #9842: Run network operations in async task
2022-03-08 13:04:41 +01:00
Álvaro Brey c480d91b4c Merge pull request #9910 from nextcloud/chore/retry-rule-no-sed
RetryTestRule: don't modify in scripts, use buildConfigField instead
2022-03-08 12:02:03 +01:00
Álvaro Brey Vilas bfffad6bf4 DocumentsStorageProvider: clean up download threading
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-08 11:33:24 +01:00
akallabeth a8c85a376d Fix #9842: Run DocumentProvider.openDocument network operations in async task
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-08 11:33:19 +01:00
Álvaro Brey Vilas b5f727f945 RetryTestRule: don't modify in scripts, use buildConfigField instead
Modifying code in scripts is bad

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-08 09:43:38 +00:00
Álvaro Brey Vilas 421a672e1d workflows: analysis: another attempt to fix checkout
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-08 10:27:24 +01:00
Álvaro Brey Vilas d2cb7e33b5 Revert "workflows: analysis: default checkout"
This reverts commit 55f02b550b.

Signed-off-by: Álvaro Brey <[email protected]>
2022-03-08 10:25:38 +01:00
Álvaro Brey fb6d8f8263 Merge pull request #9898 from nextcloud/chore/no-more-second-fragment
FileDisplayActivity: finally get rid of secondFragment
2022-03-08 10:23:26 +01:00
Álvaro Brey Vilas 55f02b550b workflows: analysis: default checkout
Should work in checkout@v3

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-08 10:04:15 +01:00
Tobias Kaminsky 325ff5e44a daily dev 20220308
Update translations
Update Nextcloud Android library
Update 3rd-party dependencies
2022-03-08 06:42:39 +01:00
Tobias Kaminsky 7bb247bc7f Merge remote-tracking branch 'origin/master' into dev 2022-03-08 05:32:58 +01:00
Nextcloud bot 4a9338d4fe [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-08 03:58:09 +00:00
Álvaro Brey Vilas 6b3742a131 SyncedFoldersActivity: cancel loading when activity stops
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-07 14:47:18 +01:00
Álvaro Brey 2494967829 Merge pull request #9928 from nextcloud/dependabot/github_actions/actions/stale-5
Bump actions/stale from 4.1.0 to 5
2022-03-07 12:46:32 +01:00
Álvaro Brey 8a34bf220b Merge pull request #9926 from nextcloud/dependabot/github_actions/actions/checkout-3
Bump actions/checkout from 2 to 3
2022-03-07 10:14:57 +01:00
Álvaro Brey 79452d3539 Merge pull request #9927 from nextcloud/dependabot/github_actions/actions/upload-artifact-3
Bump actions/upload-artifact from 2 to 3
2022-03-07 09:47:30 +01:00
dependabot[bot] c8b1e0e43d Bump actions/stale from 4.1.0 to 5
Bumps [actions/stale](https://github.com/actions/stale) from 4.1.0 to 5.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v4.1.0...v5)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-07 08:20:44 +00:00
dependabot[bot] 7e7a1f4f97 Bump actions/upload-artifact from 2 to 3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...6673cd052c4cd6fcf4b4e6e60ea986c889389535)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-07 08:20:41 +00:00
dependabot[bot] 5e0c59cd6d Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-07 08:20:38 +00:00
Álvaro Brey 7d6d7e564e Merge pull request #9923 from nextcloud/feat/workflow-auto-update-command-rebase.yml
Updating command-rebase.yml workflow from template
2022-03-07 09:19:54 +01:00
Nextcloud bot 2b5d46eec6 Updating command-rebase.yml workflow from template
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-05 08:17:06 +00:00
Nextcloud bot 02dbe46d78 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-05 03:54:31 +00:00
nextcloud-android-bot 0a97b9b797 Drone: update FindBugs results to reflect reduced error/warning count
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-03-04 17:50:11 +01:00
nextcloud-android-bot 0ad73f845d Drone: update Lint results to reflect reduced error/warning count
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-03-04 17:49:54 +01:00
Álvaro Brey Vilas dc4f4bc512 SyncedFolderAdapter: load thumbnails in parallel instead of sequentially
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-04 17:29:51 +01:00
Álvaro Brey Vilas c488b0b330 SyncedFoldersActivity: load content asynchronously
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-04 17:21:32 +01:00
Álvaro Brey Vilas 6b67362b7b SyncedFoldersActivity: convert to Kotlin (step 2)
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-04 17:09:50 +01:00
Álvaro Brey Vilas aad327de21 SyncedFoldersActivity: conver to Kotlin (step 1)
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-04 16:23:45 +01:00
Álvaro Brey Vilas 5891959a21 Update codeStyles/Project.xml
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-03 11:54:50 +01:00
Tobias Kaminsky 63d4d077e2 daily dev 20220303
Restore library version
Allow EditorWebView accessing URLs with custom certificate
UploadFileOperation: fix creationTimestamp type
Correct handling of creation timestamp
Update translations
Update Nextcloud Android library
2022-03-03 06:42:52 +01:00
Tobias Kaminsky 4b3f045905 Merge remote-tracking branch 'origin/master' into dev 2022-03-03 05:33:13 +01:00
Nextcloud bot c08cfd9c8f [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-03 03:55:42 +00:00
Álvaro Brey 3383a6781a Merge pull request #9884 from nextcloud/creationTime
Correct handling of creation timestamp
2022-03-02 12:52:16 +01:00
Álvaro Brey Vilas 34ff8cff55 Restore library version
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-02 11:13:59 +01:00
Álvaro Brey 263413d53f Merge pull request #9881 from nextcloud/customCertInEditorWebView
Allow accessing URLs with custom cert in editor
2022-03-02 10:32:09 +01:00
Tobias Kaminsky 9222a22953 daily dev 20220302
Force checkerframework version to fix error due to exoplayer upgrade
GalleryFragment: restore title and fab on resume
PreviewImageActivity: don't try to use virtual folder is type is NONE
OCFileListFragment: don't reset title after clearing action mode (multiselect)
Update 3rd-party dependencies
2022-03-02 05:38:43 +01:00
Tobias Kaminsky f821f789ac Merge remote-tracking branch 'origin/master' into dev 2022-03-02 05:31:30 +01:00
Álvaro Brey d9c605e425 Merge pull request #9896 from nextcloud/fix/preview-shared
PreviewImageActivity: don't try to use virtual folder is type is NONE
2022-03-01 16:56:15 +01:00
Álvaro Brey 4dfd837257 Merge pull request #9897 from nextcloud/fix/selection-clear-titlebar
OCFileListFragment: don't reset title after clearing action mode (multiselect)
2022-03-01 16:55:27 +01:00
Unpublished 3c002fa0c3 Allow EditorWebView accessing URLs with custom certificate
Signed-off-by: Unpublished <[email protected]>

Drone: update Lint results to reflect reduced error/warning count

Signed-off-by: nextcloud-android-bot <[email protected]>

Drone: update FindBugs results to reflect reduced error/warning count

Signed-off-by: nextcloud-android-bot <[email protected]>
2022-03-01 16:26:37 +01:00
Álvaro Brey 436c782ebe Merge pull request #9904 from nextcloud/fix/media-title-restoring
GalleryFragment: restore title and fab on resume
2022-03-01 13:36:13 +01:00
Álvaro Brey 0e7587f73d Merge pull request #9901 from nextcloud/dependabot/gradle/com.google.android.exoplayer-exoplayer-2.17.0
Bump exoplayer from 2.16.1 to 2.17.0
2022-03-01 12:24:11 +01:00
Álvaro Brey 2b24e51eb4 Merge pull request #9907 from nextcloud/dependabot/gradle/mockkVersion-1.12.3
Bump mockkVersion from 1.12.2 to 1.12.3
2022-03-01 11:28:49 +01:00
Álvaro Brey Vilas 93f7c99d81 Force checkerframework version to fix error due to exoplayer upgrade
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-01 10:50:23 +01:00
Tobias Kaminsky 90052d5479 daily dev 20220301
OCFile: fix NPE in getLocalId when remoteID is null
Update translations
2022-03-01 05:38:22 +01:00
Tobias Kaminsky 1637fcc4b2 Merge remote-tracking branch 'origin/master' into dev 2022-03-01 05:31:15 +01:00
dependabot[bot] 7bcea82061 Bump mockkVersion from 1.12.2 to 1.12.3
Bumps `mockkVersion` from 1.12.2 to 1.12.3.

Updates `mockk` from 1.12.2 to 1.12.3
- [Release notes](https://github.com/mockk/mockk/releases)
- [Commits](https://github.com/mockk/mockk/compare/1.12.2...1.12.3)

Updates `mockk-android` from 1.12.2 to 1.12.3
- [Release notes](https://github.com/mockk/mockk/releases)
- [Commits](https://github.com/mockk/mockk/compare/1.12.2...1.12.3)

---
updated-dependencies:
- dependency-name: io.mockk:mockk
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: io.mockk:mockk-android
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-03-01 02:06:21 +00:00
Álvaro Brey Vilas 39094c0ef7 UploadFileOperation: fix creationTimestamp type
Thanks, spotbugs

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-28 17:48:34 +01:00
Álvaro Brey Vilas 7ff1d0d7d3 GalleryFragment: restore title and fab on resume
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-28 17:33:08 +01:00
Álvaro Brey Vilas eeee11e427 PreviewImageActivity: don't try to use virtual folder is type is NONE
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-28 14:11:09 +00:00
Álvaro Brey Vilas 967327e321 OCFileListFragment: don't reset title after clearing action mode (multiselect)
This breaks the title when in a virtual folder. There's no need for this, as the title is preserved anyway

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-28 14:10:57 +00:00
tobiasKaminsky 6d6339ebf6 Correct handling of creation timestamp
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-28 14:10:39 +00:00
nextcloud-android-bot abfcec5adc Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-02-28 14:10:19 +00:00
Álvaro Brey Vilas dd4770669f FileDisplayActivity: finally get rid of secondFragment
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-28 14:10:19 +00:00
Álvaro Brey 1954584741 Merge pull request #9902 from nextcloud/fix/localid-nullpointer
OCFile: fix NPE in getLocalId when remoteID is null
2022-02-28 15:09:17 +01:00
Álvaro Brey Vilas ba21b3a43f OCFile: fix NPE in getLocalId when remoteID is null
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-28 12:51:05 +01:00
Nextcloud bot b8aa447056 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-28 04:13:54 +00:00
dependabot[bot] ebe28efc46 Bump exoplayer from 2.16.1 to 2.17.0
Bumps [exoplayer](https://github.com/google/ExoPlayer) from 2.16.1 to 2.17.0.
- [Release notes](https://github.com/google/ExoPlayer/releases)
- [Changelog](https://github.com/google/ExoPlayer/blob/release-v2/RELEASENOTES.md)
- [Commits](https://github.com/google/ExoPlayer/compare/r2.16.1...r2.17.0)

---
updated-dependencies:
- dependency-name: com.google.android.exoplayer:exoplayer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-28 02:09:41 +00:00
Tobias Kaminsky 916630e332 daily dev 20220226
Remove not needed toString() call
remoteId not needed when deleting a file
Revert "Bump exoplayer from 2.16.1 to 2.17.0"
Remove third party licenses for libs we don't use (anymore)
Update translations
Update Nextcloud Android library
Update 3rd-party dependencies
2022-02-26 06:43:24 +01:00
Tobias Kaminsky 04e7d81138 Merge remote-tracking branch 'origin/master' into dev 2022-02-26 05:33:20 +01:00
Nextcloud bot 76c5dded8f [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-26 03:53:55 +00:00
Álvaro Brey 663cc8ed4f Merge pull request #9894 from nextcloud/unneededToString
Remove not needed toString() call
2022-02-25 15:29:28 +01:00
nextcloud-android-bot a990e6c2c8 Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-02-25 13:54:05 +00:00
tobiasKaminsky 8401427d96 Remove not needed toString() call
Signed-off-by: tobiasKaminsky <[email protected]>

Update src/main/java/com/owncloud/android/db/OCUpload.java

Signed-off-by: Álvaro Brey <[email protected]>
2022-02-25 14:46:27 +01:00
Álvaro Brey 310d980313 Merge pull request #9893 from nextcloud/remoteIdNull
remoteId not needed when deleting a file
2022-02-25 14:45:17 +01:00
nextcloud-android-bot 99854accf6 Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-02-25 12:49:47 +00:00
tobiasKaminsky 7c7e7e845d remoteId not needed when deleting a file
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-25 12:49:47 +00:00
Álvaro Brey cd94dc997b Merge pull request #9895 from nextcloud/fix/revert-exoplayer
Revert "Bump exoplayer from 2.16.1 to 2.17.0"
2022-02-25 13:47:51 +01:00
Álvaro Brey Vilas 3433312268 Revert "Bump exoplayer from 2.16.1 to 2.17.0"
Breaks instrumented test dependencies for some reason

This reverts commit b089ca76a4.
2022-02-25 13:45:27 +01:00
Álvaro Brey 2bd1b95fe9 Merge pull request #9889 from nextcloud/dependabot/gradle/com.google.android.exoplayer-exoplayer-2.17.0
Bump exoplayer from 2.16.1 to 2.17.0
2022-02-25 13:10:51 +01:00
Álvaro Brey 113c4a2a7b Merge pull request #9888 from nextcloud/chore/remove-third-party
Remove third party licenses for libs we don't use (anymore)
2022-02-25 09:51:26 +01:00
Álvaro Brey a4a5cc0396 Merge pull request #9890 from nextcloud/removeMail
remove mail notification on failure during CI, as this is shown in GitHub anyways
2022-02-25 09:48:07 +01:00
dependabot[bot] b089ca76a4 Bump exoplayer from 2.16.1 to 2.17.0
Bumps [exoplayer](https://github.com/google/ExoPlayer) from 2.16.1 to 2.17.0.
- [Release notes](https://github.com/google/ExoPlayer/releases)
- [Changelog](https://github.com/google/ExoPlayer/blob/release-v2/RELEASENOTES.md)
- [Commits](https://github.com/google/ExoPlayer/compare/r2.16.1...r2.17.0)

---
updated-dependencies:
- dependency-name: com.google.android.exoplayer:exoplayer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-25 08:47:19 +00:00
tobiasKaminsky 60aaf00fc2 remove mail notification on failure during CI, as this is shown in GitHub anyways
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-25 07:07:04 +01:00
Tobias Kaminsky dd8fdbf7d4 daily dev 20220225
Cleanup
Better exception report template
ExceptionHandler: format entire stack trace recursively
Add stacktrace directly to github issue
Fix LoggerImpl to also log throwable
Update translations
Update 3rd-party dependencies
2022-02-25 05:40:00 +01:00
Tobias Kaminsky 81efcf3307 Merge remote-tracking branch 'origin/master' into dev 2022-02-25 05:31:14 +01:00
Nextcloud bot 5d943ad24b [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-25 03:53:59 +00:00
Álvaro Brey Vilas 812cd943db Remove third party licenses for libs we don't use (anymore)
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-24 16:53:29 +01:00
Álvaro Brey 5b964994d1 Merge pull request #8805 from nextcloud/stacktrace
Add stacktrace directly to github issue
2022-02-24 13:38:04 +01:00
Álvaro Brey Vilas 1a0d3ed65b Cleanup
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-24 11:49:20 +01:00
Álvaro Brey Vilas 5d07c4c6e4 Better exception report template
With markdown now

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-24 11:42:55 +01:00
Álvaro Brey Vilas 4cc4418bec ExceptionHandler: format entire stack trace recursively
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-24 11:03:32 +01:00
tobiasKaminsky 53a04af735 Add stacktrace directly to github issue
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-24 11:03:26 +01:00
Álvaro Brey 06ad493ed2 Merge pull request #9846 from nextcloud/dependabot/gradle/com.pinterest-ktlint-0.44.0
Bump ktlint from 0.43.2 to 0.44.0
2022-02-24 10:25:18 +01:00
Álvaro Brey 9b3c08efcd Merge pull request #9880 from nextcloud/fixLoggerImpl
Fix LoggerImpl to also log throwable
2022-02-24 10:15:58 +01:00
Álvaro Brey 316a2579c4 Merge pull request #9882 from nextcloud/dependabot/gradle/com.android.tools.build-gradle-7.1.2
Bump gradle from 7.1.1 to 7.1.2
2022-02-24 10:12:12 +01:00
Tobias Kaminsky a1749a1a8b daily dev 20220224
Migrate from Parceler to kotlin-parcelize
Use androidx for espresso-intents
Update translations
Update Nextcloud Android library
2022-02-24 06:41:58 +01:00
Tobias Kaminsky 16a3fd671a Merge remote-tracking branch 'origin/master' into dev 2022-02-24 05:33:12 +01:00
Nextcloud bot b124793817 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-24 03:56:56 +00:00
dependabot[bot] 9ee6e7185c Bump gradle from 7.1.1 to 7.1.2
Bumps gradle from 7.1.1 to 7.1.2.

---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-24 02:05:16 +00:00
Unpublished f50def5e0d Fix LoggerImpl to also log throwable
Signed-off-by: Unpublished <[email protected]>
2022-02-23 22:02:59 +01:00
Álvaro Brey 3b1dbe2301 Merge pull request #9866 from nextcloud/migrateParcelerToKotlinParcelize
Migrate from Parceler to kotlin-parcelize
2022-02-23 17:43:58 +01:00
Unpublished fcd1ab88b5 Migrate from Parceler to kotlin-parcelize
Signed-off-by: Unpublished <[email protected]>
2022-02-23 17:08:32 +01:00
Tobias Kaminsky 1250f27d59 Merge pull request #9877 from nextcloud/chore/espresso-intents-androidx
Use androidx for espresso-intents
2022-02-23 14:57:53 +01:00
Álvaro Brey Vilas ffe0b0c961 Use androidx for espresso-intents
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-23 13:35:35 +01:00
Tobias Kaminsky 13b3477fe3 daily dev 20220223
PreviewVideoActivity: improve button UX
Restore fast forward/rewind buttons in fullscreen video
PreviewVideoActivity: convert to Kotlin
PreviewMediaFragment: fix restoring seek position when returning from fullscreen stream
PreviewVideoActivity: fix control buttons
PreviewVideoActivity: pause player when activity stops
PreviewVideoActivity: ensure player is stopped when closing fullscreen
PreviewMediaFragment: stop video when stopping activity, and don't recreate existing player
2022-02-23 05:38:30 +01:00
Tobias Kaminsky 615d787e01 Merge remote-tracking branch 'origin/master' into dev 2022-02-23 05:31:25 +01:00
Álvaro Brey 00009680a3 Merge pull request #9859 from nextcloud/fix/video-stacking
Misc fixes for video player
2022-02-22 12:09:26 +01:00
Tobias Kaminsky 1bc3b5dafb daily dev 20220222
Fix LeakedCloseableViolations in getScaledBitmap
Fix toolbar in PreviewMediaFragment after coming back from sharing fragment
FileDisplayActivity: fix coordinator scrolling when opening share details from media preview
Update translations
Update Nextcloud Android library
2022-02-22 06:42:37 +01:00
Tobias Kaminsky aaa65045fb Merge remote-tracking branch 'origin/master' into dev 2022-02-22 05:33:40 +01:00
Nextcloud bot 8f6e8f4927 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-22 03:56:19 +00:00
nextcloud-android-bot 2854b72f77 Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-02-21 16:47:54 +00:00
nextcloud-android-bot 28e8c0d1ad Drone: update Lint results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-02-21 16:46:46 +00:00
Álvaro Brey Vilas 71c0f657e2 PreviewVideoActivity: improve button UX
- Add ripple on button click
 - Only show play OR pause button depending on playback state

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-21 17:39:43 +01:00
Álvaro Brey Vilas 87e508d2b1 Restore fast forward/rewind buttons in fullscreen video
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-21 17:39:42 +01:00
Álvaro Brey Vilas 7d89d68df6 PreviewVideoActivity: convert to Kotlin
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-21 17:39:42 +01:00
Álvaro Brey Vilas 329dea57a3 PreviewMediaFragment: fix restoring seek position when returning from fullscreen stream
The stream asynctask was just ignoring the saved time

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-21 17:39:42 +01:00
Álvaro Brey Vilas 11e472b18b PreviewVideoActivity: fix control buttons
For some reason only previous/next were working.

Manually bind play and pause, and remove the rest

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-21 17:39:42 +01:00
Álvaro Brey Vilas 22555a901a PreviewVideoActivity: pause player when activity stops
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-21 17:39:42 +01:00
Álvaro Brey Vilas e419144456 PreviewVideoActivity: ensure player is stopped when closing fullscreen
This already worked for onBackPressed

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-21 17:39:42 +01:00
Álvaro Brey Vilas 686748dda2 PreviewMediaFragment: stop video when stopping activity, and don't recreate existing player
This avoids multiple instances of the player opening when minimizing the app, for example.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-21 17:39:42 +01:00
Álvaro Brey c9018f8ba6 Merge pull request #9862 from nextcloud/fixLeakedCloseableViolation
Fix LeakedCloseableViolations in getScaledBitmap
2022-02-21 11:36:38 +01:00
Álvaro Brey cb9d9ff1a2 Merge pull request #9858 from nextcloud/fix/preview-share
Fix UX issues with toolbar in preview media fragment when using the "share" option
2022-02-21 09:46:28 +01:00
Nextcloud bot e4da58cfd2 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-21 03:55:57 +00:00
Unpublished 2bd0bf0f14 Update findbugs-results.txt
Signed-off-by: Unpublished <[email protected]>
2022-02-20 13:22:48 +01:00
Unpublished 67397a4d7b Fix LeakedCloseableViolations in getScaledBitmap
Signed-off-by: Unpublished <[email protected]>
2022-02-20 12:56:28 +01:00
Nextcloud bot 5250b7380c [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-20 03:55:24 +00:00
Tobias Kaminsky ac02117294 daily dev 20220219
Update translations
Update Nextcloud Android library
2022-02-19 13:58:11 +01:00
Tobias Kaminsky 7b0dc4768e Merge remote-tracking branch 'origin/master' into dev 2022-02-19 12:47:39 +01:00
Nextcloud bot c704f59b37 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-19 03:55:54 +00:00
Álvaro Brey Vilas 7625275b07 Fix toolbar in PreviewMediaFragment after coming back from sharing fragment
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-18 13:48:17 +01:00
Álvaro Brey Vilas 66125d6a27 FileDisplayActivity: fix coordinator scrolling when opening share details from media preview
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-18 13:31:15 +01:00
Tobias Kaminsky d1bb2b60c1 daily dev 20220218
Add scan document feature
Update Nextcloud Android library
Update 3rd-party dependencies
2022-02-18 07:35:48 +01:00
Tobias Kaminsky de5169b5b6 Merge remote-tracking branch 'origin/master' into dev 2022-02-18 06:10:28 +01:00
Álvaro Brey 2b639f288b Merge pull request #9852 from nextcloud/dependabot/gradle/daggerVersion-2.41
Bump daggerVersion from 2.40.5 to 2.41
2022-02-17 18:12:26 +01:00
Álvaro Brey 735cbfc7ab Merge pull request #9851 from nextcloud/dependabot/gradle/com.github.spotbugs.snom-spotbugs-gradle-plugin-5.0.6
Bump spotbugs-gradle-plugin from 5.0.5 to 5.0.6
2022-02-17 17:45:08 +01:00
Tobias Kaminsky 41d1698ea3 Merge pull request #9717 from nextcloud/scan_doc
Scan doc
2022-02-17 14:31:02 +01:00
thelittlefireman 9e7a9b410f Add scan document feature
Signed-off-by: tobiasKaminsky <[email protected]>
Signed-off-by: thelittlefireman <[email protected]>
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-17 10:10:36 +01:00
Tobias Kaminsky 64c82594bb daily dev 20220217
Fix test, satisfy spotbugs
Show empty message if no results
Remove not needed check
Satisfy CI
Use master library again
Update adapter after finish search (success/failure)
Do not show meta info (favorite, download status) in media view
correctly return result
fix reloading bug
refactor/ clean up
sql typo fix not showing images
Enhance media tab
Update translations
2022-02-17 06:34:31 +01:00
Tobias Kaminsky dc7c3f473c Merge remote-tracking branch 'origin/master' into dev 2022-02-17 06:12:17 +01:00
Nextcloud bot ee000f7b4e [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-17 03:55:25 +00:00
dependabot[bot] c3939e881c Bump daggerVersion from 2.40.5 to 2.41
Bumps `daggerVersion` from 2.40.5 to 2.41.

Updates `dagger` from 2.40.5 to 2.41
- [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.40.5...dagger-2.41)

Updates `dagger-android` from 2.40.5 to 2.41
- [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.40.5...dagger-2.41)

Updates `dagger-android-support` from 2.40.5 to 2.41
- [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.40.5...dagger-2.41)

Updates `dagger-compiler` from 2.40.5 to 2.41
- [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.40.5...dagger-2.41)

Updates `dagger-android-processor` from 2.40.5 to 2.41
- [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.40.5...dagger-2.41)

---
updated-dependencies:
- dependency-name: com.google.dagger:dagger
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.google.dagger:dagger-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.google.dagger:dagger-android-support
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.google.dagger:dagger-compiler
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.google.dagger:dagger-android-processor
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-17 02:05:47 +00:00
dependabot[bot] 70904ce924 Bump spotbugs-gradle-plugin from 5.0.5 to 5.0.6
Bumps [spotbugs-gradle-plugin](https://github.com/spotbugs/spotbugs-gradle-plugin) from 5.0.5 to 5.0.6.
- [Release notes](https://github.com/spotbugs/spotbugs-gradle-plugin/releases)
- [Commits](https://github.com/spotbugs/spotbugs-gradle-plugin/compare/5.0.5...5.0.6)

---
updated-dependencies:
- dependency-name: com.github.spotbugs.snom:spotbugs-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-17 02:05:25 +00:00
Tobias Kaminsky 1e33020f80 Merge pull request #9783 from nextcloud/mediaEnhancement
Enhance media tab
2022-02-16 10:42:33 +01:00
Tobias Kaminsky 21d5197203 daily dev 20220216
Fallback pdf viewer (#9806)
PassCodeManager: use abstracted Clock implementation rather than system clock directly
PassCodeActivity: update lock timestamp when lock has just been set
Make use of upload and creation timestamp
PassCodeManager: convert to Kotlin, clean up, use injection
PassCodeManager: don't count passcode/credentials activity towards activity counter
Pin: use activity paused also, as stopped is sometimes too slow
Chore: replace `com.nhaarman.mockitokotlin2` with `org.mockito.kotlin`
resuming TextEditor after splitting screens works now again
FileDisplayActivity: ditch secondFragment for FileDetailsFragment, use leftFragment instead
FileActivity: fix crash on share operations when FileDetailFragment is second fragment
ConflictsResolveActivity: Add log messages when dialog can't be created
FileContentProvider: fix crash on certain upgrades
Use 512px for avatar
Update translations
Update Nextcloud Android library
Update 3rd-party dependencies
2022-02-16 07:40:50 +01:00
Tobias Kaminsky 288f5e8361 Merge remote-tracking branch 'origin/master' into dev 2022-02-16 06:21:01 +01:00
dependabot[bot] 2d99d8a546 Bump ktlint from 0.43.2 to 0.44.0
Bumps [ktlint](https://github.com/pinterest/ktlint) from 0.43.2 to 0.44.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.43.2...0.44.0)

---
updated-dependencies:
- dependency-name: com.pinterest:ktlint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-16 02:05:51 +00:00
Álvaro Brey f9febe24ad Fallback pdf viewer (#9806)
* Basic PDF preview

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* Preview pdf: add dividers between pages

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* Prefer third-party pdf viewers over fallback viewer

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* Zoomable view for pdf pages

Signed-off-by: Álvaro Brey Vilas <[email protected]>

pdf preview: Show tip to indicate that zooming on images is possible

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* Pdf preview: screenshot test

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* Fix spotbugs and lint

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* PreviewPdfFragment: fix screenshot test

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* PreviewPdfFragment: fix toolbar when resuming

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* PreviewBitmapActivity: add screenshot test

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* PreviewPdfFragment: fix crash in screenshot tests

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* Pdf preview: rename tests

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* pdf preview: Update copyright headers

Oops

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* Pdf preview: use grey for background instead of black

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* Pdf preview: add scrollbar

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* Pdf preview: show zoom tip 3 times instead of only once

Signed-off-by: Álvaro Brey Vilas <[email protected]>

* Pdf preview: fix lint and improve styling

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-15 15:04:16 +01:00
Tobias Kaminsky 9723c0458e Merge pull request #9816 from nextcloud/pin
Improve PIN lockout handling
2022-02-15 14:54:08 +01:00
tobiasKaminsky ea863cd04c Fix test, satisfy spotbugs
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-15 14:52:55 +01:00
Tobias Kaminsky e5131c59ca Merge pull request #9736 from nextcloud/uploadCreationTimestamp
Make use of upload and creation timestamp
2022-02-15 14:22:08 +01:00
Álvaro Brey Vilas df3c98a0c4 PassCodeManager: use abstracted Clock implementation rather than system clock directly
Improves testability

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-15 11:23:36 +01:00
Álvaro Brey Vilas aafa7780f6 PassCodeActivity: update lock timestamp when lock has just been set
Prevents asking for pass immediately after setting it

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-15 10:27:11 +01:00
tobiasKaminsky 607d008a75 Make use of upload and creation timestamp
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-15 09:43:32 +01:00
tobiasKaminsky 3584b90bc6 Show empty message if no results
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-15 09:36:52 +01:00
tobiasKaminsky b2bfd985da Remove not needed check
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-15 09:23:50 +01:00
tobiasKaminsky 0624e7eef3 Satisfy CI
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-15 08:37:25 +01:00
tobiasKaminsky cdd73d7d3d Use master library again
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-15 08:11:24 +01:00
Nextcloud bot ac68a9269e [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-15 05:33:30 +00:00
Tobias Kaminsky 1b4d616d68 Merge remote-tracking branch 'origin/master' into dev 2022-02-15 06:08:51 +01:00
Álvaro Brey Vilas 8b03556f71 PassCodeManager: convert to Kotlin, clean up, use injection
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-14 18:28:56 +01:00
Álvaro Brey Vilas 579af4ab30 PassCodeManager: don't count passcode/credentials activity towards activity counter
This prevents repetition attacks

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-14 17:28:46 +01:00
Álvaro Brey 42b254dae6 Merge pull request #9829 from nextcloud/dependabot/gradle/com.google.code.gson-gson-2.9.0
Bump gson from 2.8.9 to 2.9.0
2022-02-14 13:49:31 +01:00
dependabot[bot] b2652633d2 Bump gson from 2.8.9 to 2.9.0
Bumps [gson](https://github.com/google/gson) from 2.8.9 to 2.9.0.
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.8.9...gson-parent-2.9.0)

---
updated-dependencies:
- dependency-name: com.google.code.gson:gson
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-14 12:15:06 +00:00
Álvaro Brey 6d6183b3b0 Merge pull request #9208 from nextcloud/flaky-tests-again
Add RetryTestRule to DrawerActivityIT
2022-02-14 11:16:18 +01:00
Álvaro Brey 69033e25e9 Merge pull request #9823 from nextcloud/chore/mockitokotlin2
Chore: replace `com.nhaarman.mockitokotlin2` with `org.mockito.kotlin`
2022-02-14 11:09:47 +01:00
Tobias Kaminsky b81027d057 Merge pull request #9791 from nextcloud/fix/shares-downloading-crash
FileActivity: fix crash on share operations when FileDetailFragment is second fragment
2022-02-14 09:06:22 +01:00
Tobias Kaminsky c41f87d281 Merge pull request #9822 from nextcloud/chore/conflicts-dialog-logs
ConflictsResolveActivity: Add log messages when dialog can't be created
2022-02-14 09:00:28 +01:00
Tobias Kaminsky 1d4bc98de7 Merge pull request #9812 from nextcloud/avatarSize
Use 512px for avatar
2022-02-14 08:47:33 +01:00
Tobias Kaminsky 8b0674e29f Merge pull request #9808 from nextcloud/resumeText
resuming TextEditor after splitting screens works now again
2022-02-14 08:40:09 +01:00
Tobias Kaminsky 541e55ff1c Merge pull request #9821 from nextcloud/fix/db-upgrade-crash
FileContentProvider: fix crash on certain upgrades
2022-02-14 08:30:47 +01:00
tobiasKaminsky fa73725815 Pin: use activity paused also, as stopped is sometimes too slow
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-14 07:30:00 +00:00
tobiasKaminsky 556f856ac3 Update adapter after finish search (success/failure)
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-14 07:35:51 +01:00
tobiasKaminsky e17beb00ad Do not show meta info (favorite, download status) in media view
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-14 07:35:51 +01:00
tobiasKaminsky 256656af5d correctly return result
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-14 07:35:51 +01:00
tobiasKaminsky 307a407631 fix reloading bug
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-14 07:35:51 +01:00
tobiasKaminsky 07885c3a18 refactor/ clean up
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-14 07:35:51 +01:00
nextcloud-android-bot 905b21e04a Drone: update Lint results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-02-14 07:35:51 +01:00
tobiasKaminsky 5140d8d99f sql typo
fix not showing images

Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-14 07:35:51 +01:00
tobiasKaminsky 3bfc373e50 Enhance media tab
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-14 07:35:50 +01:00
Nextcloud bot 6b8ce02a2e [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-14 03:55:09 +00:00
Tobias Kaminsky df20da2828 daily dev 20220212
For display with >= 600dp use higher file icon resolution use this resolution also default thumbnails
remove gplay.gradle, use gplayImplementation instead
Update translations
Update 3rd-party dependencies
2022-02-12 05:50:27 +01:00
Tobias Kaminsky e7c78b3e69 Merge remote-tracking branch 'origin/master' into dev 2022-02-12 05:37:26 +01:00
Nextcloud bot bbf1032845 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-12 03:55:56 +00:00
Álvaro Brey Vilas 2a6398adda Chore: replace com.nhaarman.mockitokotlin2 with org.mockito.kotlin
It has been integrated into the main mockito org, and the old ID no longer receives updates

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-11 18:32:15 +01:00
tobiasKaminsky e20555f5d0 resuming TextEditor after splitting screens works now again
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-11 16:59:13 +00:00
Álvaro Brey ad24340f90 Merge pull request #9083 from nextcloud/gplayImpl
remove gplay.gradle, use gplayImplementation instead
2022-02-11 17:53:59 +01:00
Álvaro Brey Vilas c506cda8a6 FileDisplayActivity: ditch secondFragment for FileDetailsFragment, use leftFragment instead
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-11 16:49:57 +00:00
Álvaro Brey Vilas d82a989378 FileActivity: fix crash on share operations when FileDetailFragment is second fragment
When a file is downloaded, FileDetailFragment is opened as SECOND_FRAGMENT instead of LIST_OF_FILES, which breaks this logic.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-11 16:49:57 +00:00
Álvaro Brey Vilas 9cf0f1d6fa ConflictsResolveActivity: Add log messages when dialog can't be created
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-11 17:33:58 +01:00
Álvaro Brey Vilas b5d338fb8d FileContentProvider: fix crash on certain upgrades
checkIfColumnExists should not use getColumnIndexOrThrow, as it's supposed to check if the index doesn't exist

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-11 13:57:03 +01:00
Tobias Kaminsky 5c649785f1 Merge pull request #9819 from nextcloud/dependabot/gradle/byteBuddyVersion-1.12.8
Bump byteBuddyVersion from 1.12.7 to 1.12.8
2022-02-11 13:31:31 +01:00
Tobias Kaminsky b36da4a699 Merge pull request #9805 from nextcloud/highresThumbnails
High-res thumbnails
2022-02-11 13:16:31 +01:00
Tobias Kaminsky a3add82062 Merge pull request #9799 from nextcloud/dependabot/gradle/com.facebook.testing.screenshot-core-0.15.0
Bump core from 0.13.0 to 0.15.0
2022-02-11 13:08:35 +01:00
dependabot[bot] e37cd03378 Bump core from 0.13.0 to 0.15.0
Bumps [core](https://github.com/facebook/screenshot-tests-for-android) from 0.13.0 to 0.15.0.
- [Release notes](https://github.com/facebook/screenshot-tests-for-android/releases)
- [Changelog](https://github.com/facebook/screenshot-tests-for-android/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/screenshot-tests-for-android/compare/0.13.0...0.15.0)

---
updated-dependencies:
- dependency-name: com.facebook.testing.screenshot:core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-11 11:09:39 +00:00
tobiasKaminsky 7ddbb65ca2 Use 512px for avatar
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-11 11:09:23 +00:00
tobiasKaminsky 1c9a3e0208 For display with >= 600dp use higher file icon resolution
use this resolution also default thumbnails

Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-11 11:09:20 +00:00
dependabot[bot] 4f3de11179 Bump byteBuddyVersion from 1.12.7 to 1.12.8
Bumps `byteBuddyVersion` from 1.12.7 to 1.12.8.

Updates `byte-buddy` from 1.12.7 to 1.12.8
- [Release notes](https://github.com/raphw/byte-buddy/releases)
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
- [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.12.7...byte-buddy-1.12.8)

Updates `byte-buddy-android` from 1.12.7 to 1.12.8
- [Release notes](https://github.com/raphw/byte-buddy/releases)
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
- [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.12.7...byte-buddy-1.12.8)

---
updated-dependencies:
- dependency-name: net.bytebuddy:byte-buddy
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: net.bytebuddy:byte-buddy-android
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-11 11:08:50 +00:00
Tobias Kaminsky db71d3748e Merge pull request #9820 from nextcloud/newDroneServer
Update drone server image
2022-02-11 11:58:17 +01:00
tobiasKaminsky 11524528bf Update drone server image
Signed-off-by: tobiasKaminsky <[email protected]>
2022-02-11 10:16:52 +01:00
Álvaro Brey 8fd7a050c7 Merge pull request #9814 from nextcloud/dependabot/gradle/androidx.lifecycle-lifecycle-viewmodel-ktx-2.4.1
Bump lifecycle-viewmodel-ktx from 2.4.0 to 2.4.1
2022-02-10 12:54:42 +01:00
dependabot[bot] 452195342e Bump lifecycle-viewmodel-ktx from 2.4.0 to 2.4.1
Bumps lifecycle-viewmodel-ktx from 2.4.0 to 2.4.1.

---
updated-dependencies:
- dependency-name: androidx.lifecycle:lifecycle-viewmodel-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-10 02:14:16 +00:00
Tobias Kaminsky c9a3b2dbb0 daily dev 20220208
NaturalSortTest: shuffle instead of duplicating parameters
Rename TestSorting to OCFileSortTest, conver to Kotlin, parameterize
TestSorting: refactor and simplify since it's now only for OCFiles
Move string sort tests from TestSorting to NaturalSortTest
Move TestSorting to unit tests
Test AlphanumComparator
Update translations
Update Nextcloud Android library
Update 3rd-party dependencies
2022-02-08 06:49:39 +01:00
Tobias Kaminsky e50ab4bec3 Merge remote-tracking branch 'origin/master' into dev 2022-02-08 05:36:36 +01:00
Álvaro Brey e88a4d97d6 Merge pull request #9802 from nextcloud/dependabot/gradle/com.android.tools.build-gradle-7.1.1
Bump gradle from 7.1.0 to 7.1.1
2022-02-07 09:43:57 +01:00
Álvaro Brey 4d9c878d4f Merge pull request #9801 from nextcloud/chore/test-sort-order
Update sorting tests
2022-02-07 09:21:24 +01:00
Nextcloud bot 73c01d1ef4 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-07 03:54:38 +00:00
dependabot[bot] 0200142476 Bump gradle from 7.1.0 to 7.1.1
Bumps gradle from 7.1.0 to 7.1.1.

---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-02-07 02:07:01 +00:00
Nextcloud bot 559c41d880 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-05 03:54:13 +00:00
Álvaro Brey Vilas 08e7a761dc NaturalSortTest: shuffle instead of duplicating parameters
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-04 13:55:07 +01:00
Álvaro Brey Vilas 64d386786c Rename TestSorting to OCFileSortTest, conver to Kotlin, parameterize
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-04 13:55:07 +01:00
Álvaro Brey Vilas bed01a2f0c TestSorting: refactor and simplify since it's now only for OCFiles
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-04 13:12:52 +01:00
Álvaro Brey Vilas e7e603f4d8 Move string sort tests from TestSorting to NaturalSortTest
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-04 13:02:42 +01:00
Álvaro Brey Vilas d40fc88754 Move TestSorting to unit tests
No reason for it to be an instrumented test

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-04 12:54:45 +01:00
Álvaro Brey Vilas 91297b7ce0 Test AlphanumComparator
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-04 10:49:08 +01:00
Tobias Kaminsky e3b288e0f7 daily dev 20220204
Update translations
2022-02-04 05:39:06 +01:00
Tobias Kaminsky c4a8bb72cd Merge remote-tracking branch 'origin/master' into dev 2022-02-04 05:31:46 +01:00
Nextcloud bot 927babb3bf [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-04 03:55:25 +00:00
Álvaro Brey b0848c23e7 Merge pull request #9796 from nextcloud/changelog-master-stable-3.19.0
Add changelog for 3.19.0
2022-02-03 13:19:53 +01:00
Álvaro Brey Vilas 1a7f81a47b Add changelog for 3.19.0
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-02-03 13:17:13 +01:00
Tobias Kaminsky 09216ae0e8 daily dev 20220203
Update translations
Update Nextcloud Android library
2022-02-03 06:44:32 +01:00
Tobias Kaminsky e6200b013d Merge remote-tracking branch 'origin/master' into dev 2022-02-03 05:33:53 +01:00
Nextcloud bot c437db409e [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-03 03:55:06 +00:00
Nextcloud bot dba8da00f0 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-02 03:55:45 +00:00
Tobias Kaminsky 1c5cd59b9f daily dev 20220201
OCFileListFragment: set title when attached to activity
i18n: Change to a capital letter
Update translations
2022-02-01 05:38:47 +01:00
Tobias Kaminsky bfd73aabf2 Merge remote-tracking branch 'origin/master' into dev 2022-02-01 05:31:36 +01:00
Nextcloud bot 190332ceaa [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-02-01 03:55:35 +00:00
Álvaro Brey 1ecbf61cc7 Merge pull request #9776 from nextcloud/fix/activity-title
OCFileListFragment: set title when attached to activity
2022-01-31 15:42:16 +01:00
Álvaro Brey 0c5afce10e Merge pull request #9770 from nextcloud/Valdnet-patch-1
i18n: Change to a capital letter
2022-01-31 13:43:46 +01:00
Álvaro Brey Vilas d1d3a49a6b OCFileListFragment: set title when attached to activity
This prevents wrong title while search isn't started yet (such as when returning to a search fragment from a preview fragment)

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-28 16:32:46 +01:00
Tobias Kaminsky c65b2c6ac7 daily dev 20220128
LocalFileListAdapter: fix case where directory==null
FileSortOrder*: convert to Kotlin
LocalFileListAdapter: Also change sort order asynchronously
AlphaNumComparator: optimize usage and resolve signature problems
LocalFileList: load local files asynchronously
PassCodeActivity: enable cancel button when re-created in confirmation step
Make more PendingIntents immutable
Make PendingIntents immutable
ManageSpaceActivity: convert to Kotlin while we're here
ManageSpaceActivity: kill the app after finishing cleanup
ManageSpaceActivity: remove user accounts when clearing data
GalleryFragment: force refresh on create, prevent unneeded refresh animations
GalleryFragment: prevent NPE when recreating fragment
Update translations
Update 3rd-party dependencies
2022-01-28 05:38:33 +01:00
Tobias Kaminsky 8ff6aa37b3 Merge remote-tracking branch 'origin/master' into dev 2022-01-28 05:31:47 +01:00
Nextcloud bot 204cd5a2c5 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-28 03:54:54 +00:00
Valdnet f28bc6f9f9 i18n: Change to a capital letter
Signed-off-by: Valdnet <[email protected]>
2022-01-27 17:12:02 +01:00
tobiasKaminsky ebf59510fc remove gplay.gradle, use gplayImplementation instead
Signed-off-by: tobiasKaminsky <[email protected]>
2022-01-27 12:15:37 +00:00
Álvaro Brey 88605985a0 Merge pull request #9743 from nextcloud/fix/media-dark-duplicated
Fix crashes and double loading in GalleryFragment when changing dark theme
2022-01-27 12:35:35 +01:00
Álvaro Brey 3e97e1e212 Merge pull request #9761 from nextcloud/fix/local-files-freeze
Improve freezes in local files screens when folder contains many files
2022-01-27 12:34:35 +01:00
Álvaro Brey 6ccd2f91de Merge pull request #9760 from nextcloud/fix/passcode-cancel
PassCodeActivity: enable cancel button when re-created in confirmation step
2022-01-27 12:33:57 +01:00
Álvaro Brey c2bdea7f74 Merge pull request #9762 from nextcloud/dependabot/gradle/androidx.fragment-fragment-ktx-1.4.1
Bump fragment-ktx from 1.4.0 to 1.4.1
2022-01-27 10:23:14 +01:00
Álvaro Brey Vilas f3de5f9862 LocalFileListAdapter: fix case where directory==null
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-27 09:49:07 +01:00
Álvaro Brey Vilas 96c55a6d9f FileSortOrder*: convert to Kotlin
Need more kotlin in the codebase and these were simple enough

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-27 09:49:07 +01:00
dependabot[bot] dc7f3f88e1 Bump fragment-ktx from 1.4.0 to 1.4.1
Bumps fragment-ktx from 1.4.0 to 1.4.1.

---
updated-dependencies:
- dependency-name: androidx.fragment:fragment-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-27 08:38:05 +00:00
Álvaro Brey Vilas 7baa0f8da4 LocalFileListAdapter: Also change sort order asynchronously
Changing sort  order is also slow.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-27 09:33:50 +01:00
Álvaro Brey Vilas 2baf63d809 AlphaNumComparator: optimize usage and resolve signature problems
- Methods had ambiguous signatures (parameterized compare<T> overlapped the various typed compare()). This made the compiler very confused.
 - In several places throughout the app, AlphaNumComparator was getting repeatedly instantiated just to manually call a typed compare(). This was very wasteful

To solve both problems, the typed compare() methods have been been made static.

The performance gains of not instantiating the comparator repeatedly are very noticeable. In a test loading a local folder for upload with 1000 files in it,
time of load is reduced from 28 seconds to 17 seconds.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-27 09:33:50 +01:00
Álvaro Brey Vilas 462da35fdb LocalFileList: load local files asynchronously
Loading a large list of files (especially the sorting part) is S L O W.
This ensures it doesn't block the UI while loading.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-27 09:33:50 +01:00
Álvaro Brey Vilas c5ebc05964 PassCodeActivity: enable cancel button when re-created in confirmation step
Prevents a bug where the cancel button would stop working if the device was rotated

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-27 09:20:00 +01:00
Álvaro Brey 618a770349 Merge pull request #9751 from nextcloud/fix/clear-data
Fix some crashes and weird behaviours when clearing data
2022-01-27 09:18:21 +01:00
Álvaro Brey 4a29c2e4c4 Merge pull request #9726 from nextcloud/fix/immutable-intents
Make PendingIntents immutable
2022-01-27 09:16:03 +01:00
Tobias Kaminsky 8fc8cc9836 daily dev 20220127
gplay/AndroidManifest: set exported value for service
ezvcard/ContactOperations: suppress locale lint in third_party class
build.gradle: Disable some translation errors in lint
manifest: Remove unneeded labels
BackgroundJobFactory: fix lint due to unchecked build version for ContentObserverJob
lint: Fix getLayoutInflater calls
build.gradle: Run migrations for AGP 7.1.0
Update Nextcloud Android library
Update 3rd-party dependencies
2022-01-27 06:48:55 +01:00
Tobias Kaminsky a8dae30a3a Merge remote-tracking branch 'origin/master' into dev 2022-01-27 05:34:09 +01:00
nextcloud-android-bot d51268d7b8 Drone: update FindBugs results to reflect reduced error/warning count
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-01-26 14:09:47 +01:00
nextcloud-android-bot af2059660f Drone: update Lint results to reflect reduced error/warning count [skip ci]
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-01-26 12:08:19 +00:00
Álvaro Brey Vilas c01fa0b170 Make more PendingIntents immutable
This should be all of them. Picked up by lint.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 12:56:05 +01:00
Álvaro Brey Vilas 27559efb79 Make PendingIntents immutable
Good practice for security

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 12:56:05 +01:00
Álvaro Brey 38c60b7618 Merge pull request #9758 from nextcloud/fix/analysis-again
Analysis: fix checkout and commit generation
2022-01-26 12:55:23 +01:00
Álvaro Brey Vilas 494cceab8e Analysis: fix checkout and commit generation
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 12:54:24 +01:00
Álvaro Brey 7eaed66ebc Merge pull request #9755 from nextcloud/dependabot/gradle/com.android.tools.build-gradle-7.1.0
Bump gradle from 7.0.4 to 7.1.0
2022-01-26 12:06:04 +01:00
Álvaro Brey Vilas 45fc831989 gplay/AndroidManifest: set exported value for service
picked up by lint

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas 9d5395c8fd ezvcard/ContactOperations: suppress locale lint in third_party class
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas 043d839d70 build.gradle: Disable some translation errors in lint
Translations are handled in Transifex

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas a9ec1de015 manifest: Remove unneeded labels
Trips up lint

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas 00586a5bde BackgroundJobFactory: fix lint due to unchecked build version for ContentObserverJob
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas b6115a5fc1 lint: Fix getLayoutInflater calls
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas b07716c0e5 screenshotTest: uninstall app before running
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas 9f2bdd5916 Analysis: use pull_request_target
Can't post reports otherwise as github token is readonly in pull_request

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas e35b6211f0 build.gradle: Run migrations for AGP 7.1.0
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:52 +01:00
dependabot[bot] ae8752a4f7 Bump gradle from 7.0.4 to 7.1.0
Bumps gradle from 7.0.4 to 7.1.0.

---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-26 11:33:47 +01:00
Álvaro Brey e6d64e5ed5 Merge pull request #9754 from nextcloud/dependabot/gradle/mockitoVersion-4.3.1
Bump mockitoVersion from 4.3.0 to 4.3.1
2022-01-26 10:45:40 +01:00
Álvaro Brey 41b3921643 Merge pull request #9744 from nextcloud/dependabot/gradle/com.karumi-shot-5.13.0
Bump shot from 5.11.2 to 5.13.0
2022-01-26 10:44:25 +01:00
Álvaro Brey Vilas e1b41b5d77 ManageSpaceActivity: convert to Kotlin while we're here
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 08:32:49 +00:00
Álvaro Brey Vilas db74d67168 ManageSpaceActivity: kill the app after finishing cleanup
This will prevent the file list still being on the Recents view and other stuff like that.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 08:32:49 +00:00
Álvaro Brey Vilas 83e56643f4 ManageSpaceActivity: remove user accounts when clearing data
This fixes crashes and unexpected states when restarting the app afterwards

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 08:32:49 +00:00
Tobias Kaminsky ebb74bc8a0 daily dev 20220126
Fix default visibility of recently modified
Remove recently added search
OCFileListFragment: restore search event on view restored
OCFileListFragment: add recently modified to the list of valid search events
Update translations
Update Nextcloud Android library
Update 3rd-party dependencies
2022-01-26 05:38:35 +01:00
Tobias Kaminsky 0e8fbe73b1 Merge remote-tracking branch 'origin/master' into dev 2022-01-26 05:31:19 +01:00
Nextcloud bot 750864d951 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-26 03:55:40 +00:00
dependabot[bot] 8e67653a38 Bump mockitoVersion from 4.3.0 to 4.3.1
Bumps `mockitoVersion` from 4.3.0 to 4.3.1.

Updates `mockito-core` from 4.3.0 to 4.3.1
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.3.0...v4.3.1)

Updates `mockito-android` from 4.3.0 to 4.3.1
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.3.0...v4.3.1)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.mockito:mockito-android
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-26 02:05:19 +00:00
Álvaro Brey Vilas 5a65c65e76 uploadReport: update shot path
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-25 10:41:06 +01:00
Álvaro Brey Vilas 80928a2799 GalleryFragment: force refresh on create, prevent unneeded refresh animations
This fixes bugs with double-loading and weird animations

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-25 08:50:29 +00:00
Álvaro Brey Vilas 7181249667 GalleryFragment: prevent NPE when recreating fragment
getStorageManager() is not available in onCreate

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-25 08:50:29 +00:00
Álvaro Brey d057d48a89 Merge pull request #9745 from nextcloud/dependabot/gradle/mockitoVersion-4.3.0
Bump mockitoVersion from 4.2.0 to 4.3.0
2022-01-25 09:44:30 +01:00
Álvaro Brey a8feb7bb66 Merge pull request #9718 from nextcloud/fix/recent-files
Fix minor issues with recently modified view
2022-01-25 09:13:58 +01:00
Álvaro Brey b7f1ebd74b Merge pull request #9742 from nextcloud/fix/analysis-on-push
Run analysis workflow on push too
2022-01-25 09:07:25 +01:00
Tobias Kaminsky fe28ce3190 daily dev 20220125
Bump versions for fastlane and plugins
Update Nextcloud Android library
Update 3rd-party dependencies
2022-01-25 06:53:02 +01:00
Tobias Kaminsky dc6ea6cd0e Merge remote-tracking branch 'origin/master' into dev 2022-01-25 05:37:54 +01:00
dependabot[bot] 4c44d469e0 Bump mockitoVersion from 4.2.0 to 4.3.0
Bumps `mockitoVersion` from 4.2.0 to 4.3.0.

Updates `mockito-core` from 4.2.0 to 4.3.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.2.0...v4.3.0)

Updates `mockito-android` from 4.2.0 to 4.3.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.2.0...v4.3.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.mockito:mockito-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-25 02:04:50 +00:00
dependabot[bot] d328d89c2d Bump shot from 5.11.2 to 5.13.0
Bumps [shot](https://github.com/karumi/shot) from 5.11.2 to 5.13.0.
- [Release notes](https://github.com/karumi/shot/releases)
- [Commits](https://github.com/karumi/shot/compare/5.11.2...5.13.0)

---
updated-dependencies:
- dependency-name: com.karumi:shot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-25 02:04:25 +00:00
Álvaro Brey Vilas 22367838ab Run analysis workflow on push too
Otherwise baseline results aren't generated

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 16:25:33 +01:00
Tobias Kaminsky 2476be69ba Merge pull request #9737 from nextcloud/chore/bump-fastlane
Bump versions for fastlane and plugins
2022-01-24 14:51:09 +01:00
Álvaro Brey Vilas 1a735f1840 Fix default visibility of recently modified
Should be visible unless setup.xml disables is (which it does by default)

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 13:14:01 +01:00
Álvaro Brey Vilas c45dd9f5ff Remove recently added search
Was never fully implemented. Discarding in favor of recently modified.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 13:14:01 +01:00
Álvaro Brey Vilas 63c780999d OCFileListFragment: restore search event on view restored
Partially reverts https://github.com/nextcloud/android/pull/9427, which deleted too much stuff

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 13:14:00 +01:00
Álvaro Brey Vilas 6a45a90019 OCFileListFragment: add recently modified to the list of valid search events
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 13:14:00 +01:00
Álvaro Brey Vilas 93f973cdc2 Bump versions for fastlane and plugins
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 12:09:29 +01:00
Álvaro Brey dd94e20045 Merge pull request #9734 from nextcloud/dependabot/gradle/com.github.spotbugs.snom-spotbugs-gradle-plugin-5.0.5
Bump spotbugs-gradle-plugin from 5.0.4 to 5.0.5
2022-01-24 09:53:05 +01:00
dependabot[bot] f0ea41a56b Bump spotbugs-gradle-plugin from 5.0.4 to 5.0.5
Bumps [spotbugs-gradle-plugin](https://github.com/spotbugs/spotbugs-gradle-plugin) from 5.0.4 to 5.0.5.
- [Release notes](https://github.com/spotbugs/spotbugs-gradle-plugin/releases)
- [Commits](https://github.com/spotbugs/spotbugs-gradle-plugin/compare/5.0.4...5.0.5)

---
updated-dependencies:
- dependency-name: com.github.spotbugs.snom:spotbugs-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-24 08:13:52 +00:00
Tobias Kaminsky 21e756cf88 daily dev 20220124
Update translations
Update Nextcloud Android library
2022-01-24 06:48:45 +01:00
Tobias Kaminsky f7e53a17c0 Merge remote-tracking branch 'origin/master' into dev 2022-01-24 05:35:13 +01:00
Nextcloud bot 43610aedba [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-24 03:52:57 +00:00
Tobias Kaminsky 975ee12cc0 daily dev 20220122
Bump version to 3.20.0 on master
2022-01-22 05:37:41 +01:00
Tobias Kaminsky c2cd8e2486 Merge remote-tracking branch 'origin/master' into dev 2022-01-22 05:30:57 +01:00
Tobias Kaminsky 70b93ed89c Merge pull request #9723 from nextcloud/bump-minor-version
Bump version to 3.20.0 on master
2022-01-21 08:58:47 +01:00
Tobias Kaminsky add4b08802 Merge pull request #9721 from nextcloud/chore/temurin
workflows: Use temurin JDK instead of adopt
2022-01-21 08:33:12 +01:00
Tobias Kaminsky e0d2670a5e daily dev 20220121
Restore library version
Use capability in SearchRemoteOperation
Clear DNS cache on network changes
Update translations
Update Nextcloud Android library
2022-01-21 06:44:26 +01:00
Tobias Kaminsky 68b08163b7 Merge remote-tracking branch 'origin/master' into dev 2022-01-21 05:33:52 +01:00
Nextcloud bot d8cbde9105 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-21 03:52:14 +00:00
Álvaro Brey Vilas f4e979a385 Bump version to 3.20.0 on master
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-20 15:00:46 +01:00
Álvaro Brey Vilas 417dee2535 workflows: Use temurin JDK instead of adopt
Ref: https://blog.adoptopenjdk.net/2021/08/goodbye-adoptopenjdk-hello-adoptium/

tl;dr: AdoptOpenJDK is discontinued and recommendation is to use Eclipse Temurin instead

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-20 11:01:09 +01:00
Álvaro Brey 717ad59140 Merge pull request #9651 from nextcloud/gallerySearch
Use capability in SearchRemoteOperation
2022-01-20 10:59:29 +01:00
Tobias Kaminsky 84507a39aa Merge pull request #9719 from nextcloud/fix/ipv4-cache
Clear DNS cache on network changes
2022-01-20 09:42:56 +01:00
Álvaro Brey Vilas 7d58967517 Restore library version
Required PR has been merged on library

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-20 09:34:32 +01:00
tobiasKaminsky a9cec44b1f Use capability in SearchRemoteOperation
Signed-off-by: tobiasKaminsky <[email protected]>
2022-01-20 09:10:33 +01:00
Tobias Kaminsky 7b30483a52 Create scorecards-analysis.yml 2022-01-20 07:14:36 +01:00
Tobias Kaminsky 2d603b1cfd daily dev 20220120
Remove IRC info from app and docs
Update translations
Update Nextcloud Android library
2022-01-20 06:45:11 +01:00
Tobias Kaminsky ec33e5591d Merge remote-tracking branch 'origin/master' into dev 2022-01-20 05:33:39 +01:00
Nextcloud bot 2956fafabc [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-20 03:54:30 +00:00
Álvaro Brey Vilas 7299b598d4 Clear DNS cache on network changes
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-19 16:34:09 +01:00
Álvaro Brey 648c104cd9 Merge pull request #9121 from redgloboli/redgloboli-no-more-freenode
Update README.md
2022-01-19 11:11:39 +01:00
Tobias Kaminsky 4a65a7c434 daily dev 20220119
remove not used videos drawer entry (#9708)
SessionMixin: set currentAccount to null when no accounts are available
FileContentProvider: make projection map unmodifiable
FileContentProvider: fix formatting
FileContentProvider: make projection arrays and map static
FileContentProvider: use projections for queries
2022-01-19 05:37:47 +01:00
Tobias Kaminsky 1e3a4a4a38 Merge remote-tracking branch 'origin/master' into dev 2022-01-19 05:31:07 +01:00
Álvaro Brey Vilas ea0bc503e0 Update CommunityActivity screenshot
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-18 18:20:17 +01:00
redgloboli 0f62399615 Remove IRC info from app and docs
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-18 16:26:58 +01:00
Álvaro Brey c6b9da0ee3 Merge pull request #9694 from nextcloud/fix/sqlite-row-too-big
FileContentProvider: use projections for helper queries
2022-01-18 14:48:40 +01:00
Álvaro Brey VilasandTobias Kaminsky 2d544486d3 Add integration test for folders with large amounts of files
This test reproduces the SQLiteCursor crashes.

Co-authored-by: Tobias Kaminsky <[email protected]>
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-18 14:14:11 +01:00
Tobias KaminskyandÁlvaro Brey Vilas b80baef535 remove not used videos drawer entry (#9708)
* remove not used videos drawer entry

Signed-off-by: tobiasKaminsky <[email protected]>

* Remove unused resource

Signed-off-by: Álvaro Brey Vilas <[email protected]>

Co-authored-by: Álvaro Brey Vilas <[email protected]>
2022-01-18 09:05:02 +01:00
Tobias Kaminsky ae7fb23a6b Merge pull request #9711 from nextcloud/chore/codecov-improvements
Codecov: don't annotate diffs
2022-01-18 08:39:45 +01:00
Tobias Kaminsky e091a15089 Merge pull request #9710 from nextcloud/fix/crash-on-remove-all-accounts
SessionMixin: set currentAccount to null when no accounts are available
2022-01-18 08:38:29 +01:00
Tobias Kaminsky 602005d51a daily dev 20220118
ConflictsResolveActivity: remove upload is KEEP_SERVER and shouldDeleteLocal
removed a check in KEEP_SERVER switch clause. 1) The check prevents solving file conflicts (keep server) correctly. 2) The check involves FileUploader.LOCAL_BEHAVIOUR_DELETE, intended use is for media file uploads.
:Conflict files are removed from the upload storage manager after downloaded successfully.
Fix NPE in BackupFragment when fragment exits while refresh is happening
Screenshot tests: Improve Activities activity tests
Update translations
Update 3rd-party dependencies
2022-01-18 05:37:37 +01:00
Tobias Kaminsky c6f6f15720 Merge remote-tracking branch 'origin/master' into dev 2022-01-18 05:31:01 +01:00
Nextcloud bot 8d868c3fff [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-18 04:11:52 +00:00
Álvaro Brey Vilas 2cb028eaee Codecov: don't annotate diffs
It makes it really annoying to read diffs when our coverage isn't that good yet.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-17 20:08:45 +01:00
Álvaro Brey 92f3b6df87 Merge pull request #9691 from nextcloud/fix/sync-conflict
Improvements in sync conflict resolution
2022-01-17 20:03:24 +01:00
Álvaro Brey Vilas 107dcd35c4 SessionMixin: set currentAccount to null when no accounts are available
Prevents a crash when removing the last account

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-17 16:02:05 +01:00
Álvaro Brey 641b09cd4f Merge pull request #9706 from nextcloud/dependabot/gradle/byteBuddyVersion-1.12.7
Bump byteBuddyVersion from 1.12.6 to 1.12.7
2022-01-17 15:16:32 +01:00
Álvaro Brey 1419406cd2 Merge pull request #9606 from nextcloud/fix/backup-fragment-crash
Fix NPE in BackupFragment when fragment exits while refresh is happening
2022-01-17 14:53:35 +01:00
Álvaro Brey Vilas c5b75f68b0 ConflictsResolveActivity: remove upload is KEEP_SERVER and shouldDeleteLocal
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-17 13:30:47 +00:00
wknds b4c1620aed removed a check in KEEP_SERVER switch clause. 1) The check prevents solving file conflicts (keep server) correctly. 2) The check involves FileUploader.LOCAL_BEHAVIOUR_DELETE, intended use is for media file uploads. 2022-01-17 13:30:47 +00:00
wknds 8ce7733563 revert Project.xml 2022-01-17 13:30:47 +00:00
wknds e6b6c6ff56 :Conflict files are removed from the upload storage manager after downloaded successfully. 2022-01-17 13:30:47 +00:00
Álvaro Brey 60e44986a0 Merge pull request #9692 from nextcloud/chore/screenshot-test-activities
Screenshot tests: Improve Activities activity tests
2022-01-17 14:29:31 +01:00
Tobias Kaminsky fd22f9f04d Merge pull request #9590 from nextcloud/it-timeout
DocumentsStorageProviderIT: add timeout to testServerChangedFileContent()
2022-01-17 10:30:56 +01:00
Álvaro Brey 46f253f515 Merge pull request #9707 from nextcloud/dependabot/gradle/pl.droidsonroids.gif-android-gif-drawable-1.2.24
Bump android-gif-drawable from 1.2.23 to 1.2.24
2022-01-17 10:25:27 +01:00
Álvaro Brey Vilas 6f1d434e80 DocumentsStorageProviderIT: add timeout to testServerChangedFileContent()
This test sometimes hangs forever, resulting in (for example) CI builds being killed.
This way, only this test fails and the rest of the suite continues.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-17 08:57:45 +00:00
Tobias Kaminsky 0c14bb9e15 daily dev 20220117
Update translations
Update Nextcloud Android library
2022-01-17 06:44:48 +01:00
Tobias Kaminsky 0b2755fc73 Merge remote-tracking branch 'origin/master' into dev 2022-01-17 05:33:54 +01:00
Nextcloud bot e13dc5db81 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-17 03:49:57 +00:00
dependabot[bot] e14e91e0c1 Bump android-gif-drawable from 1.2.23 to 1.2.24
Bumps [android-gif-drawable](https://github.com/koral--/android-gif-drawable) from 1.2.23 to 1.2.24.
- [Release notes](https://github.com/koral--/android-gif-drawable/releases)
- [Changelog](https://github.com/koral--/android-gif-drawable/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/koral--/android-gif-drawable/compare/v1.2.23...v1.2.24)

---
updated-dependencies:
- dependency-name: pl.droidsonroids.gif:android-gif-drawable
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-17 02:06:28 +00:00
dependabot[bot] adb4edbafe Bump byteBuddyVersion from 1.12.6 to 1.12.7
Bumps `byteBuddyVersion` from 1.12.6 to 1.12.7.

Updates `byte-buddy` from 1.12.6 to 1.12.7
- [Release notes](https://github.com/raphw/byte-buddy/releases)
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
- [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.12.6...byte-buddy-1.12.7)

Updates `byte-buddy-android` from 1.12.6 to 1.12.7
- [Release notes](https://github.com/raphw/byte-buddy/releases)
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
- [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.12.6...byte-buddy-1.12.7)

---
updated-dependencies:
- dependency-name: net.bytebuddy:byte-buddy
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: net.bytebuddy:byte-buddy-android
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-17 02:06:23 +00:00
Nextcloud bot 1b948c35e0 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-16 03:53:38 +00:00
Tobias Kaminsky d12a3762c8 daily dev 20220115
remove unused test automation
Update translations
Update Nextcloud Android library
Update 3rd-party dependencies
2022-01-15 06:45:44 +01:00
Tobias Kaminsky 3d99c8f561 Merge remote-tracking branch 'origin/master' into dev 2022-01-15 05:33:25 +01:00
Nextcloud bot 2623be496d [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-15 03:52:25 +00:00
Álvaro Brey da9d60f2c0 Merge pull request #9699 from nextcloud/bugfix/noid/unusedTestAutomationRemoval
Remove unused test automation
2022-01-14 14:22:25 +01:00
Álvaro Brey Vilas 62218fbb16 Add RetryTestRule to DrawerActivityIT
Flaky test

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-14 13:28:49 +01:00
Álvaro Brey d2de4006ef Merge pull request #9697 from nextcloud/dependabot/gradle/androidx.constraintlayout-constraintlayout-2.1.3
Bump constraintlayout from 2.1.2 to 2.1.3
2022-01-14 13:23:51 +01:00
Álvaro Brey Vilas 33a2043d3f Analysis workflow: correct head ref for branch
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-14 13:08:21 +01:00
Álvaro Brey Vilas f83ccb781d Fix NPE in BackupFragment when fragment exits while refresh is happening
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-14 10:48:16 +00:00
Andy Scherzinger fd2f8f23ed remove unused test automation
Signed-off-by: Andy Scherzinger <[email protected]>
2022-01-14 10:52:21 +01:00
Álvaro Brey Vilas 23a67aea4a FileContentProvider: make projection map unmodifiable
Just in case

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-14 08:54:33 +01:00
Álvaro Brey Vilas 94533fd8aa FileContentProvider: fix formatting
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-14 08:51:54 +01:00
Álvaro Brey f116328dfa Merge pull request #9696 from nextcloud/dependabot/gradle/com.google.android.material-material-1.5.0
Bump material from 1.4.0 to 1.5.0
2022-01-14 08:44:28 +01:00
dependabot[bot] 483da75e1d Bump constraintlayout from 2.1.2 to 2.1.3
Bumps [constraintlayout](https://github.com/androidx/constraintlayout) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/androidx/constraintlayout/releases)
- [Commits](https://github.com/androidx/constraintlayout/commits)

---
updated-dependencies:
- dependency-name: androidx.constraintlayout:constraintlayout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-14 07:44:11 +00:00
Tobias Kaminsky af6f65b47a Merge pull request #9698 from nextcloud/allscreenshots
All screenshots: use newer image
2022-01-14 07:18:16 +01:00
tobiasKaminsky 25f7d7c3c0 All screenshots: use newer image
Signed-off-by: tobiasKaminsky <[email protected]>
2022-01-14 07:17:20 +01:00
Tobias Kaminsky 97cec8931d daily dev 20220114
SendFilesDialog: Show error if no app can send multiple files
IntentUtil: fix sending multiple files
Update 3rd-party dependencies
2022-01-14 05:38:13 +01:00
Tobias Kaminsky a84f3f02b8 Merge remote-tracking branch 'origin/master' into dev 2022-01-14 05:30:56 +01:00
dependabot[bot] 9b2a92f585 Bump material from 1.4.0 to 1.5.0
Bumps [material](https://github.com/material-components/material-components-android) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/material-components/material-components-android/releases)
- [Commits](https://github.com/material-components/material-components-android/compare/1.4.0...1.5.0)

---
updated-dependencies:
- dependency-name: com.google.android.material:material
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-14 02:59:44 +00:00
Álvaro Brey Vilas 45b7c222e6 FileContentProvider: make projection arrays and map static
This improves performance as they aren't created on every call

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-13 16:12:03 +01:00
Álvaro Brey Vilas 405789dc9b FileContentProvider: use projections for queries
This limits the amount of data in the resulting cursor and helps prevent CursorTooBig exceptions.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-13 15:47:40 +01:00
Álvaro Brey c39f479981 Merge pull request #9657 from nextcloud/dependabot/github_actions/actions/stale-4.1.0
Bump actions/stale from 3 to 4.1.0
2022-01-13 14:37:34 +01:00
dependabot[bot] 43638ed5e2 Bump actions/stale from 3 to 4.1.0
Bumps [actions/stale](https://github.com/actions/stale) from 3 to 4.1.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v3...v4.1.0)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-13 13:11:37 +00:00
Álvaro Brey Vilas d7d029b6ad ActivitiesActivityIT: add waitForIdleSync() after sleeps
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-13 12:48:16 +01:00
Álvaro Brey Vilas 5631d79b41 Screenshot tests: Improve Activities activity tests
Force-close snackbar to not have the timing break tests

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-13 11:07:47 +01:00
Álvaro Brey acf575e762 Merge pull request #9688 from nextcloud/chore/analysis-gh-actions
Run analysis workflow in github actions
2022-01-13 10:27:59 +01:00
Álvaro Brey 49b6d0c2ef Merge pull request #9662 from nextcloud/dependabot/gradle/pl.droidsonroids.gif-android-gif-drawable-1.2.23
Bump android-gif-drawable from 1.2.21 to 1.2.23
2022-01-13 10:06:33 +01:00
Álvaro Brey 010942f0a2 Merge pull request #9677 from nextcloud/fix/send-multiple-files
Fix sending multiple files
2022-01-13 09:34:04 +01:00
Álvaro Brey b9f6fdf19e Codecov: wait for CI (#9687)
Now that we don't have a permanently broken CI setup, this makes sense again, so we don't get coverage results based on partial tests

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-13 09:33:25 +01:00
Álvaro Brey Vilas 9fa63c7547 Run analysis workflow in github actions
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-13 09:29:43 +01:00
Álvaro Brey Vilas 53feb14714 SendFilesDialogTest: assert adapter is not null
Just in case

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-13 09:06:09 +01:00
dependabot[bot] 2363292084 Bump appcompat from 1.4.0 to 1.4.1 (#9690)
Bumps appcompat from 1.4.0 to 1.4.1.

---
updated-dependencies:
- dependency-name: androidx.appcompat:appcompat
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-13 09:02:19 +01:00
Tobias Kaminsky f004ce8e5d daily dev 20220113
Merge pull request #9043 from nextcloud/updateScreenshotsTests
Update translations
2022-01-13 05:37:52 +01:00
Tobias Kaminsky 2d9cc06165 Merge remote-tracking branch 'origin/master' into dev 2022-01-13 05:30:59 +01:00
Nextcloud bot ab23c04def [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-13 03:53:34 +00:00
Álvaro Brey Vilas 9d856da33a Improve testing for SendFilesDialog
* Add tests for mixed type files
 * Add integration tests, not only screenshot

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-12 15:50:20 +01:00
dependabot[bot] 6891a90821 Bump android-gif-drawable from 1.2.21 to 1.2.23
Bumps [android-gif-drawable](https://github.com/koral--/android-gif-drawable) from 1.2.21 to 1.2.23.
- [Release notes](https://github.com/koral--/android-gif-drawable/releases)
- [Changelog](https://github.com/koral--/android-gif-drawable/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/koral--/android-gif-drawable/compare/v1.2.21...v1.2.23)

---
updated-dependencies:
- dependency-name: pl.droidsonroids.gif:android-gif-drawable
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-12 14:20:11 +00:00
Álvaro Brey Vilas 447f2401a5 Codecov: wait for CI
Now that we don't have a permanently broken CI setup, this makes sense again, so we don't get coverage results based on partial tests

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-12 15:16:55 +01:00
Tobias Kaminsky eaf1230d2e Merge pull request #9686 from nextcloud/droneCrone
only cron trigger is allowed
2022-01-12 14:47:37 +01:00
tobiasKaminsky 8e28921113 only cron trigger is allowed
Signed-off-by: tobiasKaminsky <[email protected]>
2022-01-12 14:45:58 +01:00
Álvaro Brey Vilas 61f8115d79 SendFilesDialog: Show error if no app can send multiple files
Otherwise an empty bottom fragment shows up, which is not good UX

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-12 13:08:48 +01:00
Álvaro Brey Vilas 93d7c7f9f7 IntentUtil: fix sending multiple files
- Use `ACTION_SEND_MULTIPLE`
 - Set type to `*/*` if not all files share a type
 - Use use a `ParcelableArrayListExtra` for `EXTRA_STREAM`

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-12 13:08:42 +01:00
Tobias Kaminsky a639e8441c Merge pull request #9043 from nextcloud/updateScreenshotsTests
Update screenshots tests
2022-01-12 08:57:22 +01:00
2508 changed files with 8016 additions and 10389 deletions

No files matched your search

+5 -3
View File
@@ -2,7 +2,6 @@ codecov:
branch: master
ci:
- drone.nextcloud.com
require_ci_to_pass: false
coverage:
precision: 2
@@ -17,6 +16,9 @@ comment:
layout: "header, diff, changes, uncovered, tree"
behavior: default
ignore:
- "src/main/res/values*/*"
github_checks:
annotations: false
ignore:
- "app/src/main/res/values*/*"
+11 -111
View File
@@ -19,9 +19,8 @@ steps:
commands:
- scripts/checkIfRunDrone.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST || exit 0
- emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g src/main/res/values/setup.xml
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g app/src/main/res/values/setup.xml
- sed -i s"#server#server#" gradle.properties
- sed -i s"#1#5#" ./src/androidTest/java/com/nextcloud/client/RetryTestRule.kt
- ./gradlew assembleGplay
- ./gradlew assembleGplayDebug
- scripts/wait_for_emulator.sh
@@ -32,36 +31,14 @@ steps:
- scripts/deleteOldComments.sh "stable" "IT" $DRONE_PULL_REQUEST $GIT_TOKEN
- ./gradlew createGplayDebugCoverageReport -Pcoverage -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.owncloud.android.utils.ScreenshotTest || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable" "IT" $DRONE_PULL_REQUEST $GIT_TOKEN
- ./gradlew combinedTestReport
- name: notify
image: drillster/drone-email
settings:
port: 587
from: [email protected]
recipients_only: true
username:
from_secret: EMAIL_USERNAME
password:
from_secret: EMAIL_PASSWORD
recipients:
from_secret: EMAIL_RECIPIENTS
host:
from_secret: EMAIL_HOST
when:
event:
- push
status:
- failure
branch:
- master
- stable-*
services:
- name: server
image: nextcloudci/server:server-17 # also change in updateScreenshots.sh
image: ghcr.io/nextcloud/continuous-integration-server:latest # also change in updateScreenshots.sh
environment:
EVAL: true
commands:
- BRANCH='stable22' /usr/local/bin/initnc.sh
- BRANCH='stable23' /usr/local/bin/initnc.sh
- echo 127.0.0.1 server >> /etc/hosts
- su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
- su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
@@ -70,11 +47,11 @@ services:
- su www-data -c "php /var/www/html/occ group:add users"
- su www-data -c "php /var/www/html/occ group:adduser users user1"
- su www-data -c "php /var/www/html/occ group:adduser users user2"
- su www-data -c "git clone -b stable22 https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
- su www-data -c "git clone -b stable23 https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
- su www-data -c "php /var/www/html/occ app:enable activity"
- su www-data -c "git clone -b stable22 https://github.com/nextcloud/text.git /var/www/html/apps/text/"
- su www-data -c "git clone -b stable23 https://github.com/nextcloud/text.git /var/www/html/apps/text/"
- su www-data -c "php /var/www/html/occ app:enable text"
- su www-data -c "git clone -b stable22 https://github.com/nextcloud/end_to_end_encryption.git /var/www/html/apps/end_to_end_encryption/"
- su www-data -c "git clone -b stable23 https://github.com/nextcloud/end_to_end_encryption.git /var/www/html/apps/end_to_end_encryption/"
- su www-data -c "php /var/www/html/occ app:enable end_to_end_encryption"
- /usr/local/bin/run.sh
@@ -106,36 +83,12 @@ steps:
commands:
- scripts/checkIfRunDrone.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST || exit 0
- emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g src/main/res/values/setup.xml
- sed -i s"#1#5#" ./src/androidTest/java/com/nextcloud/client/RetryTestRule.kt
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g app/src/main/res/values/setup.xml
- scripts/runCombinedTest.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER
- name: notify
image: drillster/drone-email
settings:
port: 587
from: [email protected]
recipients_only: true
username:
from_secret: EMAIL_USERNAME
password:
from_secret: EMAIL_PASSWORD
recipients:
from_secret: EMAIL_RECIPIENTS
host:
from_secret: EMAIL_HOST
when:
event:
- push
status:
- failure
branch:
- master
- stable-*
services:
- name: server
image: nextcloudci/server:server-17 # also change in updateScreenshots.sh
image: ghcr.io/nextcloud/continuous-integration-server:latest # also change in updateScreenshots.sh
environment:
EVAL: true
commands:
@@ -163,58 +116,7 @@ trigger:
event:
- push
- pull_request
---
kind: pipeline
type: docker
name: analysis
steps:
- name: analysis
image: ghcr.io/nextcloud/continuous-integration-android8:2
environment:
GIT_USERNAME:
from_secret: GIT_USERNAME
GIT_TOKEN:
from_secret: GIT_TOKEN
LOG_USERNAME:
from_secret: LOG_USERNAME
LOG_PASSWORD:
from_secret: LOG_PASSWORD
commands:
- scripts/checkIfRunDrone.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST || exit 0
- export BRANCH=$(scripts/analysis/getBranchName.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST)
- scripts/analysis/analysis-wrapper.sh $GIT_USERNAME $GIT_TOKEN $BRANCH $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER $DRONE_PULL_REQUEST
- name: notify
image: drillster/drone-email
settings:
port: 587
from: [email protected]
recipients_only: true
username:
from_secret: EMAIL_USERNAME
password:
from_secret: EMAIL_PASSWORD
recipients:
from_secret: EMAIL_RECIPIENTS
host:
from_secret: EMAIL_HOST
when:
event:
- push
status:
- failure
branch:
- master
- stable-*
trigger:
branch:
- master
- stable-*
event:
- push
- pull_request
---
kind: pipeline
type: docker
@@ -222,7 +124,7 @@ name: allScreenshots
steps:
- name: runAllScreenshots
image: nextcloudci/android8:android-61
image: ghcr.io/nextcloud/continuous-integration-android8:2
privileged: true
environment:
GIT_USERNAME:
@@ -235,7 +137,7 @@ steps:
from_secret: LOG_PASSWORD
commands:
- emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g src/main/res/values/setup.xml
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g app/src/main/res/values/setup.xml
- sed -i s'#showOnlyFailingTestsInReports = ciBuild#showOnlyFailingTestsInReports = false#' build.gradle
- scripts/wait_for_emulator.sh
- scripts/runAllScreenshotCombinations noCI false
@@ -263,9 +165,7 @@ steps:
- master
- stable-*
trigger:
branch:
- master
event:
- cron
cron:
- daily
- allscreenshots
+47
View File
@@ -0,0 +1,47 @@
name: "Analysis"
on:
pull_request_target:
branches: [ master, stable-* ]
push:
branches: [ master, stable-* ]
jobs:
analysis:
runs-on: ubuntu-latest
steps:
- name: Setup variables
id: get-vars
run: |
if [ -z "$GITHUB_HEAD_REF" ]; then
# push
echo "::set-output name=branch::$GITHUB_REF_NAME"
echo "::set-output name=pr::$GITHUB_RUN_ID"
echo "::set-output name=repo::${{ github.repository }}"
else
# pull request
echo "::set-output name=branch::$GITHUB_HEAD_REF"
echo "::set-output name=pr::${{ github.event.pull_request.number }}"
echo "::set-output name=repo::${{ github.event.pull_request.head.repo.full_name }}"
fi
- name: Show variables
run: |
echo "REPO: ${{ steps.get-vars.outputs.repo }}"
echo "BRANCH: ${{ steps.get-vars.outputs.branch }}"
echo "PR: ${{ steps.get-vars.outputs.pr }}"
echo "RUN NUMBER: $GITHUB_RUN_NUMBER"
- uses: actions/checkout@v3
with:
token: ${{ secrets.GIT_TOKEN }}
repository: ${{ steps.get-vars.outputs.repo }}
ref: ${{ steps.get-vars.outputs.branch }}
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: 11
- name: Run analysis wrapper
run: |
mkdir -p $HOME/.gradle
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
scripts/analysis/analysis-wrapper.sh ${{ secrets.GIT_USERNAME }} ${{ secrets.GIT_TOKEN }} ${{ steps.get-vars.outputs.branch }} ${{ secrets.LOG_USERNAME }} ${{ secrets.LOG_PASSWORD }} $GITHUB_RUN_NUMBER ${{ steps.get-vars.outputs.pr }}
+2 -2
View File
@@ -12,11 +12,11 @@ jobs:
matrix:
flavor: [ Generic, Gplay, Huawei ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: Build ${{ matrix.flavor }}
run: |
File renamed without changes.
+3 -3
View File
@@ -10,13 +10,13 @@ jobs:
strategy:
fail-fast: false
matrix:
task: [ detekt, ktlint ]
task: [ detekt, ktlintCheck ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: Check ${{ matrix.task }}
run: ./gradlew ${{ matrix.task }}
+3 -3
View File
@@ -18,7 +18,7 @@ jobs:
steps:
- name: Add reaction on start
uses: peter-evans/create-or-update-comment@v1
uses: peter-evans/create-or-update-comment@v2
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
repository: ${{ github.event.repository.full_name }}
@@ -26,7 +26,7 @@ jobs:
reaction-type: "+1"
- name: Checkout the latest code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.COMMAND_BOT_PAT }}
@@ -37,7 +37,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
- name: Add reaction on failure
uses: peter-evans/create-or-update-comment@v1
uses: peter-evans/create-or-update-comment@v2
if: failure()
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
@@ -9,6 +9,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Detect SNAPSHOT
run: scripts/analysis/detectSNAPSHOT.sh
View File
Whitespace-only changes.
View File
Whitespace-only changes.
View File
Whitespace-only changes.
@@ -9,5 +9,5 @@ jobs:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
View File
Whitespace-only changes.
+13 -12
View File
@@ -1,26 +1,27 @@
name: "QA"
on:
pull_request:
pull_request_target:
branches: [ master, stable-* ]
jobs:
qa:
runs-on: ubuntu-latest
steps:
- name: Check if secrets are available
run: echo "::set-output name=ok::${{ secrets.KS_PASS != '' }}"
id: check-secrets
- uses: actions/checkout@v2
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
- uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: set up JDK 11
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: Install NDK and cmake
run: |
source ndk.env
/usr/local/lib/android/sdk/tools/bin/sdkmanager "ndk;${NDK_VERSION}" "cmake;${CMAKE_VERSION}"
- name: Build QA
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
env:
KS_PASS: ${{ secrets.KS_PASS }}
KEY_PASS: ${{ secrets.KEY_PASS }}
@@ -29,8 +30,8 @@ jobs:
run: |
mkdir -p $HOME/.gradle
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
sed -i "/qa/,/\}/ s/versionCode .*/versionCode ${{github.event.number}} /" build.gradle
sed -i "/qa/,/\}/ s/versionName .*/versionName \"${{github.event.number}}\"/" build.gradle
sed -i "/qa/,/\}/ s/versionCode .*/versionCode ${{github.event.number}} /" app/build.gradle
sed -i "/qa/,/\}/ s/versionName .*/versionName \"${{github.event.number}}\"/" app/build.gradle
./gradlew assembleQaDebug
$(find /usr/local/lib/android/sdk/build-tools/*/apksigner | sort | tail -n1) sign --ks-pass pass:$KS_PASS --key-pass pass:$KEY_PASS --ks-key-alias key0 --ks scripts/QA_keystore.jks build/outputs/apk/qa/debug/qa-debug-*.apk
$(find /usr/local/lib/android/sdk/build-tools/*/apksigner | sort | tail -n1) sign --ks-pass pass:$KS_PASS --key-pass pass:$KEY_PASS --ks-key-alias key0 --ks scripts/QA_keystore.jks app/build/outputs/apk/qa/debug/qa-debug-*.apk
sudo scripts/uploadArtifact.sh $LOG_USERNAME $LOG_PASSWORD ${{github.event.number}} ${{github.event.number}} ${{ secrets.GITHUB_TOKEN }}
+55
View File
@@ -0,0 +1,55 @@
name: Scorecards supply-chain security
on:
# Only the default branch is supported.
branch_protection_rule:
schedule:
- cron: '33 1 * * 5'
push:
branches: [ master ]
# Declare default permissions as read only.
permissions: read-all
jobs:
analysis:
name: Scorecards analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
actions: read
contents: read
steps:
- name: "Checkout code"
uses: actions/checkout@v3 # v2.4.0
with:
persist-credentials: false
- name: "Run analysis"
uses: ossf/scorecard-action@e3e75cf2ffbf9364bbff86cdbdf52b23176fe492 # v1.0.1
with:
results_file: results.sarif
results_format: sarif
# Read-only PAT token. To create it,
# follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation.
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
# Publish the results to enable scorecard badges. For more details, see
# https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories, `publish_results` will automatically be set to `false`,
# regardless of the value entered here.
publish_results: false
# Upload the results as artifacts (optional).
- name: "Upload artifact"
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v2.3.1
with:
name: SARIF file
path: results.sarif
retention-days: 5
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # v1.0.26
with:
sarif_file: results.sarif
+50 -11
View File
@@ -12,35 +12,74 @@ jobs:
matrix:
scheme: [ Light ]
color: [ blue ]
api-level: [ 27 ]
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
- uses: actions/checkout@v3
- name: Gradle cache
uses: actions/cache@v3
with:
distribution: "adopt"
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: AVD cache
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
- uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: 11
- name: Build gplay
- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
arch: x86
sdcard-path-or-size: 100M
target: google_apis
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -skin 500x833
script: echo "Generated AVD snapshot for caching."
- name: Configure gradle daemon
run: |
mkdir -p $HOME/.gradle
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
./gradlew assembleGplayDebug
echo "org.gradle.caching=true" >> $HOME/.gradle/gradle.properties
- name: Build gplay
run: ./gradlew assembleGplayDebug
- name: Delete old comments
if: ${{ always() }}
run: scripts/deleteOldComments.sh "${{ matrix.color }}-${{ matrix.scheme }}" "Screenshot" ${{github.event.number}} ${{ secrets.GITHUB_TOKEN }}
- name: run tests
- name: Run screenshot tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 27
api-level: ${{ matrix.api-level }}
force-avd-creation: false
arch: x86
sdcard-path-or-size: 100M
target: google_apis
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -skin 500x833
script: ./gradlew gplayDebugExecuteScreenshotTests -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest -Pandroid.testInstrumentationRunnerArguments.COLOR=${{ matrix.color }} -Pandroid.testInstrumentationRunnerArguments.DARKMODE=${{ matrix.scheme }}
script: ./gradlew uninstallAll gplayDebugExecuteScreenshotTests -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest -Pandroid.testInstrumentationRunnerArguments.COLOR=${{ matrix.color }} -Pandroid.testInstrumentationRunnerArguments.DARKMODE=${{ matrix.scheme }}
- name: upload failing results
if: ${{ failure() }}
run:
scripts/uploadReport.sh "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" ${{github.event.number}} "${{ matrix.color }}-${{ matrix.scheme }}" "Screenshot" ${{github.event.number}} ${{ secrets.GITHUB_TOKEN }}
- name: Archive Espresso results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535
if: ${{ always() }}
with:
name: Report-${{ matrix.color }}-${{ matrix.scheme }}
path: build/reports
path: app/build/reports
retention-days: 4
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
- uses: actions/stale@v5
with:
days-before-stale: 28
days-before-close: 14
+1
View File
@@ -1,6 +1,7 @@
# built application files
*.apk
*.ap_
*.aab
# files for the dex VM
*.dex
View File
Whitespace-only changes.
-3
View File
@@ -65,9 +65,6 @@
<MarkdownNavigatorCodeStyleSettings>
<option name="RIGHT_MARGIN" value="120" />
</MarkdownNavigatorCodeStyleSettings>
<XML>
<option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" />
</XML>
<codeStyleSettings language="JAVA">
<option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true" />
<option name="ALIGN_MULTILINE_METHOD_BRACKETS" value="true" />
+2 -2
View File
@@ -2,8 +2,8 @@
host = https://www.transifex.com
[nextcloud.android]
file_filter = src/main/res/values-<lang>/strings.xml
source_file = src/main/res/values/strings.xml
file_filter = app/src/main/res/values-<lang>/strings.xml
source_file = app/src/main/res/values/strings.xml
type = ANDROID
source_lang = en
lang_map = af_ZA: af-rZA, am_ET: am-rET, ar_AE: ar-rAE, ar_BH: ar-rBH, ar_DZ: ar-rDZ, ar_EG: ar-rEG, ar_IQ: ar-rIQ, ar_JO: ar-rJO, ar_KW: ar-rKW, ar_LB: ar-rLB, ar_LY: ar-rLY, ar_MA: ar-rMA, ar_OM: ar-rOM, ar_QA: ar-rQA, ar_SA: ar-rSA, ar_SY: ar-rSY, ar_TN: ar-rTN, ar_YE: ar-rYE, arn_CL: arn-rCL, as_IN: as-rIN, az_AZ: az-rAZ, ba_RU: ba-rRU, be_BY: be-rBY, bg_BG: bg-rBG, bn_BD: bn-rBD, bn_IN: bn-rIN, bo_CN: bo-rCN, br_FR: br-rFR, bs_BA: bs-rBA, ca_ES: ca-rES, co_FR: co-rFR, cs_CZ: cs-rCZ, cy_GB: cy-rGB, da_DK: da-rDK, de_AT: de-rAT, de_CH: de-rCH, de_DE: de-rDE, de_LI: de-rLI, de_LU: de-rLU, dsb_DE: dsb-rDE, dv_MV: dv-rMV, el_GR: el-rGR, en_AU: en-rAU, en_BZ: en-rBZ, en_CA: en-rCA, en_GB: b+en+001, en_IE: en-rIE, en_IN: en-rIN, en_JM: en-rJM, en_MY: en-rMY, en_NZ: en-rNZ, en_PH: en-rPH, en_SG: en-rSG, en_TT: en-rTT, en_US: en-rUS, en_ZA: en-rZA, en_ZW: en-rZW, en@pirate: en-rpirate, es_AR: es-rAR, es_BO: es-rBO, es_CL: es-rCL, es_CO: es-rCO, es_CR: es-rCR, es_DO: es-rDO, es_EC: es-rEC, es_ES: es-rES, es_GT: es-rGT, es_HN: es-rHN, es_MX: es-rMX, es_NI: es-rNI, es_PA: es-rPA, es_PE: es-rPE, es_PR: es-rPR, es_PY: es-rPY, es_SV: es-rSV, es_419: b+es+419, es_UY: es-rUY, es_VE: es-rVE, et_EE: et-rEE, eu_ES: eu-rES, fa_IR: fa-rIR, fi_FI: fi-rFI, fil_PH: fil-rPH, fo_FO: fo-rFO, fr_BE: fr-rBE, fr_CA: fr-rCA, fr_CH: fr-rCH, fr_FR: fr-rFR, fr_LU: fr-rLU, fr_MC: fr-rMC, fy_NL: fy-rNL, ga_IE: ga-rIE, gd_GB: gd-rGB, gl_ES: gl-rES, gsw_FR: gsw-rFR, gu_IN: gu-rIN, ha_NG: ha-rNG, he: iw, he_IL: he-rIL, hi_IN: hi-rIN, hr_BA: hr-rBA, hr_HR: hr-rHR, hsb_DE: hsb-rDE, hu_HU: hu-rHU, hy_AM: hy-rAM, id: in, id_ID: id-rID, ig_NG: ig-rNG, ii_CN: ii-rCN, is_IS: is-rIS, it_CH: it-rCH, it_IT: it-rIT, iu_CA: iu-rCA, ja_JP: ja-rJP, ka_GE: ka-rGE, kk_KZ: kk-rKZ, kl_GL: kl-rGL, km_KH: km-rKH, kn_IN: kn-rIN, ko_KR: ko-rKR, kok_IN: kok-rIN, ku_IQ: ku-rIQ, ky_KG: ky-rKG, lb_LU: lb-rLU, lo_LA: lo-rLA, lt_LT: lt-rLT, lv_LV: lv-rLV, mi_NZ: mi-rNZ, mk_MK: mk-rMK, ml_IN: ml-rIN, mn_CN: mn-rCN, mn_MN: mn-rMN, moh_CA: moh-rCA, mr_IN: mr-rIN, ms_BN: ms-rBN, ms_MY: ms-rMY, my_MM: my, mt_MT: mt-rMT, nb_NO: nb-rNO, ne_NP: ne-rNP, nl_BE: nl-rBE, nl_NL: nl-rNL, nn_NO: nn-rNO, nso_ZA: nso-rZA, oc_FR: oc-rFR, or_IN: or-rIN, pa_IN: pa-rIN, pl_PL: pl-rPL, prs_AF: prs-rAF, ps_AF: ps-rAF, pt_BR: pt-rBR, pt_PT: pt-rPT, qut_GT: qut-rGT, quz_BO: quz-rBO, quz_EC: quz-rEC, quz_PE: quz-rPE, rm_CH: rm-rCH, ro_RO: ro-rRO, ru_RU: ru-rRU, rw_RW: rw-rRW, sa_IN: sa-rIN, sah_RU: sah-rRU, se_FI: se-rFI, se_NO: se-rNO, se_SE: se-rSE, si_LK: si-rLK, sk_SK: sk-rSK, sl_SI: sl-rSI, sma_NO: sma-rNO, sma_SE: sma-rSE, smj_NO: smj-rNO, smj_SE: smj-rSE, smn_FI: smn-rFI, sms_FI: sms-rFI, sq_AL: sq-rAL, sr_BA: sr-rBA, sr_CS: sr-rCS, sr_ME: sr-rME, sr_RS: sr-rRS, sr@latin: sr-rSP, sv_FI: sv-rFI, sv_SE: sv-rSE, sw_KE: sw-rKE, syr_SY: syr-rSY, ta_IN: ta-rIN, ta_LK: ta-rLK, te_IN: te-rIN, tg_TJ: tg-rTJ, th_TH: th-rTH, tk_TM: tk-rTM, tn_ZA: tn-rZA, tr_TR: tr-rTR, tt_RU: tt-rRU, tzm_DZ: tzm-rDZ, ug_CN: ug-rCN, uk_UA: uk-rUA, ur_PK: ur-rPK, uz_UZ: uz-rUZ, vi_VN: vi-rVN, wo_SN: wo-rSN, xh_ZA: xh-rZA, yo_NG: yo-rNG, zh_CN: zh-rCN, zh_CN.GB2312:zh-rBG, zh_HK: zh-rHK, zh_MO: zh-rMO, zh_SG: zh-rSG, zh_TW: zh-rTW, zu_ZA: zu-rZA
+16
View File
@@ -1,3 +1,19 @@
## 3.19.1 (March 10, 2022)
- Minor fixes and improvements
Minimum: NC 16 Server, Android 6.0 Marshmallow
For a full list, please see https://github.com/nextcloud/android/milestone/65
## 3.19.0 (February 3, 2022)
- Support external storage in Media page
- Connection fallback to IPv4 when IPv6 fails
- Many other fixes and improvements
Minimum: NC 16 Server, Android 6.0 Marshmallow
For a full list, please see https://github.com/nextcloud/android/milestone/62
## 3.18.1 (December 22, 2021)
- Fix connection bug for usernames with spaces
-4
View File
@@ -1,9 +1,5 @@
# [Nextcloud](https://nextcloud.com) Android app
[![irc](https://img.shields.io/badge/IRC-%23nextcloud%20on%20freenode-orange.svg)](https://webchat.freenode.net/?channels=nextcloud)
[![irc](https://img.shields.io/badge/IRC-%23nextcloud--mobile%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=nextcloud-mobile)
# Index
1. [Guidelines](#guidelines)
1. [Issue reporting](#issue-reporting)
+31 -27
View File
@@ -8,23 +8,23 @@ GEM
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.541.0)
aws-sdk-core (3.124.0)
aws-partitions (1.568.0)
aws-sdk-core (3.130.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.52.0)
aws-sdk-core (~> 3, >= 3.122.0)
aws-sdk-kms (1.55.0)
aws-sdk-core (~> 3, >= 3.127.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.109.0)
aws-sdk-core (~> 3, >= 3.122.0)
aws-sdk-s3 (1.113.0)
aws-sdk-core (~> 3, >= 3.127.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.4)
aws-sigv4 (1.4.0)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
claide (1.0.3)
claide (1.1.0)
colored (1.2)
colored2 (3.1.2)
commander (4.6.0)
@@ -36,17 +36,18 @@ GEM
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.6)
emoji_regex (3.2.3)
excon (0.89.0)
faraday (1.8.0)
excon (0.92.1)
faraday (1.10.0)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.1)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
multipart-post (>= 1.2, < 3)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-cookie_jar (0.0.7)
faraday (>= 0.8.0)
@@ -55,14 +56,17 @@ GEM
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday_middleware (1.2.0)
faraday (~> 1.0)
fastimage (2.2.5)
fastlane (2.199.0)
fastimage (2.2.6)
fastlane (2.205.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
@@ -101,11 +105,11 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-huawei_appgallery_connect (1.0.17)
fastlane-plugin-huawei_appgallery_connect (1.0.18)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.14.0)
google-apis-androidpublisher_v3 (0.16.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-core (0.4.1)
google-apis-core (0.4.2)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
httpclient (>= 2.8.1, < 3.a)
@@ -114,11 +118,11 @@ GEM
retriable (>= 2.0, < 4.a)
rexml
webrick
google-apis-iamcredentials_v1 (0.9.0)
google-apis-iamcredentials_v1 (0.10.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-playcustomapp_v1 (0.6.0)
google-apis-playcustomapp_v1 (0.7.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-storage_v1 (0.10.0)
google-apis-storage_v1 (0.11.0)
google-apis-core (>= 0.4, < 2.a)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
@@ -126,7 +130,7 @@ GEM
google-cloud-env (1.5.0)
faraday (>= 0.17.3, < 2.0)
google-cloud-errors (1.2.0)
google-cloud-storage (1.35.0)
google-cloud-storage (1.36.1)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
@@ -134,8 +138,8 @@ GEM
google-cloud-core (~> 1.6)
googleauth (>= 0.16.2, < 2.a)
mini_mime (~> 1.0)
googleauth (1.1.0)
faraday (>= 0.17.3, < 2.0)
googleauth (1.1.2)
faraday (>= 0.17.3, < 3.a)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
@@ -145,7 +149,7 @@ GEM
http-cookie (1.0.4)
domain_name (~> 0.5)
httpclient (2.8.3)
jmespath (1.4.0)
jmespath (1.6.1)
json (2.6.1)
jwt (2.3.0)
memoist (0.16.2)
@@ -170,9 +174,9 @@ GEM
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
security (0.1.3)
signet (0.16.0)
signet (0.16.1)
addressable (~> 2.8)
faraday (>= 0.17.3, < 2.0)
faraday (>= 0.17.5, < 3.0)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simctl (1.6.8)
@@ -189,7 +193,7 @@ GEM
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.8)
unf_ext (0.0.8.1)
unicode-display_width (1.8.0)
webrick (1.7.0)
word_wrap (1.0.0)
+2 -3
View File
@@ -1,6 +1,6 @@
# [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)
[![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)
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png"
alt="Download from Google Play"
@@ -16,7 +16,6 @@
## 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
- our forum at https://help.nextcloud.com
- for translations of the app on [Transifex](https://www.transifex.com/nextcloud/nextcloud/android/)
- opening issues and PRs (including a corresponding issue)
@@ -75,7 +74,7 @@ or
## 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!
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. 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 :scroll:
+9 -13
View File
@@ -89,20 +89,16 @@ The app is currently equipped to be built with three flavours:
#### 1. Direct usage of library project
This is handy if one wants to make changes both to files app and library:
- in files app root: ln -s $pathToLibraryProject nextcloud-android-library
- uncomment in build.gradle:
- `// implementation project('nextcloud-android-library')`
- comment in build.gradle:
```
implementation ("com.github.nextcloud:android-library:$androidLibraryVersion") {
exclude group: 'org.ogce', module: 'xpp3' // unused in Android and brings wrong Junit version
- Add the following to `settings.gradle`:
```groovy
includeBuild('[path to library clone]') {
dependencySubstitution {
substitute module('com.github.nextcloud:android-library') using project(':library')
}
```
- comment in settings.gradle:
- `include ':'`
- add in settings.gradle:
- `include 'nextcloud-android-library'`
- sync project with gradle files
}
```
- Sync project with gradle files
Now every change in library can be directly used in files app.
-12
View File
@@ -43,18 +43,6 @@ The third party software included and used by this project is:
The library is included in the Nextcloud client APK.
See http://jackrabbit.apache.org/
* TouchImageView, 1.2.0. commit 6dbeac4f11936185ba374c73144ac431c23c9aab
Copyright (c) 2014 Michael Ortiz
Licensed under MIT License
This library is in the source code.
See https://github.com/MikeOrtiz/TouchImageView
* floatingactionbutton 1.10.21.
Copyright (c) 2014 Jerzy Chalupski
Licensed under Apache License, Version 2.0.
The library is included in the Nextcloud client APK.
See https://github.com/futuresimple/android-floating-action-button
* AndroidSVG 1.2.1.
Copyright (c) 2014 Paul LeBeau
Licensed under Apache License, Version 2.0.
+1
View File
@@ -0,0 +1 @@
/build
+451
View File
@@ -0,0 +1,451 @@
import com.github.spotbugs.snom.SpotBugsTask
import org.gradle.internal.jvm.Jvm
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.hiya:jacoco-android:0.2'
classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.6'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.19.0"
classpath "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
classpath 'com.karumi:shot:5.13.0'
classpath "org.jacoco:org.jacoco.core:$jacoco_version"
classpath "org.jacoco:org.jacoco.report:$jacoco_version"
classpath "org.jacoco:org.jacoco.agent:$jacoco_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.2.1"
}
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-parcelize'
apply plugin: 'checkstyle'
apply plugin: 'pmd'
apply plugin: 'com.hiya.jacoco-android'
apply plugin: 'com.github.spotbugs'
apply plugin: 'io.gitlab.arturbosch.detekt'
apply plugin: 'shot'
apply plugin: "org.jlleitschuh.gradle.ktlint"
println "Gradle uses Java ${Jvm.current()}"
configurations {
all {
exclude group: 'org.jetbrains', module: 'annotations-java5' // via prism4j, already using annotations explicitly
// check for updates every build
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
exclude group: "org.jetbrains.kotlinx", module: "kotlinx-coroutines-debug"
}
}
}
configurations.configureEach {
resolutionStrategy.eachDependency {
if (requested.group == "org.checkerframework" && requested.name != "checker-compat-qual") {
useVersion(checkerVersion)
because("https://github.com/google/ExoPlayer/issues/10007")
}
}
}
repositories {
google()
maven { url "https://jitpack.io" }
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
// semantic versioning for version code
def versionMajor = 3
def versionMinor = 20
def versionPatch = 0
def versionBuild = 0 // 0-50=Alpha / 51-98=RC / 90-99=stable
def ndkEnv = new HashMap<String, String>()
file("$project.rootDir/ndk.env").readLines().each() {
def (key, value) = it.tokenize('=')
ndkEnv.put(key, value)
}
android {
compileSdkVersion 31
// install this NDK version and Cmake to produce smaller APKs. Build will still work if not installed
ndkVersion "${ndkEnv.get("NDK_VERSION")}"
defaultConfig {
minSdkVersion 23
targetSdkVersion 30
buildConfigField 'boolean', 'CI', ciBuild.toString()
// arguments to be passed to functional tests
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
versionCode versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
if (versionBuild > 89) {
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
} else if (versionBuild > 50) {
versionName "${versionMajor}.${versionMinor}.${versionPatch} RC" + (versionBuild - 50)
} else {
versionName "${versionMajor}.${versionMinor}.${versionPatch} Alpha" + (versionBuild + 1)
}
// adapt structure from Eclipse to Gradle/Android Studio expectations;
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
flavorDimensions "default"
buildTypes {
debug {
testCoverageEnabled (project.hasProperty('coverage'))
}
}
productFlavors {
// used for f-droid
generic {
applicationId 'com.nextcloud.client'
dimension "default"
}
gplay {
applicationId 'com.nextcloud.client'
dimension "default"
}
huawei {
applicationId 'com.nextcloud.client'
dimension "default"
}
versionDev {
applicationId "com.nextcloud.android.beta"
dimension "default"
versionCode 20220331
versionName "20220331"
}
qa {
applicationId "com.nextcloud.android.qa"
dimension "default"
versionCode 1
versionName "1"
}
}
testOptions {
unitTests.returnDefaultValues = true
animationsDisabled true
}
}
// adapt structure from Eclipse to Gradle/Android Studio expectations;
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
packagingOptions {
resources {
excludes += ['META-INF/LICENSE.txt', 'META-INF/LICENSE']
}
}
tasks.register("checkstyle", Checkstyle) {
configFile = file("${rootProject.projectDir}/checkstyle.xml")
configProperties.checkstyleSuppressionsPath = file("${project.rootDir}/config/quality/checkstyle/suppressions.xml").absolutePath
source 'src'
include '**/*.java'
exclude '**/gen/**'
classpath = files()
}
tasks.register("pmd", Pmd) {
ruleSetFiles = files("${project.rootDir}/ruleset.xml")
ignoreFailures = true // should continue checking
ruleSets = []
source 'src'
include '**/*.java'
exclude '**/gen/**'
reports {
xml.enabled = false
html.enabled = true
xml {
destination = file("$project.buildDir/reports/pmd/pmd.xml")
}
html {
destination = file("$project.buildDir/reports/pmd/pmd.html")
}
}
}
check.dependsOn 'checkstyle', 'spotbugsGplayDebug', 'pmd', 'lint', 'ktlintCheck', 'detekt'
buildFeatures {
dataBinding true
viewBinding true
}
kotlinOptions {
jvmTarget = "1.8"
}
lint {
abortOnError false
checkGeneratedSources true
disable 'MissingTranslation', 'GradleDependency', 'VectorPath', 'IconMissingDensityFolder', 'IconDensities', 'GoogleAppIndexingWarning', 'MissingDefaultResource', 'InvalidPeriodicWorkRequestInterval', 'StringFormatInvalid', 'MissingQuantity'
htmlOutput file("$project.buildDir/reports/lint/lint.html")
htmlReport true
}
}
dependencies {
// dependencies for app building
implementation 'androidx.multidex:multidex:2.0.1'
// implementation project('nextcloud-android-library')
implementation ("com.github.nextcloud:android-library:$androidLibraryVersion") {
exclude group: 'org.ogce', module: 'xpp3' // unused in Android and brings wrong Junit version
}
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.5' // remove after entire switch to lib v2
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.5.0'
implementation 'com.jakewharton:disklrucache:2.0.2'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.webkit:webkit:1.4.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.exifinterface:exifinterface:1.3.3'
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1"
implementation "androidx.work:work-runtime:$workRuntime"
implementation "androidx.work:work-runtime-ktx:$workRuntime"
implementation "androidx.fragment:fragment-ktx:1.4.1"
implementation 'com.github.albfernandez:juniversalchardet:2.0.3' // need this version for Android <7
compileOnly 'com.google.code.findbugs:annotations:3.0.1u2'
implementation 'commons-io:commons-io:2.11.0'
implementation 'org.greenrobot:eventbus:3.3.1'
implementation 'com.googlecode.ez-vcard:ez-vcard:0.11.3'
implementation 'org.lukhnos:nnio:0.2'
implementation 'org.bouncycastle:bcpkix-jdk15to18:1.70'
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'com.afollestad:sectioned-recyclerview:0.5.0'
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.24'
implementation 'com.github.tobiaskaminsky:qrcodescanner:0.1.2.4' // 'com.github.blikoon:QRCodeScanner:0.1.2'
implementation 'com.google.android:flexbox:2.0.1'
implementation('com.github.bumptech.glide:glide:3.8.0') {
exclude group: "com.android.support"
}
implementation 'com.caverock:androidsvg:1.4'
implementation 'androidx.annotation:annotation:1.3.0'
implementation 'com.vanniktech:emoji-google:0.8.0'
implementation "com.github.cotechde.hwsecurity:hwsecurity-fido:$fidoVersion"
implementation "com.github.cotechde.hwsecurity:hwsecurity-fido2:$fidoVersion"
implementation 'com.github.zynkware:Document-Scanning-Android-SDK:1.0.1'
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.11.0'
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.4.7'
implementation "com.google.dagger:dagger:$daggerVersion"
implementation "com.google.dagger:dagger-android:$daggerVersion"
implementation "com.google.dagger:dagger-android-support:$daggerVersion"
kapt "com.google.dagger:dagger-compiler:$daggerVersion"
kapt "com.google.dagger:dagger-android-processor:$daggerVersion"
implementation 'org.conscrypt:conscrypt-android:2.5.2'
implementation "com.google.android.exoplayer:exoplayer:$exoplayerVersion"
implementation "com.google.android.exoplayer:extension-okhttp:$exoplayerVersion"
// Shimmer animation
implementation 'com.elyeproj.libraries:loaderviewlibrary:2.0.0'
// dependencies for markdown rendering
implementation "io.noties.markwon:core:$markwonVersion"
implementation "io.noties.markwon:ext-strikethrough:$markwonVersion"
implementation "io.noties.markwon:ext-tables:$markwonVersion"
implementation "io.noties.markwon:ext-tasklist:$markwonVersion"
implementation "io.noties.markwon:html:$markwonVersion"
implementation "io.noties.markwon:syntax-highlight:$markwonVersion"
implementation "io.noties:prism4j:$prismVersion"
kapt "io.noties:prism4j-bundler:$prismVersion"
implementation ('org.mnode.ical4j:ical4j:1.0.8') {
['org.apache.commons','commons-logging'].each {
exclude group: "$it"
}
}
if (!ciBuild) {
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1'
}
// dependencies for local unit tests
testImplementation 'junit:junit:4.13.2'
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "androidx.test:core:$androidxTestVersion"
testImplementation "org.powermock:powermock-core:$powermockVersion"
testImplementation "org.powermock:powermock-module-junit4:$powermockVersion"
testImplementation "org.powermock:powermock-api-mockito2:$powermockVersion"
testImplementation 'org.json:json:20220320'
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
testImplementation 'androidx.arch.core:core-testing:2.1.0'
testImplementation "io.mockk:mockk:$mockkVersion"
testImplementation "io.mockk:mockk-android:$mockkVersion"
// dependencies for instrumented tests
// JUnit4 Rules
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation "androidx.test:rules:$androidxTestVersion"
// Android JUnit Runner
androidTestImplementation "androidx.test:runner:$androidxTestVersion"
androidTestUtil "androidx.test:orchestrator:$androidxTestVersion"
// Espresso
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
androidTestImplementation "androidx.test.espresso:espresso-contrib:$espressoVersion"
androidTestImplementation "androidx.test.espresso:espresso-web:$espressoVersion"
androidTestImplementation "androidx.test.espresso:espresso-accessibility:$espressoVersion"
androidTestImplementation "androidx.test.espresso:espresso-intents:$espressoVersion"
// Mocking support
androidTestImplementation 'com.github.tmurakami:dexopener:2.0.5' // required to allow mocking on API 27 and older
androidTestImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
androidTestImplementation "org.mockito:mockito-core:$mockitoVersion"
androidTestImplementation("org.mockito:mockito-android:$mockitoVersion") {
exclude group: "net.bytebuddy", module: "byte-buddy-android"
}
androidTestImplementation "net.bytebuddy:byte-buddy:$byteBuddyVersion"
androidTestImplementation "net.bytebuddy:byte-buddy-android:$byteBuddyVersion"
androidTestImplementation "io.mockk:mockk-android:$mockkVersion"
androidTestImplementation 'androidx.arch.core:core-testing:2.0.1'
androidTestImplementation "com.facebook.testing.screenshot:core:0.15.0"
// 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:2.1.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "com.github.stateless4j:stateless4j:2.6.0"
// upon each update first test: new registration, receive push
gplayImplementation "com.google.firebase:firebase-messaging:23.0.2"
}
configurations.all {
resolutionStrategy{
cacheChangingModulesFor 0, 'seconds'
force 'org.objenesis:objenesis:2.6'
eachDependency { details ->
if ('org.jacoco' == details.requested.group) {
details.useVersion "$jacoco_version"
}
}
}
}
tasks.withType(Test) {
// increased logging for tests
testLogging {
events "passed", "skipped", "failed"
}
}
android.applicationVariants.all { variant ->
variant.outputs.all { output ->
outputFileName = "${output.baseName}-${variant.versionCode}.apk"
}
}
tasks.register("combinedTestReport", JacocoReport) {
jacocoClasspath = configurations['jacocoAnt']
reports {
xml.enabled true
html.enabled true
csv.enabled false
}
additionalSourceDirs.setFrom files(subprojects.sourceSets.main.allSource.srcDirs)
sourceDirectories.setFrom files(subprojects.sourceSets.main.allSource.srcDirs)
classDirectories.setFrom files(subprojects.sourceSets.main.output)
executionData.setFrom project.fileTree(dir: project.buildDir, includes: [
'jacoco/testGplayDebugUnitTest.exec', 'outputs/code-coverage/connected/flavors/GPLAY/*coverage.ec'
])
}
task installGitHooks(type: Copy, group: "development") {
description = "Install git hooks"
from("${project.rootDir}/scripts/hooks") {
include '*'
}
into "${project.rootDir}/.git/hooks"
}
detekt {
reports {
xml {
enabled = false
}
}
config = files("detekt.yml")
}
shot {
showOnlyFailingTestsInReports = ciBuild
// CI environment renders some shadows slightly different from local VMs
// Add a 0.5% tolerance to account for that
tolerance = ciBuild ? 0.5: 0
}
jacoco {
toolVersion = "$jacoco_version"
}
spotbugs {
ignoreFailures = true // should continue checking
effort = "max"
reportLevel = "medium"
}
tasks.withType(SpotBugsTask){task ->
String variantNameCap = task.name.replace("spotbugs", "")
String variantName = variantNameCap.substring(0, 1).toLowerCase() + variantNameCap.substring(1)
dependsOn "compile${variantNameCap}Sources"
excludeFilter = file("${project.rootDir}/spotbugs-filter.xml")
classes = fileTree("$project.buildDir/intermediates/javac/${variantName}/classes/")
reports {
xml.enabled = false
html {
enabled = true
destination = file("$project.buildDir/reports/spotbugs/spotbugs.html")
}
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
build:
maxIssues: 10
maxIssues: 11
weights:
# complexity: 2
# LongParameterList: 1
View File
File renamed without changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Loaded 100 of 2508 files, more files were not shown because too many files have changed in this diff. Show more