安卓IPTV项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
UnionMedTV/app/build.gradle

159 lines
6.0 KiB

1 year ago
apply plugin: 'com.android.application'
android {
signingConfigs {
debug {
storeFile file('/ruijapkkey')
storePassword 'ruijie888888'
keyAlias 'ruijie'
keyPassword 'ruijie888888'
}
release {
storeFile file('/ruijapkkey')
storePassword 'ruijie888888'
keyAlias 'ruijie'
keyPassword 'ruijie888888'
}
}
1 year ago
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.unionmed.unionmedtv"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0.0"
1 year ago
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
ndk {
// 设置支持的SO库架构
// abiFilters 'armeabi-v7a' lrj:替换成底下的代码,才支持模拟器
abiFilters "armeabi", "armeabi-v7a", "native-lib", "arm64-v8a", "x86", "x86_64"
/*armeabi-v7a: 7 ARM 2011Android设备都使用它.
arm64-v8a: 864ARM处理器 Galaxy S6是其中之一
armeabi: 56ARM处理器
x86:
x86_64: 64*/
}
}
buildTypes {
release {
zipAlignEnabled true
debuggable false
// minifyEnabled true //是否混淆
// shrinkResources true //是否去除无效的资源文件
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
debuggable true
zipAlignEnabled true
debuggable true
// minifyEnabled false //是否混淆,注意release出现的bug有可能是因为混淆造成的
// shrinkResources false //是否去除无效的资源文件
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
1 year ago
}
}
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
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
pickFirst 'lib/x86/libc++_shared.so'
pickFirst 'lib/arm64-v8a/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
pickFirst 'lib/x86_64/libc++_shared.so'
}
1 year ago
}
android.applicationVariants.all {
variant ->
variant.outputs.all { output ->
if (variant.buildType.name == 'debug') {
output.outputFileName = "unionhealthTV_${android.defaultConfig.versionName}_${getNowTime()}_debug.apk"
} else if (variant.buildType.name == 'release') {
output.outputFileName = "unionhealthTV_${android.defaultConfig.versionName}_${getNowTime()}_release.apk"
}
}
}
static def getNowTime() {
return new Date().format("MM-dd_HH.mm")
}
1 year ago
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':library-player')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.leanback:leanback:1.0.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation("com.github.bumptech.glide:glide:4.9.0") {
exclude group: "com.android.support"
}
implementation 'me.jessyan:autosize:1.1.2'
implementation 'com.tencent.bugly:crashreport:3.1.0'
implementation 'com.tencent.bugly:nativecrashreport:3.7.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
// 网络请求框架:https://github.com/getActivity/EasyHttp
implementation 'com.github.getActivity:EasyHttp:12.0'
1 year ago
implementation 'com.squareup.okhttp3:okhttp:3.12.13'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.github.getActivity:GsonFactory:6.2'
implementation 'com.github.li-xiaojun:XPopup:2.9.19'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
//工具类
implementation 'com.blankj:utilcodex:1.30.6'
//微信开源项目,替代SP
implementation 'com.tencent:mmkv:1.0.22'
//拼音库
implementation 'com.github.SilenceDut:jpinyin:v1.0'
// 权限请求框架:https://github.com/getActivity/XXPermissions
implementation 'com.github.getActivity:XXPermissions:18.6'
//BaseRecyclerViewAdapterHelper
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.11'
//下拉刷新
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3' //核心必须依赖
implementation 'com.scwang.smart:refresh-header-classics:2.0.3' //经典刷新头
implementation 'com.google.android.material:material:1.3.0'
//https://github.com/donkingliang/LabelsView
implementation 'com.github.donkingliang:LabelsView:1.6.5'
// https://github.com/JavaNoober/BackgroundLibrary
//布局直接用shape selector等属性
implementation 'com.github.JavaNoober.BackgroundLibrary:libraryx:1.7.2'
//融云IM 5.2.1.55
api project(path: ':imlib')
api project(path: ':calllib')
//https://github.com/yipianfengye/android-zxingLibrary
compile 'cn.yipianfengye.android:zxing-library:2.2'
compile 'com.github.lmiot:LoadDialog:V2.1'
// api project(path: ':meeting1v1')
implementation 'com.alibaba:fastjson:2.0.19.android'
//版本更新
implementation 'com.teprinciple:updateapputilsx:2.3.0'
1 year ago
}