Refactor: refactor design structure

This commit is contained in:
kr328
2021-09-12 13:01:08 +08:00
parent 603cec113c
commit 4a8b6b2704
9 changed files with 75 additions and 688 deletions

View File

@@ -70,10 +70,6 @@ subprojects {
versionName = buildVersionName
versionCode = buildVersionCode
if (!isApp) {
consumerProguardFiles("consumer-rules.pro")
}
resValue("string", "release_name", "v$buildVersionName")
resValue("integer", "release_code", "$buildVersionCode")
@@ -82,6 +78,10 @@ subprojects {
abiFilters("arm64-v8a", "armeabi-v7a", "x86", "x86_64")
}
}
if (!isApp) {
consumerProguardFiles("consumer-rules.pro")
}
}
if (isApp) {
@@ -108,6 +108,8 @@ subprojects {
dimension = defaultDimension
versionNameSuffix = ".foss"
buildConfigField("boolean", "PREMIUM", "Boolean.parseBoolean(\"false\")")
if (isApp) {
applicationIdSuffix = ".foss"
}
@@ -116,6 +118,8 @@ subprojects {
dimension = defaultDimension
versionNameSuffix = ".premium"
buildConfigField("boolean", "PREMIUM", "Boolean.parseBoolean(\"true\")")
val trackFile = rootProject.file("track.properties")
if (trackFile.exists()) {
val track = Properties().apply {