Commit graph

468 commits

Author SHA1 Message Date
Álvaro Brey
4e096b4bdf
Support direct editing for notes (#1686)
* feat(capabilities): Fetch and store direct editing capability using existing capabilities code

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* feat: Implement direct editing repo

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* wip: Edit note with webview

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* wip: allow switching between the three note opening modes in preferences

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* EditNoteActivity: if no setting, use plain edit, not direct edit

Required by UX team

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* feat: Add FAB to switch to rich editing mode from plain edit/preview

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* feat: add fab while direct editing to switch to normal editing

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* Fix toolbar when switching between direct edit and normal edit

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* wip: error and conflict handling when switching edit modes

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* Only show direct editing FAB if direct editing is available

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* EditNoteActivity: if pref is direct edit but it's not available, launch normal edit instead

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* Show error if direct editing not loaded after 10 seconds

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* Update user agent for Notes webview

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* Support opening new notes with direct editing

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* Allow invalid ssl certs for debug builds in webview

Development only!

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* NoteDirectEdit: prevent duplicate note creation when creating it with direct edit

remote id needs to be set

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* Fix create with plain edit -> direct edit flow

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

---------

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-03-07 15:20:48 +00:00
Álvaro Brey
270217037b
chore(build): Single constant for glide version
Prevents duplicate dependabot PRs

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-02-27 09:44:06 +01:00
dependabot[bot]
e7bf3ffe98
Bump com.github.bumptech.glide:glide from 4.14.2 to 4.15.0
Bumps [com.github.bumptech.glide:glide](https://github.com/bumptech/glide) from 4.14.2 to 4.15.0.
- [Release notes](https://github.com/bumptech/glide/releases)
- [Commits](https://github.com/bumptech/glide/compare/v4.14.2...v4.15.0)

---
updated-dependencies:
- dependency-name: com.github.bumptech.glide:glide
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 03:31:13 +00:00
dependabot[bot]
7c381abf17
Bump androidx.arch.core:core-testing from 2.1.0 to 2.2.0
Bumps androidx.arch.core:core-testing from 2.1.0 to 2.2.0.

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-24 03:06:43 +00:00
Stefan Niedermann
990a5b5a80 feat(theming): Resolve change requests
* Only add the needed module rather than the entire lib
* Use ColorRole where possible in favor of querying the wanted color from the Scheme directly
* Use util for theming SwipeRefreshLayout

Signed-off-by: Stefan Niedermann <info@niedermann.it>
2023-02-16 12:50:39 +01:00
Stefan Niedermann
c9f50bf4ec feat(theming): Use nextcloud-common library for theming UI elements
Signed-off-by: Stefan Niedermann <info@niedermann.it>
2023-02-12 11:41:02 +01:00
Álvaro Brey
341f74404b
Merge pull request #1678 from nextcloud/dependabot/gradle/androidx.appcompat-appcompat-1.6.1
Bump androidx.appcompat:appcompat from 1.6.0 to 1.6.1
2023-02-09 12:56:49 +01:00
dependabot[bot]
6a5c8190fe
Bump androidx.appcompat:appcompat from 1.6.0 to 1.6.1
Bumps androidx.appcompat:appcompat from 1.6.0 to 1.6.1.

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-09 02:09:02 +00:00
dependabot[bot]
43f6c11f40
Bump androidx.work:work-runtime from 2.7.1 to 2.8.0
Bumps androidx.work:work-runtime from 2.7.1 to 2.8.0.

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-09 02:08:52 +00:00
dependabot[bot]
6bef883ef6
Bump com.android.tools:desugar_jdk_libs from 2.0.1 to 2.0.2
Bumps [com.android.tools:desugar_jdk_libs](https://github.com/google/desugar_jdk_libs) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/google/desugar_jdk_libs/releases)
- [Changelog](https://github.com/google/desugar_jdk_libs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/desugar_jdk_libs/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-06 02:41:52 +00:00
Álvaro Brey
3bb56a461a
Merge pull request #1669 from nextcloud/fix/setup-fastlane
Setup fastlane
2023-02-03 14:24:22 +01:00
Álvaro Brey
96c1393253
build: Change version code schema to match Files/Talk, bump to 4.0.0
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-02-03 10:47:21 +01:00
dependabot[bot]
0087139150
Bump com.android.tools:desugar_jdk_libs from 2.0.0 to 2.0.1
Bumps [com.android.tools:desugar_jdk_libs](https://github.com/google/desugar_jdk_libs) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/google/desugar_jdk_libs/releases)
- [Changelog](https://github.com/google/desugar_jdk_libs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/desugar_jdk_libs/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-03 02:11:59 +00:00
dependabot[bot]
c99da1315c
Bump com.github.stefan-niedermann:android-commons from 0.2.7 to 0.2.9
Bumps com.github.stefan-niedermann:android-commons from 0.2.7 to 0.2.9.

---
updated-dependencies:
- dependency-name: com.github.stefan-niedermann:android-commons
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 15:02:46 +00:00
Álvaro Brey
35c3d3f364
Add Kotlin support
As Android team we've agreed to only use Kotlin for new code. Let's get
the ball rolling for Notes too.

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-02-01 12:40:44 +01:00
dependabot[bot]
d89e04dc28
Bump org.mockito:mockito-core from 5.1.0 to 5.1.1
Bumps [org.mockito:mockito-core](https://github.com/mockito/mockito) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v5.1.0...v5.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 02:09:07 +00:00
Andy Scherzinger
5c2816b786
Merge pull request #1577 from nextcloud/dependabot/gradle/com.android.tools-desugar_jdk_libs-2.0.0
Bump desugar_jdk_libs from 1.1.6 to 2.0.0
2023-01-30 16:46:27 +01:00
dependabot[bot]
76daeee87d
Bump mockito-core from 5.0.0 to 5.1.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v5.0.0...v5.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-30 02:33:44 +00:00
dependabot[bot]
510f7edc57
Bump desugar_jdk_libs from 1.1.6 to 2.0.0
Bumps [desugar_jdk_libs](https://github.com/google/desugar_jdk_libs) from 1.1.6 to 2.0.0.
- [Release notes](https://github.com/google/desugar_jdk_libs/releases)
- [Changelog](https://github.com/google/desugar_jdk_libs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/desugar_jdk_libs/commits)

---
updated-dependencies:
- dependency-name: com.android.tools:desugar_jdk_libs
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-28 13:51:57 +00:00
Álvaro Brey
b1724a98b7
Merge pull request #1652 from nextcloud/chore/noid/room250
Bump room to 2.5.0
2023-01-27 12:19:12 +01:00
Andy Scherzinger
f606056a8d
Bump room to 2.5.0
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-26 20:58:25 +01:00
dependabot[bot]
432477cb64
Bump material from 1.7.0 to 1.8.0
Bumps [material](https://github.com/material-components/material-components-android) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/material-components/material-components-android/releases)
- [Commits](https://github.com/material-components/material-components-android/compare/1.7.0...1.8.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>
2023-01-26 19:44:51 +00:00
Andy Scherzinger
214c285da6
unify room dependency version
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-26 18:30:28 +01:00
dependabot[bot]
7181a251b3
Bump mockito-core from 4.11.0 to 5.0.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.11.0 to 5.0.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.11.0...v5.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16 13:23:53 +00:00
Niedermann IT-Dienstleistungen
392baf1904
Remove unnecessary build flavors
Signed-off-by: Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com>
2023-01-14 10:16:52 +01:00
dependabot[bot]
2a3a292bd3 Bump appcompat from 1.5.1 to 1.6.0
Bumps appcompat from 1.5.1 to 1.6.0.

---
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>
2023-01-12 14:28:47 +01:00
dependabot[bot]
11846c7e55 Bump gson from 2.10 to 2.10.1
Bumps [gson](https://github.com/google/gson) from 2.10 to 2.10.1.
- [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.10...gson-parent-2.10.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 17:15:53 +01:00
dependabot[bot]
ecfc761015 Bump mockito-core from 4.10.0 to 4.11.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.10.0 to 4.11.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.10.0...v4.11.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-29 14:17:24 +01:00
dependabot[bot]
70083557b1 Bump robolectric from 4.9.1 to 4.9.2
Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.9.1 to 4.9.2.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](https://github.com/robolectric/robolectric/compare/robolectric-4.9.1...robolectric-4.9.2)

---
updated-dependencies:
- dependency-name: org.robolectric:robolectric
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-28 14:55:44 +01:00
dependabot[bot]
f590d38fff Bump robolectric from 4.9 to 4.9.1
Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.9 to 4.9.1.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](https://github.com/robolectric/robolectric/compare/robolectric-4.9...robolectric-4.9.1)

---
updated-dependencies:
- dependency-name: org.robolectric:robolectric
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-20 14:17:36 +01:00
dependabot[bot]
740f703819 Bump mockito-core from 4.9.0 to 4.10.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.9.0 to 4.10.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.9.0...v4.10.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-15 15:28:47 +01:00
dependabot[bot]
a492e3d044 Bump fragment from 1.5.4 to 1.5.5
Bumps fragment from 1.5.4 to 1.5.5.

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 15:23:03 +01:00
Stefan Niedermann
075ce5f8a9 version bump to 3.7.1
Signed-off-by: Stefan Niedermann <info@niedermann.it>
2022-11-21 09:08:07 +01:00
dependabot[bot]
e7ef6120ab Bump mockito-core from 4.8.1 to 4.9.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.8.1 to 4.9.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.8.1...v4.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 14:18:11 +01:00
Stefan Niedermann
2b8d479188 Version bump to 3.7.0
Signed-off-by: Stefan Niedermann <info@niedermann.it>
2022-11-12 09:05:11 +01:00
Stefan Niedermann
20bb948130 Material 3: First steps
Signed-off-by: Stefan Niedermann <info@niedermann.it>
2022-11-12 09:02:24 +01:00
dependabot[bot]
272bf451e8 Bump core from 1.4.0 to 1.5.0
Bumps core from 1.4.0 to 1.5.0.

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-09 14:13:20 +01:00
dependabot[bot]
7bd8bee14a Bump gson from 2.9.1 to 2.10
Bumps [gson](https://github.com/google/gson) from 2.9.1 to 2.10.
- [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.9.1...gson-parent-2.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-25 16:53:19 +02:00
dependabot[bot]
341c264fe5 Bump fragment from 1.5.3 to 1.5.4
Bumps fragment from 1.5.3 to 1.5.4.

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-24 16:30:49 +02:00
dependabot[bot]
baa197a064 Bump mockito-core from 4.8.0 to 4.8.1
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.8.0...v4.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-24 15:51:14 +02:00
dependabot[bot]
8a23a3fe78 Bump glide from 4.14.1 to 4.14.2
Bumps [glide](https://github.com/bumptech/glide) from 4.14.1 to 4.14.2.
- [Release notes](https://github.com/bumptech/glide/releases)
- [Commits](https://github.com/bumptech/glide/compare/v4.14.1...v4.14.2)

---
updated-dependencies:
- dependency-name: com.github.bumptech.glide:glide
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 16:06:27 +02:00
dependabot[bot]
7abf91b989 Bump compiler from 4.14.1 to 4.14.2
Bumps [compiler](https://github.com/bumptech/glide) from 4.14.1 to 4.14.2.
- [Release notes](https://github.com/bumptech/glide/releases)
- [Commits](https://github.com/bumptech/glide/compare/v4.14.1...v4.14.2)

---
updated-dependencies:
- dependency-name: com.github.bumptech.glide:compiler
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 15:40:16 +02:00
dependabot[bot]
1ce4bce7b5 Bump robolectric from 4.8.2 to 4.9
Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.8.2 to 4.9.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](https://github.com/robolectric/robolectric/compare/robolectric-4.8.2...robolectric-4.9)

---
updated-dependencies:
- dependency-name: org.robolectric:robolectric
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 16:43:22 +02:00
dependabot[bot]
82fee3cf10 Bump glide from 4.14.0 to 4.14.1
Bumps [glide](https://github.com/bumptech/glide) from 4.14.0 to 4.14.1.
- [Release notes](https://github.com/bumptech/glide/releases)
- [Commits](https://github.com/bumptech/glide/compare/v4.14.0...v4.14.1)

---
updated-dependencies:
- dependency-name: com.github.bumptech.glide:glide
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-30 20:00:42 +02:00
dependabot[bot]
23aa751ecf Bump compiler from 4.14.0 to 4.14.1
Bumps [compiler](https://github.com/bumptech/glide) from 4.14.0 to 4.14.1.
- [Release notes](https://github.com/bumptech/glide/releases)
- [Commits](https://github.com/bumptech/glide/compare/v4.14.0...v4.14.1)

---
updated-dependencies:
- dependency-name: com.github.bumptech.glide:compiler
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-30 15:26:32 +02:00
dependabot[bot]
6b50152eb3 Bump compiler from 4.13.2 to 4.14.0
Bumps [compiler](https://github.com/bumptech/glide) from 4.13.2 to 4.14.0.
- [Release notes](https://github.com/bumptech/glide/releases)
- [Commits](https://github.com/bumptech/glide/compare/v4.13.2...v4.14.0)

---
updated-dependencies:
- dependency-name: com.github.bumptech.glide:compiler
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-28 15:54:57 +02:00
dependabot[bot]
739db4ae27 Bump glide from 4.13.2 to 4.14.0
Bumps [glide](https://github.com/bumptech/glide) from 4.13.2 to 4.14.0.
- [Release notes](https://github.com/bumptech/glide/releases)
- [Commits](https://github.com/bumptech/glide/compare/v4.13.2...v4.14.0)

---
updated-dependencies:
- dependency-name: com.github.bumptech.glide:glide
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-28 15:28:25 +02:00
dependabot[bot]
92c772ea03 Bump fragment from 1.5.2 to 1.5.3
Bumps fragment from 1.5.2 to 1.5.3.

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-22 15:45:19 +02:00
Stefan Niedermann
f4253f046e Upgrade to AGP 7.3.0
Signed-off-by: Stefan Niedermann <info@niedermann.it>
2022-09-16 10:36:02 +02:00
dependabot[bot]
201859fb2f Bump appcompat from 1.5.0 to 1.5.1
Bumps appcompat from 1.5.0 to 1.5.1.

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-08 16:04:58 +02:00