samples: Fix android sample after gradle plugin rework
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user