2020-04-02 10:43:40 +08:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
// android res guard 资源混淆脚本
|
|
|
|
apply from: 'and_res_guard.gradle'
|
2020-07-06 18:38:23 +08:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
2020-07-27 18:00:04 +08:00
|
|
|
apply plugin: 'com.huawei.agconnect'
|
2020-04-02 10:43:40 +08:00
|
|
|
|
|
|
|
android {
|
2020-04-02 16:20:03 +08:00
|
|
|
compileSdkVersion 29
|
2020-04-02 10:43:40 +08:00
|
|
|
|
|
|
|
defaultConfig {
|
2021-01-07 18:31:04 +08:00
|
|
|
applicationId "com.mango.yinyou"
|
2021-12-06 18:53:52 +08:00
|
|
|
minSdkVersion 21
|
2020-04-02 16:20:03 +08:00
|
|
|
targetSdkVersion 29
|
2020-04-02 10:43:40 +08:00
|
|
|
versionCode Integer.valueOf(version_code)
|
|
|
|
versionName version_name
|
|
|
|
|
2020-04-24 15:14:59 +08:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2020-04-02 10:43:40 +08:00
|
|
|
multiDexEnabled true
|
|
|
|
|
|
|
|
ndk {
|
|
|
|
//设置支持的SO库架构
|
2021-12-06 14:41:25 +08:00
|
|
|
abiFilters "armeabi-v7a", "arm64-v8a"
|
2020-04-02 10:43:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
flavorDimensions 'default'
|
|
|
|
}
|
|
|
|
|
2020-05-12 16:01:27 +08:00
|
|
|
|
|
|
|
//在apk文件后边生成版本号信息
|
|
|
|
android.applicationVariants.all {
|
|
|
|
variant ->
|
|
|
|
variant.outputs.all {
|
2020-05-12 17:58:42 +08:00
|
|
|
def date = new Date().format("MMddHHmm", TimeZone.getTimeZone("GMT+08"))
|
2021-12-10 17:23:55 +08:00
|
|
|
outputFileName = "yinyou_${buildType.name}_${channel}_v${defaultConfig.versionName}-${date}.apk"
|
2020-05-12 16:01:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-02 10:43:40 +08:00
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
disable 'ExtraTranslation'
|
|
|
|
}
|
|
|
|
|
|
|
|
dexOptions {
|
|
|
|
javaMaxHeapSize "1g"
|
|
|
|
jumboMode = true
|
|
|
|
}
|
|
|
|
|
|
|
|
dataBinding {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
|
2021-01-08 15:34:13 +08:00
|
|
|
viewBinding {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
|
2020-04-02 10:43:40 +08:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'lib/armeabi-v7a/libagora-crypto.so'
|
|
|
|
}
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
|
|
|
|
v2 {
|
2021-01-07 18:31:04 +08:00
|
|
|
storeFile file('../yinyou.jks')
|
|
|
|
storePassword "yinyou2021"
|
|
|
|
keyAlias "yinyou"
|
|
|
|
keyPassword "yinyou2021"
|
2020-04-02 10:43:40 +08:00
|
|
|
v2SigningEnabled true
|
|
|
|
v1SigningEnabled true
|
|
|
|
}
|
|
|
|
|
|
|
|
v1 {
|
2021-01-07 18:31:04 +08:00
|
|
|
storeFile file('../yinyou.jks')
|
|
|
|
storePassword "yinyou2021"
|
|
|
|
keyAlias "yinyou"
|
|
|
|
keyPassword "yinyou2021"
|
2020-05-12 12:31:13 +08:00
|
|
|
v2SigningEnabled false
|
2020-04-02 10:43:40 +08:00
|
|
|
v1SigningEnabled true
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
|
|
|
main {
|
|
|
|
java.srcDirs = [
|
|
|
|
'src/main/java',
|
|
|
|
'src/module_public_chat_hall/java',
|
|
|
|
'src/module_upgrade_app/java',
|
|
|
|
'src/module_mentoring_relationship/java',
|
|
|
|
'src/module_labour_union/java',
|
|
|
|
'src/module_room_chat/java',
|
|
|
|
'src/model_customer_server/java',
|
|
|
|
'src/module_music/java',
|
|
|
|
'src/module_mini_world/java',
|
|
|
|
'src/module_lottery_dialog/java',
|
|
|
|
'src/module_bank_card/java',
|
|
|
|
'src/module_super_admin/java',
|
|
|
|
'src/module_treasure_box/java',
|
|
|
|
|
|
|
|
'src/module_community/java',
|
2020-04-07 16:41:24 +08:00
|
|
|
'src/module_album/java',
|
|
|
|
'src/module_quick_pass/java'
|
2020-04-02 10:43:40 +08:00
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
res.srcDirs = [
|
|
|
|
'src/main/res',
|
|
|
|
'src/common/res',
|
|
|
|
'src/module_public_chat_hall/res',
|
|
|
|
'src/module_upgrade_app/res',
|
|
|
|
'src/module_mentoring_relationship/res',
|
|
|
|
'src/module_labour_union/res',
|
|
|
|
'src/module_room_chat/res',
|
|
|
|
'src/model_customer_server/res',
|
|
|
|
'src/module_music/res',
|
|
|
|
'src/module_mini_world/res',
|
|
|
|
'src/module_lottery_dialog/res',
|
|
|
|
'src/module_bank_card/res',
|
|
|
|
'src/module_super_admin/res',
|
|
|
|
'src/module_treasure_box/res',
|
|
|
|
|
|
|
|
'src/module_community/res',
|
2020-04-07 16:41:24 +08:00
|
|
|
'src/module_album/res',
|
|
|
|
'src/module_quick_pass/res'
|
2020-04-02 10:43:40 +08:00
|
|
|
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
// buildConfigField "String", "BASE_URL", "\"https://www.erbanyy.com/\""
|
2020-04-10 16:48:04 +08:00
|
|
|
|
2021-06-16 03:36:17 +08:00
|
|
|
buildConfigField "String", "BASE_URL", "\"https://api.lecheng163.com/\""
|
2020-04-02 10:43:40 +08:00
|
|
|
buildConfigField "String", "BASE_URL_DEBUG", "BASE_URL"
|
|
|
|
buildConfigField "String", "BASE_URL_STAGING", "BASE_URL"
|
|
|
|
buildConfigField "String", "BASE_URL_RELEASE", "BASE_URL"
|
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
|
|
|
signingConfig signingConfigs.v2
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
|
|
|
|
staging {
|
2021-06-16 03:36:17 +08:00
|
|
|
buildConfigField "String", "BASE_URL", "\"https://api.lecheng163.com/\""
|
2020-04-02 10:43:40 +08:00
|
|
|
buildConfigField "String", "BASE_URL_DEBUG", "BASE_URL"
|
|
|
|
buildConfigField "String", "BASE_URL_STAGING", "BASE_URL"
|
|
|
|
buildConfigField "String", "BASE_URL_RELEASE", "BASE_URL"
|
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
|
|
|
signingConfig signingConfigs.v2
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
matchingFallbacks = ['staging', 'release']
|
|
|
|
}
|
|
|
|
|
|
|
|
debug {
|
2021-06-16 03:36:17 +08:00
|
|
|
buildConfigField "String", "BASE_URL", "\"http://api.uat.lecheng163.com/\""
|
2020-04-02 10:43:40 +08:00
|
|
|
buildConfigField "String", "BASE_URL_DEBUG", "BASE_URL"
|
2021-06-16 03:36:17 +08:00
|
|
|
buildConfigField "String", "BASE_URL_STAGING", "\"https://api.lecheng163.com/\""
|
|
|
|
buildConfigField "String", "BASE_URL_RELEASE", "\"https://api.lecheng163.com/\""
|
2020-04-02 10:43:40 +08:00
|
|
|
|
|
|
|
minifyEnabled false
|
|
|
|
shrinkResources false
|
2021-01-12 11:28:25 +08:00
|
|
|
signingConfig signingConfigs.v1
|
2020-05-12 17:58:42 +08:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2020-04-02 10:43:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
2021-06-03 18:36:12 +08:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
2020-04-02 10:43:40 +08:00
|
|
|
productFlavors {
|
2020-04-03 16:54:53 +08:00
|
|
|
accompany {
|
2020-04-02 10:43:40 +08:00
|
|
|
dimension 'default'
|
2021-12-10 17:23:55 +08:00
|
|
|
manifestPlaceholders = [CHANNEL_VALUE: channel]
|
2020-04-02 10:43:40 +08:00
|
|
|
}
|
|
|
|
}
|
2020-04-08 16:44:03 +08:00
|
|
|
buildToolsVersion = '28.0.3'
|
2020-04-02 10:43:40 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
def Lombok = "1.16.20"
|
2021-11-19 16:31:47 +08:00
|
|
|
def useFlutterAar = Boolean.parseBoolean(with_flutter_aar)
|
2020-04-02 10:43:40 +08:00
|
|
|
|
|
|
|
dependencies {
|
2020-08-04 20:39:21 +08:00
|
|
|
api fileTree(dir: 'libs', include: ['*.jar'])
|
2021-01-05 11:51:57 +08:00
|
|
|
testImplementation 'junit:junit:4.13.1'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
|
|
|
2020-07-24 14:05:51 +08:00
|
|
|
api 'androidx.multidex:multidex:2.0.1'
|
2020-04-02 10:43:40 +08:00
|
|
|
|
2021-05-12 20:54:37 +08:00
|
|
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
|
2020-04-02 10:43:40 +08:00
|
|
|
|
|
|
|
api "com.orhanobut:dialogplus:1.11@aar"
|
|
|
|
|
|
|
|
api "com.readystatesoftware.systembartint:systembartint:1.0.4"
|
|
|
|
api "com.rengwuxian.materialedittext:library:2.1.4"
|
|
|
|
api "com.github.flavienlaurent.datetimepicker:library:0.0.2"
|
|
|
|
|
|
|
|
api "com.darsh.multipleimageselect:multipleimageselect:1.0.4"
|
2020-04-24 15:14:59 +08:00
|
|
|
api "me.shaohui.advancedluban:library:1.3.5"
|
2020-04-02 10:43:40 +08:00
|
|
|
api "pl.droidsonroids.gif:android-gif-drawable:1.2.7"
|
|
|
|
api "com.makeramen:roundedimageview:2.3.0"
|
|
|
|
api "com.jzxiang.pickerview:TimePickerDialog:1.0.1"
|
|
|
|
api "com.github.zyyoona7:EasyPopup:1.0.2"
|
2021-10-15 15:22:13 +08:00
|
|
|
api "com.github.donkingliang:LabelsView:1.6.5"
|
2021-11-05 14:14:56 +08:00
|
|
|
api "com.github.yyued:SVGAPlayer-Android:2.6.1"
|
2020-04-24 15:14:59 +08:00
|
|
|
implementation "com.orhanobut:logger:2.2.0"
|
2020-04-02 10:43:40 +08:00
|
|
|
api "com.ms-square:expandableTextView:0.1.4"
|
2020-04-24 15:14:59 +08:00
|
|
|
api "com.jakewharton:butterknife:10.1.0"
|
|
|
|
annotationProcessor "com.jakewharton:butterknife-compiler:10.1.0"
|
2020-04-02 10:43:40 +08:00
|
|
|
implementation "com.llew.huawei:verifier:1.0.3"
|
2020-04-24 15:14:59 +08:00
|
|
|
annotationProcessor 'androidx.annotation:annotation:1.1.0'
|
2020-04-02 10:43:40 +08:00
|
|
|
|
|
|
|
api "com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar"
|
|
|
|
api "com.nex3z:flow-layout:1.2.2"
|
|
|
|
|
|
|
|
api project(':core')
|
|
|
|
|
|
|
|
implementation 'com.github.qiujayen:sticky-layoutmanager:1.0.1'
|
|
|
|
|
|
|
|
implementation 'com.github.chenBingX:SuperTextView:v3.0.0'
|
|
|
|
|
|
|
|
//支付密码输入框
|
|
|
|
api 'com.jungly:gridPasswordView:0.3'
|
2021-11-12 17:11:32 +08:00
|
|
|
api 'com.google.android.flexbox:flexbox:3.0.0'
|
2020-04-02 10:43:40 +08:00
|
|
|
|
|
|
|
compileOnly "org.projectlombok:lombok:${Lombok}"
|
|
|
|
annotationProcessor "org.projectlombok:lombok:${Lombok}"
|
|
|
|
implementation 'nl.dionsegijn:konfetti:1.1.2'
|
|
|
|
|
|
|
|
// 华为推送
|
2020-07-27 18:00:04 +08:00
|
|
|
// api(name: 'base-2.6.1.301', ext: 'aar')
|
|
|
|
// api(name: 'push-2.6.1.301', ext: 'aar')
|
2020-04-02 10:43:40 +08:00
|
|
|
// 魅族推送
|
2020-07-30 14:11:19 +08:00
|
|
|
implementation 'com.meizu.flyme.internet:push-internal:3.9.0@aar'
|
2020-04-07 16:41:24 +08:00
|
|
|
// vivo推送
|
|
|
|
implementation files("libs/vivo_pushsdk-v2.9.0.0.aar")
|
2021-01-12 11:28:25 +08:00
|
|
|
|
2020-05-13 23:07:23 +08:00
|
|
|
//阿里云实名认证
|
2021-12-13 10:33:29 +08:00
|
|
|
api(name: 'rpsdk-4.13.1-open', ext: 'aar')
|
2021-01-12 11:28:25 +08:00
|
|
|
api(name: 'MiddleTierSDK-external-release-5.5.13874142', ext: 'aar')
|
2021-12-13 10:33:29 +08:00
|
|
|
api(name: 'SecurityBodySDK-external-release-5.5.15071314', ext: 'aar')
|
|
|
|
api(name: 'SecurityGuardSDK-external-release-5.5.15071059', ext: 'aar')
|
2021-08-18 14:23:24 +08:00
|
|
|
|
2020-04-02 10:43:40 +08:00
|
|
|
//数字滚动效果
|
|
|
|
implementation 'com.github.YvesCheung:RollingText:1.2.3'
|
|
|
|
// 引入原有第三方裁图源码,方便修改
|
|
|
|
api project(':android_crop_lib')
|
|
|
|
|
|
|
|
//rx权限请求框架
|
|
|
|
implementation('com.github.tbruyelle:rxpermissions:0.10.2') {
|
|
|
|
exclude group: 'io.reactivex.rxjava2'
|
|
|
|
}
|
|
|
|
//验证码控件 https://github.com/JingYeoh/VercodeEditText
|
|
|
|
implementation 'com.justkiddingbaby:vercodeedittext:1.1.0'
|
|
|
|
|
|
|
|
implementation 'it.sephiroth.android.library.imagezoom:library:1.0.4'
|
|
|
|
|
2020-04-07 16:41:24 +08:00
|
|
|
// 易盾一键登录
|
|
|
|
implementation(name: 'quicklogin_libary-external-release', ext: 'aar')
|
|
|
|
implementation(name: 'CMCCSSOSDK-WY', ext: 'aar')
|
|
|
|
implementation(name: 'Ui-factory_oauth_mobile_3.8.3.1', ext: 'aar')
|
|
|
|
implementation(name: 'CTAccount_sdk_api_v3.7.0_all', ext: 'aar')
|
|
|
|
|
2020-04-10 16:48:04 +08:00
|
|
|
implementation 'com.github.fodroid:XRadioGroup:v1.5'
|
2020-06-09 18:06:21 +08:00
|
|
|
implementation files('libs/msa_mdid_1.0.13.aar')
|
2020-07-27 18:00:04 +08:00
|
|
|
implementation 'com.huawei.hms:push:4.0.4.301'
|
2020-08-10 12:52:31 +08:00
|
|
|
implementation fileTree(dir: 'libs', include: ['oppo-mcssdk-2.0.2.jar'])
|
2021-04-12 15:38:26 +08:00
|
|
|
|
2021-09-27 15:47:21 +08:00
|
|
|
implementation files('libs/humesdk-1.0.0.aar')
|
2021-11-19 16:31:47 +08:00
|
|
|
|
2021-12-10 13:53:27 +08:00
|
|
|
implementation(name: 'SudMGP-v1.1.32.200', ext: 'aar')
|
2021-12-06 18:53:52 +08:00
|
|
|
|
2021-11-19 16:31:47 +08:00
|
|
|
// xplan flutter module
|
|
|
|
if (useFlutterAar) {
|
|
|
|
implementation 'com.mango.flutter.xplan:flutter_release:1.0'
|
|
|
|
} else {
|
|
|
|
implementation project(path: ':flutter')
|
|
|
|
implementation project(path: ':flutter_boost')
|
|
|
|
}
|
2020-04-02 10:43:40 +08:00
|
|
|
}
|
|
|
|
|
2021-11-19 16:31:47 +08:00
|
|
|
String storageUrl = System.env.FLUTTER_STORAGE_BASE_URL ?: "https://storage.googleapis.com"
|
|
|
|
|
2020-04-02 10:43:40 +08:00
|
|
|
repositories {
|
|
|
|
flatDir {
|
2021-08-18 14:23:24 +08:00
|
|
|
dirs 'aliyun-libs', 'quick-pass-libs', 'com.huawei.agconnect'
|
2020-04-02 10:43:40 +08:00
|
|
|
}
|
2020-07-07 18:47:11 +08:00
|
|
|
mavenCentral()
|
2021-11-19 16:31:47 +08:00
|
|
|
|
|
|
|
maven {
|
|
|
|
url '../xplan-flutter/build/host/outputs/repo'
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
url "$storageUrl/download.flutter.io"
|
|
|
|
}
|
2020-04-02 10:43:40 +08:00
|
|
|
}
|