2023-11-09 08:37:59 +08:00
|
|
|
plugins {
|
|
|
|
|
id 'com.android.application'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
namespace 'com.xixun.xixunplayer'
|
2023-12-01 16:17:06 +08:00
|
|
|
compileSdk 34
|
2023-11-09 08:37:59 +08:00
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
applicationId "com.xixun.xixunplayer"
|
2024-03-05 16:50:07 +08:00
|
|
|
minSdk 21
|
2023-12-01 16:17:06 +08:00
|
|
|
targetSdk 34
|
2023-11-09 08:37:59 +08:00
|
|
|
versionCode 1
|
2026-01-23 15:14:23 +08:00
|
|
|
versionName "2.2.19-Y"
|
2023-11-09 08:37:59 +08:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-23 15:14:23 +08:00
|
|
|
buildFeatures {
|
|
|
|
|
aidl true
|
|
|
|
|
}
|
2026-01-13 15:56:06 +08:00
|
|
|
|
2026-01-23 15:14:23 +08:00
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
|
|
|
}
|
|
|
|
|
signingConfigs {
|
|
|
|
|
Y {//210
|
2026-01-13 15:56:06 +08:00
|
|
|
keyAlias 'xixun'
|
|
|
|
|
keyPassword '123456'
|
2026-01-23 15:14:23 +08:00
|
|
|
storeFile file('D:/develop/xixun/signedFile/keystore/xixun-y.keystore')
|
2026-01-13 15:56:06 +08:00
|
|
|
storePassword '123456'
|
|
|
|
|
}
|
2026-01-23 15:14:23 +08:00
|
|
|
D_3568a {//3568a 视美泰
|
|
|
|
|
keyAlias 'keystore'
|
|
|
|
|
keyPassword 'android'
|
|
|
|
|
storeFile file('D:/develop/xixun/signedFile/keystore/keystore.jks')
|
|
|
|
|
storePassword 'android'
|
2026-01-13 15:56:06 +08:00
|
|
|
}
|
2026-01-23 15:14:23 +08:00
|
|
|
D_3568N {//3568 恩泰世
|
2026-01-13 15:56:06 +08:00
|
|
|
keyAlias 'systemkey'
|
|
|
|
|
keyPassword '123456'
|
2026-01-23 15:14:23 +08:00
|
|
|
storeFile file('D:/_docs/comp/android/keystore/3568D恩泰世 123456.jks')
|
2026-01-13 15:56:06 +08:00
|
|
|
storePassword '123456'
|
|
|
|
|
}
|
2026-01-23 15:14:23 +08:00
|
|
|
D_YF {//3566 YF
|
2026-01-13 15:56:06 +08:00
|
|
|
keyAlias 'platform'
|
|
|
|
|
keyPassword 'youngfeel'
|
2026-01-23 15:14:23 +08:00
|
|
|
storeFile file('D:/_docs/comp/android/keystore/yf356x_android11_system.jks')
|
2026-01-13 15:56:06 +08:00
|
|
|
storePassword 'youngfeel'
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-11-09 08:37:59 +08:00
|
|
|
buildTypes {
|
|
|
|
|
release {
|
2026-01-23 15:14:23 +08:00
|
|
|
lintOptions {
|
|
|
|
|
checkReleaseBuilds false
|
|
|
|
|
abortOnError false
|
|
|
|
|
}
|
2023-11-09 08:37:59 +08:00
|
|
|
minifyEnabled false
|
2026-01-13 15:56:06 +08:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2026-01-23 15:14:23 +08:00
|
|
|
signingConfig signingConfigs.D_3568N
|
2026-01-13 15:56:06 +08:00
|
|
|
}
|
|
|
|
|
debug {
|
2026-01-23 15:14:23 +08:00
|
|
|
signingConfig signingConfigs.D_3568N
|
2023-11-09 08:37:59 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
|
|
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.25'
|
2025-07-28 19:14:00 +08:00
|
|
|
implementation 'com.aliyun:imageaudit20191230:2.0.6'
|
2026-01-23 15:14:23 +08:00
|
|
|
implementation 'com.github.wseemann:FFmpegMediaMetadataRetriever-core:1.0.19'
|
|
|
|
|
implementation 'com.github.wseemann:FFmpegMediaMetadataRetriever-native-armeabi-v7a:1.0.19'
|
|
|
|
|
implementation 'com.github.wseemann:FFmpegMediaMetadataRetriever-native-arm64-v8a:1.0.19'
|
2023-12-01 16:17:06 +08:00
|
|
|
implementation files('libs/gnph.jar')
|
2024-01-24 20:17:59 +08:00
|
|
|
implementation files('libs/zip4j-2.10.0.jar')
|
2023-12-01 16:17:06 +08:00
|
|
|
implementation files('libs/xixun_card_settings_1.2.4.jar')
|
|
|
|
|
implementation files('libs/ijkplayer-java-0.8.8.aar')
|
2024-01-24 20:17:59 +08:00
|
|
|
implementation files('libs/ijkplayer-armv7a-0.8.8.aar')
|
2023-12-01 16:17:06 +08:00
|
|
|
implementation files('libs/ijkplayer-arm64-0.8.8.aar')
|
2024-05-09 20:30:22 +08:00
|
|
|
implementation files('libs/connService2.jar')
|
2024-01-24 20:17:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def getAppName() {
|
|
|
|
|
def stringsFile = android.sourceSets.main.res.sourceFiles.find { it.name.equals 'strings.xml' }
|
|
|
|
|
String s = new XmlParser().parse(stringsFile).string.find { it.@name.equals 'app_name' }.text();
|
|
|
|
|
return s.replaceAll("\"", "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改 Apk 名
|
2024-05-09 20:30:22 +08:00
|
|
|
android.applicationVariants.configureEach { variant ->
|
|
|
|
|
variant.outputs.configureEach {
|
2024-01-24 20:17:59 +08:00
|
|
|
def fileName = "${getAppName()}-${versionName}.apk"
|
|
|
|
|
outputFileName = fileName
|
|
|
|
|
}
|
|
|
|
|
}
|