Commit f8b81767 by tungnq

IMPORTANT: Bổ sung cấu hình build gradle để build bản relese

parent 9bf79b21
......@@ -72,3 +72,5 @@ yarn-error.log
!.yarn/releases
!.yarn/sdks
!.yarn/versions
android/app/keystore.properties
android/app/*.keystore
\ No newline at end of file
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"
def keystorePropertiesFile = rootProject.file("app/keystore.properties")
def keystoreProperties = new Properties()
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
/**
* This is the configuration block to customize your React Native Android app.
......@@ -89,6 +94,15 @@ android {
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
// đọc từ keystore.properties
if (keystoreProperties['storeFile']) {
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
}
}
}
buildTypes {
debug {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment