基线备份:thirdparty 变体完成 + Android 4.2 兼容改造前
包含内容: - thirdparty flavor 独立 applicationId + Intent 入口(ThirdPartyEntryActivity) - 58 后端接口适配(单 /api 路径、code 0/200、camelCase 字段、UNBOUND 轮询) - MAC 硬件锚定校验(防一凭证多设备共用) - EPG mac 覆盖 SDK init(sMacOverride)+ ChannelManger 初始化对齐 - 提示文案优化(设备未注册/权益未绑定)
This commit is contained in:
68
libcore/build.gradle
Executable file
68
libcore/build.gradle
Executable file
@@ -0,0 +1,68 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
}
|
||||
android {
|
||||
namespace 'com.pukka.libcore'
|
||||
compileSdkVersion app_android.compileSdkVersion
|
||||
buildFeatures {
|
||||
buildConfig = true
|
||||
}
|
||||
defaultConfig {
|
||||
minSdkVersion app_android.minSdkVersion
|
||||
targetSdkVersion app_android.targetSdkVersion
|
||||
versionCode app_android.versionCode
|
||||
versionName app_android.versionName
|
||||
multiDexEnabled app_android.multiDexEnabled
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
consumerProguardFiles "consumer-rules.pro"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
preview {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
debug {
|
||||
minifyEnabled false
|
||||
zipAlignEnabled false
|
||||
shrinkResources false
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_17
|
||||
targetCompatibility JavaVersion.VERSION_17
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
implementation 'androidx.appcompat:appcompat:1.3.0'
|
||||
implementation 'com.google.android.material:material:1.4.0'
|
||||
api 'androidx.lifecycle:lifecycle-process:2.4.0'
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
||||
|
||||
//阿里 json 解析
|
||||
api 'com.alibaba:fastjson:1.2.62'
|
||||
api 'com.facebook.fresco:imagepipeline-okhttp3:2.6.0'
|
||||
api 'com.facebook.fresco:fresco:2.6.0'
|
||||
api 'com.facebook.fresco:animated-gif:2.6.0'
|
||||
// okHttp网络请求框架===================================
|
||||
api 'com.squareup.okhttp3:logging-interceptor:3.12.0'
|
||||
api 'com.squareup.okhttp3:okhttp:3.12.0'
|
||||
//retrofit网络请求框架
|
||||
api 'com.squareup.retrofit2:retrofit:2.9.0'
|
||||
//retrofit添加Json解析返回数据
|
||||
api 'com.squareup.retrofit2:converter-scalars:2.9.0'
|
||||
api 'com.squareup.retrofit2:converter-gson:2.9.0'
|
||||
api 'com.squareup.retrofit2:converter-simplexml:2.9.0'
|
||||
//retrofit添加RxJava支持
|
||||
api 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
|
||||
api 'com.google.code.gson:gson:2.8.8'
|
||||
}
|
||||
Reference in New Issue
Block a user