123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- 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 33
- buildToolsVersion "33.0.2"
- defaultConfig {
- applicationId "com.swago.app"
- minSdkVersion 21
- targetSdkVersion 33
- versionCode 6115
- versionName "6.1.1.5"
- 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"
- }
|