185 lines
6.8 KiB
Groovy
185 lines
6.8 KiB
Groovy
apply plugin: 'com.android.application'
|
||
apply plugin: 'org.jetbrains.kotlin.android'
|
||
apply plugin: 'com.huawei.agconnect'
|
||
gradle.ext {
|
||
// pushVersion = '3.8.6'
|
||
// thirdPushVersion = '3.8.6'
|
||
}
|
||
|
||
android {
|
||
packagingOptions {
|
||
exclude 'META-INF/DEPENDENCIES.txt'
|
||
exclude 'META-INF/LICENSE.txt'
|
||
exclude 'META-INF/NOTICE.txt'
|
||
exclude 'META-INF/NOTICE'
|
||
exclude 'META-INF/LICENSE'
|
||
exclude 'META-INF/DEPENDENCIES'
|
||
exclude 'META-INF/notice.txt'
|
||
exclude 'META-INF/license.txt'
|
||
exclude 'META-INF/dependencies.txt'
|
||
exclude 'META-INF/LGPL2.1'
|
||
exclude 'META-INF/rxjava.properties'
|
||
}
|
||
|
||
signingConfigs {
|
||
config {
|
||
keyAlias 'android.keystore'
|
||
keyPassword 'ifish7'
|
||
storeFile file('ifish7.keystore')
|
||
storePassword 'ifish7'
|
||
}
|
||
}
|
||
lintOptions {
|
||
checkReleaseBuilds false
|
||
abortOnError false
|
||
}
|
||
compileSdkVersion rootProject.ext.compileSdkVersion
|
||
buildToolsVersion rootProject.ext.buildToolsVersion
|
||
defaultConfig {
|
||
minSdkVersion rootProject.ext.minSdkVersion
|
||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||
applicationId "com.ifish.activity"
|
||
versionCode project.versionCode.toInteger()
|
||
versionName project.versionName
|
||
multiDexEnabled true
|
||
ndk {
|
||
abiFilters "armeabi", "arm64-v8a"
|
||
}
|
||
|
||
manifestPlaceholders = [
|
||
//从 3.1.2.0 版本开始,APPID 占位符从 GETUI_APP_ID 切换为 GETUI_APPID
|
||
//后续所有产品的 APPID 均统一配置为 GETUI_APPID 占位符
|
||
GETUI_APPID : "C2ZpsHzexi5UKuUKyW0Ig",
|
||
// 华为 相关应用参数
|
||
HUAWEI_APP_ID : "100849149",
|
||
|
||
// 小米相关应用参数
|
||
XIAOMI_APP_ID : "2882303761517421890",
|
||
XIAOMI_APP_KEY : "5491742138890",
|
||
|
||
// OPPO 相关应用参数
|
||
OPPO_APP_KEY : "3e7e16kiyP2CC0GoC04Ssc0kg",
|
||
OPPO_APP_SECRET: "1053C651058a2d463f9E88509dBCf56A",
|
||
|
||
// VIVO 相关应用参数
|
||
VIVO_APP_ID : "105834651",
|
||
VIVO_APP_KEY : "52146813dc544332daf4bcfa90dfbe65",
|
||
|
||
// 魅族相关应用参数
|
||
MEIZU_APP_ID : "113398",
|
||
MEIZU_APP_KEY : "042ca143c7b74c98bde699b0b045b429",
|
||
|
||
// 荣耀相关应用参数
|
||
HONOR_APP_ID : "104474114",
|
||
]
|
||
|
||
}
|
||
allprojects {
|
||
sourceCompatibility = 1.8
|
||
targetCompatibility = 1.8
|
||
}
|
||
buildTypes {
|
||
debug {
|
||
minifyEnabled false
|
||
signingConfig signingConfigs.config
|
||
buildConfigField('boolean', 'show', 'false')
|
||
}
|
||
release {
|
||
minifyEnabled false
|
||
signingConfig signingConfigs.config
|
||
buildConfigField('boolean', 'show', 'false')
|
||
}
|
||
}
|
||
dexOptions {
|
||
javaMaxHeapSize '4g'
|
||
}
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_1_8
|
||
targetCompatibility JavaVersion.VERSION_1_8
|
||
}
|
||
kotlinOptions {
|
||
jvmTarget = '1.8'
|
||
}
|
||
|
||
}
|
||
repositories {
|
||
flatDir {
|
||
dirs 'libs' //aar的目录地址
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
implementation files('libs/xUtils-2.6.14.jar')
|
||
implementation files('libs/commons-logging-1.1.1.jar')
|
||
implementation 'com.google.code.gson:gson:2.10.1'//2.8.9
|
||
implementation files('libs/commons-io-1.4.jar')
|
||
implementation 'de.greenrobot:eventbus:2.4.0'
|
||
implementation 'com.squareup.picasso:picasso:2.5.2'
|
||
implementation 'com.squareup.okhttp3:okhttp:3.9.0' //3.9.0
|
||
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
|
||
implementation 'com.google.zxing:core:3.5.1'//3.3.0
|
||
//云信聊天
|
||
implementation 'androidx.multidex:multidex:2.0.1'
|
||
//自动滚动ViewPager
|
||
implementation 'com.jude:rollviewpager:1.4.5'
|
||
implementation project(':BageView')
|
||
implementation 'jp.wasabeef:picasso-transformations:2.1.0'
|
||
implementation 'com.google.android.material:material:1.0.0'//1.0.0
|
||
implementation 'com.github.bumptech.glide:glide:4.15.1'//4.11.0
|
||
implementation 'androidx.core:core-ktx:1.9.0'//1.10.1
|
||
annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'//4.11.0
|
||
implementation 'cn.bingoogolapple:bga-refreshlayout:1.1.7@aar'
|
||
implementation project(':JCVideo_Library')
|
||
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
|
||
implementation files('libs/mina-core-2.0.17.jar')
|
||
implementation(name: 'p2p-core-release', ext: 'aar')
|
||
// implementation(name: 'pano-release', ext: 'aar') // jjia
|
||
implementation(name: 'soundwave-release', ext: 'aar')
|
||
implementation 'com.libhttp:libhttp:v0.5.5'
|
||
implementation files('libs/javabase64.jar')
|
||
implementation files('libs/httpcore-4.4.13.jar')
|
||
implementation files('libs/httpclient-4.5.12.jar')
|
||
implementation 'com.zhy:autolayout:1.4.5'
|
||
//UDP功能模块库
|
||
//UDP基础库(不可少)
|
||
implementation 'com.jwkj:udpsender:v2.0.2'
|
||
implementation(name: 'UDPUtilsLib-v1.1.1', ext: 'aar')
|
||
//摇杆空间
|
||
implementation 'com.github.kongqw:AndroidRocker:1.0.1'
|
||
implementation 'com.aliyun.ams:alicloud-android-httpdns:2.1.1'
|
||
implementation 'io.reactivex:rxandroid:1.2.1'
|
||
implementation 'io.reactivex:rxjava:1.1.6'
|
||
implementation 'com.tencent.mm.opensdk:wechat-sdk-android:6.8.24'//微信官方依赖库
|
||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'//2.0.4
|
||
implementation 'com.tencent:mmkv:2.0.0'
|
||
implementation("com.github.bumptech.glide:okhttp3-integration:4.11.0" )
|
||
implementation 'com.github.Jasonchenlijian:FastBle:2.4.0'
|
||
|
||
implementation 'io.github.lucksiege:pictureselector:v3.11.2'
|
||
// 图片压缩 (按需引入)
|
||
implementation 'io.github.lucksiege:compress:v3.11.2'
|
||
// 图片裁剪 (按需引入)
|
||
implementation 'io.github.lucksiege:ucrop:v3.11.2'
|
||
|
||
|
||
//推送
|
||
implementation 'com.getui:gtsdk:3.3.9.0' //个推SDK
|
||
implementation 'com.getui:gtc:3.2.18.0' //个推核心组件
|
||
// 根据所需厂商选择集成
|
||
implementation 'com.getui.opt:hwp:3.1.2' // 华为
|
||
implementation 'com.getui.opt:xmp:3.3.1' // 小米
|
||
implementation 'com.assist-v3:oppo:3.5.0' // oppo
|
||
implementation 'com.assist-v3:vivo:3.2.0' // vivo
|
||
implementation 'com.getui.opt:mzp:3.2.3' // 魅族
|
||
implementation 'com.getui.opt:ups:3.0.3' // ups,ups目前支持坚果,索尼,海信手机
|
||
implementation 'com.getui.opt:honor:3.6.0' // 荣耀
|
||
|
||
|
||
//华为
|
||
implementation 'com.huawei.hms:push:6.12.0.300'
|
||
// 添加荣耀 SDK
|
||
implementation 'com.hihonor.mcs:push:7.0.61.303'
|
||
//oppo配置以下依赖都需要添加
|
||
implementation 'commons-codec:commons-codec:1.6'
|
||
implementation 'com.android.support:support-annotations:28.0.0'
|
||
} |