Skip to content

Commit

Permalink
Fix build error on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
darshanparajuli committed Jul 13, 2020
1 parent be718e9 commit 053559f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))

def fileProvider = "file_provider"

android {
Expand All @@ -25,10 +21,16 @@ android {

signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
try {
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(rootProject.file("keystore.properties")))
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
} catch (FileNotFoundException ignored) {
println("keystore file not found.")
}
}
}

Expand Down

0 comments on commit 053559f

Please sign in to comment.