2020-04-13 16:20:37 +08:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
compileSdkVersion 28
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
applicationId "cn.android.sample"
|
|
|
|
|
minSdkVersion 16
|
|
|
|
|
targetSdkVersion 28
|
|
|
|
|
versionCode 1
|
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
2021-03-02 16:36:38 +08:00
|
|
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
2020-04-13 16:20:37 +08:00
|
|
|
// ndk{
|
|
|
|
|
// //生成so库名称 也是System.load
|
|
|
|
|
// moduleName "apisecurity-lib"
|
|
|
|
|
// abiFilters "armeabi-v7a"
|
|
|
|
|
// }
|
|
|
|
|
externalNativeBuild {
|
|
|
|
|
cmake {
|
|
|
|
|
cppFlags ""
|
2021-03-02 16:36:38 +08:00
|
|
|
// abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'arm64-v8a'
|
2020-04-13 16:20:37 +08:00
|
|
|
}
|
|
|
|
|
}
|
2021-03-02 16:36:38 +08:00
|
|
|
|
2020-04-13 16:20:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
|
release {
|
|
|
|
|
keyAlias 'wzbos'
|
|
|
|
|
keyPassword '123456'
|
|
|
|
|
storeFile file("test.keystore")
|
|
|
|
|
storePassword '123456'
|
|
|
|
|
}
|
2021-03-02 16:36:38 +08:00
|
|
|
|
2020-04-13 16:20:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
2021-03-02 16:36:38 +08:00
|
|
|
debuggable false//xml android:debuggable="false"
|
2020-04-13 16:20:37 +08:00
|
|
|
minifyEnabled false
|
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
|
}
|
|
|
|
|
debug{
|
2021-03-02 16:36:38 +08:00
|
|
|
debuggable true
|
2020-04-13 16:20:37 +08:00
|
|
|
signingConfig signingConfigs.release
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
|
cmake {
|
|
|
|
|
path "CMakeLists.txt"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
2021-03-02 16:36:38 +08:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.0.0'
|
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
2020-04-13 16:20:37 +08:00
|
|
|
implementation project(':apisecurity')
|
|
|
|
|
}
|