添加贴图替换功能
This commit is contained in:
parent
36a49ba4df
commit
0200f20c73
|
|
@ -6,18 +6,8 @@ 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()
|
||||
def pluginVersionName = "v3.3.1"
|
||||
def pluginVersionCode = 30301
|
||||
|
||||
android {
|
||||
namespace 'io.github.chinosk.gakumas.localify'
|
||||
|
|
@ -28,9 +18,9 @@ android {
|
|||
applicationId "io.github.chinosk.gakumas.localify"
|
||||
minSdk 29
|
||||
targetSdk 34
|
||||
versionCode sharedVersionCode
|
||||
versionName sharedVersionName
|
||||
buildConfigField "String", "VERSION_NAME", "\"${versionName}\""
|
||||
versionCode pluginVersionCode
|
||||
versionName pluginVersionName
|
||||
buildConfigField "String", "VERSION_NAME", "\"${pluginVersionName}\""
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
|
|
|
|||
Loading…
Reference in New Issue