java17
This commit is contained in:
parent
f0fb142fea
commit
3d6a75277b
6
XixunPlayer/.idea/AndroidProjectSystem.xml
Normal file
6
XixunPlayer/.idea/AndroidProjectSystem.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AndroidProjectSystem">
|
||||
<option name="providerId" value="com.android.tools.idea.GradleProjectSystem" />
|
||||
</component>
|
||||
</project>
|
||||
10
XixunPlayer/.idea/deploymentTargetSelector.xml
Normal file
10
XixunPlayer/.idea/deploymentTargetSelector.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="deploymentTargetSelector">
|
||||
<selectionStates>
|
||||
<SelectionState runConfigName="app">
|
||||
<option name="selectionMode" value="DROPDOWN" />
|
||||
</SelectionState>
|
||||
</selectionStates>
|
||||
</component>
|
||||
</project>
|
||||
10
XixunPlayer/.idea/migrations.xml
Normal file
10
XixunPlayer/.idea/migrations.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectMigrations">
|
||||
<option name="MigrateToGradleLocalJavaHome">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
17
XixunPlayer/.idea/runConfigurations.xml
Normal file
17
XixunPlayer/.idea/runConfigurations.xml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RunConfigurationProducerService">
|
||||
<option name="ignoredProducers">
|
||||
<set>
|
||||
<option value="com.intellij.execution.junit.AbstractAllInDirectoryConfigurationProducer" />
|
||||
<option value="com.intellij.execution.junit.AllInPackageConfigurationProducer" />
|
||||
<option value="com.intellij.execution.junit.PatternConfigurationProducer" />
|
||||
<option value="com.intellij.execution.junit.TestInClassConfigurationProducer" />
|
||||
<option value="com.intellij.execution.junit.UniqueIdConfigurationProducer" />
|
||||
<option value="com.intellij.execution.junit.testDiscovery.JUnitTestDiscoveryConfigurationProducer" />
|
||||
<option value="org.jetbrains.kotlin.idea.junit.KotlinJUnitRunConfigurationProducer" />
|
||||
<option value="org.jetbrains.kotlin.idea.junit.KotlinPatternConfigurationProducer" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
150
XixunPlayer/app/build_zp.gradle
Normal file
150
XixunPlayer/app/build_zp.gradle
Normal file
|
|
@ -0,0 +1,150 @@
|
|||
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
|
||||
Loading…
Reference in New Issue
Block a user