samples: Fix android sample after gradle plugin rework

This commit is contained in:
Ilya Matveev
2017-10-18 12:50:59 +03:00
committed by ilmat192
parent 2f66ab1b67
commit 6cc9ca211f
+3 -5
View File
@@ -25,18 +25,16 @@ allprojects {
apply plugin: "konan"
def platforms = ["armeabi-v7a", "arm64-v8a"]
konanTargets = ["android_arm32", "android_arm64"]
konanArtifacts {
Polyhedron {
program('Polyhedron') {
baseDir 'Polyhedron'
outputName 'libpoly'
}
}
def platforms = ["armeabi-v7a", "arm64-v8a"]
def artifacts = ["Polyhedron/armeabi-v7a", "Polyhedron/arm64-v8a"]
apply plugin: "com.android.model.application"
model {
@@ -70,7 +68,7 @@ model {
def name = targetPlatform.getName()
def index = platforms.indexOf(name)
if (index >= 0)
sharedLibraryFile = file("${artifacts[index]}/libpoly.so")
sharedLibraryFile = konanArtifacts.Polyhedron."${konanTargets[index]}".artifact
}
}
}