feat: 优化代码

pull/182/head
kunfei 5 years ago
parent 04c46ab07c
commit fb3f77c8fa
  1. 4
      app/build.gradle

@ -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"]
} }

Loading…
Cancel
Save