apply plugin: 'com.android.application' apply plugin: 'com.huawei.agconnect' apply plugin: 'kotlin-android' android { compileSdkVersion 30 buildToolsVersion "29.0.3" buildFeatures{ viewBinding = true } defaultConfig { applicationId "com.buyao.app" minSdkVersion 19 targetSdkVersion 30 versionCode 100 versionName "1.1.2" multiDexEnabled true ndk { abiFilters 'armeabi-v7a', 'arm64-v8a' } } //设置打包的apk名称 android.applicationVariants.all { variant -> variant.outputs.all { outputFileName = "buyao_${variant.buildType.name}_v${variant.versionName}.apk" } } buildTypes { debug { minifyEnabled false buildConfigField("String", "SERVER", "\"http://app.test.buyao.com\"") } release { minifyEnabled true zipAlignEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' buildConfigField("String", "SERVER", "\"http://app.buyao.com\"") } } signingConfigs { debug { storeFile rootProject.file('buyao.jks') storePassword 'buyao_20200822' keyAlias 'BuYao' keyPassword 'buyao_20200822' } release { storeFile rootProject.file('../buyao.jks') storePassword 'buyao_20200822' keyAlias 'BuYao' keyPassword 'buyao_20200822' } } sourceSets { main { jniLibs.srcDirs = ['libs'] res.srcDirs = [ 'src/main/res', 'src/main/res/layouts', 'src/main/res/layouts/app', 'src/main/res/layouts/common', 'src/main/res/layouts/login', 'src/main/res/layouts/user', 'src/main/res/layouts/wallet', 'src/main/res/layouts/room', 'src/main/res/layouts/moment', 'src/main/res/layouts/im' ] } } compileOptions { targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.3.2' implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-beta01" implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' implementation 'com.google.android.material:material:1.2.1' implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' implementation 'io.reactivex.rxjava2:rxjava:2.2.13' implementation "org.reactivestreams:reactive-streams:1.0.3" implementation 'com.squareup.retrofit2:retrofit:2.6.2' implementation 'com.squareup.retrofit2:adapter-rxjava2:2.6.2' implementation 'com.squareup.retrofit2:converter-gson:2.6.2' implementation 'com.squareup.okhttp3:okhttp:3.12.1' implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0' implementation 'com.github.bumptech.glide:glide:4.11.0' implementation 'jp.wasabeef:glide-transformations:4.1.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' implementation 'com.alibaba:fastjson:1.2.60' implementation 'com.aliyun.dpa:oss-android-sdk:2.9.3' implementation(name: 'aliphoneauth-2.10.1', ext: 'aar') implementation(name: 'alipaySdk-15.7.9-20200727142846', ext: 'aar') implementation 'com.aliyun.video.android:svideosnap:3.16.2'//短视频基础版SDK必须依赖 implementation 'com.aliyun.video.android:core:1.2.2' //核心库必须依赖 implementation 'com.alivc.conan:AlivcConan:1.0.3'//核心库必须依赖 implementation 'com.aliyun.video.android:AlivcFFmpeg:2.0.0'//必须依赖 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.github.chrisbanes:PhotoView:2.3.0' implementation 'com.contrarywind:Android-PickerView:4.1.9' implementation 'com.github.yalantis:ucrop:2.2.6' implementation 'com.tencent:mmkv-static:1.2.2' implementation 'com.umeng.umsdk:common:9.1.0' implementation 'com.umeng.umsdk:asms:1.1.3' implementation 'com.umeng.umsdk:crash:0.0.4' implementation 'com.umeng.umsdk:oaid_mi:1.0.0' implementation 'com.umeng.umsdk:oaid_oppo:1.0.4' implementation 'com.umeng.umsdk:oaid_vivo:1.0.0.1' implementation "androidx.room:room-runtime:2.2.5" annotationProcessor "androidx.room:room-compiler:2.2.5" implementation 'com.shuyu:gsyVideoPlayer-java:7.1.6' implementation 'com.shuyu:gsyVideoPlayer-ex_so:7.1.6' implementation 'top.zibin:Luban:1.1.8' implementation 'com.airbnb.android:lottie:3.4.0' implementation 'io.agora.rtc:full-sdk:3.1.2' implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.5.7' implementation project(path: ':faceplatform-ui') //debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.5' implementation 'cn.rongcloud.sdk:im_lib:4.0.0.1' implementation 'cn.rongcloud.sdk:im_kit:4.0.0.1' implementation 'com.huawei.hms:push:4.0.2.300' implementation(name: 'vivo_pushsdk-v2.9.0.0', ext: 'aar') implementation files('libs/MiPush_SDK_Client_3_6_9.jar') implementation "com.github.donkingliang:LabelsView:1.6.1" }