【发布时间】:2020-09-14 10:43:14
【问题描述】:
我正在使用 0.60 以上的 react native,我正在尝试生成发布 apk 并将其上传到 google play,因此我在 buildTypes 中添加了生产的代码推送密钥,如下所示:
buildTypes {
release {
buildConfigField "String", "CODEPUSH_KEY", 'production_key'
}
}
我完全忘记将 android/app/src/main/res/values/strings.xml 中的代码推送键从暂存更改为生产
<resources>
<string name="app_name">app_name</string>
<string moduleConfig="true" name="CodePushDeploymentKey">staging_key</string>
</resources>
那么将应用哪个键? buildTypes 中的那个还是 srigs.xml 中的那个?
【问题讨论】:
标签: react-native react-native-code-push