plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-kapt' id 'com.google.gms.google-services' id 'com.google.firebase.crashlytics' id 'com.google.firebase.firebase-perf' } android { compileSdkVersion 34 buildToolsVersion "34.0.0" defaultConfig { applicationId "com.swago.app" minSdkVersion 21 targetSdkVersion 34 versionCode 6116 versionName "6.1.1.6" multiDexEnabled true testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" kapt { arguments { arg("AROUTER_MODULE_NAME", project.getName()) } } ndk { //选择要添加的对应cpu类型的.so库。 abiFilters "armeabi-v7a","arm64-v8a" } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } buildFeatures{ viewBinding = true } signingConfigs { release { keyAlias 'swago' keyPassword 'swago0455com06' storeFile file('swago.jks') storePassword 'swago0455com06' v1SigningEnabled true v2SigningEnabled true } } buildTypes { debug { debuggable true minifyEnabled false zipAlignEnabled false shrinkResources false signingConfig signingConfigs.release proguardFiles 'proguard-rules.pro' firebaseCrashlytics { mappingFileUploadEnabled false } } release { debuggable false minifyEnabled true zipAlignEnabled true shrinkResources true signingConfig signingConfigs.release proguardFiles 'proguard-rules.pro' firebaseCrashlytics { mappingFileUploadEnabled false } } } android.applicationVariants.all { variant -> variant.outputs.all { if (variant.buildType.name == "release") { outputFileName = "${applicationId}-release-${variant.versionName}.apk" } else if (variant.buildType.name == 'debug') { outputFileName = "${applicationId}-debug-${variant.versionName}.apk" } } } } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.2.1' testImplementation 'junit:junit:4.+' implementation 'androidx.core:core-ktx:1.5.0' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' implementation project(path: ':baseswago') implementation project(path: ':login') implementation project(path: ':user') implementation project(path: ':home') implementation project(path: ':tuikit') implementation project(path: ':room') kapt "com.alibaba:arouter-compiler:1.2.2" }