Generate Signed APK in React Native

Опубликовано: 04 Октябрь 2024
на канале: Computer Science Tutorial
34,742
447

Hello Friends

In this tutorial video, I will explain you how to generate Signed APK in React Native step-by-step
#react #reactnative #reactnativetutorial

Step 1 Generate a Signed Release Key file
keytool -genkey -v -keystore demo.keystore -alias demo -keyalg RSA -keysize 2048 -validity 10000

Step 2 Setting up Gradle variables
MYAPP_RELEASE_STORE_FILE=demo.keystore
MYAPP_RELEASE_KEY_ALIAS=demo
MYAPP_RELEASE_STORE_PASSWORD=demo*123#
MYAPP_RELEASE_KEY_PASSWORD=demo*123#

Step 3 Adding signing config to app's Gradle config
signingConfigs
{
release
{
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE'))
{
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}

buildTypes
{
release
{

signingConfig signingConfigs.release
}
}

Step 4 Generating the APK
gradlew assembleRelease

If you like this video or have any suggestion, please write it into the comment section.


WebSite http://www.computersciencetutorial.com/
Facebook   / computersciencetutorialss  
Twitter   / cs_tutorial  
Raddit   / cstutorial  
Tumbler   / computersciencetutorial  
Instagram   / computersciencetutorial  
Linkedin   / computersciencetutorial  
VK https://vk.com/computersciencetutorial