调整编译项

This commit is contained in:
Ling0925 2023-01-21 22:33:28 +08:00
parent 19f2b831e0
commit 924661c7c8
1 changed files with 14 additions and 14 deletions

View File

@ -18,22 +18,22 @@ buildscript {
// def keystoreProperties = new Properties() // def keystoreProperties = new Properties()
// keystoreProperties.load(new FileInputStream(rootProject.file("keystore.properties"))) // keystoreProperties.load(new FileInputStream(rootProject.file("keystore.properties")))
// def applicationProperties = new Properties() def applicationProperties = new Properties()
// applicationProperties.load(new FileInputStream(rootProject.file("application.properties"))) applicationProperties.load(new FileInputStream(rootProject.file("application.properties")))
// def SHA1 = System.getenv("CIRCLE_SHA1") // def SHA1 = System.getenv("CIRCLE_SHA1")
// def applicationVersionCode = applicationProperties["versionCode"].toInteger() def applicationVersionCode = applicationProperties["versionCode"].toInteger()
// def applicationVersionName = applicationProperties["versionName"] def applicationVersionName = applicationProperties["versionName"]
// def isPerVersion = applicationProperties["isPerRelease"] == "true" def isPerVersion = applicationProperties["isPerRelease"] == "true"
// if (SHA1 != null) { // if (SHA1 != null) {
// applicationVersionName = applicationVersionName + ".${SHA1.substring(0, 7)}" // applicationVersionName = applicationVersionName + ".${SHA1.substring(0, 7)}"
// } // }
// if (isPerVersion) { if (isPerVersion) {
// applicationVersionName = applicationVersionName + ".${applicationProperties["preReleaseName"]}-${applicationProperties["preReleaseVer"]}" applicationVersionName = applicationVersionName + ".${applicationProperties["preReleaseName"]}-${applicationProperties["preReleaseVer"]}"
// } }
andResGuard { andResGuard {
mappingFile = null mappingFile = null
use7zip = true use7zip = false
useSign = false useSign = false
keepRoot = false keepRoot = false
mergeDuplicatedRes = true mergeDuplicatedRes = true
@ -50,9 +50,9 @@ andResGuard {
"*.webp", "*.webp",
"*.kotlin_metadata", "*.kotlin_metadata",
"resources.arsc"] "resources.arsc"]
sevenzip { // sevenzip {
artifact = 'com.tencent.mm:SevenZip:1.2.10' // artifact = 'com.tencent.mm:SevenZip:1.2.10'
} // }
finalApkBackupPath = "${project.rootDir}/app/release/${applicationVersionName}(${applicationVersionCode}).apk" finalApkBackupPath = "${project.rootDir}/app/release/${applicationVersionName}(${applicationVersionCode}).apk"
digestalg = "SHA-256" digestalg = "SHA-256"
} }
@ -99,8 +99,8 @@ android {
} }
} }
compileOptions { compileOptions {
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_11
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_11
} }
buildToolsVersion '28.0.3' buildToolsVersion '28.0.3'
} }