通过Google Play Store Beta测试平台管理测试的最佳实践是什么?
您是否通常有一个完全独立的应用程序列表,以及指向登台的构建,如果是这样,您将如何处理不同的签名证书?
或者你通过Alpha & Beta渠道管理一切?
发布于 2016-09-14 21:49:04
我通常不使用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"
}
}https://stackoverflow.com/questions/39491478
复制相似问题