Skip to content

Commit

Permalink
移除分包,版本号更新
Browse files Browse the repository at this point in the history
  • Loading branch information
aiselp committed Jun 27, 2024
1 parent 015f4f3 commit 484491f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 30 deletions.
32 changes: 6 additions & 26 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ plugins {
id("com.google.devtools.ksp")
}

//val SupportLibVersion = "28.0.0"

val propFile: File = File("E:/资料/jks/autojs-app/sign.properties");
val properties = Properties()
if (propFile.exists()) {
Expand All @@ -22,12 +20,6 @@ if (propFile.exists()) {
}
}

//configurations.all {
// resolutionStrategy {
// force("com.android.support:appcompat-v7:${SupportLibVersion}")
// force("com.android.support:support-v4:${SupportLibVersion}")
// }
//}
android {
compileSdk = versions.compile
defaultConfig {
Expand All @@ -45,9 +37,6 @@ android {
arguments["androidManifestFile"] = "$projectDir/src/main/AndroidManifest.xml"
}
}
ndk {
abiFilters.addAll(listOf("arm64-v8a", "armeabi-v7a"))
}
}
buildFeatures {
compose = true
Expand Down Expand Up @@ -76,24 +65,18 @@ android {
}
}
splits {

// Configures multiple APKs based on ABI.
abi {

// Enables building multiple APKs per ABI.
isEnable = true

// By default all ABIs are included, so use reset() and include to specify that we only
// want APKs for x86 and x86_64.

// Resets the list of ABIs that Gradle should create APKs for to none.
reset()

// Specifies a list of ABIs that Gradle should create APKs for.
include("armeabi-v7a", "arm64-v8a")

include( "arm64-v8a")
// Specifies that we do not want to also generate a universal APK that includes all ABIs.
isUniversalApk = true
isUniversalApk = false
}
}
buildTypes {
Expand Down Expand Up @@ -131,23 +114,20 @@ android {
versionCode = versions.appVersionCode
versionName = versions.appVersionName
buildConfigField("String", "CHANNEL", "\"common\"")
// buildConfigField("String", "APPID", "\"?id=21\"")
manifestPlaceholders.putAll(mapOf("appName" to "@string/app_name"))
}
create("v6") {
applicationIdSuffix = ".v6"
create("v7") {
applicationIdSuffix = ".v7"
versionCode = versions.devVersionCode
versionName = versions.devVersionName
buildConfigField("String", "CHANNEL", "\"v6\"")
// buildConfigField("String", "APPID", "\"?id=23\"")
manifestPlaceholders.putAll(mapOf("appName" to "Autox.js v6"))
buildConfigField("String", "CHANNEL", "\"v7\"")
manifestPlaceholders.putAll(mapOf("appName" to "Autox.js v7"))
}
}

sourceSets {
getByName("main") {
res.srcDirs("src/main/res", "src/main/res-i18n")
jniLibs.srcDirs("/libs")
}
}

Expand Down
8 changes: 4 additions & 4 deletions project-versions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"appVersionCode": 660,
"appVersionName": "6.6.0",
"devVersionCode": 660,
"devVersionName": "6.6.0",
"appVersionCode": 700,
"appVersionName": "7.0.0",
"devVersionCode": 700,
"devVersionName": "7.0.0",
"compile": 34,
"target": 34,
"mini": 27,
Expand Down

0 comments on commit 484491f

Please # to comment.