plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-parcelize' id 'kotlin-kapt' id 'dagger.hilt.android.plugin' } android { compileSdk 32 buildToolsVersion '32.1.0 rc1' buildFeatures { viewBinding = true } defaultConfig { applicationId "beer.toktok.app" minSdkVersion 21 targetSdk 32 versionCode 2 versionName "1.1.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true ndk { abiFilters 'armeabi-v7a', 'arm64-v8a' } } signingConfigs { debug { storeFile file('../toktok.jks') storePassword 'toktok_20210619' keyAlias 'toktok' keyPassword 'toktok_20210619' } release { storeFile file('../toktok.jks') storePassword 'toktok_20210619' keyAlias 'toktok' keyPassword 'toktok_20210619' } } buildTypes { debug { minifyEnabled false buildConfigField("String", "SERVER", "\"http://120.79.211.173:7500\"") } release { minifyEnabled true zipAlignEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' buildConfigField("String", "SERVER", "\"http://app.toktok.beer\"") } } compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } kotlinOptions { jvmTarget = '11' } sourceSets { main { jniLibs.srcDirs = ['libs'] res.srcDirs = [ 'src/main/res', 'src/main/res-account', 'src/main/res-brewery', 'src/main/res-common', 'src/main/res-content', 'src/main/res-beer', 'src/main/res-user' ] } } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' //kotlin implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.8.0' implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.0-alpha01" implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.0-alpha01" //androidx、jetpack implementation 'androidx.appcompat:appcompat:1.5.0' implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.lifecycle:lifecycle-viewmodel:2.5.1' implementation "com.google.dagger:hilt-android:2.43.2" kapt "com.google.dagger:hilt-android-compiler:2.43.2" //http implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.9.0' implementation 'com.squareup.okhttp3:okhttp:4.9.1' implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1' //image implementation 'jp.wasabeef:glide-transformations:4.1.0' implementation 'com.github.bumptech.glide:glide:4.11.0' kapt 'com.github.bumptech.glide:compiler:4.11.0' //腾讯,x5内核 api 'com.tencent.tbs.tbssdk:sdk:43939' api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0' implementation 'com.tencent:mmkv-static:1.2.2' //友盟 implementation 'com.umeng.umsdk:common:9.5.1' implementation 'com.umeng.umsdk:asms:1.6.3' implementation 'com.umeng.umsdk:apm:1.7.0' implementation 'com.umeng.umsdk:share-core:7.2.1' implementation 'com.umeng.umsdk:share-wx:7.2.1' //other,tools implementation(name: 'shanyan_sdk_v2.3.5.1', ext: 'aar') implementation(name: 'BaiduLBS', ext: 'aar') //5.8 implementation 'com.kunminx.arch:unpeek-livedata:5.0.1-beta1' implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.47' implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1' implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" implementation 'com.contrarywind:Android-PickerView:4.1.9' implementation 'com.github.chrisbanes:PhotoView:2.3.0' implementation 'com.github.yalantis:ucrop:2.2.8' implementation 'com.aliyun.dpa:oss-android-sdk:2.9.11' implementation 'com.airbnb.android:lottie:3.4.0' implementation "com.github.donkingliang:LabelsView:1.6.5" implementation 'top.zibin:Luban:1.1.8' }