Files
jiecheng-business/mediaplayertv/build.gradle
zhaogd d11464d466 基线备份:thirdparty 变体完成 + Android 4.2 兼容改造前
包含内容:
- thirdparty flavor 独立 applicationId + Intent 入口(ThirdPartyEntryActivity)
- 58 后端接口适配(单 /api 路径、code 0/200、camelCase 字段、UNBOUND 轮询)
- MAC 硬件锚定校验(防一凭证多设备共用)
- EPG mac 覆盖 SDK init(sMacOverride)+ ChannelManger 初始化对齐
- 提示文案优化(设备未注册/权益未绑定)
2026-08-25 11:16:40 +08:00

51 lines
1.7 KiB
Groovy
Executable File

plugins {
id 'com.android.library'
}
android {
namespace 'com.pukka.mediaplayertv'
compileSdkVersion app_android.compileSdkVersion
buildFeatures {
buildConfig = true
}
defaultConfig {
minSdkVersion app_android.minSdkVersion
targetSdkVersion app_android.targetSdkVersion
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 fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
app_app_dependencies.each {k, v ->implementation v}
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation project(':libcore')
//implementation "androidx.media3:media3-exoplayer:1.3.1"
implementation 'androidx.annotation:annotation:1.2.0'
//implementation 'androidx.media3:media3-exoplayer-hls:1.3.1' // 添加 HLS 支持
implementation 'com.google.android.exoplayer:exoplayer:2.19.1'
}