diff options
author | Markus Pfau <pfau@peak3d.de> | 2019-09-03 22:17:03 +0200 |
---|---|---|
committer | peak3d <pfau@peak3d.de> | 2019-10-09 17:10:37 +0200 |
commit | 043eebd05fbd185ef56e19491d19252feeeff27f (patch) | |
tree | a4637dfc043034f8f4eb924ca29aaa72e5388b0b | |
parent | 7cdab56d689ff775d5bff3c5ec63736f86e4a0bb (diff) |
Merge pull request #16559 from peak3d/sdkversion
[Android] Update build (4.1 -> 5.4.1) and SDK (26 -> 28) versions
-rw-r--r-- | docs/README.Android.md | 4 | ||||
-rw-r--r-- | tools/android/packaging/Makefile.in | 2 | ||||
-rw-r--r-- | tools/android/packaging/build.gradle | 10 | ||||
-rw-r--r-- | tools/android/packaging/gradle/wrapper/gradle-wrapper.properties | 2 | ||||
-rw-r--r-- | tools/android/packaging/xbmc/build.gradle.in | 14 |
5 files changed, 16 insertions, 16 deletions
diff --git a/docs/README.Android.md b/docs/README.Android.md index a2d4d14ea7..80c7577987 100644 --- a/docs/README.Android.md +++ b/docs/README.Android.md @@ -94,8 +94,8 @@ Before Android SDK can be used, you need to accept the licenses and configure it cd $HOME/android-tools/android-sdk-linux/tools/bin ./sdkmanager --licenses ./sdkmanager platform-tools -./sdkmanager "platforms;android-26" -./sdkmanager "build-tools;25.0.3" +./sdkmanager "platforms;android-28" +./sdkmanager "build-tools;28.0.3" ``` ### 3.3. Set up the Android toolchain diff --git a/tools/android/packaging/Makefile.in b/tools/android/packaging/Makefile.in index 07776ce320..05b38a7820 100644 --- a/tools/android/packaging/Makefile.in +++ b/tools/android/packaging/Makefile.in @@ -163,7 +163,7 @@ java: res package: libs python java @echo "Gradle build..." ANDROID_HOME=$(SDKROOT) ./gradlew assemble$(BUILD_TYPE)Unsigned - @cp xbmc/build/outputs/apk/xbmc-$(BUILD_TYPE_LC)Unsigned-unsigned.apk images/@APP_NAME_LC@app-debug-$(CPU)-unaligned.apk + @cp xbmc/build/outputs/apk/$(BUILD_TYPE_LC)Unsigned/xbmc-$(BUILD_TYPE_LC)Unsigned-unsigned.apk images/@APP_NAME_LC@app-debug-$(CPU)-unaligned.apk apk-sign: @echo "Signing..." diff --git a/tools/android/packaging/build.gradle b/tools/android/packaging/build.gradle index 6832158cc7..725fb5c07a 100644 --- a/tools/android/packaging/build.gradle +++ b/tools/android/packaging/build.gradle @@ -6,7 +6,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.5.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -17,10 +17,8 @@ allprojects { repositories { jcenter() google() + maven { + url "https://maven.google.com" + } } } - -task wrapper(type: Wrapper) { - gradleVersion = '4.1' //version required -} - diff --git a/tools/android/packaging/gradle/wrapper/gradle-wrapper.properties b/tools/android/packaging/gradle/wrapper/gradle-wrapper.properties index 9960ba8997..fa7b9da133 100644 --- a/tools/android/packaging/gradle/wrapper/gradle-wrapper.properties +++ b/tools/android/packaging/gradle/wrapper/gradle-wrapper.properties @@ -3,5 +3,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip diff --git a/tools/android/packaging/xbmc/build.gradle.in b/tools/android/packaging/xbmc/build.gradle.in index afe96a795c..49a18040a6 100644 --- a/tools/android/packaging/xbmc/build.gradle.in +++ b/tools/android/packaging/xbmc/build.gradle.in @@ -1,12 +1,12 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 26 - buildToolsVersion "25.0.3" + compileSdkVersion 28 + buildToolsVersion "28.0.3" defaultConfig { applicationId "@APP_PACKAGE@" minSdkVersion 21 - targetSdkVersion 26 + targetSdkVersion 28 versionCode @APP_VERSION_CODE_ANDROID@ versionName "@APP_VERSION@" } @@ -35,7 +35,9 @@ android { jniLibs.srcDirs = ['lib'] } } - + packagingOptions{ + doNotStrip '**.setup' + } } project.afterEvaluate { @@ -44,6 +46,6 @@ project.afterEvaluate { dependencies { // New support library to for channels/programs development. - compile 'com.android.support:support-tv-provider:26.0.1' - compile 'com.google.code.gson:gson:2.8.0' + implementation 'com.android.support:support-tv-provider:28.0.0' + implementation 'com.google.code.gson:gson:2.8.0' } |