| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- apply plugin: 'kotlin-kapt'
- android {
- signingConfigs {
- release {
- storeFile file('../keystore/fxgl')
- storePassword 'muchinfo'
- keyAlias 'fxgl'
- keyPassword 'muchinfo'
- }
- }
- compileSdkVersion 30
- buildToolsVersion "30.0.3"
- defaultConfig {
- applicationId "cn.muchinfo.rma"
- minSdkVersion 24
- targetSdkVersion 30
- versionCode 50049
- versionName "5.0.49"
- multiDexEnabled true
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- //指定room.schemaLocation生成的文件路径
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [moduleName: project.getName()]
- }
- }
- flavorDimensions "versionCode"
- }
- productFlavors{
- // app1
- fxgl {
- // 设置applicationId(这里很重要,两个相同applicationId的apk不同同时安装在同一台Android手机中)
- applicationId "cn.muchinfo.rma"
- // 自动生成@string/app_name为demo
- resValue "string","app_name","企业风管云"
- // 定义app_icon字段,在AndroidManifest.xml文件中用到
- manifestPlaceholders = [app_icon : "@mipmap/ic_launcher_rma"]
- }
- // app2
- qhj {
- // 解释同app1
- applicationId "cn.muchinfo.qhj"
- resValue "string","app_name","千海金"
- manifestPlaceholders = [app_icon : "@mipmap/ic_launcher_qhj"]
- }
- // app3
- yrdz {
- // 解释同app1
- applicationId "cn.muchinfo.yrdz"
- resValue "string","app_name","云融"
- manifestPlaceholders = [app_icon : "@mipmap/ic_launcher_yrdz"]
- }
- // 天津麦顿
- tjmd {
- // 解释同app1
- applicationId "cn.muchinfo.tjmd"
- resValue "string","app_name","掉期市场"
- manifestPlaceholders = [app_icon : "@mipmap/ic_launcher_tjmd"]
- }
- // 新会陈皮
- xhcp {
- // 解释同app1
- applicationId "cn.muchinfo.xhcp"
- resValue "string","app_name","新会陈皮"
- manifestPlaceholders = [app_icon : "@mipmap/ic_launcher_rma"]
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- signingConfig signingConfigs.release
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- lintOptions {
- checkReleaseBuilds false
- // Or, if you prefer, you can continue to checkforerrorsinrelease builds,
- // but continue the build even whenerrorsarefound:
- abortOnError false
- }
- packagingOptions {
- exclude 'META-INF/metadata.kotlin_module'
- exclude 'META-INF/metadata.jvm.kotlin_module'
- exclude 'META-INF/DEPENDENCIES'
- exclude 'META-INF/DEPENDENCIES.txt'
- exclude 'META-INF/LICENSE'
- exclude 'META-INF/LICENSE.txt'
- exclude 'META-INF/license.txt'
- exclude 'META-INF/NOTICE'
- exclude 'META-INF/NOTICE.txt'
- exclude 'META-INF/notice.txt'
- exclude 'META-INF/INDEX.LIST'
- exclude 'META-INF/versions'
- exclude 'META-INF/versions/**/*.class'
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
- applicationVariants.all { variant ->
- variant.outputs.all {
- //在这里修改apk文件名
- outputFileName = "${variant.name}-v${variant.versionName}.apk"
- }
- }
- packagingOptions{
- pickFirst 'lib/armeabi/libclientencode.so'
- pickFirst 'lib/armeabi-v7a/libclientencode.so'
- pickFirst 'lib/arm64-v8a/libclientencode.so'
- pickFirst 'lib/x86/libclientencode.so'
- pickFirst 'lib/x86_64/libclientencode.so'
- }
- }
- dependencies {
- implementation 'androidx.core:core-ktx:1.2.0'
- implementation 'androidx.appcompat:appcompat:1.1.0'
- implementation 'com.google.android.material:material:1.1.0'
- implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
- implementation 'androidx.recyclerview:recyclerview:1.1.0'
- implementation project(path: ':chart')
- testImplementation 'junit:junit:4.+'
- androidTestImplementation 'androidx.test.ext:junit:1.1.1'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
- implementation files('libs/easypermissions-release.aar')
- implementation files('libs/InfoCollection_single_release_v1.7-2020-09-23.aar')
- implementation 'io.coil-kt:coil:1.0.0-rc3'
- implementation 'com.afollestad.material-dialogs:lifecycle:3.1.1'
- implementation 'com.afollestad.material-dialogs:core:3.1.1'
- implementation 'com.blankj:utilcodex:1.29.0'
- implementation 'com.squareup.retrofit2:retrofit:2.6.0'
- implementation 'com.squareup.retrofit2:converter-gson:2.6.0'
- implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
- implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
- implementation 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.2.0'
- implementation 'androidx.annotation:annotation:1.1.0'
- implementation "androidx.room:room-runtime:2.2.5"
- kapt "androidx.room:room-compiler:2.2.5"
- // api 'androidx.room:room-ktx:2.2.5'
- // testImplementation 'androidx.room:room-testing:2.2.5'
- api "org.jetbrains.anko:anko-commons:0.10.8"
- api "org.jetbrains.anko:anko-sdk25-coroutines:0.10.8"
- api "org.jetbrains.anko:anko-appcompat-v7:0.10.8"
- api "org.jetbrains.anko:anko-recyclerview-v7:0.10.8"
- api "org.jetbrains.anko:anko-recyclerview-v7-coroutines:0.10.8"
- api "org.jetbrains.anko:anko-design:0.10.8"
- api "org.jetbrains.anko:anko-percent:0.10.8"
- api "org.jetbrains.anko:anko-sdk25:0.10.8"
- // qq的综合性的ui框架
- implementation "com.qmuiteam:qmui:2.0.0-alpha02"
- implementation "com.qmuiteam:arch:2.0.0-alpha02"
- // kapt "com.qmuiteam:arch-compiler:2.0.0-alpha02"
- implementation 'com.alibaba:fastjson:1.1.56.android'
- api "com.jakewharton.rxbinding2:rxbinding:2.0.0"
- // 稳定版的下拉刷新框架
- api 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-14'
- // 强大的RecyclerAdapter框架
- implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
- //防止rxjava 持有activity 或 fragment对象 导致内存泄漏
- implementation 'com.trello.rxlifecycle2:rxlifecycle:2.2.1'
- implementation 'com.trello.rxlifecycle2:rxlifecycle-android:2.2.1'
- implementation 'com.trello.rxlifecycle2:rxlifecycle-components:2.2.1'
- implementation 'android.arch.persistence.room:rxjava2:1.1.1'
- implementation files('libs/glide-full-4.7.0.jar')
- implementation files('libs/shiro-all-1.7.1.jar')
- implementation files('libs/tbs_sdk_thirdapp_v3.2.0.1104_43200_sharewithdownload_withfilereader_withoutGame_obfs_20170609_115346.jar')
- //banner 控件
- implementation 'cn.bingoogolapple:bga-banner:3.0.0@aar'
- implementation 'androidx.legacy:legacy-support-v4:1.0.0'
- implementation 'com.facebook.fresco:fresco:2.0.0'
- //选择器控件
- // api 'com.contrarywind:Android-PickerView:4.1.9'
- api 'com.github.Liberuman:ShadowDrawable:0.1'
- implementation "com.jakewharton:butterknife:10.0.0"
- annotationProcessor "com.jakewharton:butterknife-compiler:10.0.0"
- implementation 'com.zhy:okhttputils:2.6.2'
- // rx运行时权限框架
- api 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.5@aar'
- // 版本更新框架
- implementation 'com.github.czy1121:update:1.1.1'
- // Protobuf
- implementation 'com.google.protobuf:protobuf-java:3.11.4'
- implementation 'com.google.guava:guava:23.6-jre'
- implementation 'com.github.Vincent7Wong:EasyNavigation:2.0.5'
- //kotlin 协程
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9"
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9"
- //eventbus
- implementation 'org.greenrobot:eventbus:3.2.0'
- implementation "org.jetbrains.kotlin:kotlin-reflect:1.4.10"
- //图表
- implementation 'com.github.AAChartModel:AAChartCore-Kotlin:-SNAPSHOT'
- implementation 'q.rorbin:badgeview:1.1.3'
- api 'com.luozm.captcha:captcha:1.1.2'
- implementation 'com.sunfusheng:marqueeview:1.3.3'
- implementation 'com.google.zxing:core:3.3.0'
- implementation 'com.cuieney:rxpay-api:2.2.3'
- kapt 'com.cuieney:rxpay-compiler:2.1.1'
- implementation 'com.github.iwgang:countdownview:2.1.6'//倒计时
- // implementation 'io.reactivex.rxjava2:rxjava:2.2.10'
- // implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
- }
|