Fully functional JNI UI based app
This commit is contained in:
parent
a73f82e191
commit
652e010895
6 changed files with 89 additions and 87 deletions
|
|
@ -2,17 +2,17 @@ apply plugin: 'com.android.application'
|
|||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
|
||||
Properties properties = new Properties()
|
||||
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||
def ndkDir = properties.getProperty('ndk.dir')
|
||||
def valLayerBinDir = "${ndkDir}/sources/third_party/vulkan/src/build-android/jniLibs"
|
||||
//Properties properties = new Properties()
|
||||
//properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||
//def ndkDir = properties.getProperty('ndk.dir')
|
||||
//def valLayerBinDir = "${ndkDir}/sources/third_party/vulkan/src/build-android/jniLibs"
|
||||
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
ndkVersion '21.2.6472646'
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.ethicalml.kompute.examples.android"
|
||||
applicationId "com.ethicalml.kompute"
|
||||
minSdkVersion 26
|
||||
targetSdkVersion 29
|
||||
versionCode = 1
|
||||
|
|
@ -46,14 +46,14 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
jniLibs {
|
||||
// Must have ndk-r12 or better which including layer binaries
|
||||
srcDirs = ["${valLayerBinDir}"]
|
||||
}
|
||||
}
|
||||
}
|
||||
// sourceSets {
|
||||
// main {
|
||||
// jniLibs {
|
||||
// // Must have ndk-r12 or better which including layer binaries
|
||||
// srcDirs = ["${valLayerBinDir}"]
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
flavorDimensions 'cpuArch'
|
||||
productFlavors {
|
||||
|
|
@ -81,5 +81,5 @@ dependencies {
|
|||
implementation 'androidx.appcompat:appcompat:1.1.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
// implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue