diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 36c89370..81b9494e 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -34,7 +34,7 @@ diff --git a/build.gradle b/build.gradle index 64b3f1dd..3fe45e41 100644 --- a/build.gradle +++ b/build.gradle @@ -1,25 +1,29 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.1.2' } } apply plugin: 'com.android.library' -repositories { - jcenter() +allprojects { + repositories { + google() + jcenter() + } } dependencies { - compile 'org.apache.jackrabbit:jackrabbit-webdav:2.12.4' + api 'org.apache.jackrabbit:jackrabbit-webdav:2.12.4' + api 'com.squareup.okhttp3:okhttp:3.10.0' } android { compileSdkVersion 26 - buildToolsVersion '26.0.2' sourceSets { main { @@ -33,7 +37,7 @@ android { } // Move the tests to tests/java, tests/res, etc... - instrumentTest.setRoot('tests') + androidTest.setRoot('tests') // Move the build types to build-types/ // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a04cf10f..267dfc1e 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/sample_client/AndroidManifest.xml b/sample_client/AndroidManifest.xml index df33bb06..a2697540 100644 --- a/sample_client/AndroidManifest.xml +++ b/sample_client/AndroidManifest.xml @@ -22,24 +22,29 @@ THE SOFTWARE. --> - + - + package="com.owncloud.android.lib.sampleclient" + android:versionCode="1" + android:versionName="1.0"> + + - - + android:minSdkVersion="14" + android:targetSdkVersion="26"/> + + - - + + diff --git a/sample_client/assets/oc_sample.txt b/sample_client/assets/oc_sample.txt new file mode 100644 index 00000000..49254be3 --- /dev/null +++ b/sample_client/assets/oc_sample.txt @@ -0,0 +1 @@ +Testing ownCloud uploads diff --git a/sample_client/build.gradle b/sample_client/build.gradle index 2c7a6b08..c0f96865 100644 --- a/sample_client/build.gradle +++ b/sample_client/build.gradle @@ -5,12 +5,11 @@ repositories { } dependencies { - compile project(':') + implementation project(':') } android { compileSdkVersion 26 - buildToolsVersion "26.0.2" sourceSets { main { @@ -24,7 +23,7 @@ android { } // Move the tests to tests/java, tests/res, etc... - instrumentTest.setRoot('tests') + androidTest.setRoot('tests') // Move the build types to build-types/ // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... @@ -43,9 +42,4 @@ android { packagingOptions { exclude 'META-INF/LICENSE.txt' } - android { - lintOptions { - abortOnError false - } - } } diff --git a/sample_client/gradle/wrapper/gradle-wrapper.properties b/sample_client/gradle/wrapper/gradle-wrapper.properties index 122a0dca..fc5d4423 100644 --- a/sample_client/gradle/wrapper/gradle-wrapper.properties +++ b/sample_client/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/sample_client/res/layout/main.xml b/sample_client/res/layout/main.xml index c011ce78..6a15c528 100644 --- a/sample_client/res/layout/main.xml +++ b/sample_client/res/layout/main.xml @@ -22,101 +22,152 @@ THE SOFTWARE. --> - + + + +