apply plugin: 'com.android.application' android { compileSdkVersion 33 flavorDimensions "channel" defaultConfig { applicationId "com.citicsf.csp.pad" minSdkVersion 24 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' multiDexEnabled true manifestPlaceholders = [app_name: "Fox移动平台", icon: "@mipmap/notification_fox"] dimension "channel" aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false externalNativeBuild { cmake { cppFlags "" } } } /*signingConfigs { release { storeFile file("./citicsf_csp_pad.jks") storePassword "wckh@2025" keyAlias "key0" keyPassword "wckh@2025" } }*/ buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' // signingConfig signingConfigs.release } } dexOptions { jumboMode = true javaMaxHeapSize "2g" } productFlavors { sit { applicationId "com.citicsf.csp.pad.sit" versionCode 201 versionName "2.0.1" minSdkVersion 24 targetSdkVersion 28 manifestPlaceholders = [app_name: "外出开户SIT", icon: "@mipmap/ic_launcher_zxqh", bdkey: "ixVXFlhEFLSAXtA2IVeNF0CNw2chONRQ", screenOrientation: "landscape"] ndk { abiFilters 'armeabi-v7a' } dimension "channel" } uat { applicationId "com.citicsf.csp.pad.uat" versionCode 201 versionName "2.0.1" minSdkVersion 24 targetSdkVersion 28 manifestPlaceholders = [app_name: "外出开户UAT", icon: "@mipmap/ic_launcher_zxqh", bdkey: "ixVXFlhEFLSAXtA2IVeNF0CNw2chONRQ", screenOrientation: "landscape"] ndk { abiFilters 'armeabi-v7a' } dimension "channel" } sim { applicationId "com.citicsf.csp.pad.sim" versionCode 201 versionName "2.0.1" minSdkVersion 24 targetSdkVersion 28 manifestPlaceholders = [app_name: "外出开户SIM", icon: "@mipmap/ic_launcher_zxqh", bdkey: "ixVXFlhEFLSAXtA2IVeNF0CNw2chONRQ", screenOrientation: "landscape"] ndk { abiFilters 'armeabi-v7a' } dimension "channel" } } lintOptions { checkReleaseBuilds false // Or, if you prefer, you can continue to check for errors in release builds, // but continue the build even when errors are found: abortOnError false } android.applicationVariants.all { variant -> variant.outputs.all { output -> def fileName = variant.productFlavors[0].applicationId + "-" + buildType.name + "-v" + variant.productFlavors[0].versionName + "-" + variant.productFlavors[0].versionCode + ".apk"; outputFileName = fileName; } } // externalNativeBuild { // cmake { // path "src/main/cpp/CMakeLists.txt" // } // } compileOptions { sourceCompatibility = '1.8' targetCompatibility = '1.8' } // ndkVersion = "22.0.7026061" repositories { flatDir { dirs '../core_ext_image/libs' } flatDir { dirs '../device_wefax/libs' } flatDir { dirs '../libs' } flatDir { dirs 'libs' } } configurations.all { resolutionStrategy { // force 'androidx.activity:activity:1.2.4' // force 'androidx.annotation:annotation:1.3.0' // force 'androidx.annotation:annotation-experimeental:1.1.0' // force 'androidx.appcompat:appcompat:1.2.0' // force 'androidx.appcompat:appcompat-resources:1.1.0' // force 'androidx.core:core:1.1.0' // force 'androidx.appcompat:appcompat:1.2.0' // force 'androidx.media:media:1.0.0' // force 'androidx.lifecycle:lifecycle-common:2.0.0' // force 'androidx.lifecycle:lifecycle-livedata:2.0.0' // force 'androidx.lifecycle:lifecycle-livedata-core:2.0.0' // force 'androidx.lifecycle:lifecycle-runtime:2.0.0' // force 'androidx.lifecycle:lifecycle-viewmodel:2.0.0' // force 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1' // force 'androidx.recyclerview:recyclerview:1.0.0' // force 'androidx.room:room-common:2.3.0' // force 'androidx.room:room-rxjava3:2.3.0' // force 'androidx.room:room-runtime:2.3.0' // force 'androidx.savedstate:savedstate:1.0.0' // force 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' } } } dependencies { // androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', { // exclude group: 'com.android.support', module: 'support-annotations' // }) // testImplementation 'junit:junit:4.13-rc-2' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'log4j:log4j:1.2.17' implementation 'de.mindpipe.android:android-logging-log4j:1.0.3' implementation 'org.slf4j:slf4j-api:1.7.21' implementation 'org.slf4j:slf4j-log4j12:1.7.21' implementation files('../libs/apache-ant-zip-1.8.0.jar') // implementation(name: 'fox_base-release', ext: 'aar') // implementation(name: 'fox_ninetales-release', ext: 'aar') implementation project(path: ':fox_base') implementation project(path: ':fox_ninetales') implementation project(path: ':core') implementation project(path: ':app_tabview') implementation project(path: ':core_ext_image') //PC=2025年4月22日 导入此库 implementation project(path: ':core_ext_file') implementation project(path: ':core_ext_pdf') // implementation project(path: ':core_ext_speedtest') // implementation project(path: ':core_ext_timer') implementation project(path: ':device_system') implementation project(path: ':device_keyboard') implementation project(path: ':core_ext_speech') implementation project(path: ':core_ext_map_baidu') implementation project(path: ':core_ext_power') implementation project(path: ':core_ext_detection') implementation project(path: ':core_ext_demo') implementation project(path: ':fox_ninetales_webview') implementation project(path: ':device_fingerprint') implementation project(path: ':market_zxqh') implementation 'com.elvishew:xlog:1.11.1' }