From 238cd2cdaf5070c514dd167333f8a492a4e91f30 Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Tue, 4 Sep 2018 18:55:24 -0500 Subject: [PATCH] Bump version and fix ACRA integration --- app/build.gradle | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 923a889..58ad9f1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,5 +1,8 @@ apply plugin: 'com.android.application' +Properties acra = new Properties() +acra.load(new FileInputStream("app/acra.properties")) + android { configurations.all { resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1' @@ -21,12 +24,12 @@ android { applicationId "com.wbrawner.simplemarkdown" minSdkVersion 19 targetSdkVersion 27 - versionCode 11 - versionName "0.4.5" + versionCode 12 + versionName "0.4.6" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" - buildConfigField "String", "ACRA_URL", "\"$acraUrl\"" // Defined in ~/.gradle/gradle.properties - buildConfigField "String", "ACRA_USER", "\"$acraUser\"" // Defined in ~/.gradle/gradle.properties - buildConfigField "String", "ACRA_PASS", "\"$acraPass\"" // Defined in ~/.gradle/gradle.properties + buildConfigField "String", "ACRA_URL", "\"${acra.getProperty("url")}\"" + buildConfigField "String", "ACRA_USER", "\"${acra.getProperty("user")}\"" + buildConfigField "String", "ACRA_PASS", "\"${acra.getProperty("pass")}\"" } buildTypes { release {