402 lines
19 KiB
Groovy
402 lines
19 KiB
Groovy
apply plugin: 'com.android.application'
|
||
apply plugin: 'com.huawei.agconnect'
|
||
apply plugin: 'kotlin-android'
|
||
apply plugin: 'kotlin-android-extensions'
|
||
apply plugin: 'com.hihonor.mcs.asplugin'
|
||
|
||
//apply plugin: 'android-junk-code'
|
||
//androidJunkCode {
|
||
// def config = {
|
||
// //变体名称,如果没有设置productFlavors就是buildType名称,如果有设置productFlavors就是flavor+buildType,例如(freeRelease、proRelease)
|
||
// packageBase = "com.live.siyu" //生成java类根包名
|
||
// packageCount = 60 //生成包数量
|
||
// activityCountPerPackage = 6 //每个包下生成Activity类数量
|
||
// excludeActivityJavaFile = false
|
||
// //是否排除生成Activity的Java文件,默认false(layout和写入AndroidManifest.xml还会执行),主要用于处理类似神策全埋点编译过慢问题
|
||
// otherCountPerPackage = 60 //每个包下生成其它类的数量
|
||
// methodCountPerClass = 60 //每个类下生成方法数量
|
||
// resPrefix = "sy_" //生成的layout、drawable、string等资源名前缀
|
||
// drawableCount = 300 //生成drawable资源数量
|
||
// stringCount = 300 //生成string数量
|
||
// }
|
||
// variantConfig {
|
||
// devDebug config
|
||
// ossRelease config
|
||
// }
|
||
//}
|
||
|
||
android {
|
||
aaptOptions.cruncherEnabled = false
|
||
aaptOptions.useNewCruncher = false
|
||
compileSdkVersion 31
|
||
buildToolsVersion "30.0.3"
|
||
viewBinding {
|
||
enabled = true
|
||
}
|
||
useLibrary 'org.apache.http.legacy'
|
||
defaultConfig {
|
||
applicationId "com.fengliyan.tianlesue"
|
||
minSdkVersion 24
|
||
targetSdkVersion 30
|
||
versionCode 38
|
||
versionName "2.5.1"
|
||
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||
flavorDimensions "versionCode"
|
||
buildConfigField "String", "AUTH_SECRET", '"tX1pY3+d9GOsDdek6c8EkqlBagajAzzq4Yl8xWzKxE66qzaa51BRukuNO66MPcv92lK5tTifKP6md8Jn/vIcgQCLpJWhr4vKvcGeOmBFIPmdo/++elnHTJdJ10RSRN8fDaQVUhX7Ap3KoPQ4n/oSUNSpa/HKZihCLQK31vyNCL/GZ4bGijb2e63JDN4GbUOP1d7yw4vbaNEA883Da+CQ+CyYW4aXWuLca/1ngoszOw3wRFhe/ZMVDhDRRMc7Bpp/+judD4ehwydRzLprBpVSQufZV6XAUpec3V7eJRH3FHGXE4fwtZK4BA=="'
|
||
multiDexEnabled true
|
||
ndk {
|
||
abiFilters "arm64-v8a", "armeabi-v7a"
|
||
}
|
||
}
|
||
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_1_8
|
||
targetCompatibility JavaVersion.VERSION_1_8
|
||
}
|
||
configurations.all {
|
||
resolutionStrategy {
|
||
force 'androidx.core:core:1.7.0'
|
||
}
|
||
}
|
||
packagingOptions {
|
||
pickFirst 'lib/arm64-v8a/libc++_shared.so'
|
||
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
|
||
}
|
||
|
||
signingConfigs {
|
||
release {
|
||
// default keystore file, PLZ config file path in local.properties
|
||
//Properties properties = new Properties()
|
||
//加载本地local.properties文件
|
||
/*if(rootProject.file("local.properties").exists()) {
|
||
properties.load(rootProject.file("local.properties").newDataInputStream())
|
||
}
|
||
storeFile file(properties.get("storeFile") ?: System.getenv("FLOW_CERTIFICATE_FILE"))
|
||
storePassword properties.get("storePassword") ?: System.getenv("FLOW_KEYSTORE_PASS")
|
||
keyAlias properties.get("keyAlias") ?: System.getenv("FLOW_ALIAS_NAME")
|
||
keyPassword properties.get("keyPassword") ?: System.getenv("FLOW_ALIAS_PASS")*/
|
||
|
||
storeFile file("xiayue.jks")
|
||
storePassword 'Chenqihong3'
|
||
keyAlias 'chenqihong3'
|
||
keyPassword 'Chenqihong3'
|
||
v1SigningEnabled true
|
||
v2SigningEnabled true
|
||
}
|
||
}
|
||
|
||
|
||
//更改打包名字
|
||
applicationVariants.all { variant ->
|
||
variant.outputs.all {
|
||
//qingyu_v1.4.5_oppo_id1389900
|
||
// def code = getBuildConfigFieldValue(variant, "InviteCode")
|
||
// def codeReplace = code.replace("\"", "").replace("\"", "")
|
||
// def fileName = "qingyu_v${versionName}_${variant.productFlavors[0].name}_id${codeReplace}_${buildType.name}.apk"
|
||
def fileName = "siyu_v${versionName}_${variant.productFlavors[0].name}_${buildType.name}.apk"
|
||
outputFileName = fileName
|
||
}
|
||
variant.mergeAssetsProvider.configure {
|
||
doLast {
|
||
delete(fileTree(dir: outputDir,
|
||
includes: ['model/ai_bgseg_green.bundle',
|
||
'model/ai_face_processor_lite.bundle',
|
||
'model/ai_hairseg.bundle',
|
||
'model/ai_hand_processor.bundle',
|
||
'model/ai_human_processor_mb_fast.bundle',
|
||
'graphics/face_makeup.bundle',
|
||
'graphics/body_slim.bundle',
|
||
'graphics/controller_cpp.bundle',
|
||
'graphics/fuzzytoonfilter.bundle',
|
||
'graphics/tongue.bundle',
|
||
'graphics/fxaa.bundle']))
|
||
}
|
||
}
|
||
}
|
||
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled false
|
||
// shrinkResources true
|
||
// useProguard true
|
||
// zipAlignEnabled true
|
||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
signingConfig signingConfigs.release
|
||
}
|
||
|
||
debug {
|
||
minifyEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
signingConfig signingConfigs.release
|
||
}
|
||
}
|
||
|
||
repositories {
|
||
flatDir {
|
||
dirs 'libs'
|
||
}
|
||
}
|
||
sourceSets {
|
||
main {
|
||
jniLibs.srcDirs = ['libs']
|
||
}
|
||
|
||
main.assets.srcDirs += ['src/main/assets']
|
||
main.res.srcDirs += ['src/mian/res', 'src/main/filters/res']
|
||
}
|
||
|
||
lintOptions {
|
||
checkReleaseBuilds false
|
||
// Or, if you prefer, you can continue to check for errors in release builds,
|
||
// but continue the build even when errors are found:
|
||
abortOnError false
|
||
}
|
||
|
||
productFlavors {
|
||
// dev {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "true"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "oss",
|
||
// APP_NAME : "私语"
|
||
// ]
|
||
// }
|
||
oss {
|
||
applicationId "com.fengliyan.tianlesue"
|
||
buildConfigField "boolean", "IS_DEV", "false"
|
||
buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
MARKET_VALUE : "oss",
|
||
APP_NAME : "私语"
|
||
]
|
||
}
|
||
|
||
// vivo {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "vivo",
|
||
// APP_NAME : "私语"
|
||
// ]
|
||
// }
|
||
// oppo {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "oppo",
|
||
// APP_NAME : "私语",
|
||
// ]
|
||
// }
|
||
// xiaomi {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "xiaomi",
|
||
// APP_NAME : "私语"
|
||
// ]
|
||
// }
|
||
// yingyongbao {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "yingyongbao",
|
||
// APP_NAME : "私语"
|
||
// ]
|
||
// }
|
||
// huawei {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuSocialPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuSocialAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuSocialVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "huawei",
|
||
// APP_NAME : "私语交友"
|
||
// ]
|
||
// }
|
||
// honor {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "honor",
|
||
// APP_NAME : "私语"
|
||
// ]
|
||
// }
|
||
// meizu {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "meizu",
|
||
// APP_NAME : "私语"
|
||
// ]
|
||
// }
|
||
// baiduss {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "baiduss",
|
||
// APP_NAME : "私语"
|
||
// ]
|
||
// }
|
||
// baiduxxl {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "baiduxxl",
|
||
// APP_NAME : "私语"
|
||
// ]
|
||
// }
|
||
// threesixzero {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "\"360\"",
|
||
// APP_NAME : "私语"
|
||
// ]
|
||
// }
|
||
// ali {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "ali",
|
||
// APP_NAME : "私语"
|
||
// ]
|
||
// }
|
||
// kuaishou {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "kuaishou",
|
||
// APP_NAME : "私语"
|
||
// ]
|
||
// }
|
||
// douyin {
|
||
// applicationId "com.fengliyan.tianlesue"
|
||
// buildConfigField "boolean", "IS_DEV", "false"
|
||
// buildConfigField "String", "PRIVACY", '"/index/about/siyuPrivacy.html"'
|
||
// buildConfigField "String", "AGREEMENT", '"/index/about/siyuAgreement.html"'
|
||
// buildConfigField "String", "VIP_AGREEMENT", '"/index/about/siyuVipAgreement.html"'
|
||
// manifestPlaceholders = [APPLICATION_ID: "com.fengliyan.tianlesue",
|
||
// MARKET_VALUE : "douyin",
|
||
// APP_NAME : "私语"
|
||
// ]
|
||
// }
|
||
}
|
||
|
||
dependencies {
|
||
//noinspection GradleCompatible
|
||
implementation 'com.github.gzu-liyujiang:Android_CN_OAID:4.2.4'
|
||
implementation 'androidx.appcompat:appcompat:1.2.0'
|
||
implementation 'androidx.recyclerview:recyclerview:1.1.0-beta04'
|
||
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
|
||
testImplementation 'junit:junit:4.12'
|
||
androidTestImplementation 'com.androidx.support.test:runner:1.0.1'
|
||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
|
||
implementation 'com.facebook.fresco:fresco:1.8.1'
|
||
implementation 'com.contrarywind:Android-PickerView:4.0.1'
|
||
implementation 'com.google.code.gson:gson:2.8.2'
|
||
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
|
||
implementation 'io.reactivex.rxjava2:rxjava:2.1.12'
|
||
implementation 'in.srain.cube:ultra-ptr:1.0.11'
|
||
implementation 'commons-io:commons-io:2.6'
|
||
implementation 'me.relex:photodraweeview:1.1.3'
|
||
implementation 'me.himanshusoni.quantityview:quantity-view:1.2.0'
|
||
implementation project(path: ':uikit')
|
||
implementation project(path: ':location')
|
||
implementation project(path: ':http')
|
||
implementation project(path: ':share')
|
||
implementation project(path: ':device')
|
||
implementation project(path: ':messaging')
|
||
implementation project(path: ':storage')
|
||
implementation project(path: ':yunxinkit')
|
||
implementation project(':faceunity')
|
||
//EventBus
|
||
implementation 'de.greenrobot:eventbus:2.4.0'
|
||
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.8.0'
|
||
//魅族推送
|
||
implementation 'com.meizu.flyme.internet:push-internal:3.6.3@aar'
|
||
implementation 'de.hdodenhof:circleimageview:2.2.0'
|
||
implementation 'org.adw.library:discrete-seekbar:1.0.1'
|
||
//设置状态栏颜色
|
||
implementation 'com.githang:status-bar-compat:0.7'
|
||
//banner
|
||
implementation 'com.youth.banner:banner:1.4.10'
|
||
//最新版本
|
||
//仿微信图片预览
|
||
implementation 'com.google.android.material:material:1.4.0'
|
||
|
||
implementation fileTree(include: ['*.aar', '*.jar'], exclude: [], dir: 'libs')
|
||
|
||
implementation 'com.huawei.hms:push:6.12.0.300' //华为
|
||
implementation 'com.hihonor.mcs:push:7.0.61.303'
|
||
implementation 'com.github.yyued:SVGAPlayer-Android:2.5.12'//svga
|
||
|
||
implementation 'com.tencent.bugly:crashreport:4.0.4'
|
||
implementation 'com.github.getActivity:XXPermissions:13.6'
|
||
|
||
|
||
implementation 'me.jessyan:autosize:1.2.1'
|
||
//圆角控件
|
||
implementation 'com.flyco.roundview:FlycoRoundView_Lib:1.1.4@aar'
|
||
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.6'
|
||
implementation 'com.github.eralpyucel:CircleProgressView:v1.1'
|
||
//implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.1.0'
|
||
implementation 'com.shuyu:GSYVideoPlayer:8.1.0'
|
||
|
||
implementation 'com.googlecode.mp4parser:isoparser:1.1.21'
|
||
|
||
implementation "io.agora.rtc:full-rtc-basic:3.6.2"
|
||
// implementation 'commons-codec:commons-codec:1.6'
|
||
implementation 'io.github.happylishang:antifake:1.7.0'
|
||
implementation 'com.blankj:utilcodex:1.31.1'
|
||
implementation 'com.airbnb.android:lottie:5.2.0'
|
||
// implementation 'com.mcxiaoke.packer-ng:helper:2.0.1'
|
||
// implementation(name: 'alipaySdk-15.8.03.210428205839', ext: 'aar')
|
||
// 商业化转化组件(必须)
|
||
implementation 'com.bytedance.ads:AppConvert:2.0.0'
|
||
implementation 'com.ryan.github:menupopupview:1.0.0'
|
||
implementation 'io.github.scwang90:refresh-layout-kernel:3.0.0-alpha'
|
||
implementation 'io.github.scwang90:refresh-footer-classics:3.0.0-alpha'
|
||
implementation 'com.devzld:expandlayout:1.0.0'
|
||
implementation 'io.github.lucksiege:pictureselector:v3.11.2'
|
||
implementation 'com.github.Dimezis:BlurView:version-3.1.0'
|
||
}
|
||
} |