1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-08 00:16:09 +00:00

Merge pull request #188 from owncloud/upgrade_gradle

Upgrade gradle to 3.1.2
This commit is contained in:
David González Verdugo 2018-05-18 09:27:06 +02:00 committed by GitHub
commit ad0adaaf5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 23 additions and 34 deletions

View File

@ -34,7 +34,7 @@
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
<uses-sdk <uses-sdk
android:minSdkVersion="8" android:minSdkVersion="14"
android:targetSdkVersion="26" /> android:targetSdkVersion="26" />
</manifest> </manifest>

View File

@ -1,26 +1,29 @@
buildscript { buildscript {
repositories { repositories {
jcenter() jcenter()
google()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:2.3.3' classpath 'com.android.tools.build:gradle:3.1.2'
} }
} }
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
repositories { allprojects {
repositories {
google()
jcenter() jcenter()
}
} }
dependencies { dependencies {
compile 'org.apache.jackrabbit:jackrabbit-webdav:2.12.4' api 'org.apache.jackrabbit:jackrabbit-webdav:2.12.4'
compile 'com.squareup.okhttp3:okhttp:3.10.0' api 'com.squareup.okhttp3:okhttp:3.10.0'
} }
android { android {
compileSdkVersion 26 compileSdkVersion 26
buildToolsVersion '26.0.2'
sourceSets { sourceSets {
main { main {
@ -34,7 +37,7 @@ android {
} }
// Move the tests to tests/java, tests/res, etc... // Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests') androidTest.setRoot('tests')
// Move the build types to build-types/<type> // Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists 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

View File

@ -5,12 +5,11 @@ repositories {
} }
dependencies { dependencies {
compile project(':') implementation project(':')
} }
android { android {
compileSdkVersion 26 compileSdkVersion 26
buildToolsVersion "26.0.2"
sourceSets { sourceSets {
main { main {
@ -24,7 +23,7 @@ android {
} }
// Move the tests to tests/java, tests/res, etc... // Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests') androidTest.setRoot('tests')
// Move the build types to build-types/<type> // Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
@ -43,9 +42,4 @@ android {
packagingOptions { packagingOptions {
exclude 'META-INF/LICENSE.txt' exclude 'META-INF/LICENSE.txt'
} }
android {
lintOptions {
abortOnError false
}
}
} }

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists 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

View File

@ -38,7 +38,7 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-sdk <uses-sdk
android:minSdkVersion="8" android:minSdkVersion="14"
android:targetSdkVersion="26" /> android:targetSdkVersion="26" />
<application <application

View File

@ -6,13 +6,11 @@ repositories {
} }
dependencies { dependencies {
compile 'commons-httpclient:commons-httpclient:3.1' implementation project(':')
compile project(':')
} }
android { android {
compileSdkVersion 26 compileSdkVersion 26
buildToolsVersion "26.0.2"
sourceSets { sourceSets {
main { main {
@ -26,7 +24,7 @@ android {
} }
// Move the tests to tests/java, tests/res, etc... // Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests') androidTest.setRoot('tests')
// Move the build types to build-types/<type> // Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
@ -45,9 +43,4 @@ android {
packagingOptions { packagingOptions {
exclude 'META-INF/LICENSE.txt' exclude 'META-INF/LICENSE.txt'
} }
android {
lintOptions {
abortOnError false
}
}
} }

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists 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

View File

@ -28,7 +28,7 @@
android:versionCode="1" android:versionCode="1"
android:versionName="1.0" > android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" /> <uses-sdk android:minSdkVersion="14" />
<application> <application>
<uses-library android:name="android.test.runner" /> <uses-library android:name="android.test.runner" />
</application> </application>

View File

@ -1,13 +1,12 @@
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
dependencies { dependencies {
compile fileTree(dir: 'libs', include: '*.jar') implementation fileTree(dir: 'libs', include: '*.jar')
compile project(':') implementation project(':')
} }
android { android {
compileSdkVersion 26 compileSdkVersion 26
buildToolsVersion "26.0.2"
sourceSets { sourceSets {
main { main {
@ -21,7 +20,7 @@ android {
} }
// Move the tests to tests/java, tests/res, etc... // Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests') androidTest.setRoot('tests')
// Move the build types to build-types/<type> // Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...