Commit graph

4368 commits

Author SHA1 Message Date
Álvaro Brey
ae65de6cce
SharedItemsViewModel: use unified state livedata
Co-authored-by: Tim Krüger <t@timkrueger.me>
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2022-05-23 17:35:13 +02:00
Tim Krüger
10857114f5
Avoid NPE when 'sharedItems' is null
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-05-23 17:35:12 +02:00
Tim Krüger
e5b38856eb
Add missing license headers
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-05-23 17:35:10 +02:00
Tim Krüger
52ec1b76fa
Add comment for refactoring FileViewerUtils
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-05-23 17:35:09 +02:00
Tim Krüger
0d65824fa6
Remove 'UserEntity' from 'SharedItem' model
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-05-23 17:35:08 +02:00
Tim Krüger
6b9ab738cb
Introduce interface for 'SharedItemsRepository'
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-05-23 17:35:07 +02:00
Tim Krüger
b2f59ccb6c
Merge 'SharedItemsListAdapter' and 'SharedItemsGridAdapter'
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-05-23 17:35:06 +02:00
Tim Krüger
fd76f8231d
Move 'Shared items' related classes to own package
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-05-23 17:35:05 +02:00
Álvaro Brey
716dcfe01d
DI: Setup viewmodel injection
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2022-05-23 17:35:04 +02:00
Tim Krüger
6716726ff1
Move currentTab from activity to viewmodel
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-05-23 17:35:03 +02:00
Tim Krüger
36769e4fbe
Remove constand BATCH_SIZE from SharedItemsViewModel
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-05-23 17:35:02 +02:00
Tim Krüger
6a27dc7dba
Pass needed parameters during every call to repository
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-05-23 17:34:59 +02:00
Tim Krüger
577357011e
Let repository not expose API responses
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-05-23 17:34:29 +02:00
Andy Scherzinger
bb4102612b
revert material back to 1.5.0
Resolves #2080

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-20 23:29:34 +02:00
Andy Scherzinger
2b2f27a08c
Merge pull request #1800 from nextcloud/dependabot/gradle/workVersion-2.7.1
Bump workVersion from 2.6.0 to 2.7.1
2022-05-20 16:43:23 +02:00
dependabot[bot]
d03f5b5b99
Bump workVersion from 2.6.0 to 2.7.1
Bumps `workVersion` from 2.6.0 to 2.7.1.

Updates `work-runtime` from 2.6.0 to 2.7.1

Updates `work-rxjava2` from 2.6.0 to 2.7.1

Updates `work-testing` from 2.6.0 to 2.7.1

---
updated-dependencies:
- dependency-name: androidx.work:work-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: androidx.work:work-rxjava2
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: androidx.work:work-testing
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 14:35:14 +00:00
Andy Scherzinger
c3bd75e216
Merge pull request #2079 from nextcloud/chore/noid/bumpCamera2To110RC01
bump camera to 1.1.0RC01 and unify version info
2022-05-20 16:33:45 +02:00
Andy Scherzinger
477cda325a
bump camera to 1.1.0RC01 and unify version info
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-20 16:20:23 +02:00
Andy Scherzinger
249d74d38b
Merge pull request #1920 from nextcloud/dependabot/gradle/io.gitlab.arturbosch.detekt-detekt-gradle-plugin-1.20.0
Bump detekt-gradle-plugin from 1.19.0 to 1.20.0
2022-05-20 16:19:58 +02:00
Andy Scherzinger
96711e7349
format kotlin classes
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-20 16:11:11 +02:00
Andy Scherzinger
c732c7046a
add formatting plugin
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-20 16:03:26 +02:00
dependabot[bot]
9e81585872
Bump detekt-gradle-plugin from 1.19.0 to 1.20.0
Bumps detekt-gradle-plugin from 1.19.0 to 1.20.0.

