74 lines
2.0 KiB
Groovy
74 lines
2.0 KiB
Groovy
plugins {
|
|
alias(libs.plugins.android.application)
|
|
}
|
|
|
|
android {
|
|
namespace "org.easydarwin.easyplayer"
|
|
compileSdk {
|
|
version = release(36)
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "org.easydarwin.easyplayer.pro"
|
|
minSdk 28
|
|
targetSdk 36
|
|
versionCode 14210703
|
|
versionName "1.4.21.0703"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
if (project.hasProperty('PLAYER_KEY')) {
|
|
buildConfigField 'String', 'PLAYER_KEY', PLAYER_KEY
|
|
} else {
|
|
println("NO RTMPKEY FOUND")
|
|
buildConfigField 'String', 'PLAYER_KEY', "\"EasyPlayer is free!\""
|
|
}
|
|
|
|
ndk {
|
|
abiFilters 'armeabi-v7a'/*, 'arm64-v8a'*/
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig true
|
|
viewBinding true
|
|
dataBinding true
|
|
}
|
|
|
|
android.applicationVariants.all { variant ->
|
|
variant.outputs.all {
|
|
outputFileName = "EasyPlayerPro-${variant.versionCode}-${variant.versionName}.apk"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation libs.androidx.core.ktx
|
|
implementation libs.androidx.appcompat
|
|
implementation libs.androidx.constraintlayout
|
|
implementation libs.androidx.recyclerview
|
|
implementation libs.androidx.swiperefreshlayout
|
|
implementation libs.material.components
|
|
implementation libs.glide
|
|
implementation libs.code.scanner
|
|
implementation project(':ijkplayer-java')
|
|
implementation project(':photoview')
|
|
|
|
testImplementation libs.junit
|
|
androidTestImplementation libs.androidx.junit
|
|
androidTestImplementation libs.androidx.espresso.core
|
|
}
|