diff --git a/.travis.yml b/.travis.yml index a3be7b76..2573011b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ android: components: - platform-tools - tools - - build-tools-23.0.2 + - build-tools-23.0.3 - android-23 - sys-img-armeabi-v7a-android-23 branches: diff --git a/build.gradle b/build.gradle index 6483cddb..569b1653 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:1.5.0' + classpath 'com.android.tools.build:gradle:2.1.0' } } @@ -19,7 +19,7 @@ dependencies { android { compileSdkVersion 23 - buildToolsVersion "23.0.2" + buildToolsVersion "23.0.3" sourceSets { main { diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 8c0fb64a..13372aef 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ae7c4dd2..122a0dca 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Mon Jan 19 11:03:11 CET 2015 +#Mon Dec 28 10:00:20 PST 2015 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip diff --git a/sample_client/build.gradle b/sample_client/build.gradle index bd613deb..ab862f2b 100644 --- a/sample_client/build.gradle +++ b/sample_client/build.gradle @@ -10,7 +10,7 @@ dependencies { android { compileSdkVersion 23 - buildToolsVersion "23.0.2" + buildToolsVersion "23.0.3" sourceSets { main { diff --git a/sample_client/gradle/wrapper/gradle-wrapper.jar b/sample_client/gradle/wrapper/gradle-wrapper.jar index 8c0fb64a..13372aef 100644 Binary files a/sample_client/gradle/wrapper/gradle-wrapper.jar and b/sample_client/gradle/wrapper/gradle-wrapper.jar differ diff --git a/sample_client/gradle/wrapper/gradle-wrapper.properties b/sample_client/gradle/wrapper/gradle-wrapper.properties index 0c44860e..122a0dca 100644 --- a/sample_client/gradle/wrapper/gradle-wrapper.properties +++ b/sample_client/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Apr 10 15:27:10 PDT 2013 +#Mon Dec 28 10:00:20 PST 2015 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip diff --git a/src/com/owncloud/android/lib/common/OwnCloudBasicCredentials.java b/src/com/owncloud/android/lib/common/OwnCloudBasicCredentials.java index 02b515d8..ac22441b 100644 --- a/src/com/owncloud/android/lib/common/OwnCloudBasicCredentials.java +++ b/src/com/owncloud/android/lib/common/OwnCloudBasicCredentials.java @@ -47,6 +47,7 @@ public class OwnCloudBasicCredentials implements OwnCloudCredentials { client.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs); client.getParams().setAuthenticationPreemptive(true); + client.getParams().setCredentialCharset(OwnCloudCredentialsFactory.CREDENTIAL_CHARSET); client.getState().setCredentials( AuthScope.ANY, new UsernamePasswordCredentials(mUsername, mPassword) diff --git a/src/com/owncloud/android/lib/common/OwnCloudBearerCredentials.java b/src/com/owncloud/android/lib/common/OwnCloudBearerCredentials.java index c3461e02..36a81d1d 100644 --- a/src/com/owncloud/android/lib/common/OwnCloudBearerCredentials.java +++ b/src/com/owncloud/android/lib/common/OwnCloudBearerCredentials.java @@ -49,6 +49,7 @@ public class OwnCloudBearerCredentials implements OwnCloudCredentials { client.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs); client.getParams().setAuthenticationPreemptive(true); + client.getParams().setCredentialCharset(OwnCloudCredentialsFactory.CREDENTIAL_CHARSET); client.getState().setCredentials( AuthScope.ANY, new BearerCredentials(mAccessToken) diff --git a/src/com/owncloud/android/lib/common/OwnCloudCredentialsFactory.java b/src/com/owncloud/android/lib/common/OwnCloudCredentialsFactory.java index e854fd67..ead7cc8f 100644 --- a/src/com/owncloud/android/lib/common/OwnCloudCredentialsFactory.java +++ b/src/com/owncloud/android/lib/common/OwnCloudCredentialsFactory.java @@ -26,6 +26,8 @@ package com.owncloud.android.lib.common; public class OwnCloudCredentialsFactory { + public static final String CREDENTIAL_CHARSET = "UTF-8"; + private static OwnCloudAnonymousCredentials sAnonymousCredentials; public static OwnCloudCredentials newBasicCredentials(String username, String password) { diff --git a/src/com/owncloud/android/lib/common/OwnCloudSamlSsoCredentials.java b/src/com/owncloud/android/lib/common/OwnCloudSamlSsoCredentials.java index e2d67ee8..f84b78a4 100644 --- a/src/com/owncloud/android/lib/common/OwnCloudSamlSsoCredentials.java +++ b/src/com/owncloud/android/lib/common/OwnCloudSamlSsoCredentials.java @@ -41,6 +41,7 @@ public class OwnCloudSamlSsoCredentials implements OwnCloudCredentials { @Override public void applyTo(OwnCloudClient client) { client.getParams().setAuthenticationPreemptive(false); + client.getParams().setCredentialCharset(OwnCloudCredentialsFactory.CREDENTIAL_CHARSET); client.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY); client.setFollowRedirects(false); diff --git a/src/com/owncloud/android/lib/resources/shares/UpdateRemoteShareOperation.java b/src/com/owncloud/android/lib/resources/shares/UpdateRemoteShareOperation.java index 6f6e0dca..a9c007e7 100644 --- a/src/com/owncloud/android/lib/resources/shares/UpdateRemoteShareOperation.java +++ b/src/com/owncloud/android/lib/resources/shares/UpdateRemoteShareOperation.java @@ -140,9 +140,10 @@ public class UpdateRemoteShareOperation extends RemoteOperation { /** * Enable upload permissions to update in Share resource. * - * @param publicUpload Upload Permission to set to the target share. + * @param publicUpload Upload permission to set to the target share. + * Null results in no update applied to the upload permission. */ - public void setPublicUpload(boolean publicUpload) { + public void setPublicUpload(Boolean publicUpload) { mPublicUpload = publicUpload; } diff --git a/test_client/build.gradle b/test_client/build.gradle index a90d6197..38beb6ae 100644 --- a/test_client/build.gradle +++ b/test_client/build.gradle @@ -1,18 +1,27 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:2.0.0' + } +} + apply plugin: 'com.android.application' + repositories { mavenCentral() } dependencies { compile 'commons-httpclient:commons-httpclient:3.1' - compile 'com.android.support:support-v4:20.0.0' compile project(':') } android { compileSdkVersion 23 - buildToolsVersion "23.0.2" + buildToolsVersion "23.0.3" sourceSets { main { diff --git a/test_client/gradle/wrapper/gradle-wrapper.jar b/test_client/gradle/wrapper/gradle-wrapper.jar index 8c0fb64a..13372aef 100644 Binary files a/test_client/gradle/wrapper/gradle-wrapper.jar and b/test_client/gradle/wrapper/gradle-wrapper.jar differ diff --git a/test_client/gradle/wrapper/gradle-wrapper.properties b/test_client/gradle/wrapper/gradle-wrapper.properties index 0c44860e..122a0dca 100644 --- a/test_client/gradle/wrapper/gradle-wrapper.properties +++ b/test_client/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Apr 10 15:27:10 PDT 2013 +#Mon Dec 28 10:00:20 PST 2015 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip diff --git a/test_client/tests/build.gradle b/test_client/tests/build.gradle index 9b2ec6cb..418efd2d 100644 --- a/test_client/tests/build.gradle +++ b/test_client/tests/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'android' +apply plugin: 'com.android.application' dependencies { compile fileTree(dir: 'libs', include: '*.jar') @@ -7,7 +7,7 @@ dependencies { android { compileSdkVersion 23 - buildToolsVersion "23.0.2" + buildToolsVersion "23.0.3" sourceSets { main {