1
0
Fork 0
phizclip-android-demo/app/build.gradle

69 lines
2.4 KiB
Groovy
Raw Normal View History

2020-03-07 20:26:34 +08:00
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.finogeeks.finclip.demo"
2020-09-03 11:49:35 +08:00
minSdkVersion 19
2020-03-07 20:26:34 +08:00
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2020-09-03 11:49:35 +08:00
multiDexEnabled true
buildConfigField "String", "APP_KEY", "\"22LyZEib0gLTQdU3MUauATBwgfnTCJjdr7FCnywmAEM=\""
2020-09-03 11:49:35 +08:00
// App Secret
buildConfigField "String", "APP_SECRET", "\"bdfd76cae24d4313\""
2020-09-03 11:49:35 +08:00
// API服务地址
buildConfigField "String", "API_URL", "\"https://mp.finogeeks.com\""
// API服务前缀
buildConfigField "String", "API_PREFIX", "\"/api/v1/mop/\""
2020-03-07 20:26:34 +08:00
}
2020-12-16 11:21:10 +08:00
signingConfigs {
debug {
keyAlias "FinClipDemo"
keyPassword "fino123456"
storeFile file("../finclip.jks")
storePassword "fino123456"
}
release {
keyAlias "FinClipDemo"
keyPassword "fino123456"
storeFile file("../finclip.jks")
storePassword "fino123456"
}
}
2020-03-07 20:26:34 +08:00
buildTypes {
2020-12-16 11:21:10 +08:00
debug {
minifyEnabled true
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
2020-03-07 20:26:34 +08:00
release {
2020-09-03 11:49:35 +08:00
minifyEnabled true
2020-12-16 11:21:10 +08:00
signingConfig signingConfigs.release
2020-03-07 20:26:34 +08:00
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
2020-09-03 11:49:35 +08:00
packagingOptions {
// libsdkcore.so是被加固过的不能被压缩否则加载动态库时会报错
doNotStrip "*/x86/libsdkcore.so"
doNotStrip "*/x86_64/libsdkcore.so"
doNotStrip "*/armeabi/libsdkcore.so"
2020-09-03 11:49:35 +08:00
doNotStrip "*/armeabi-v7a/libsdkcore.so"
doNotStrip "*/arm64-v8a/libsdkcore.so"
}
2020-03-07 20:26:34 +08:00
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
2020-09-03 11:49:35 +08:00
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0'
implementation 'com.google.android.material:material:1.2.0'
2020-03-07 20:26:34 +08:00
testImplementation 'junit:junit:4.12'
2020-09-03 11:49:35 +08:00
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
2020-12-22 16:15:00 +08:00
implementation 'com.finogeeks.lib:finapplet:2.13.38'
2020-09-03 11:49:35 +08:00
}