在react-native android项目中keystores文件夹的目的是什么

我目前正在与本机做出反应.我已成功生成了烧录的APK,遵循docs中提到的步骤.我发现react-native android的目录结构与android-studio不同.在react-native android项目中有一个名为keystore的文件夹.该文件夹的目的是什么?我需要将密钥库保留在其中吗?虽然doc说在android / app目录下放置了密钥库文件.

请分享你的想法.谢谢.

enter image description here

最佳答案
如果您希望将应用程序发布到Play商店,则需要对应用程序进行签名,以便Play商店可以区分实际上是您要发布到商店的人.密钥库文件如上所述:

A keystore is a binary file that contains one or more private keys. When you sign an APK for release using Android Studio, you can choose to generate a new keystore and private key or use a keystore and private key you already have. You should choose a strong password for your keystore, and a separate strong password for each private key stored in the keystore. You must keep your keystore in a safe and secure place. See Securing Your Private Key, below.

相关链接:

> App Signing – Developer Android Docs
> Signed APK Android – React Native Docs

转载注明原文:在react-native android项目中keystores文件夹的目的是什么 - 代码日志