<resources>
<string name="app_name">Test App</string>
<string
moduleConfig="true"
name="CodePushDeploymentKey">
PUT-YOUR-DEPLOYMENT-KEY-HERE
</string>
</resources>
这是 String.xml 文件的示例代码,我在其中存储 CodePush 的 React Native 应用程序的密钥。
当我通过漏洞测试运行应用程序时,它表明密钥从 Strings.xml 文件中泄漏。那么除了 Strings.xml 之外还有其他方法来存储文件吗?或者我们如何防止键值从 Strings.xml 文件中泄漏?