forked from vergnet/application-amicale
Move keystore properties in own file
This allows to sync gradle.properties with git
This commit is contained in:
parent
dfa9548a2f
commit
19d856574e
3 changed files with 39 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -42,7 +42,7 @@ buck-out/
|
||||||
*.keystore
|
*.keystore
|
||||||
!debug.keystore
|
!debug.keystore
|
||||||
*.jks
|
*.jks
|
||||||
/android/gradle.properties
|
/android/keystores/release.keystore.properties
|
||||||
|
|
||||||
# fastlane
|
# fastlane
|
||||||
#
|
#
|
||||||
|
|
|
@ -124,6 +124,13 @@ def jscFlavor = 'org.webkit:android-jsc:+'
|
||||||
*/
|
*/
|
||||||
def enableHermes = project.ext.react.get("enableHermes", false);
|
def enableHermes = project.ext.react.get("enableHermes", false);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Load release keystore
|
||||||
|
*/
|
||||||
|
def keystorePropertiesFile = rootProject.file("keystores/release.keystore.properties");
|
||||||
|
def keystoreProperties = new Properties()
|
||||||
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||||
|
|
||||||
|
@ -156,12 +163,10 @@ android {
|
||||||
keyPassword 'android'
|
keyPassword 'android'
|
||||||
}
|
}
|
||||||
release {
|
release {
|
||||||
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
|
storeFile file(keystoreProperties['UPLOAD_STORE_FILE'])
|
||||||
storeFile file(MYAPP_UPLOAD_STORE_FILE)
|
storePassword keystoreProperties['UPLOAD_STORE_PASSWORD']
|
||||||
storePassword MYAPP_UPLOAD_STORE_PASSWORD
|
keyAlias keystoreProperties['UPLOAD_KEY_ALIAS']
|
||||||
keyAlias MYAPP_UPLOAD_KEY_ALIAS
|
keyPassword keystoreProperties['UPLOAD_KEY_PASSWORD']
|
||||||
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|
27
android/gradle.properties
Normal file
27
android/gradle.properties
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# Project-wide Gradle settings.
|
||||||
|
|
||||||
|
# IDE (e.g. Android Studio) users:
|
||||||
|
# Gradle settings configured through the IDE *will override*
|
||||||
|
# any settings specified in this file.
|
||||||
|
|
||||||
|
# For more details on how to configure your build environment visit
|
||||||
|
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||||
|
|
||||||
|
# Specifies the JVM arguments used for the daemon process.
|
||||||
|
# The setting is particularly useful for tweaking memory settings.
|
||||||
|
# Default value: -Xmx10248m -XX:MaxPermSize=256m
|
||||||
|
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
||||||
|
|
||||||
|
# When configured, Gradle will run in incubating parallel mode.
|
||||||
|
# This option should only be used with decoupled projects. More details, visit
|
||||||
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||||
|
# org.gradle.parallel=true
|
||||||
|
|
||||||
|
# AndroidX package structure to make it clearer which packages are bundled with the
|
||||||
|
# Android operating system, and which are packaged with your app's APK
|
||||||
|
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
||||||
|
android.useAndroidX=true
|
||||||
|
# Automatically convert third-party libraries to use AndroidX
|
||||||
|
android.enableJetifier=true
|
||||||
|
# Version of flipper SDK to use with React Native
|
||||||
|
FLIPPER_VERSION=0.37.0
|
Loading…
Reference in a new issue