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