150 lines
4.5 KiB
Groovy
150 lines
4.5 KiB
Groovy
|
|
plugins {
|
||
|
|
id 'com.android.application'
|
||
|
|
}
|
||
|
|
|
||
|
|
android {
|
||
|
|
namespace 'com.xixun.xixunplayer'
|
||
|
|
compileSdk 34
|
||
|
|
|
||
|
|
defaultConfig {
|
||
|
|
applicationId "com.xixun.xixunplayer"
|
||
|
|
minSdk 21
|
||
|
|
targetSdk 34
|
||
|
|
versionCode 1
|
||
|
|
versionName "2.2.1-N"
|
||
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
|
|
}
|
||
|
|
|
||
|
|
// buildTypes {
|
||
|
|
// release {
|
||
|
|
// minifyEnabled false
|
||
|
|
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
|
|
// }
|
||
|
|
// }
|
||
|
|
signingConfigs {
|
||
|
|
config { //常用 通用
|
||
|
|
keyAlias 'xy'
|
||
|
|
keyPassword '111111'
|
||
|
|
storeFile file('D:/zp/Android/GitConn/xy_keystore')
|
||
|
|
//storeFile file('/home/yzd/work/sign/xy_keystore')
|
||
|
|
storePassword '111111'
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
M {//美格 //A7
|
||
|
|
keyAlias 'xixun'
|
||
|
|
keyPassword '123456'
|
||
|
|
storeFile file('D:/XixunSoftware/ZP/conn/xixun-m.keystore')
|
||
|
|
storePassword '123456'
|
||
|
|
}
|
||
|
|
|
||
|
|
Y5a { //A9
|
||
|
|
keyAlias 'xixun'
|
||
|
|
keyPassword '123456'
|
||
|
|
storeFile file('D:/zp/Android/GitConn/xixun-c.keystore')
|
||
|
|
storePassword '123456'
|
||
|
|
}
|
||
|
|
|
||
|
|
D { //A11 系统签名 卓策
|
||
|
|
keyAlias 'xixun'
|
||
|
|
keyPassword '123456'
|
||
|
|
storeFile file('D:/zp/Android/GitConn/xixun-d.keystore')
|
||
|
|
storePassword '123456'
|
||
|
|
}
|
||
|
|
|
||
|
|
D_3566 { //A11 系统签名-新
|
||
|
|
keyAlias 'platform'
|
||
|
|
keyPassword 'youngfeel'
|
||
|
|
storeFile file('D:/XixunSoftware/ZP/conn/yf356x_android11_system.jks')
|
||
|
|
storePassword 'youngfeel'
|
||
|
|
}
|
||
|
|
|
||
|
|
Y33 { // 系统签名
|
||
|
|
keyAlias 'xixun'
|
||
|
|
keyPassword '123456'
|
||
|
|
storeFile file('D:/XixunSoftware/ZP/conn/xixun-x.keystore')
|
||
|
|
storePassword '123456'
|
||
|
|
}
|
||
|
|
|
||
|
|
D_3568 {//3568 //恩泰世3568
|
||
|
|
keyAlias 'systemkey'
|
||
|
|
keyPassword '123456'
|
||
|
|
storeFile file('D:/zp/Android/GitConn/platform.jks')
|
||
|
|
storePassword '123456'
|
||
|
|
}
|
||
|
|
D_gt {//3568 //高通
|
||
|
|
keyAlias 'androiddebugkey'
|
||
|
|
keyPassword 'android'
|
||
|
|
storeFile file('D:/zp/Android/GitConn/platform.keystore')
|
||
|
|
storePassword 'android'
|
||
|
|
}
|
||
|
|
|
||
|
|
a133 {//全志 a133
|
||
|
|
keyAlias 'platform'
|
||
|
|
keyPassword 'youngfeel'
|
||
|
|
storeFile file('D:/zp/Android/GitConn/android11_system.jks')
|
||
|
|
storePassword 'youngfeel'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
buildTypes {
|
||
|
|
release {
|
||
|
|
minifyEnabled false
|
||
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
|
|
|
||
|
|
signingConfig signingConfigs.D_3568
|
||
|
|
}
|
||
|
|
debug {
|
||
|
|
signingConfig signingConfigs.D_3568
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
buildFeatures {
|
||
|
|
aidl true
|
||
|
|
}
|
||
|
|
|
||
|
|
compileOptions {
|
||
|
|
sourceCompatibility JavaVersion.VERSION_11
|
||
|
|
targetCompatibility JavaVersion.VERSION_11
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||
|
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.25'
|
||
|
|
implementation 'com.aliyun:imageaudit20191230:2.0.6'
|
||
|
|
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'
|
||
|
|
implementation files('libs/gnph.jar')
|
||
|
|
implementation files('libs/zip4j-2.10.0.jar')
|
||
|
|
implementation files('libs/xixun_card_settings_1.2.4.jar')
|
||
|
|
implementation files('libs/ijkplayer-java-0.8.8.aar')
|
||
|
|
implementation files('libs/ijkplayer-armv7a-0.8.8.aar')
|
||
|
|
implementation files('libs/ijkplayer-arm64-0.8.8.aar')
|
||
|
|
implementation files('libs/connService2.jar')
|
||
|
|
}
|
||
|
|
|
||
|
|
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 名
|
||
|
|
android.applicationVariants.configureEach { variant ->
|
||
|
|
variant.outputs.configureEach {
|
||
|
|
def fileName = "${getAppName()}-${versionName}.apk"
|
||
|
|
outputFileName = fileName
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
//修改内容:
|
||
|
|
//D:\zp\Android\XixunPlayer_zp\XixunPlayer\app\build.gradle
|
||
|
|
//D:\zp\Android\XixunPlayer_zp\XixunPlayer\gradle\wrapper\gradle-wrapper.properties
|
||
|
|
//配置使用java17
|