Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge submodule #4183

Merged
merged 1,608 commits into from
Oct 10, 2023
Merged

Merge submodule #4183

merged 1,608 commits into from
Oct 10, 2023

Conversation

hannesa2
Copy link
Contributor

@hannesa2 hannesa2 commented Oct 9, 2023

Close #3962

  • It simply merged the git submodule into main repo by ignoring the unrelated history
  • I ignored top most files from old submodule (e.g Readme, top build.gradle, check_code_script.sh, .github/*, .editorconfig), because they are pointless now
  • and take usage of new directory

Now you have complete submodule history in main repo
image

as an normal module
image

Please merge it soon to avoid endless maintenance

abelgardep and others added 30 commits November 17, 2021 10:31
Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.5.1 to 4.7.3.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.5.1...robolectric-4.7.3)

---
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>
…ic-robolectric-4.7.3

Bump robolectric from 4.5.1 to 4.7.3
Bumps `moshiVersion` from 1.12.0 to 1.13.0.

Updates `moshi-kotlin` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/square/moshi/releases)
- [Changelog](https://github.com/square/moshi/blob/master/CHANGELOG.md)
- [Commits](square/moshi@moshi-parent-1.12.0...moshi-parent-1.13.0)

Updates `moshi-kotlin-codegen` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/square/moshi/releases)
- [Changelog](https://github.com/square/moshi/blob/master/CHANGELOG.md)
- [Commits](square/moshi@moshi-parent-1.12.0...moshi-parent-1.13.0)

---
updated-dependencies:
- dependency-name: com.squareup.moshi:moshi-kotlin
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.squareup.moshi:moshi-kotlin-codegen
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…1.13.0

Bump moshiVersion from 1.12.0 to 1.13.0
[Feature] Respect capability for Avatar support
Bumps ktlint-gradle from 10.2.0 to 10.2.1.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…uh.gradle-ktlint-gradle-10.2.1

Bump ktlint-gradle from 10.2.0 to 10.2.1
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](actions/checkout@v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
…ns/checkout-3

Bump actions/checkout from 2 to 3
@CLAassistant
Copy link

CLAassistant commented Oct 9, 2023

CLA assistant check
All committers have signed the CLA.

@hannesa2
Copy link
Contributor Author

hannesa2 commented Oct 9, 2023

I pushed to submodule, to show what the branch master-2.2.0
image
is exactly
image is

@hannesa2
Copy link
Contributor Author

hannesa2 commented Oct 9, 2023

It looks like that in the submodule there was no CLA check. This is your issue.

image

@JuancaG05
Copy link
Collaborator

Hi @hannesa2! Thanks for the quick PR in response to the issue!
Don't worry about the license, it was due to a problem we had at the beginning with several users for @manuelplazaspalacio, and we don't have control over that user now so we cannot accept the license. But we can force-merge anyway if it's only that check that doesn't pass.
Just 2 things about this PR:

  1. Be careful with the name of the branch, we follow a convention for branch names that you didn't follow here. You can check it on the CONTRIBUTING.md file. Not necessary to change it for this PR but take it into account for future contributions.
  2. I don't understand very well why by doing what you did, the library files are not located now in a separated project but in the module with the same name inside the same project. I see we have here all the commits we had in the library repo (we'll need to squash them, no sense to add 1600+ commits to master), I don't know if this is the best approach or maybe just moving every file to the app project in 1 commit is enough.

@hannesa2
Copy link
Contributor Author

hannesa2 commented Oct 9, 2023

It's the definition of history. I at least never copy something.
If you want rather squash it, which is more or less at the end a copy, then you can do it for sure.
Doing a copy: feel free to close this.

@hannesa2
Copy link
Contributor Author

hannesa2 commented Oct 9, 2023

I'm not sure if everyone what's to delete the history of the module.
You will never know, why something was done, or who did it.

@hannesa2
Copy link
Contributor Author

hannesa2 commented Oct 9, 2023

On the opposite site, when you squash or copy it, you have to review every line of code 😀

@JuancaG05
Copy link
Collaborator

On the opposite site, when you squash or copy it, you have to review every line of code 😀

Why though? We'll have the same lines to review, no matter if we do a git squash or not, the only difference will be if we keep the history or we don't. Right now in this PR there are 13360 added lines and 29 removed lines, same would happen doing a git squash I guess.

@hannesa2
Copy link
Contributor Author

hannesa2 commented Oct 9, 2023

Why though? We'll have the same lines to review, no matter if we do a git squash or not, the only difference will be if we keep the history or we don't. Right now in this PR there are 13360 added lines and 29 removed lines, same would happen doing a git squash I guess.

No !
My code is untouched, no commit sha1 is changed. Every line is already reviewed. That's the purpose of a history.
My changes are only d9e52ac

@JuancaG05
Copy link
Collaborator

Ok, tomorrow we'll discuss and see if we decide to keep the 1600+ commits with the history or do a git squash 😃, thanks a lot for the contribution!

@jesmrec
Copy link
Collaborator

jesmrec commented Oct 10, 2023

Finally, we have decided to use a squash merge. For sure, both options have pros and cons. Our decision is based in the fact the owncloud-android-library repository is not going to be removed but archived. The commit history will be accesible and we will be able to check it every time is required... it sounds like a double check, but, on the other hand, the master branch of the current repo will be cleaner than containing a stream of more than thousand commits with same aim.

Thanks a lot again @hannesa2 for your engagement!!!

@jesmrec jesmrec merged commit 28a63bd into master Oct 10, 2023
@jesmrec jesmrec deleted the mergeSubmodule branch October 10, 2023 10:35
manuelplazaspalacio added a commit that referenced this pull request Oct 16, 2023
* Bump gradle version to 7.3

* Bump robolectric from 4.5.1 to 4.7.3

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.5.1 to 4.7.3.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.5.1...robolectric-4.7.3)

---
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>

* Bump moshiVersion from 1.12.0 to 1.13.0

Bumps `moshiVersion` from 1.12.0 to 1.13.0.

Updates `moshi-kotlin` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/square/moshi/releases)
- [Changelog](https://github.com/square/moshi/blob/master/CHANGELOG.md)
- [Commits](square/moshi@moshi-parent-1.12.0...moshi-parent-1.13.0)

Updates `moshi-kotlin-codegen` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/square/moshi/releases)
- [Changelog](https://github.com/square/moshi/blob/master/CHANGELOG.md)
- [Commits](square/moshi@moshi-parent-1.12.0...moshi-parent-1.13.0)

---
updated-dependencies:
- dependency-name: com.squareup.moshi:moshi-kotlin
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.squareup.moshi:moshi-kotlin-codegen
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Retrieve new capability to user's avatar.

* Ktlint fixes.

* Bump Gradle for Log4j

https://github.com/gradle/gradle/releases/tag/v7.3.3

* Bump kotlin version to 1.6.10

* Bump ktlint-gradle from 10.2.0 to 10.2.1

Bumps ktlint-gradle from 10.2.0 to 10.2.1.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix lint warnings

* Upgraded versionName and versionNumber

* 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](actions/checkout@v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>

* remove sample client

* add debug interceptor

* fix usage of debug interceptor

* apply code cleanup according to review

* add check_script

* add mit license header to where it was missing

* fix wrongly licensed source files

* Rename the script and function to clarify their purpose

* Bump stetho-okhttp3 from 1.5.1 to 1.6.0

Bumps [stetho-okhttp3](https://github.com/facebook/stetho) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/facebook/stetho/releases)
- [Changelog](https://github.com/facebook/stetho/blob/main/CHANGELOG.md)
- [Commits](facebook/stetho@v1.5.1...v1.6.0)

---
updated-dependencies:
- dependency-name: com.facebook.stetho:stetho-okhttp3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* init connectionvalidator

* debug and add mutex for halding requiests

* remove retrive cookies from middleware

* remove OwnCloudClient factory

* prepare code for the inclusion of connection validator

* create logic scaffold for connection validator get status.php with it

* set max redirect count for owncloud client to 5

* try shifting over to connection validator for updating credentials

intermediate commit

* make initial connection using connection validator work

* make oidc discovery work again

* stop validation process if failing

* make initial check with apm work though connection validator

* update session from APM while running the app

* add update authToken code to connectionValidator

* get access token to update through connection validator

update token

* clean up credentials stuff from owncloudclient

* remove redirect code from owncloudclient use okhttp instead

* update base url in active client after 301 redirect

reduce validation retry count

* remove debug statements

* fix spelling mistakes

* add GetBaseUrlRemoteOperation

* fix lint and compile issues

* apply changes according to review

* Bump target sdk to api 31

* Bump kotlin to 1.6.20

* rename verify_licnese_script to check_code_script

* get okhttp singleton removal changes to compile

* clean up http client

* apply required fixes

* remove redundant intercept of httpclient with httpmethod

* rebase okhttp_signleton fix on top of connection validator

fix token oauth token refresh error

pleasure the linter

* apply requested changes

* remove sample client yet again

* apply requested changes

* Reformat some code

* Bump robolectric from 4.7.3 to 4.8

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.7.3 to 4.8.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.7.3...robolectric-4.8)

---
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>

* Bump robolectric from 4.8 to 4.8.1

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.8 to 4.8.1.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.8...robolectric-4.8.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>

* Bump ktlint-gradle from 10.2.1 to 10.3.0

Bumps ktlint-gradle from 10.2.1 to 10.3.0.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump kotlin version to 1.6.21

* Updated versionCode and versionName

* Java 8 is by default

* Android Arctic Fox

* Fix unexpected end of stream when connecting with server

* Added a new property, so that, we can retrieve the shares within the propfind

* Retrieve the app providers from the capabilities

* Add a new remote operation to retrieve the url to open a file with ocis provider

* Add the open in web to the service facade

* Add a new capability to allow/disallow private links

* Set private link capability to unknown type when it is not retrieved

The CapabilityBooleanType.fromBooleanValue set it to FALSE when the capability is not retrieved. We don't want this for this case. Probably neither for the rest, but changing that now would need deeper testing

* Bump robolectric from 4.8.1 to 4.9

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.8.1 to 4.9.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.8.1...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>

* add moshi classes for webfinger responses

* create scaffold for webfinger request operation

* Add webfinger service and update the remote operation

* Remove unused imports

* Reformat some webfinger classes

* Handle 425 TOO EARLY propfind responses

* Handle 425 when trying to open in web

* Migrate ReadRemoteFolderOperation to kotlin and add it to FileService

* Add owner field to remote file

* Apply CR suggestions

* Migrate CreateRemoteFolderOperation to kotlin

* Include createFolder as file service operation

* Apply code review suggestions

* Transform RemoteFile to kotlin and apply necessary changes

* Map size or length property depending on mimetype

* Apply CR changes

* Migrate DownloadRemoteFileOperation to kotlin

* Add download file to file service

* Create parent folder when downloading a file if possible

* Download file operation will return unit instead of Any

* Apply code review suggestions

* Replace kotlin android extensions with kotlin-parcelize

* Converting RemoveRemoteFileOperation from java to kotlin. Intermediate step to preserve git history.

* Converting RemoveRemoteFileOperation from java to kotlin. Final step.

* Add removeFile to FileService

* Apply code review suggestions

* Migrate MoveRemoteFileOperation to kotlin. First step to keep git history

* Migrate MoveRemoteFileOperation to kotlin. Second step to keep git history

* Add move operation to chunk service

* Add move operation to file service

* Make overwrite option disabled by default for move operations

* Migrate RenameRemoteFileOperation to kotlin. First step to keep git history

* Migrate RenameRemoteFileOperation to kotlin. Second step to keep git history

* Add rename file to FileService

* Remove nullability from a variable

* Apply code review suggestions

* Migrate CopyRemoteFileOperation to kotlin. First step to keep git history

* Migrate CopyRemoteFileOperation to kotlin. Second step to keep git history

* Refactor copy remote file operation. Make overwrite false as default to avoid some potential errors

* Add copy operation to the file service

* Migrate remote upload operation to kotlin

* Use extension to simplify a little bit the code

* Migrate remote chunk upload operation to kotlin

* Delete old java operations. Use the kotlin ones from now on

* Move content uri request body to a new file

* Migrate old request bodies from java to kotlin

* Make requireEtag nullable

* Pleasure the ktlint

* Add transfer listeners to content uri worker

* Return Unit when the upload operation succeeds

* Polish a little bit the code

* Fix an error after rebasing with latest version

* Migrate ReadRemoteFileOperation to kotlin. First step to keep git history

* Migrate ReadRemoteFileOperation to kotlin. Second step to keep git history

* Read remote file function added to the file service

* Retrieve Etag from successful upload

* Increased the chunk size to 10 MB

* Remove legacy owncloud version from the client.

* Remove legacy KEY_OC_VERSION constant

* Fix lint reports

* Do data field not mandatory on ocs response

* Bump several dependencies at the same time

* Bump gradle plugin to 7.3.1 and move package name fro manifest to gradle namespace

* Unsharing wont return anything anymore since result object was not used

* 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](robolectric/robolectric@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>

* Add several logs to try to debug potential errors related to oAuth

* 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](robolectric/robolectric@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>

* Potential fix to oauth error after logging in for first time that makes user to reauthenticate

* Bump ktlint-gradle from 11.0.0 to 11.1.0

Bumps ktlint-gradle from 11.0.0 to 11.1.0.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump kotlin version to 1.8.10

* Bump com.android.tools.build:gradle from 7.4.1 to 7.4.2

Bumps com.android.tools.build:gradle from 7.4.1 to 7.4.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] <support@github.com>

* Show the url in the response http log too

* Save spaces-related capabilities in database

* Added trailing comma

* Create spaces fetch operation and spaces service

* Make quota attribute nullable. Its not mandatory

* Some type changes and renamings

* Fix parsing when space is disabled

* Support shares space

* Update permissions parsing to latest api changes

Supports api renaming from grantedTo to grantedToIdentities on v1.0.1
https://github.com/owncloud/libre-graph-api/releases/tag/v1.0.1

* Adapt the propfind to work with specific webdavurl from the space

* Fix remote path retrieval. Now it depends on webdav url to support spaces

* Allow support to read specific file from a space

* Added create folder operation support for specific space

* Support removal of files from specific space

* Add support for spaces web dav specific urls to the rename operation

* Allow downloads from specific WebDav urls

* Move network operation adapted to spaces

* Adapted copy operation for spaces

* Upload workers and network operations adapted to spaces

* Fix to KtLint report

* Allow retrieval of several instances from webfinger

* Rename WebFinger classes to make them consistent

* Rename files to be the same as the classes they contain

* Rename file to be the same as the class it contains

* Replace kapt with ksp

* Removing quotas from webdav properties in regular propfinds

* Bump target sdk to 33

* Remove permission parsing from spaces. Will be done via WebDav permissions

* Add accept language header to all requests

* Webfinger calls won't follow redirections. Only working with 2XX

* Fix WebfingerResponse tests

* Retrieve the list of available apps to open in web

* Move open in web operations to their proper location

* Pleasure the lint

* Open file in web with a specific app

* Bump org.robolectric:robolectric from 4.9.2 to 4.10

Bumps [org.robolectric:robolectric](https://github.com/robolectric/robolectric) from 4.9.2 to 4.10.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.9.2...robolectric-4.10)

---
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>

* Introduce new error message for ProtocolException

* Create network call to create file via app provider

* Removed publicUpload parameter from public shares creation and update requests

* Update minSdkVersion to 23 (Android 6)

* Remove unnecessary code after upgrading to min SDK 23

* Showing decision dialog when copying file conflict.

* Showing decision dialog when moving file conflict.
Solving errors when copying, replace and keep both.

* Solving CR changes.

* Added variable from local data source

* Removing extra path on check path existence.

* Solving bug when copyin or moving

* Solving bugs when getting file existence.

* Solving bugs when getting file existence in OC10

* New fix for snackbar when copy without server on

* Use new file location

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Abel García de Prada <agdeprada@izertis.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fernando Sanz <fsanz@izertis.com>
Co-authored-by: Christian Schabesberger <chris.schabesberger@mailbox.org>
Co-authored-by: Jesús Recio <jrecio@solidgear.es>
Co-authored-by: Jesús Recio <jrecio@izertis.com>
Co-authored-by: Juan Carlos Garrote <juanca_arrabal@hotmail.com>
Co-authored-by: agarcia <agarcia@solidgeargroup.com>
Co-authored-by: Juan Carlos Garrote <57049315+JuancaG05@users.noreply.github.com>
Co-authored-by: Manuel Plazas Palacio <mplazas@izertis.com>
Co-authored-by: Manuel Plazas Palacio <manuelplazaspalacio@gmail.com>
Co-authored-by: Aitorbp <aitor.ballesteros.pavon@gmail.com>
Co-authored-by: Aitorbp <34248951+Aitorbp@users.noreply.github.com>
jesmrec added a commit that referenced this pull request Oct 20, 2023
* Bump gradle version to 7.3

* Bump robolectric from 4.5.1 to 4.7.3

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.5.1 to 4.7.3.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.5.1...robolectric-4.7.3)

---
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>

* Bump moshiVersion from 1.12.0 to 1.13.0

Bumps `moshiVersion` from 1.12.0 to 1.13.0.

Updates `moshi-kotlin` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/square/moshi/releases)
- [Changelog](https://github.com/square/moshi/blob/master/CHANGELOG.md)
- [Commits](square/moshi@moshi-parent-1.12.0...moshi-parent-1.13.0)

Updates `moshi-kotlin-codegen` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/square/moshi/releases)
- [Changelog](https://github.com/square/moshi/blob/master/CHANGELOG.md)
- [Commits](square/moshi@moshi-parent-1.12.0...moshi-parent-1.13.0)

---
updated-dependencies:
- dependency-name: com.squareup.moshi:moshi-kotlin
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.squareup.moshi:moshi-kotlin-codegen
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Retrieve new capability to user's avatar.

* Ktlint fixes.

* Bump Gradle for Log4j

https://github.com/gradle/gradle/releases/tag/v7.3.3

* Bump kotlin version to 1.6.10

* Bump ktlint-gradle from 10.2.0 to 10.2.1

Bumps ktlint-gradle from 10.2.0 to 10.2.1.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix lint warnings

* Upgraded versionName and versionNumber

* 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](actions/checkout@v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>

* remove sample client

* add debug interceptor

* fix usage of debug interceptor

* apply code cleanup according to review

* add check_script

* add mit license header to where it was missing

* fix wrongly licensed source files

* Rename the script and function to clarify their purpose

* Bump stetho-okhttp3 from 1.5.1 to 1.6.0

Bumps [stetho-okhttp3](https://github.com/facebook/stetho) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/facebook/stetho/releases)
- [Changelog](https://github.com/facebook/stetho/blob/main/CHANGELOG.md)
- [Commits](facebook/stetho@v1.5.1...v1.6.0)

---
updated-dependencies:
- dependency-name: com.facebook.stetho:stetho-okhttp3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* init connectionvalidator

* debug and add mutex for halding requiests

* remove retrive cookies from middleware

* remove OwnCloudClient factory

* prepare code for the inclusion of connection validator

* create logic scaffold for connection validator get status.php with it

* set max redirect count for owncloud client to 5

* try shifting over to connection validator for updating credentials

intermediate commit

* make initial connection using connection validator work

* make oidc discovery work again

* stop validation process if failing

* make initial check with apm work though connection validator

* update session from APM while running the app

* add update authToken code to connectionValidator

* get access token to update through connection validator

update token

* clean up credentials stuff from owncloudclient

* remove redirect code from owncloudclient use okhttp instead

* update base url in active client after 301 redirect

reduce validation retry count

* remove debug statements

* fix spelling mistakes

* add GetBaseUrlRemoteOperation

* fix lint and compile issues

* apply changes according to review

* Bump target sdk to api 31

* Bump kotlin to 1.6.20

* rename verify_licnese_script to check_code_script

* get okhttp singleton removal changes to compile

* clean up http client

* apply required fixes

* remove redundant intercept of httpclient with httpmethod

* rebase okhttp_signleton fix on top of connection validator

fix token oauth token refresh error

pleasure the linter

* apply requested changes

* remove sample client yet again

* apply requested changes

* Reformat some code

* Bump robolectric from 4.7.3 to 4.8

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.7.3 to 4.8.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.7.3...robolectric-4.8)

---
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>

* Bump robolectric from 4.8 to 4.8.1

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.8 to 4.8.1.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.8...robolectric-4.8.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>

* Bump ktlint-gradle from 10.2.1 to 10.3.0

Bumps ktlint-gradle from 10.2.1 to 10.3.0.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump kotlin version to 1.6.21

* Updated versionCode and versionName

* Java 8 is by default

* Android Arctic Fox

* Fix unexpected end of stream when connecting with server

* Added a new property, so that, we can retrieve the shares within the propfind

* Retrieve the app providers from the capabilities

* Add a new remote operation to retrieve the url to open a file with ocis provider

* Add the open in web to the service facade

* Add a new capability to allow/disallow private links

* Set private link capability to unknown type when it is not retrieved

The CapabilityBooleanType.fromBooleanValue set it to FALSE when the capability is not retrieved. We don't want this for this case. Probably neither for the rest, but changing that now would need deeper testing

* Bump robolectric from 4.8.1 to 4.9

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.8.1 to 4.9.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.8.1...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>

* add moshi classes for webfinger responses

* create scaffold for webfinger request operation

* Add webfinger service and update the remote operation

* Remove unused imports

* Reformat some webfinger classes

* Handle 425 TOO EARLY propfind responses

* Handle 425 when trying to open in web

* Migrate ReadRemoteFolderOperation to kotlin and add it to FileService

* Add owner field to remote file

* Apply CR suggestions

* Migrate CreateRemoteFolderOperation to kotlin

* Include createFolder as file service operation

* Apply code review suggestions

* Transform RemoteFile to kotlin and apply necessary changes

* Map size or length property depending on mimetype

* Apply CR changes

* Migrate DownloadRemoteFileOperation to kotlin

* Add download file to file service

* Create parent folder when downloading a file if possible

* Download file operation will return unit instead of Any

* Apply code review suggestions

* Replace kotlin android extensions with kotlin-parcelize

* Converting RemoveRemoteFileOperation from java to kotlin. Intermediate step to preserve git history.

* Converting RemoveRemoteFileOperation from java to kotlin. Final step.

* Add removeFile to FileService

* Apply code review suggestions

* Migrate MoveRemoteFileOperation to kotlin. First step to keep git history

* Migrate MoveRemoteFileOperation to kotlin. Second step to keep git history

* Add move operation to chunk service

* Add move operation to file service

* Make overwrite option disabled by default for move operations

* Migrate RenameRemoteFileOperation to kotlin. First step to keep git history

* Migrate RenameRemoteFileOperation to kotlin. Second step to keep git history

* Add rename file to FileService

* Remove nullability from a variable

* Apply code review suggestions

* Migrate CopyRemoteFileOperation to kotlin. First step to keep git history

* Migrate CopyRemoteFileOperation to kotlin. Second step to keep git history

* Refactor copy remote file operation. Make overwrite false as default to avoid some potential errors

* Add copy operation to the file service

* Migrate remote upload operation to kotlin

* Use extension to simplify a little bit the code

* Migrate remote chunk upload operation to kotlin

* Delete old java operations. Use the kotlin ones from now on

* Move content uri request body to a new file

* Migrate old request bodies from java to kotlin

* Make requireEtag nullable

* Pleasure the ktlint

* Add transfer listeners to content uri worker

* Return Unit when the upload operation succeeds

* Polish a little bit the code

* Fix an error after rebasing with latest version

* Migrate ReadRemoteFileOperation to kotlin. First step to keep git history

* Migrate ReadRemoteFileOperation to kotlin. Second step to keep git history

* Read remote file function added to the file service

* Retrieve Etag from successful upload

* Increased the chunk size to 10 MB

* Remove legacy owncloud version from the client.

* Remove legacy KEY_OC_VERSION constant

* Fix lint reports

* Do data field not mandatory on ocs response

* Bump several dependencies at the same time

* Bump gradle plugin to 7.3.1 and move package name fro manifest to gradle namespace

* Unsharing wont return anything anymore since result object was not used

* 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](robolectric/robolectric@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>

* Add several logs to try to debug potential errors related to oAuth

* 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](robolectric/robolectric@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>

* Potential fix to oauth error after logging in for first time that makes user to reauthenticate

* Bump ktlint-gradle from 11.0.0 to 11.1.0

Bumps ktlint-gradle from 11.0.0 to 11.1.0.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump kotlin version to 1.8.10

* Bump com.android.tools.build:gradle from 7.4.1 to 7.4.2

Bumps com.android.tools.build:gradle from 7.4.1 to 7.4.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] <support@github.com>

* Show the url in the response http log too

* Save spaces-related capabilities in database

* Added trailing comma

* Create spaces fetch operation and spaces service

* Make quota attribute nullable. Its not mandatory

* Some type changes and renamings

* Fix parsing when space is disabled

* Support shares space

* Update permissions parsing to latest api changes

Supports api renaming from grantedTo to grantedToIdentities on v1.0.1
https://github.com/owncloud/libre-graph-api/releases/tag/v1.0.1

* Adapt the propfind to work with specific webdavurl from the space

* Fix remote path retrieval. Now it depends on webdav url to support spaces

* Allow support to read specific file from a space

* Added create folder operation support for specific space

* Support removal of files from specific space

* Add support for spaces web dav specific urls to the rename operation

* Allow downloads from specific WebDav urls

* Move network operation adapted to spaces

* Adapted copy operation for spaces

* Upload workers and network operations adapted to spaces

* Fix to KtLint report

* Allow retrieval of several instances from webfinger

* Rename WebFinger classes to make them consistent

* Rename files to be the same as the classes they contain

* Rename file to be the same as the class it contains

* Replace kapt with ksp

* Removing quotas from webdav properties in regular propfinds

* Bump target sdk to 33

* Remove permission parsing from spaces. Will be done via WebDav permissions

* Add accept language header to all requests

* Webfinger calls won't follow redirections. Only working with 2XX

* Fix WebfingerResponse tests

* Retrieve the list of available apps to open in web

* Move open in web operations to their proper location

* Pleasure the lint

* Open file in web with a specific app

* Bump org.robolectric:robolectric from 4.9.2 to 4.10

Bumps [org.robolectric:robolectric](https://github.com/robolectric/robolectric) from 4.9.2 to 4.10.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.9.2...robolectric-4.10)

---
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>

* Introduce new error message for ProtocolException

* Create network call to create file via app provider

* Removed publicUpload parameter from public shares creation and update requests

* Update minSdkVersion to 23 (Android 6)

* Remove unnecessary code after upgrading to min SDK 23

* Showing decision dialog when copying file conflict.

* Showing decision dialog when moving file conflict.
Solving errors when copying, replace and keep both.

* Solving CR changes.

* Added variable from local data source

* Removing extra path on check path existence.

* Solving bug when copyin or moving

* Solving bugs when getting file existence.

* Solving bugs when getting file existence in OC10

* New fix for snackbar when copy without server on

* Use new file location

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Abel García de Prada <agdeprada@izertis.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fernando Sanz <fsanz@izertis.com>
Co-authored-by: Christian Schabesberger <chris.schabesberger@mailbox.org>
Co-authored-by: Jesús Recio <jrecio@solidgear.es>
Co-authored-by: Jesús Recio <jrecio@izertis.com>
Co-authored-by: Juan Carlos Garrote <juanca_arrabal@hotmail.com>
Co-authored-by: agarcia <agarcia@solidgeargroup.com>
Co-authored-by: Juan Carlos Garrote <57049315+JuancaG05@users.noreply.github.com>
Co-authored-by: Manuel Plazas Palacio <mplazas@izertis.com>
Co-authored-by: Manuel Plazas Palacio <manuelplazaspalacio@gmail.com>
Co-authored-by: Aitorbp <aitor.ballesteros.pavon@gmail.com>
Co-authored-by: Aitorbp <34248951+Aitorbp@users.noreply.github.com>
Aitorbp added a commit that referenced this pull request Feb 5, 2024
* Bump gradle version to 7.3

* Bump robolectric from 4.5.1 to 4.7.3

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.5.1 to 4.7.3.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.5.1...robolectric-4.7.3)

---
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>

* Bump moshiVersion from 1.12.0 to 1.13.0

Bumps `moshiVersion` from 1.12.0 to 1.13.0.

Updates `moshi-kotlin` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/square/moshi/releases)
- [Changelog](https://github.com/square/moshi/blob/master/CHANGELOG.md)
- [Commits](square/moshi@moshi-parent-1.12.0...moshi-parent-1.13.0)

Updates `moshi-kotlin-codegen` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/square/moshi/releases)
- [Changelog](https://github.com/square/moshi/blob/master/CHANGELOG.md)
- [Commits](square/moshi@moshi-parent-1.12.0...moshi-parent-1.13.0)

---
updated-dependencies:
- dependency-name: com.squareup.moshi:moshi-kotlin
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.squareup.moshi:moshi-kotlin-codegen
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Retrieve new capability to user's avatar.

* Ktlint fixes.

* Bump Gradle for Log4j

https://github.com/gradle/gradle/releases/tag/v7.3.3

* Bump kotlin version to 1.6.10

* Bump ktlint-gradle from 10.2.0 to 10.2.1

Bumps ktlint-gradle from 10.2.0 to 10.2.1.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix lint warnings

* Upgraded versionName and versionNumber

* 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](actions/checkout@v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>

* remove sample client

* add debug interceptor

* fix usage of debug interceptor

* apply code cleanup according to review

* add check_script

* add mit license header to where it was missing

* fix wrongly licensed source files

* Rename the script and function to clarify their purpose

* Bump stetho-okhttp3 from 1.5.1 to 1.6.0

Bumps [stetho-okhttp3](https://github.com/facebook/stetho) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/facebook/stetho/releases)
- [Changelog](https://github.com/facebook/stetho/blob/main/CHANGELOG.md)
- [Commits](facebook/stetho@v1.5.1...v1.6.0)

---
updated-dependencies:
- dependency-name: com.facebook.stetho:stetho-okhttp3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* init connectionvalidator

* debug and add mutex for halding requiests

* remove retrive cookies from middleware

* remove OwnCloudClient factory

* prepare code for the inclusion of connection validator

* create logic scaffold for connection validator get status.php with it

* set max redirect count for owncloud client to 5

* try shifting over to connection validator for updating credentials

intermediate commit

* make initial connection using connection validator work

* make oidc discovery work again

* stop validation process if failing

* make initial check with apm work though connection validator

* update session from APM while running the app

* add update authToken code to connectionValidator

* get access token to update through connection validator

update token

* clean up credentials stuff from owncloudclient

* remove redirect code from owncloudclient use okhttp instead

* update base url in active client after 301 redirect

reduce validation retry count

* remove debug statements

* fix spelling mistakes

* add GetBaseUrlRemoteOperation

* fix lint and compile issues

* apply changes according to review

* Bump target sdk to api 31

* Bump kotlin to 1.6.20

* rename verify_licnese_script to check_code_script

* get okhttp singleton removal changes to compile

* clean up http client

* apply required fixes

* remove redundant intercept of httpclient with httpmethod

* rebase okhttp_signleton fix on top of connection validator

fix token oauth token refresh error

pleasure the linter

* apply requested changes

* remove sample client yet again

* apply requested changes

* Reformat some code

* Bump robolectric from 4.7.3 to 4.8

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.7.3 to 4.8.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.7.3...robolectric-4.8)

---
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>

* Bump robolectric from 4.8 to 4.8.1

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.8 to 4.8.1.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.8...robolectric-4.8.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>

* Bump ktlint-gradle from 10.2.1 to 10.3.0

Bumps ktlint-gradle from 10.2.1 to 10.3.0.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump kotlin version to 1.6.21

* Updated versionCode and versionName

* Java 8 is by default

* Android Arctic Fox

* Fix unexpected end of stream when connecting with server

* Added a new property, so that, we can retrieve the shares within the propfind

* Retrieve the app providers from the capabilities

* Add a new remote operation to retrieve the url to open a file with ocis provider

* Add the open in web to the service facade

* Add a new capability to allow/disallow private links

* Set private link capability to unknown type when it is not retrieved

The CapabilityBooleanType.fromBooleanValue set it to FALSE when the capability is not retrieved. We don't want this for this case. Probably neither for the rest, but changing that now would need deeper testing

* Bump robolectric from 4.8.1 to 4.9

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.8.1 to 4.9.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.8.1...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>

* add moshi classes for webfinger responses

* create scaffold for webfinger request operation

* Add webfinger service and update the remote operation

* Remove unused imports

* Reformat some webfinger classes

* Handle 425 TOO EARLY propfind responses

* Handle 425 when trying to open in web

* Migrate ReadRemoteFolderOperation to kotlin and add it to FileService

* Add owner field to remote file

* Apply CR suggestions

* Migrate CreateRemoteFolderOperation to kotlin

* Include createFolder as file service operation

* Apply code review suggestions

* Transform RemoteFile to kotlin and apply necessary changes

* Map size or length property depending on mimetype

* Apply CR changes

* Migrate DownloadRemoteFileOperation to kotlin

* Add download file to file service

* Create parent folder when downloading a file if possible

* Download file operation will return unit instead of Any

* Apply code review suggestions

* Replace kotlin android extensions with kotlin-parcelize

* Converting RemoveRemoteFileOperation from java to kotlin. Intermediate step to preserve git history.

* Converting RemoveRemoteFileOperation from java to kotlin. Final step.

* Add removeFile to FileService

* Apply code review suggestions

* Migrate MoveRemoteFileOperation to kotlin. First step to keep git history

* Migrate MoveRemoteFileOperation to kotlin. Second step to keep git history

* Add move operation to chunk service

* Add move operation to file service

* Make overwrite option disabled by default for move operations

* Migrate RenameRemoteFileOperation to kotlin. First step to keep git history

* Migrate RenameRemoteFileOperation to kotlin. Second step to keep git history

* Add rename file to FileService

* Remove nullability from a variable

* Apply code review suggestions

* Migrate CopyRemoteFileOperation to kotlin. First step to keep git history

* Migrate CopyRemoteFileOperation to kotlin. Second step to keep git history

* Refactor copy remote file operation. Make overwrite false as default to avoid some potential errors

* Add copy operation to the file service

* Migrate remote upload operation to kotlin

* Use extension to simplify a little bit the code

* Migrate remote chunk upload operation to kotlin

* Delete old java operations. Use the kotlin ones from now on

* Move content uri request body to a new file

* Migrate old request bodies from java to kotlin

* Make requireEtag nullable

* Pleasure the ktlint

* Add transfer listeners to content uri worker

* Return Unit when the upload operation succeeds

* Polish a little bit the code

* Fix an error after rebasing with latest version

* Migrate ReadRemoteFileOperation to kotlin. First step to keep git history

* Migrate ReadRemoteFileOperation to kotlin. Second step to keep git history

* Read remote file function added to the file service

* Retrieve Etag from successful upload

* Increased the chunk size to 10 MB

* Remove legacy owncloud version from the client.

* Remove legacy KEY_OC_VERSION constant

* Fix lint reports

* Do data field not mandatory on ocs response

* Bump several dependencies at the same time

* Bump gradle plugin to 7.3.1 and move package name fro manifest to gradle namespace

* Unsharing wont return anything anymore since result object was not used

* 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](robolectric/robolectric@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>

* Add several logs to try to debug potential errors related to oAuth

* 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](robolectric/robolectric@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>

* Potential fix to oauth error after logging in for first time that makes user to reauthenticate

* Bump ktlint-gradle from 11.0.0 to 11.1.0

Bumps ktlint-gradle from 11.0.0 to 11.1.0.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump kotlin version to 1.8.10

* Bump com.android.tools.build:gradle from 7.4.1 to 7.4.2

Bumps com.android.tools.build:gradle from 7.4.1 to 7.4.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] <support@github.com>

* Show the url in the response http log too

* Save spaces-related capabilities in database

* Added trailing comma

* Create spaces fetch operation and spaces service

* Make quota attribute nullable. Its not mandatory

* Some type changes and renamings

* Fix parsing when space is disabled

* Support shares space

* Update permissions parsing to latest api changes

Supports api renaming from grantedTo to grantedToIdentities on v1.0.1
https://github.com/owncloud/libre-graph-api/releases/tag/v1.0.1

* Adapt the propfind to work with specific webdavurl from the space

* Fix remote path retrieval. Now it depends on webdav url to support spaces

* Allow support to read specific file from a space

* Added create folder operation support for specific space

* Support removal of files from specific space

* Add support for spaces web dav specific urls to the rename operation

* Allow downloads from specific WebDav urls

* Move network operation adapted to spaces

* Adapted copy operation for spaces

* Upload workers and network operations adapted to spaces

* Fix to KtLint report

* Allow retrieval of several instances from webfinger

* Rename WebFinger classes to make them consistent

* Rename files to be the same as the classes they contain

* Rename file to be the same as the class it contains

* Replace kapt with ksp

* Removing quotas from webdav properties in regular propfinds

* Bump target sdk to 33

* Remove permission parsing from spaces. Will be done via WebDav permissions

* Add accept language header to all requests

* Webfinger calls won't follow redirections. Only working with 2XX

* Fix WebfingerResponse tests

* Retrieve the list of available apps to open in web

* Move open in web operations to their proper location

* Pleasure the lint

* Open file in web with a specific app

* Bump org.robolectric:robolectric from 4.9.2 to 4.10

Bumps [org.robolectric:robolectric](https://github.com/robolectric/robolectric) from 4.9.2 to 4.10.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.9.2...robolectric-4.10)

---
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>

* Introduce new error message for ProtocolException

* Create network call to create file via app provider

* Removed publicUpload parameter from public shares creation and update requests

* Update minSdkVersion to 23 (Android 6)

* Remove unnecessary code after upgrading to min SDK 23

* Showing decision dialog when copying file conflict.

* Showing decision dialog when moving file conflict.
Solving errors when copying, replace and keep both.

* Solving CR changes.

* Added variable from local data source

* Removing extra path on check path existence.

* Solving bug when copyin or moving

* Solving bugs when getting file existence.

* Solving bugs when getting file existence in OC10

* New fix for snackbar when copy without server on

* Use new file location

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Abel García de Prada <agdeprada@izertis.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fernando Sanz <fsanz@izertis.com>
Co-authored-by: Christian Schabesberger <chris.schabesberger@mailbox.org>
Co-authored-by: Jesús Recio <jrecio@solidgear.es>
Co-authored-by: Jesús Recio <jrecio@izertis.com>
Co-authored-by: Juan Carlos Garrote <juanca_arrabal@hotmail.com>
Co-authored-by: agarcia <agarcia@solidgeargroup.com>
Co-authored-by: Juan Carlos Garrote <57049315+JuancaG05@users.noreply.github.com>
Co-authored-by: Manuel Plazas Palacio <mplazas@izertis.com>
Co-authored-by: Manuel Plazas Palacio <manuelplazaspalacio@gmail.com>
Co-authored-by: Aitorbp <aitor.ballesteros.pavon@gmail.com>
Co-authored-by: Aitorbp <34248951+Aitorbp@users.noreply.github.com>
@jesmrec jesmrec mentioned this pull request Feb 7, 2024
3 tasks
Aitorbp added a commit that referenced this pull request Feb 13, 2024
* Bump gradle version to 7.3

* Bump robolectric from 4.5.1 to 4.7.3

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.5.1 to 4.7.3.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.5.1...robolectric-4.7.3)

---
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>

* Bump moshiVersion from 1.12.0 to 1.13.0

Bumps `moshiVersion` from 1.12.0 to 1.13.0.

Updates `moshi-kotlin` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/square/moshi/releases)
- [Changelog](https://github.com/square/moshi/blob/master/CHANGELOG.md)
- [Commits](square/moshi@moshi-parent-1.12.0...moshi-parent-1.13.0)

Updates `moshi-kotlin-codegen` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/square/moshi/releases)
- [Changelog](https://github.com/square/moshi/blob/master/CHANGELOG.md)
- [Commits](square/moshi@moshi-parent-1.12.0...moshi-parent-1.13.0)

---
updated-dependencies:
- dependency-name: com.squareup.moshi:moshi-kotlin
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.squareup.moshi:moshi-kotlin-codegen
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Retrieve new capability to user's avatar.

* Ktlint fixes.

* Bump Gradle for Log4j

https://github.com/gradle/gradle/releases/tag/v7.3.3

* Bump kotlin version to 1.6.10

* Bump ktlint-gradle from 10.2.0 to 10.2.1

Bumps ktlint-gradle from 10.2.0 to 10.2.1.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix lint warnings

* Upgraded versionName and versionNumber

* 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](actions/checkout@v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>

* remove sample client

* add debug interceptor

* fix usage of debug interceptor

* apply code cleanup according to review

* add check_script

* add mit license header to where it was missing

* fix wrongly licensed source files

* Rename the script and function to clarify their purpose

* Bump stetho-okhttp3 from 1.5.1 to 1.6.0

Bumps [stetho-okhttp3](https://github.com/facebook/stetho) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/facebook/stetho/releases)
- [Changelog](https://github.com/facebook/stetho/blob/main/CHANGELOG.md)
- [Commits](facebook/stetho@v1.5.1...v1.6.0)

---
updated-dependencies:
- dependency-name: com.facebook.stetho:stetho-okhttp3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* init connectionvalidator

* debug and add mutex for halding requiests

* remove retrive cookies from middleware

* remove OwnCloudClient factory

* prepare code for the inclusion of connection validator

* create logic scaffold for connection validator get status.php with it

* set max redirect count for owncloud client to 5

* try shifting over to connection validator for updating credentials

intermediate commit

* make initial connection using connection validator work

* make oidc discovery work again

* stop validation process if failing

* make initial check with apm work though connection validator

* update session from APM while running the app

* add update authToken code to connectionValidator

* get access token to update through connection validator

update token

* clean up credentials stuff from owncloudclient

* remove redirect code from owncloudclient use okhttp instead

* update base url in active client after 301 redirect

reduce validation retry count

* remove debug statements

* fix spelling mistakes

* add GetBaseUrlRemoteOperation

* fix lint and compile issues

* apply changes according to review

* Bump target sdk to api 31

* Bump kotlin to 1.6.20

* rename verify_licnese_script to check_code_script

* get okhttp singleton removal changes to compile

* clean up http client

* apply required fixes

* remove redundant intercept of httpclient with httpmethod

* rebase okhttp_signleton fix on top of connection validator

fix token oauth token refresh error

pleasure the linter

* apply requested changes

* remove sample client yet again

* apply requested changes

* Reformat some code

* Bump robolectric from 4.7.3 to 4.8

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.7.3 to 4.8.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.7.3...robolectric-4.8)

---
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>

* Bump robolectric from 4.8 to 4.8.1

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.8 to 4.8.1.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.8...robolectric-4.8.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>

* Bump ktlint-gradle from 10.2.1 to 10.3.0

Bumps ktlint-gradle from 10.2.1 to 10.3.0.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump kotlin version to 1.6.21

* Updated versionCode and versionName

* Java 8 is by default

* Android Arctic Fox

* Fix unexpected end of stream when connecting with server

* Added a new property, so that, we can retrieve the shares within the propfind

* Retrieve the app providers from the capabilities

* Add a new remote operation to retrieve the url to open a file with ocis provider

* Add the open in web to the service facade

* Add a new capability to allow/disallow private links

* Set private link capability to unknown type when it is not retrieved

The CapabilityBooleanType.fromBooleanValue set it to FALSE when the capability is not retrieved. We don't want this for this case. Probably neither for the rest, but changing that now would need deeper testing

* Bump robolectric from 4.8.1 to 4.9

Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.8.1 to 4.9.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.8.1...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>

* add moshi classes for webfinger responses

* create scaffold for webfinger request operation

* Add webfinger service and update the remote operation

* Remove unused imports

* Reformat some webfinger classes

* Handle 425 TOO EARLY propfind responses

* Handle 425 when trying to open in web

* Migrate ReadRemoteFolderOperation to kotlin and add it to FileService

* Add owner field to remote file

* Apply CR suggestions

* Migrate CreateRemoteFolderOperation to kotlin

* Include createFolder as file service operation

* Apply code review suggestions

* Transform RemoteFile to kotlin and apply necessary changes

* Map size or length property depending on mimetype

* Apply CR changes

* Migrate DownloadRemoteFileOperation to kotlin

* Add download file to file service

* Create parent folder when downloading a file if possible

* Download file operation will return unit instead of Any

* Apply code review suggestions

* Replace kotlin android extensions with kotlin-parcelize

* Converting RemoveRemoteFileOperation from java to kotlin. Intermediate step to preserve git history.

* Converting RemoveRemoteFileOperation from java to kotlin. Final step.

* Add removeFile to FileService

* Apply code review suggestions

* Migrate MoveRemoteFileOperation to kotlin. First step to keep git history

* Migrate MoveRemoteFileOperation to kotlin. Second step to keep git history

* Add move operation to chunk service

* Add move operation to file service

* Make overwrite option disabled by default for move operations

* Migrate RenameRemoteFileOperation to kotlin. First step to keep git history

* Migrate RenameRemoteFileOperation to kotlin. Second step to keep git history

* Add rename file to FileService

* Remove nullability from a variable

* Apply code review suggestions

* Migrate CopyRemoteFileOperation to kotlin. First step to keep git history

* Migrate CopyRemoteFileOperation to kotlin. Second step to keep git history

* Refactor copy remote file operation. Make overwrite false as default to avoid some potential errors

* Add copy operation to the file service

* Migrate remote upload operation to kotlin

* Use extension to simplify a little bit the code

* Migrate remote chunk upload operation to kotlin

* Delete old java operations. Use the kotlin ones from now on

* Move content uri request body to a new file

* Migrate old request bodies from java to kotlin

* Make requireEtag nullable

* Pleasure the ktlint

* Add transfer listeners to content uri worker

* Return Unit when the upload operation succeeds

* Polish a little bit the code

* Fix an error after rebasing with latest version

* Migrate ReadRemoteFileOperation to kotlin. First step to keep git history

* Migrate ReadRemoteFileOperation to kotlin. Second step to keep git history

* Read remote file function added to the file service

* Retrieve Etag from successful upload

* Increased the chunk size to 10 MB

* Remove legacy owncloud version from the client.

* Remove legacy KEY_OC_VERSION constant

* Fix lint reports

* Do data field not mandatory on ocs response

* Bump several dependencies at the same time

* Bump gradle plugin to 7.3.1 and move package name fro manifest to gradle namespace

* Unsharing wont return anything anymore since result object was not used

* 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](robolectric/robolectric@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>

* Add several logs to try to debug potential errors related to oAuth

* 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](robolectric/robolectric@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>

* Potential fix to oauth error after logging in for first time that makes user to reauthenticate

* Bump ktlint-gradle from 11.0.0 to 11.1.0

Bumps ktlint-gradle from 11.0.0 to 11.1.0.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump kotlin version to 1.8.10

* Bump com.android.tools.build:gradle from 7.4.1 to 7.4.2

Bumps com.android.tools.build:gradle from 7.4.1 to 7.4.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] <support@github.com>

* Show the url in the response http log too

* Save spaces-related capabilities in database

* Added trailing comma

* Create spaces fetch operation and spaces service

* Make quota attribute nullable. Its not mandatory

* Some type changes and renamings

* Fix parsing when space is disabled

* Support shares space

* Update permissions parsing to latest api changes

Supports api renaming from grantedTo to grantedToIdentities on v1.0.1
https://github.com/owncloud/libre-graph-api/releases/tag/v1.0.1

* Adapt the propfind to work with specific webdavurl from the space

* Fix remote path retrieval. Now it depends on webdav url to support spaces

* Allow support to read specific file from a space

* Added create folder operation support for specific space

* Support removal of files from specific space

* Add support for spaces web dav specific urls to the rename operation

* Allow downloads from specific WebDav urls

* Move network operation adapted to spaces

* Adapted copy operation for spaces

* Upload workers and network operations adapted to spaces

* Fix to KtLint report

* Allow retrieval of several instances from webfinger

* Rename WebFinger classes to make them consistent

* Rename files to be the same as the classes they contain

* Rename file to be the same as the class it contains

* Replace kapt with ksp

* Removing quotas from webdav properties in regular propfinds

* Bump target sdk to 33

* Remove permission parsing from spaces. Will be done via WebDav permissions

* Add accept language header to all requests

* Webfinger calls won't follow redirections. Only working with 2XX

* Fix WebfingerResponse tests

* Retrieve the list of available apps to open in web

* Move open in web operations to their proper location

* Pleasure the lint

* Open file in web with a specific app

* Bump org.robolectric:robolectric from 4.9.2 to 4.10

Bumps [org.robolectric:robolectric](https://github.com/robolectric/robolectric) from 4.9.2 to 4.10.
- [Release notes](https://github.com/robolectric/robolectric/releases)
- [Commits](robolectric/robolectric@robolectric-4.9.2...robolectric-4.10)

---
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>

* Introduce new error message for ProtocolException

* Create network call to create file via app provider

* Removed publicUpload parameter from public shares creation and update requests

* Update minSdkVersion to 23 (Android 6)

* Remove unnecessary code after upgrading to min SDK 23

* Showing decision dialog when copying file conflict.

* Showing decision dialog when moving file conflict.
Solving errors when copying, replace and keep both.

* Solving CR changes.

* Added variable from local data source

* Removing extra path on check path existence.

* Solving bug when copyin or moving

* Solving bugs when getting file existence.

* Solving bugs when getting file existence in OC10

* New fix for snackbar when copy without server on

* Use new file location

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Abel García de Prada <agdeprada@izertis.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fernando Sanz <fsanz@izertis.com>
Co-authored-by: Christian Schabesberger <chris.schabesberger@mailbox.org>
Co-authored-by: Jesús Recio <jrecio@solidgear.es>
Co-authored-by: Jesús Recio <jrecio@izertis.com>
Co-authored-by: Juan Carlos Garrote <juanca_arrabal@hotmail.com>
Co-authored-by: agarcia <agarcia@solidgeargroup.com>
Co-authored-by: Juan Carlos Garrote <57049315+JuancaG05@users.noreply.github.com>
Co-authored-by: Manuel Plazas Palacio <mplazas@izertis.com>
Co-authored-by: Manuel Plazas Palacio <manuelplazaspalacio@gmail.com>
Co-authored-by: Aitorbp <aitor.ballesteros.pavon@gmail.com>
Co-authored-by: Aitorbp <34248951+Aitorbp@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce owncloud-library as module
9 participants