-
Notifications
You must be signed in to change notification settings - Fork 91
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
Switching to dav4jvm #881
base: master
Are you sure you want to change the base?
Switching to dav4jvm #881
Conversation
@AlvaroBrey if you have a bit of time, any feedback would be great 💙 |
library/src/main/java/com/nextcloud/operations/dav/OkHttpDavMethodBase.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/nextcloud/operations/dav/OkHttpDavMethodBase.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/common/operations/RemoteOperationResult.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/nextcloud/operations/dav/PropFindMethod.kt
Outdated
Show resolved
Hide resolved
8fd7eb3
to
39fcd31
Compare
c674812
to
6549214
Compare
a70b71f
to
48671c8
Compare
48671c8
to
0fe738a
Compare
a0d8ab7
to
d2dc89e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Unused submodule?
library/src/androidTest/java/com/owncloud/android/AbstractIT.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/nextcloud/common/NextcloudAuthenticator.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/common/network/WebdavUtils.java
Outdated
Show resolved
Hide resolved
@@ -253,4 +318,19 @@ public static String getEtagFromResponse(HttpMethod method) { | |||
return result; | |||
} | |||
|
|||
public static void registerCustomFactories() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we're working on a static singleton (PropertyRegistry.INSTANCE
), I guess it would be better to initialize this list in a static
block in order to avoid having to call it explicitly on clients.
OkHttpClient disabledRedirectClient = client.getClient() | ||
.newBuilder() | ||
.followRedirects(false) | ||
.authenticator(new NextcloudAuthenticator(client.getCredentials(), "Authorization")) | ||
.build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's a good idea to create a new OkHttpClient for every request... the NextcloudClient
passed to run
should already be authenticated IMO. Not sure about the redirects or why they are disabled.
if (searchMethod != null) { | ||
searchMethod.releaseConnection(); // let the connection available for other methods | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not seem necessary, as the search method is never called (only used to get the query string)
...ry/src/main/java/com/owncloud/android/lib/resources/files/ToggleFavoriteRemoteOperation.java
Outdated
Show resolved
Hide resolved
...ry/src/main/java/com/owncloud/android/lib/resources/files/ToggleFavoriteRemoteOperation.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/status/OCCapability.kt
Outdated
Show resolved
Hide resolved
a90a4b7
to
074035e
Compare
074035e
to
eaec6d5
Compare
eaec6d5
to
c36189c
Compare
c36189c
to
e8885c3
Compare
5ae2701
to
a684a16
Compare
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
4f7f56d
to
017ae9d
Compare
stable-IT test failed: https://www.kaminsky.me/nc-dev/android-library-integrationTests/3424-IT-stable-15-01/debug/ |
master-IT test failed: https://www.kaminsky.me/nc-dev/android-library-integrationTests/3424-IT-master-15-05/debug/ |
Heavily under construction 🚧
If you have any feedback, please comment :)
Signed-off-by: tobiasKaminsky tobias@kaminsky.me