mirror of
https://git.chinosk6.cn/chinosk/gkms-local.git
synced 2026-05-16 16:22:31 +07:00
添加贴图替换功能
This commit is contained in:
+16
-3
@@ -6,6 +6,19 @@ plugins {
|
||||
id("kotlin-parcelize")
|
||||
}
|
||||
|
||||
def sharedVersionFile = file("$projectDir/src/main/cpp/GakumasLocalify/VERSION")
|
||||
if (!sharedVersionFile.exists()) {
|
||||
throw new GradleException("Shared version file not found: ${sharedVersionFile}")
|
||||
}
|
||||
def sharedVersionName = sharedVersionFile.text.trim()
|
||||
def sharedVersionMatcher = sharedVersionName =~ /^v?(\d+)\.(\d+)\.(\d+).*$/
|
||||
if (!sharedVersionMatcher.matches()) {
|
||||
throw new GradleException("Invalid shared version: ${sharedVersionName}")
|
||||
}
|
||||
def sharedVersionCode = sharedVersionMatcher[0][1].toInteger() * 10000 +
|
||||
sharedVersionMatcher[0][2].toInteger() * 100 +
|
||||
sharedVersionMatcher[0][3].toInteger()
|
||||
|
||||
android {
|
||||
namespace 'io.github.chinosk.gakumas.localify'
|
||||
compileSdk 34
|
||||
@@ -15,8 +28,8 @@ android {
|
||||
applicationId "io.github.chinosk.gakumas.localify"
|
||||
minSdk 29
|
||||
targetSdk 34
|
||||
versionCode 12
|
||||
versionName "v3.2.0"
|
||||
versionCode sharedVersionCode
|
||||
versionName sharedVersionName
|
||||
buildConfigField "String", "VERSION_NAME", "\"${versionName}\""
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
@@ -132,4 +145,4 @@ dependencies {
|
||||
implementation(libs.shadowhook)
|
||||
compileOnly(libs.xposed.api)
|
||||
implementation(libs.kotlinx.serialization.json)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user