51 lines
1.7 KiB
Groovy
51 lines
1.7 KiB
Groovy
|
|
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'
|
||
|
|
}
|