Compare commits

...
Author SHA1 Message Date
nextcloud-android-bot eb6cc87824 Analysis: update lint results to reflect reduced error/warning count
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-06-10 08:35:09 +00:00
Álvaro Brey 97883ff945 Merge pull request #10361 from nextcloud/backport/10355/stable-3.20
[stable-3.20] SyncedFoldersActivity: don't refresh entire adapter when toggling a folder from dialog
2022-06-10 10:29:08 +02:00
Álvaro Brey 73f5310dc2 SyncedFoldersActivity: don't refresh entire adapter when toggling a folder from dialog
It's enough to refresh its header, and it doesn't have to refresh all pictures

Signed-off-by: Álvaro Brey <[email protected]>
2022-06-10 09:36:03 +02:00
Tobias Kaminsky a329a0d9d7 Merge pull request #10362 from nextcloud/bump3.20.2
Bump to 3.20.2
2022-06-09 15:12:51 +02:00
Álvaro Brey 94d973f54d Merge pull request #10360 from nextcloud/backport/10343/stable-3.20
[stable-3.20] Use different link for automated bugreport and manual report
2022-06-09 15:09:24 +02:00
tobiasKaminsky ee88ce3d2d Bump to 3.20.2
Signed-off-by: tobiasKaminsky <[email protected]>
2022-06-09 13:15:04 +02:00
Álvaro Brey c98310cec0 Use different link for automated bugreport and manual report
Signed-off-by: Álvaro Brey <[email protected]>
2022-06-09 12:50:51 +02:00
Nextcloud bot de08d130df [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-06-09 04:23:02 +00:00
Nextcloud bot 47f6c9ca6f [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-06-08 04:25:15 +00:00
Nextcloud bot 46cd070edf [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-06-06 04:26:33 +00:00
Nextcloud bot 0efb9c08bf [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-06-04 04:23:23 +00:00
Tobias Kaminsky 5877f5d0e2 Merge pull request #10331 from nextcloud/3.20.2bump
Bump to 3.20.2 RC1
2022-06-03 10:49:14 +02:00
Tobias Kaminsky f50023b070 Merge pull request #10329 from nextcloud/backport-10307
Backport of  #10307
2022-06-03 10:34:36 +02:00
Tobias Kaminsky df647c1bed Merge pull request #10330 from nextcloud/backport-10311
Backport of #10311
2022-06-03 10:34:24 +02:00
tobiasKaminsky b971c05ba1 Bump to 3.20.2 RC1
Signed-off-by: tobiasKaminsky <[email protected]>
2022-06-03 10:33:38 +02:00
Álvaro Brey 152cb58be8 Exclude all activities except AuthenticatorActivity from security key listener
Signed-off-by: Álvaro Brey <[email protected]>
2022-06-03 07:35:08 +02:00
Álvaro Brey ed718f93a1 Fix NPE in ChooseTemplateDialogFragment.checkEnablingCreateButton
This method can be called before positiveButton is initialized

Signed-off-by: Álvaro Brey <[email protected]>
2022-06-03 07:31:20 +02:00
Álvaro Brey b6caf3be9d Merge pull request #10316 from nextcloud/backport/10253/stable-3.20
[stable-3.20] Harden thumbnail generation
2022-06-01 12:56:57 +02:00
Álvaro Brey a581aa0dc9 GalleryAdapter: cleanup index out of bounds
Signed-off-by: Álvaro Brey <[email protected]>
2022-06-01 11:46:05 +02:00
tobiasKaminsky 091f95cc72 Harden thumbnail generation
Signed-off-by: tobiasKaminsky <[email protected]>
2022-06-01 10:53:37 +02:00
Nextcloud bot dfe2eb5f91 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-06-01 04:25:05 +00:00
Álvaro Brey 9a2e3de4f9 Merge pull request #10312 from nextcloud/backport/10310/stable-3.20
[stable-3.20] Since newest Transifex update we have many translations with not need…
2022-05-31 14:28:33 +02:00
tobiasKaminsky 4a35889c58 Since newest Transifex update we have many translations with not needed translations, e.g. "many" in spanish.
To not have lint warnings all the time, and as it does not harm Android, we can ignore it.

Signed-off-by: tobiasKaminsky <[email protected]>
2022-05-31 09:32:19 +00:00
Nextcloud bot 85638e5837 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-27 04:16:42 +00:00
Nextcloud bot 4b4a2fabe1 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-26 04:17:24 +00:00
Nextcloud bot ca9d32c090 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-25 04:51:47 +00:00
Nextcloud bot 578c775df8 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-24 04:31:33 +00:00
Álvaro Brey 283897e677 Revert "workflows/analysis: Use GITHUB_TOKEN instead of GIT_TOKEN"
This reverts commit a523ff88bd.
2022-05-23 11:44:51 +02:00
Álvaro Brey a523ff88bd workflows/analysis: Use GITHUB_TOKEN instead of GIT_TOKEN
Signed-off-by: Álvaro Brey <[email protected]>
2022-05-23 11:43:37 +02:00
Álvaro Brey ffc9cb1c03 Update workflows/qa
Signed-off-by: Álvaro Brey <[email protected]>
2022-05-23 10:15:56 +02:00
Álvaro Brey 6ba7f0f387 Update some workflows
Signed-off-by: Álvaro Brey <[email protected]>
2022-05-23 10:13:29 +02:00
Nextcloud bot 75700a723a [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-23 04:15:52 +00:00
Nextcloud bot 5c293941ba [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-22 04:17:56 +00:00
Tobias Kaminsky 335ee42f0a Merge pull request #10263 from nextcloud/backport/10241/stable-3.20
[stable-3.20] Project_id is needed
2022-05-20 09:46:36 +02:00
tobiasKaminsky 162a2ea912 Project_id is needed
Signed-off-by: tobiasKaminsky <[email protected]>
2022-05-20 09:26:46 +02:00
Álvaro Brey df4470e9c2 Merge pull request #10233 from nextcloud/backport/10228/stable-3.20
[stable-3.20] OCFileListAdapter: skip popup text generation if no sortOrder is present
2022-05-16 10:44:24 +02:00
Nextcloud bot a0e793aaba [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-16 04:12:35 +00:00
Nextcloud bot 9d8f954e17 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-15 04:11:48 +00:00
Álvaro Brey 6d88d92bb0 OCFileListAdapter: skip popup text generation if no sortOrder is present
Signed-off-by: Álvaro Brey <[email protected]>
2022-05-12 10:23:04 +00:00
Nextcloud bot 5831a1af00 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-10 04:24:48 +00:00
Álvaro Brey 1b1f389198 Merge pull request #10218 from nextcloud/backport/10217/stable-3.20
[stable-3.20] Fix crash when navigating from Gallery to On device
2022-05-09 15:52:30 +02:00
Álvaro Brey ed0f58f812 Fix crash when navigating from Gallery to On device
Signed-off-by: Álvaro Brey <[email protected]>
2022-05-09 13:04:13 +00:00
Álvaro Brey 0dc7528531 Merge pull request #10215 from nextcloud/backport/10168/stable-3.20
[stable-3.20] Make SAF root IDs stable through server version updates
2022-05-09 10:23:39 +02:00
Álvaro Brey 6c9bf67a3f Merge pull request #10214 from nextcloud/backport/10211/stable-3.20
[stable-3.20] Play video in gallery
2022-05-09 10:15:28 +02:00
Álvaro Brey a8c6c0b439 Fix DocumentsStorageProviderIT for new root ID
Signed-off-by: Álvaro Brey <[email protected]>
2022-05-09 08:04:38 +00:00
Álvaro Brey 36e009efd9 DocumentsStorageProvider: hash the accountName for rootId map
This should handle the fact that accountNames are of arbitrary length

MD5 is fine for this, as it should be quicker than SHA and the chance of collisions here is very low

Signed-off-by: Álvaro Brey <[email protected]>
2022-05-09 08:04:38 +00:00
Álvaro Brey 520c0430de DocumentsStorageProvider: fix build error due to missing import
Signed-off-by: Álvaro Brey <[email protected]>
2022-05-09 08:04:38 +00:00
pelzviehandÁlvaro Brey c297c79408 Update app/src/main/java/com/owncloud/android/providers/DocumentsStorageProvider.java
Co-authored-by: Álvaro Brey <[email protected]>
2022-05-09 08:04:38 +00:00
Álvaro Brey 02fc6ffbac DocumentsStorageProvider: key can't be parsed into Int, since it's String now
Signed-off-by: Álvaro Brey <[email protected]>
2022-05-09 08:04:38 +00:00
Andreas Feldner 89fbc6b387 Update DocumentsStorageProvider.java
Change root id for an nextcloud account to urlencoded user@uri. This is to avoid issues with unstable hashCodes.
2022-05-09 08:04:38 +00:00
Andreas Feldner 13978f6a6d Revert "Make Server's hashCode stable vs. version changes"
This reverts commit 5627e92619.
2022-05-09 08:04:38 +00:00
pelzvieh 7567bf18d4 Make Server's hashCode stable vs. version changes
Bug #9906 seems to be triggered by a version change of the nextcloud server the client is connected to. It appears the most logical solution to make nextcloud object IDs stable against server version changes. These object IDs are derived from the User object using account/anonymous, and the referenced Server object. Providing a hashCode function in Server that ignores the server's version therefore provides stability of object IDs. This seems safe to do, as an URI is already designed to be an identificator.
2022-05-09 08:04:38 +00:00
tobiasKaminsky 662090c94c Play video in gallery
Signed-off-by: tobiasKaminsky <[email protected]>
2022-05-09 07:45:29 +00:00
Nextcloud bot ddaf3aa54e [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-09 04:13:32 +00:00
Nextcloud bot d96069fe6b [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-08 04:12:27 +00:00
Nextcloud bot c9a3cda935 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-07 04:10:10 +00:00
Álvaro Brey 327d77f164 Bump for 3.20.1 (#10187)
Signed-off-by: Álvaro Brey <[email protected]>
2022-05-06 15:20:10 +02:00
Álvaro BreyandtobiasKaminsky bbf7238c90 [stable-3.20] Correctly obey play/pause state (#10186)
* Correctly obey play/pause state

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

* PreviewVideoActivity: remove commented code

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

Co-authored-by: tobiasKaminsky <[email protected]>
2022-05-06 15:19:46 +02:00
backportbot-nextcloud[bot]andÁlvaro Brey 694392c3a5 [stable-3.20] Fast scrolling fixes (#10183)
* Replace fastscroll library

Smoother scrolling

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

* Fix fast scroll in gallery

Gallery has a grid layout + variable row height (due to section titles)

This is a no-no in all fastscroll libraries. However, the new one supports writing custom logic
to handle this, which is what this commit is.

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

* FileDisplayActivity: fix appbar for fast scroll

Adds padding at the bottom if appbar is not collapsed

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

Co-authored-by: Álvaro Brey <[email protected]>
2022-05-06 14:52:53 +02:00
Álvaro Brey 60e7555609 Merge pull request #10184 from nextcloud/backport/10179/stable-3.20
[stable-3.20] Throttle click on share icon
2022-05-06 14:43:23 +02:00
Álvaro Brey 20c33e4547 Merge pull request #10185 from nextcloud/backport/10178/stable-3.20
[stable-3.20] Media search improvement
2022-05-06 14:42:57 +02:00
Álvaro Brey 0619deb785 GallerySearchTask: remove leftover testing code
Signed-off-by: Álvaro Brey <[email protected]>
2022-05-06 11:47:40 +00:00
tobiasKaminsky fcf2d18bf8 Fix #10176
Signed-off-by: tobiasKaminsky <[email protected]>
2022-05-06 11:47:40 +00:00
tobiasKaminsky 7e6f04d2e0 Throttle click on share icon
Signed-off-by: tobiasKaminsky <[email protected]>
2022-05-06 10:56:41 +00:00
Nextcloud bot 7b3a386b45 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-06 04:12:21 +00:00
Álvaro Brey ba49eb35b1 Merge pull request #10175 from nextcloud/backport/10163/stable-3.20
[stable-3.20] PreviewMediaFragment: prevent crash due to onStop called before exoplayer initialization
2022-05-05 16:09:21 +02:00
Álvaro Brey 4b29f0edc6 PreviewMediaFragment: prevent crash due to onStop called before exoplayer initialization
Signed-off-by: Álvaro Brey <[email protected]>
2022-05-05 13:28:38 +00:00
Nextcloud bot 972ee009d2 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-05 04:13:07 +00:00
Álvaro Brey ba771f4e34 Merge pull request #10164 from nextcloud/backport/10080/stable-3.20
[stable-3.20] Parallel thumbnail fetching
2022-05-04 15:51:30 +02:00
tobiasKaminsky f534e9c527 Parallel thumbnail fetching
Signed-off-by: tobiasKaminsky <[email protected]>
2022-05-04 13:21:33 +00:00
Nextcloud bot dd388ac778 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-04 04:20:18 +00:00
Álvaro Brey 55dc58b1af Merge pull request #10149 from nextcloud/backport/10140/stable-3.20
[stable-3.20] FileDisplayActivity: wait until OCFileListFragment is initialized to trigger browseToRoot()
2022-05-03 11:13:27 +02:00
Álvaro Brey 08badbe48d FileDisplayActivity: wait until OCFileListFragment is initialized to trigger browseToRoot()
This solves a bug which caused a "Directory does not exist" popup when coming back from Gallery,
as it tried to call browseToRoot on GalleryFragment due it being executed before the fragment transaction.

Signed-off-by: Álvaro Brey <[email protected]>
2022-05-03 08:53:32 +00:00
Álvaro Brey 39b4c43069 Merge pull request #10146 from nextcloud/bump/3.20.0
Bump versions for 3.20.0 final
2022-05-03 09:52:11 +02:00
Álvaro Brey c29ca194d8 Bump versions for 3.20.0 final
Signed-off-by: Álvaro Brey <[email protected]>
2022-05-03 06:58:45 +00:00
Álvaro Brey d563183ff0 Merge pull request #10144 from nextcloud/backport/10133/stable-3.20
[stable-3.20] Fix contents cut off when scrolling is locked
2022-05-03 08:56:55 +02:00
Álvaro Brey 5e42046ba0 Merge pull request #10145 from nextcloud/backport/stable-3.20/10052
[stable-3.20] File locking
2022-05-03 08:56:19 +02:00
Nextcloud bot 78b7eb02ab [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-03 04:12:10 +00:00
Álvaro Brey 816cfad14d Fix mocking in FileMenuFilterIT
Not sure why this wasn't a compilation error

Signed-off-by: Álvaro Brey <[email protected]>
2022-05-02 18:14:59 +02:00
Álvaro Brey Vilas 2dc9be66c8 Fix some licenses
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:14:18 +02:00
Álvaro Brey Vilas 7796b21c50 Fix spotbugs
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:14:18 +02:00
Álvaro Brey Vilas a7a15d7f24 Remove unused resources
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:14:18 +02:00
Álvaro Brey Vilas 4bf3958acb Add test for FileMenuFilter that verifies file locking menu items
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:14:18 +02:00
Álvaro Brey Vilas 0784e4328a Add unit tests for FileLockingHelper
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:14:18 +02:00
Álvaro Brey Vilas 82e6ffe4ec FileMenuFilter: don't show lock options if there's no locking capability
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:14:18 +02:00
Álvaro Brey Vilas 86292ac0de Fix lock info in actionMode menu when selecting a single, locked, file
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:14:18 +02:00
Álvaro Brey Vilas 0a032aec47 FileMenuFilter: don't show move, remove or rename options when file is locked
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:14:18 +02:00
Álvaro Brey Vilas 1122ff6718 Show file lock info in actions menu instead of separate dialog
Requested by design team

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:14:17 +02:00
Álvaro Brey Vilas c9bfcc8211 Combine lock indicator with overflow icon
Requested by design

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:14:17 +02:00
Álvaro Brey Vilas 31ff8c3edf FileMenuFilter: properly filter lock/unlock depending on lock status
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:14:17 +02:00
Álvaro Brey Vilas 0ca7eb7173 Show lock details when tapping on lock indicator
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:14:13 +02:00
Álvaro Brey Vilas 3274a912eb Retrieve and persist more locking attributes from remote files
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:13:35 +02:00
Álvaro Brey Vilas 016f45f5c2 Add ability to toggle file lock from file context menu
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:13:35 +02:00
Álvaro Brey Vilas 522eab1cbe FileDataStorageManager: small cleanup
- Remove two unused methods
- Make some fields final

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:13:35 +02:00
Álvaro Brey Vilas 6ea02535fe Show file locking status on list
Also includes a refactor of how ContentValues are created in FileDataStorageManager.

The code for that was triplicated. now it's not.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:13:35 +02:00
Álvaro Brey Vilas fe9aeed461 Store file locking capability
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 18:12:19 +02:00
Álvaro Brey Vilas 6e72d3a708 PreviewMediaFragment: Remove margin from top bar
Not needed since previous commit fixing scroll bugs, creates unwanted space

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 16:11:32 +00:00
Álvaro Brey Vilas 0993af94eb Fix contents cut off when scrolling is locked
Don't need to touch the coordinator params, just set scroll flags properly

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 16:11:31 +00:00
Álvaro Brey 5689daa9d8 Merge pull request #10139 from nextcloud/backport/10132/stable-3.20
[stable-3.20] build: Clean up repository configuration
2022-05-02 10:39:49 +02:00
Álvaro Brey Vilas 39fb0065cc build: Update last 2 libraries that used JCenter
Both of these are present in mavenCentral with a different groupId.

For both of them, the version bump is only for the groupId change, there are no breaking changes otherwise.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 07:46:31 +00:00
Álvaro Brey Vilas 2fbc6b1af8 build: Clean up repository configuration
- Put jitpack.io at the bottom, so that it is the last one checked. For libraries that are both in jitpack and elsewhere,
this should prevent a lot of errors especially in CI due to jitpack unreliability.
- Don't use gradle plugin portal as a mirror for JCenter. JCenter is still up as read-only, and using the gradle plugin portal
hides the fact that we have stop using jcenter libraries.
- For buildscripts, use gradlePluginPortal() instead of manual maven config
- Don't have repository configuration in both app/build.gradle and project build.gradle. Use project gradle instead

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-05-02 07:46:31 +00:00
Nextcloud bot cf8b4a16b7 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-05-01 04:10:39 +00:00
Álvaro Brey 1cd0170cec Merge pull request #10136 from nextcloud/backport/10128/stable-3.20
[stable-3.20] Fix expiration date picker layout when rotating screen
2022-04-29 19:29:16 +02:00
Álvaro Brey Vilas 0d920bc2bd FileDetailsSharing: Preserve selected date when recreating expiration date dialog
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-29 17:46:39 +02:00
Álvaro Brey Vilas 893b7646ff FileDetailsSharingProcess: force recreation of date picked on config changes
See added comment for details

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-29 17:46:39 +02:00
Álvaro Brey Vilas 3c919b6d0b ExpirationDatePickerDF: customize buttons on onStart instead of showing dialog on onCreate
That is how DialogFragment is supposed to work

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-29 17:46:33 +02:00
Álvaro Brey f4a4fee858 Merge pull request #10131 from nextcloud/backport/10129/stable-3.20
[stable-3.20] build: Disable LeakCanary unless manually activated with a property
2022-04-29 17:40:43 +02:00
Álvaro Brey Vilas 07e79be92f build: Disable LeakCanary unless manually activated with a property
Use `./gradlew installGplayDebug -P "leakCanary"`, for example, to activate it.

LeakCanary dramatically slows down normal development work due to app freezes for memory dumps.

This way we can avoid that, but still use it when we want to check for leaks. I don't think leaks should be a primary focus right now,
since we have other stuff to work on first.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-29 13:03:18 +02:00
Álvaro Brey b32a475873 Merge pull request #10125 from nextcloud/backport/10117/stable-3.20
[stable-3.20] Screenshot tests reliability improvements
2022-04-29 08:35:12 +02:00
Nextcloud bot 625e31b406 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-04-29 04:12:10 +00:00
Álvaro Brey Vilas 46b9b0943c PasscodeActivityIT: add short sleep after closing keyboard
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-28 12:06:08 +00:00
Álvaro Brey Vilas 6ef6c0713a ActivitiesActivityIT.error: more sleep
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-28 12:06:08 +00:00
Álvaro Brey Vilas e5ebcb12b0 Screenshot tests reliability improvements
Add more sleeps to SetupEncryptionDialogFragment.error and TrashBinActivity.empty, which fail frequently

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-28 12:06:08 +00:00
Álvaro Brey 79020def18 Merge pull request #10118 from nextcloud/backport/10113/stable-3.20
[stable-3.20] Run unit tests in GH actions
2022-04-27 12:20:53 +02:00
Álvaro Brey Vilas 524b858bf7 codecov: add flag to integration test coverage so the UI is clearer
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-27 09:33:01 +00:00
Álvaro Brey Vilas 2e0cb9c122 Upload unit test results properly if they fail
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-27 09:33:01 +00:00
Álvaro Brey Vilas ce5b92f9a0 build: Remove combinedTestReport task
It's not working properly (complains about no classes, empty report), AND codecov should merge unit and integration coverages for us anyway

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-27 09:33:01 +00:00
Álvaro Brey Vilas 9143c26098 Drone: optimize assemble while waiting for server/emulator
- Don't assemble Gplay separately from gplayDebug. We already have some GH actions to verify that all flavors assemble.
- Assemble the AndroidTest task, so that there's less work to do when installGplayDebug is called

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-27 09:33:01 +00:00
Álvaro Brey Vilas 50b395c70f Drone: don't run unit tests
Done in GH actions now

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-27 09:33:01 +00:00
Álvaro Brey Vilas 6eeb8c577f Run unit tests in GH actions
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-27 09:33:01 +00:00
Álvaro Brey ce3df85301 Merge pull request #10116 from nextcloud/backport/10112/stable-3.20
[stable-3.20] Fix LoginIT for server master
2022-04-27 09:58:31 +02:00
Álvaro Brey Vilas c2b33600e3 LoginIT: convert to Kotlin
While we're at it

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-27 06:14:33 +00:00
Álvaro Brey Vilas f3d2f485e2 Fix LoginIT submit click
In latest Nextcloud version the "submit" button does not have an ID, but we can use the type for selection

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-27 06:14:33 +00:00
Nextcloud bot 264e647109 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-04-26 04:11:48 +00:00
Álvaro Brey ec88e5c720 Merge pull request #10098 from nextcloud/backport/10050/stable-3.20
[stable-3.20] Group photos as timeline by month
2022-04-25 09:58:05 +02:00
Nextcloud bot 9a564043d9 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-04-24 04:13:40 +00:00
Nextcloud bot 381644b633 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-04-23 04:00:58 +00:00
Nextcloud bot cc5dcbb746 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-04-22 04:03:59 +00:00
Nextcloud bot 73dae25839 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-04-21 04:02:08 +00:00
nextcloud-android-bot a4dfd38792 Analysis: update Spotbugs results to reflect reduced error/warning count
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-04-19 18:59:57 +00:00
nextcloud-android-bot 9194a2ca8b Analysis: update lint results to reflect reduced error/warning count
Signed-off-by: nextcloud-android-bot <[email protected]>
2022-04-19 18:58:46 +00:00
Álvaro Brey 69fec56b8d [stable-3.20] Merge pull request #10050 from nextcloud/mediaTimeline
Group photos as timeline by month

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-19 20:52:26 +02:00
Álvaro Brey ffed2e5362 Merge pull request #10097 from nextcloud/backport/10015/stable-3.20
[stable-3.20] Optimize load time for Shared view
2022-04-19 20:50:14 +02:00
Álvaro Brey Vilas 8b984c0fdc Bump library version
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-19 16:58:17 +02:00
Álvaro Brey Vilas 3c20764752 Fix wrong usages of deprecated OCShare shareType setter
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-19 16:32:49 +02:00
Álvaro Brey Vilas 5f66d999a3 Load metadata of shared files only when attempting to interact with them
This was quite a big undertaking and required a whole new fragment

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-19 16:32:49 +02:00
Álvaro Brey Vilas 507735cf23 Don't load entire OCFiles in the Shared view, as it takes too long
Instead, build partially-filled OCFiles from the OCShares we get

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-19 16:32:42 +02:00
Álvaro Brey afcfdadc1d Merge pull request #10083 from nextcloud/backport-9985
[stable-3.20] Fastscroll for all lists
2022-04-19 14:41:55 +02:00
Álvaro Brey feb22fee7d Merge pull request #10092 from nextcloud/backport/10070/stable-3.20
[stable-3.20] Fix trashbin navigation
2022-04-18 13:01:59 +02:00
tobiasKaminsky 5701e4cae3 Fix trashbin navigation
Signed-off-by: tobiasKaminsky <[email protected]>
2022-04-18 10:33:12 +00:00
Nextcloud bot 4a157de7ce [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-04-16 04:00:00 +00:00
Nextcloud bot 0673ad6576 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-04-15 04:05:09 +00:00
tobiasKaminsky fe431dc991 Fastscroll for all lists
Signed-off-by: tobiasKaminsky <[email protected]>

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

wip

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

wip

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

wip

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

Replace equals with == on enums

Signed-off-by: tobiasKaminsky <[email protected]>
2022-04-14 15:37:11 +02:00
Tobias Kaminsky 497d08366f Merge pull request #10063 from nextcloud/changelog-rc-3.20.0-02
Add changelog for 3.20.0 RC2
2022-04-08 10:26:29 +02:00
Nextcloud bot d624547cb8 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-04-08 04:06:11 +00:00
Álvaro Brey Vilas 186ac9a211 Add changelog for 3.20.0 RC2
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-07 18:15:22 +02:00
Álvaro Brey f0a6368593 Merge pull request #10062 from nextcloud/bump/3.20.0-rc2
Bump versions for 3.20.0 RC2
2022-04-07 17:31:29 +02:00
Álvaro Brey Vilas 79a915e464 Bump versions for 3.20.0 RC2
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-07 15:30:08 +02:00
Álvaro Brey afe56c70e8 Merge pull request #10057 from nextcloud/backport/10049/stable-3.20
[stable-3.20] AndroidManifest: set camera2 feature to not required
2022-04-07 14:32:32 +02:00
Álvaro Brey a2d1fada39 Merge pull request #10061 from nextcloud/backport/10051/stable-3.20
[stable-3.20] Don't include document scanner in FDroid version
2022-04-07 14:31:38 +02:00
Álvaro Brey Vilas f4b1796d7d Don't include document scanner in FDroid version
Not allowed due to binary OpenCV

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-07 12:49:08 +02:00
Álvaro Brey af939e4815 Merge pull request #10056 from nextcloud/backport/10007/stable-3.20
[stable-3.20] Use remoteId to properly fetch streaming video url
2022-04-07 12:46:46 +02:00
Álvaro Brey 5ebb6f31d1 Merge pull request #10058 from nextcloud/backport/10034/stable-3.20
[stable-3.20] Better approach for avoiding state loss in FileDetailFragment
2022-04-07 11:40:35 +02:00
Álvaro Brey Vilas e5708f8f1b Better approach for avoiding state loss in FileDetailFragment
Do not overwrite file when updating share information, instead of holding the file in FDA

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-07 09:08:08 +00:00
Álvaro Brey Vilas 8091b42062 AndroidManifest: set camera2 feature to not required
Brought by document scanner lib, but not actually required. If set to required,
devices without this feature will not see the app in Play Store.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-04-07 08:45:31 +00:00
tobiasKaminsky e23df6c8c8 Use remoteId to properly fetch streaming video url
Signed-off-by: tobiasKaminsky <[email protected]>
2022-04-07 08:37:04 +00:00
Álvaro Brey 179a2d8b1b Merge pull request #10043 from nextcloud/backport/10042/stable-3.20
[stable-3.20] Correct scan permission handling
2022-04-04 12:33:31 +02:00
Tobias Kaminsky 3575a3f929 - no camera permission (#10042)
- scan document
- approve permission
- see scan document activity, previously it was wrong upload image activity

Signed-off-by: tobiasKaminsky <[email protected]>
2022-04-04 11:33:53 +02:00
Nextcloud bot 0168c8af49 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-04-03 04:02:22 +00:00
Tobias Kaminsky 1c83280862 Merge pull request #10029 from nextcloud/backport/10025/stable-3.20
[stable-3.20] fastlane: Increase number of expected artifacts to 4
2022-03-31 09:33:27 +02:00
Nextcloud bot 408d60116e [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-31 04:09:04 +00:00
Álvaro Brey 03e4a61c44 Merge pull request #10030 from nextcloud/backport/10013/stable-3.20
[stable-3.20] Fix bugs when removing accounts
2022-03-30 19:00:41 +02:00
Álvaro Brey Vilas f342f5d5f6 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-30 16:30:44 +00:00
Álvaro Brey Vilas dc1b542613 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-30 16:30:44 +00:00
Álvaro Brey Vilas e258fb72ca fastlane: Increase number of expected artifacts to 4
3 APKs + 1 AAB

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-30 16:06:55 +00:00
Álvaro Brey 0559390c07 Merge pull request #10024 from nextcloud/changelog-rc-3.20.0-01
Add changelog for 3.20.0 RC1
2022-03-30 18:06:36 +02:00
Nextcloud bot 10c87b730b [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-30 04:04:08 +00:00
Álvaro Brey Vilas 0edfed62bf Add changelog for 3.20.0 RC1
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-28 17:14:23 +02:00
Álvaro Brey 1a428dc761 Merge pull request #10023 from nextcloud/stable-3.20-bump
Bump versions for 3.20.0 RC1
2022-03-28 16:25:39 +02:00
Álvaro Brey Vilas ea93d93390 Fix milestone link in fastlane docs
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-28 14:41:12 +02:00
Álvaro Brey Vilas 33d7335912 Bump versions for 3.20.0 RC1
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-03-28 14:18:23 +02: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
Á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
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
Á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
Nextcloud bot d7dbef4085 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-03-19 04:01:55 +00: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
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
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
Á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
Á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
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
Á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
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
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
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
Á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
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
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
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
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
Á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
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
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
Á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
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
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
Á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
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
Á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
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
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
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
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
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
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
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
Á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
2082 changed files with 16035 additions and 7683 deletions

No files matched your search

+1 -1
View File
@@ -20,5 +20,5 @@ github_checks:
annotations: false
ignore:
- "src/main/res/values*/*"
- "app/src/main/res/values*/*"
+10 -62
View File
@@ -19,49 +19,21 @@ 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"#server#server#" gradle.properties
- sed -i s"#1#5#" ./src/androidTest/java/com/nextcloud/client/RetryTestRule.kt
- ./gradlew assembleGplay
- ./gradlew assembleGplayDebug
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g app/src/main/res/values/setup.xml
- ./gradlew assembleGplayDebugAndroidTest
- scripts/wait_for_emulator.sh
- scripts/deleteOldComments.sh "stable" "Unit" $DRONE_PULL_REQUEST $GIT_TOKEN
- ./gradlew jacocoTestGplayDebugUnitTestReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable" "Unit" $DRONE_PULL_REQUEST $GIT_TOKEN
- ./gradlew installGplayDebugAndroidTest
- scripts/wait_for_server.sh "server"
- 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 +42,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 +78,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:
@@ -184,7 +132,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
+4 -2
View File
@@ -3,12 +3,14 @@ name: "Analysis"
on:
pull_request:
branches: [ master, stable-* ]
push:
branches: [ master, stable-* ]
jobs:
analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
@@ -18,4 +20,4 @@ jobs:
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 }} ${{ github.head_ref }} ${{ secrets.LOG_USERNAME }} ${{ secrets.LOG_PASSWORD }} $GITHUB_RUN_NUMBER ${{ github.event.pull_request.number }}
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 }}
+1 -1
View File
@@ -12,7 +12,7 @@ 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:
+2 -2
View File
@@ -10,9 +10,9 @@ 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:
+31 -31
View File
@@ -6,41 +6,41 @@
name: Rebase command
on:
issue_comment:
types: created
issue_comment:
types: created
jobs:
rebase:
runs-on: ubuntu-latest
rebase:
runs-on: ubuntu-latest
# On pull requests and if the comment starts with `/rebase`
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
# On pull requests and if the comment starts with `/rebase`
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
steps:
- name: Add reaction on start
uses: peter-evans/create-or-update-comment@v1
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
repository: ${{ github.event.repository.full_name }}
comment-id: ${{ github.event.comment.id }}
reaction-type: "+1"
steps:
- name: Add reaction on start
uses: peter-evans/create-or-update-comment@v1
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
repository: ${{ github.event.repository.full_name }}
comment-id: ${{ github.event.comment.id }}
reaction-type: "+1"
- name: Checkout the latest code
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.COMMAND_BOT_PAT }}
- name: Checkout the latest code
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.COMMAND_BOT_PAT }}
- name: Automatic Rebase
uses: cirrus-actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
- name: Automatic Rebase
uses: cirrus-actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
- name: Add reaction on failure
uses: peter-evans/create-or-update-comment@v1
if: failure()
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
repository: ${{ github.event.repository.full_name }}
comment-id: ${{ github.event.comment.id }}
reaction-type: "-1"
- name: Add reaction on failure
uses: peter-evans/create-or-update-comment@v1
if: failure()
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
repository: ${{ github.event.repository.full_name }}
comment-id: ${{ github.event.comment.id }}
reaction-type: "-1"
+1 -1
View File
@@ -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
@@ -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
+10 -5
View File
@@ -11,14 +11,19 @@ jobs:
- name: Check if secrets are available
run: echo "::set-output name=ok::${{ secrets.KS_PASS != '' }}"
id: check-secrets
- uses: actions/checkout@v2
- uses: actions/checkout@v3
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
- name: set up JDK 11
uses: actions/setup-java@v3
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: 11
- name: Install NDK and cmake
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
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:
@@ -29,8 +34,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 }}
+2 -2
View File
@@ -22,7 +22,7 @@ jobs:
steps:
- name: "Checkout code"
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
uses: actions/checkout@v3 # v2.4.0
with:
persist-credentials: false
@@ -42,7 +42,7 @@ jobs:
# Upload the results as artifacts (optional).
- name: "Upload artifact"
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2.3.1
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v2.3.1
with:
name: SARIF file
path: results.sarif
+6 -6
View File
@@ -14,17 +14,17 @@ jobs:
color: [ blue ]
api-level: [ 27 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Gradle cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: AVD cache
uses: actions/cache@v2
uses: actions/cache@v3
id: avd-cache
with:
path: |
@@ -71,15 +71,15 @@ jobs:
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@v4.1.0
- uses: actions/stale@v5
with:
days-before-stale: 28
days-before-close: 14
+41
View File
@@ -0,0 +1,41 @@
name: Unit tests
on:
pull_request:
branches: [ master, stable-* ]
push:
branches: [ master, stable-* ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 11
- name: Delete old comments
if: ${{ always() }}
run: scripts/deleteOldComments.sh "test" "Unit" ${{github.event.number}} ${{ secrets.GITHUB_TOKEN }}
- name: Run unit tests with coverage
uses: gradle/gradle-build-action@v2
with:
arguments: jacocoTestGplayDebugUnitTest
- name: Upload failing results
if: ${{ failure() }}
run:
scripts/uploadReport.sh "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" ${{github.event.number}} "test" "Unit" ${{github.event.number}} ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage to codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
fail_ci_if_error: true
- name: Upload jacoco artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: test-results
path: app/build/reports/tests/testGplayDebugUnitTest/
+1
View File
@@ -1,6 +1,7 @@
# built application files
*.apk
*.ap_
*.aab
# files for the dex VM
*.dex
-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
+36
View File
@@ -1,3 +1,39 @@
## 3.20.0 RC2 (April 7, 2022)
- Built-in PDF viewer
- Built-in document scanner
- Better choices for storage permissions
- Many bugfixes and improvements
Minimum: NC 16 Server, Android 6.0 Marshmallow
For a full list, please see https://github.com/nextcloud/android/milestone/64
## 3.20.0 RC1 (March 28, 2022)
- Built-in PDF viewer
- Built-in document scanner
- Better choices for storage permissions
- Many bugfixes and improvements
Minimum: NC 16 Server, Android 6.0 Marshmallow
For a full list, please see https://github.com/nextcloud/android/milestone/64
## 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
+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)
+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
+431
View File
@@ -0,0 +1,431 @@
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")
}
}
}
// semantic versioning for version code
def versionMajor = 3
def versionMinor = 20
def versionPatch = 2
def versionBuild = 90 // 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 20220322
versionName "20220322"
}
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:flexbox:3.0.0'
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"
// document scanner not available on FDroid (generic) due to OpenCV binaries
gplayImplementation "com.github.zynkware:Document-Scanning-Android-SDK:$documentScannerVersion"
huaweiImplementation "com.github.zynkware:Document-Scanning-Android-SDK:$documentScannerVersion"
qaImplementation "com.github.zynkware:Document-Scanning-Android-SDK:$documentScannerVersion"
versionDevImplementation "com.github.zynkware:Document-Scanning-Android-SDK:$documentScannerVersion"
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"
implementation 'me.zhanghai.android.fastscroll:library:1.1.8'
// Shimmer animation
implementation 'io.github.elye:loaderviewlibrary:3.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 (project.hasProperty("leakCanary")) {
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"
androidTestImplementation "androidx.test:core-ktx:$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"
}
}
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")
}
}
}
+7 -3
View File
@@ -1,5 +1,5 @@
build:
maxIssues: 10
maxIssues: 11
weights:
# complexity: 2
# LongParameterList: 1
@@ -267,7 +267,9 @@ naming:
functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$'
excludeClassPattern: '$^'
ignoreOverridden: true
excludes: "**/*Test.kt"
excludes:
- "**/*Test.kt"
- "**/*IT.kt"
FunctionParameterNaming:
active: true
parameterPattern: '[a-z][A-Za-z0-9]*'
@@ -389,7 +391,9 @@ style:
ignoreAnnotation: false
ignoreNamedArgument: true
ignoreEnums: false
excludes: "**/*Test.kt"
excludes:
- "**/*Test.kt"
- "**/*IT.kt"
MandatoryBracesIfStatements:
active: false
MaxLineLength:
+2 -3
View File
@@ -23,9 +23,7 @@
</issue>
<issue id="UnusedQuantity">
<ignore path="**/values-sk-rSK/strings.xml"/>
<ignore path="**/values-cs-rCZ/strings.xml"/>
<ignore path="**/values-lt-rLT/strings.xml"/>
<ignore path="**/values-**/strings.xml" />
</issue>
<issue id="ExtraTranslation">
@@ -35,6 +33,7 @@
<issue id="UnusedResources">
<ignore path="**/values-**/strings.xml" />
<ignore path="**/values/setup.xml" />
</issue>
<issue id="TypographyEllipsis">
Loaded 100 of 2082 files, more files were not shown because too many files have changed in this diff. Show more