|
|
@ -19,6 +19,7 @@ def gitCommits = Integer.parseInt('git rev-list --count HEAD'.execute([], projec |
|
|
|
|
|
|
|
|
|
|
|
android { |
|
|
|
android { |
|
|
|
compileSdkVersion 29 |
|
|
|
compileSdkVersion 29 |
|
|
|
|
|
|
|
flavorDimensions ("version") |
|
|
|
signingConfigs { |
|
|
|
signingConfigs { |
|
|
|
if (project.hasProperty("RELEASE_STORE_FILE")) { |
|
|
|
if (project.hasProperty("RELEASE_STORE_FILE")) { |
|
|
|
myConfig { |
|
|
|
myConfig { |
|
|
@ -37,7 +38,6 @@ android { |
|
|
|
targetSdkVersion 29 |
|
|
|
targetSdkVersion 29 |
|
|
|
versionCode gitCommits |
|
|
|
versionCode gitCommits |
|
|
|
versionName version |
|
|
|
versionName version |
|
|
|
flavorDimensions "versionCode" |
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
|
|
|
project.ext.set("archivesBaseName", name + "_" + version) |
|
|
|
project.ext.set("archivesBaseName", name + "_" + version) |
|
|
|
multiDexEnabled true |
|
|
|
multiDexEnabled true |
|
|
@ -76,9 +76,11 @@ android { |
|
|
|
} |
|
|
|
} |
|
|
|
productFlavors { |
|
|
|
productFlavors { |
|
|
|
app { |
|
|
|
app { |
|
|
|
|
|
|
|
dimension "version" |
|
|
|
manifestPlaceholders = [APP_CHANNEL_VALUE: "app"] |
|
|
|
manifestPlaceholders = [APP_CHANNEL_VALUE: "app"] |
|
|
|
} |
|
|
|
} |
|
|
|
google { |
|
|
|
google { |
|
|
|
|
|
|
|
dimension "version" |
|
|
|
applicationId "io.legado.play" |
|
|
|
applicationId "io.legado.play" |
|
|
|
manifestPlaceholders = [APP_CHANNEL_VALUE: "google"] |
|
|
|
manifestPlaceholders = [APP_CHANNEL_VALUE: "google"] |
|
|
|
} |
|
|
|
} |
|
|
|