plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-android-extensions' id 'kotlin-kapt' } static def releaseTime() { return "" + new Date().format("yyyyMMddHHmm", TimeZone.getTimeZone("Asia/Shanghai")) } android { compileSdk 32 defaultConfig { applicationId "com.cmx.hydrology" minSdk 21 targetSdk 29 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } android.applicationVariants.all { variant -> variant.outputs.all { outputFileName = "hydrology" + versionName + "_" + versionCode + "_" + releaseTime() + ".apk" } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } buildFeatures { viewBinding true } } dependencies { implementation(fileTree("libs")) implementation 'androidx.work:work-runtime:2.7.1' implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1' implementation 'androidx.navigation:navigation-fragment:2.3.5' implementation 'androidx.navigation:navigation-ui:2.3.5' implementation 'androidx.annotation:annotation:1.2.0' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' implementation 'com.google.code.gson:gson:2.6.2' implementation 'com.squareup.retrofit2:retrofit:2.4.0' implementation 'com.squareup.retrofit2:converter-gson:2.4.0' implementation 'com.github.GrenderG:Toasty:1.5.2' implementation 'com.squareup.okhttp3:logging-interceptor:3.8.1' implementation 'com.github.lsxiao.Apollo:core:1.0.2' implementation 'com.github.lsxiao.Apollo:ipc:1.0.2' kapt "com.github.lsxiao.Apollo:processor:1.0.2" //Apollo的编译时注解处理器 annotationProcessor "com.github.lsxiao.Apollo:processor:1.0.2" implementation "io.reactivex.rxjava2:rxjava:2.2.4" implementation 'io.reactivex.rxjava2:rxandroid:2.1.0' implementation 'com.github.nanchen2251:CompressHelper:1.0.5' implementation 'com.scwang.wave:MultiWaveHeader:1.0.0-andx' }