0
通過Google Play商店Beta測試平臺管理測試的最佳做法是什麼,以管理指向登錄&生產的APK?管理APK通過Google Beta測試平臺指向臨時服務器和生產測試
您是否通常有一個完全獨立的應用程序列表,指向暫存的構建,如果有的話,您將如何處理不同的簽署證書?
或者您是否通過Alpha & Beta渠道管理所有內容?
通過Google Play商店Beta測試平臺管理測試的最佳做法是什麼,以管理指向登錄&生產的APK?管理APK通過Google Beta測試平臺指向臨時服務器和生產測試
您是否通常有一個完全獨立的應用程序列表,指向暫存的構建,如果有的話,您將如何處理不同的簽署證書?
或者您是否通過Alpha & Beta渠道管理所有內容?
我通常不會使用Google Play Beta,但通常會使用Gradle更改分段/生產/開發情況。
在下面寫下你的應用gradle。
配置
configurations {
stagingDebugCompile
stagingReleaseCompile
productionDebugCompile
productionReleaseCompile
developmentDebugCompile
developmentReleaseCompile
}
簽約配置
signingConfigs {
def releaseSettingGradleFile = new File("${project.rootDir}/release.gradle")
if (releaseSettingGradleFile.exists()) {
apply from: releaseSettingGradleFile, to: android
} else {
release {
def debugSettingGradleFile = new File("${project.rootDir}/debug.gradle")
apply from: debugSettingGradleFile, to: android
}
}
def debugSettingGradleFile = new File("${project.rootDir}/debug.gradle")
debug {
apply from: debugSettingGradleFile, to: android
}
}
構建類型
buildTypes {
release {
signingConfig signingConfigs.release
}
debug {
signingConfig signingConfigs.debug
}
}
產品風味
productFlavors {
staging {
}
production {
}
development {
}
}
不要忘記放置release.gradle和debug.gradle文件。 debug.gradle可能是這樣的。
signingConfigs {
debug {
def HOME = System.getProperty("user.home")
storeFile file("${HOME}/.android/debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
}