diff options
author | Wojciech Milkowski <wmilkowski@intera.pl> | 2018-10-08 22:35:18 +0200 |
---|---|---|
committer | Wojciech Milkowski <wmilkowski@intera.pl> | 2018-10-08 22:35:18 +0200 |
commit | 3598165c4de330abdcf93c383886e8c2d684d6cf (patch) | |
tree | f2435fb5afe11f1435e41af91be443513e9540fb /platform/android/build.gradle.template | |
parent | 0063ba92075094b7cc9d36f4551080b89e0c0e50 (diff) |
Fix build with Android NDK r18
As a bonus there is no need to use undocumented Gradle API any more.
Diffstat (limited to 'platform/android/build.gradle.template')
-rw-r--r-- | platform/android/build.gradle.template | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/platform/android/build.gradle.template b/platform/android/build.gradle.template index cc45fee95f..1603ea70d9 100644 --- a/platform/android/build.gradle.template +++ b/platform/android/build.gradle.template @@ -1,10 +1,11 @@ buildscript { repositories { + google() jcenter() $$GRADLE_REPOSITORY_URLS$$ } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.2.0' $$GRADLE_CLASSPATH$$ } } @@ -32,7 +33,7 @@ android { } compileSdkVersion 27 - buildToolsVersion "27.0.3" + buildToolsVersion "28.0.3" useLibrary 'org.apache.http.legacy' packagingOptions { @@ -75,9 +76,11 @@ android { $$GRADLE_JNI_DIRS$$ ] } + applicationVariants.all { variant -> - // ApplicationVariant is undocumented, but this method is widely used; may break with another version of the Android Gradle plugin - variant.outputs.get(0).setOutputFile(new File("${projectDir}/../../../bin", "android_${variant.name}.apk")) + variant.outputs.all { output -> + output.outputFileName = "../../../../../../../bin/android_${variant.name}.apk" + } } } |