Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of keystores folder in react-native android project

I am currently struggling a bit with react native. I have successfully generated singed APK, followed steps mentioned in docs. I have found that react-native android has different directory structure than the android-studio. There is folder with the name of keystore inside the react-native android project. What is purpose of that folder? Do I need to keep my keystore inside it? While doc say's place keystore file under the android/app directory.

Please share your thoughts. Thanks.

enter image description here

like image 382
Pir Shukarullah Shah Avatar asked Oct 29 '22 21:10

Pir Shukarullah Shah


1 Answers

If you ever want to publish your app to the Play Store, you need to sign your app so that the Play Store can distinguish that it is actually you who is publishing to the store. The keystore file is as mentioned:

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.

Related links:

  • App Signing - Developer Android Docs
  • Signed APK Android - React Native Docs
like image 167
aug Avatar answered Nov 16 '22 05:11

aug