Commit 7fce221f authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

fix building error when not releaase

parent b91e8b45
...@@ -18,13 +18,12 @@ apply plugin: 'com.google.firebase.crashlytics' ...@@ -18,13 +18,12 @@ apply plugin: 'com.google.firebase.crashlytics'
// Create a variable called keystorePropertiesFile, and initialize it to your // Create a variable called keystorePropertiesFile, and initialize it to your
// keystore.properties file, in the rootProject folder. // keystore.properties file, in the rootProject folder.
def keystorePropertiesFile = rootProject.file("../roomParkKeystore.properties")
// Initialize a new Properties() object called keystoreProperties. // Initialize a new Properties() object called keystoreProperties.
def keystoreProperties = new Properties() def keystoreProperties = new Properties()
// Load your keystore.properties file into the keystoreProperties object. // Load your keystore.properties file into the keystoreProperties object.
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android { android {
...@@ -43,13 +42,20 @@ android { ...@@ -43,13 +42,20 @@ android {
signingConfigs { signingConfigs {
release { release {
// You need to specify either an absolute path or include the def keystorePropertiesFile = rootProject.file("../roomParkKeystore.properties")
// keystore file in the same directory as the build.gradle file. if ( keystorePropertiesFile.exists() ){
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
keyAlias keystoreProperties['keyAlias'] keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword'] keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile']) storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword'] storePassword keystoreProperties['storePassword']
} }
// else throw new GradleException('Plesase, provide keystore properties file! ')
// You need to specify either an absolute path or include the
// keystore file in the same directory as the build.gradle file.
}
} }
buildTypes { buildTypes {
......
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