---
updated-dependencies:
- dependency-name: io.gitlab.arturbosch.detekt:detekt-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 16:03:26 +02:00
Andy Scherzinger
ba513c7ec7
Merge pull request #2054 from nextcloud/dependabot/gradle/com.vanniktech-emoji-google-0.12.0
Bump emoji-google from 0.8.0 to 0.12.0
2022-05-20 16:02:07 +02:00
Andy Scherzinger
b33a4d1265
Upgrade code to latest API changes for Emojis
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-20 16:01:49 +02:00
dependabot[bot]
133b058774
Bump emoji-google from 0.8.0 to 0.12.0
Bumps [emoji-google](https://github.com/vanniktech/Emoji) from 0.8.0 to 0.12.0.
- [Release notes](https://github.com/vanniktech/Emoji/releases)
- [Changelog](https://github.com/vanniktech/Emoji/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vanniktech/Emoji/compare/0.8.0...0.12.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 14:54:00 +02:00
Andy Scherzinger
0fe921ad35
Merge pull request #2062 from nextcloud/dependabot/gradle/coilKtVersion-2.1.0
Bump coilKtVersion from 1.4.0 to 2.1.0
2022-05-20 14:53:22 +02:00
Andy Scherzinger
602c197dae
Update to coil 2.x API
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-20 13:38:58 +02:00
dependabot[bot]
865be74f07
Bump coilKtVersion from 1.4.0 to 2.1.0
Bumps `coilKtVersion` from 1.4.0 to 2.1.0.

Updates `coil` from 1.4.0 to 2.1.0
- [Release notes](https://github.com/coil-kt/coil/releases)
- [Changelog](https://github.com/coil-kt/coil/blob/main/CHANGELOG.md)
- [Commits](https://github.com/coil-kt/coil/compare/1.4.0...2.1.0)

Updates `coil-gif` from 1.4.0 to 2.1.0
- [Release notes](https://github.com/coil-kt/coil/releases)
- [Changelog](https://github.com/coil-kt/coil/blob/main/CHANGELOG.md)
- [Commits](https://github.com/coil-kt/coil/compare/1.4.0...2.1.0)

Updates `coil-svg` from 1.4.0 to 2.1.0
- [Release notes](https://github.com/coil-kt/coil/releases)
- [Changelog](https://github.com/coil-kt/coil/blob/main/CHANGELOG.md)
- [Commits](https://github.com/coil-kt/coil/compare/1.4.0...2.1.0)

---
updated-dependencies:
- dependency-name: io.coil-kt:coil
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: io.coil-kt:coil-gif
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: io.coil-kt:coil-svg
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 13:29:07 +02:00
Andy Scherzinger
746a027d35
Merge pull request #2077 from nextcloud/doc/noid/removeDocForJava8
remove hint to use java 8
2022-05-20 13:15:30 +02:00
Marcel Hibbe
515cfd6a99
remove hint to use java 8
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2022-05-20 12:57:26 +02:00
Andy Scherzinger
e2509c6a31
Merge pull request #1654 from nextcloud/dependabot/gradle/androidx.core-core-ktx-1.7.0
Bump core-ktx from 1.6.0 to 1.7.0
2022-05-20 12:03:12 +02:00
dependabot[bot]
4af1228bc8
Bump core-ktx from 1.6.0 to 1.7.0
Bumps core-ktx from 1.6.0 to 1.7.0.

---
updated-dependencies:
- dependency-name: androidx.core:core-ktx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 09:49:11 +00:00
Andy Scherzinger
630b8ec87d
Merge pull request #1982 from nextcloud/dependabot/gradle/com.google.android.material-material-1.6.0
Bump material from 1.4.0 to 1.6.0
2022-05-20 11:34:37 +02:00
dependabot[bot]
2b9d8d1e5a
Bump material from 1.4.0 to 1.6.0
Bumps [material](https://github.com/material-components/material-components-android) from 1.4.0 to 1.6.0.
- [Release notes](https://github.com/material-components/material-components-android/releases)
- [Commits](https://github.com/material-components/material-components-android/compare/1.4.0...1.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 09:29:08 +00:00
Andy Scherzinger
a602fc6ab7
Merge pull request #1867 from nextcloud/dependabot/gradle/com.google.android.exoplayer-exoplayer-2.17.1
Bump exoplayer from 2.16.0 to 2.17.1
2022-05-20 11:21:11 +02:00
Andy Scherzinger
28e4e19917
Update Interface after updating to exoplayer 2.17.1
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-20 10:57:43 +02:00
dependabot[bot]
d2c2a99921
Bump exoplayer from 2.16.0 to 2.17.1
Bumps [exoplayer](https://github.com/google/ExoPlayer) from 2.16.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.16.0...r2.17.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 08:36:27 +00:00
Andy Scherzinger
d073f157f7
Merge pull request #2075 from nextcloud/dependabot/gradle/androidx.constraintlayout-constraintlayout-2.1.4
Bump constraintlayout from 2.1.3 to 2.1.4
2022-05-20 10:34:47 +02:00
dependabot[bot]
5fc503d9ac
Bump constraintlayout from 2.1.3 to 2.1.4
Bumps [constraintlayout](https://github.com/androidx/constraintlayout) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/androidx/constraintlayout/releases)
- [Commits](https://github.com/androidx/constraintlayout/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 10:30:12 +02:00
Andy Scherzinger
96ce3f7928
Merge pull request #1771 from nextcloud/dependabot/gradle/androidx.appcompat-appcompat-1.4.1
Bump appcompat from 1.3.1 to 1.4.1
2022-05-20 10:28:18 +02:00
Nextcloud bot
e072d5f33f
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-20 04:24:46 +00:00
dependabot[bot]
07aa27a743
Bump appcompat from 1.3.1 to 1.4.1
Bumps appcompat from 1.3.1 to 1.4.1.

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-19 18:49:27 +00:00
Andy Scherzinger
4b7a0721c1
Merge pull request #2073 from nextcloud/chore/noid/compileSdk31
Bump compile sdk to 31
2022-05-19 20:39:57 +02:00
Andy Scherzinger
6386bb05d7
remove permission LOCAL_MAC_ADDRESS need
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-19 18:21:38 +02:00
Andy Scherzinger
3caa02f535
Add permissions
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-19 15:25:52 +02:00
Andy Scherzinger
a5e9b8d91f
replace getColumnIndex with getColumnIndexOrThrow
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-19 12:54:55 +02:00
Andy Scherzinger
ae61d707d0
bump compile sdk to 31
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-19 11:02:28 +02:00
Andy Scherzinger
1ecc6930ca
Merge pull request #2072 from nextcloud/chrose/noid/compileSdk30
Revert compile sdk to 30
2022-05-19 10:59:10 +02:00
Andy Scherzinger
56131c80f5
revert compile sdk to 30
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-19 10:52:43 +02:00
Tim Krueger
8d04b12897
Merge pull request #2071 from nextcloud/chrore/noid/fix-emulator-for-tests
Use 'emulator' instead of 'emulator-headless'
2022-05-19 10:51:55 +02:00