MOD: updating build prefs to test the ndk lib
This commit is contained in:
parent
17059b1f03
commit
1aa9732294
|
@ -12,13 +12,13 @@ android {
|
|||
versionCode 1
|
||||
versionName '1.0'
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
arguments '-DANDROID_PLATFORM=android-23',
|
||||
'-DANDROID_TOOLCHAIN=clang',
|
||||
'-DANDROID_STL=c++_static'
|
||||
}
|
||||
}
|
||||
// externalNativeBuild {
|
||||
// cmake {
|
||||
// arguments '-DANDROID_PLATFORM=android-23',
|
||||
// '-DANDROID_TOOLCHAIN=clang',
|
||||
// '-DANDROID_STL=c++_static'
|
||||
// }
|
||||
// }
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
|
@ -33,11 +33,11 @@ android {
|
|||
jniLibs.srcDirs = ['libs/wolfssl-jni']
|
||||
}
|
||||
}
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
path 'CMakeLists.txt'
|
||||
}
|
||||
}
|
||||
// externalNativeBuild {
|
||||
// cmake {
|
||||
// path 'CMakeLists.txt'
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
// Copies files to the dist/ folder, adds a timestamp
|
||||
|
@ -57,7 +57,8 @@ task copyLibs(type: Copy) {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation 'junit:junit:4.12'
|
||||
// testImplementation 'junit:junit:4.12'
|
||||
implementation 'com.android.support:appcompat-v7:28.0.0'
|
||||
}
|
||||
|
||||
// tasks.whenTaskAdded { task ->
|
||||
|
|
|
@ -21,7 +21,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
}
|
||||
public native String stringFromJNI();
|
||||
static {
|
||||
System.loadLibrary("hello-libs");
|
||||
System.loadLibrary("wolfssl-jni");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue