Removed every config string added at build time.

This commit is contained in:
Amine Bou
2018-05-23 20:39:50 +02:00
parent a3a7b78c96
commit 6d24fd9336
8 changed files with 18 additions and 59 deletions
-26
View File
@@ -61,12 +61,6 @@ android {
// tests
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
buildConfigField "String", "FEEDBACK_EMAIL", feedbackEmail
buildConfigField "String", "SOURCE_URL", sourceUrl
buildConfigField "String", "TRACKER_URL", trackerUrl
buildConfigField "String", "TRANSLATION_URL", translationUrl
buildConfigField "String", "GITHUB_TOKEN", githubToken
}
buildTypes {
release {
@@ -86,13 +80,11 @@ android {
githubConfig {
versionNameSuffix '-github'
dimension "build"
buildConfigField "boolean", "GITHUB_VERSION", "true"
}
storeConfig {
// As jenkins publishes to alpha first, this is the default suffix now.
versionNameSuffix '-store'
dimension "build"
buildConfigField "boolean", "GITHUB_VERSION", "false"
}
}
}
@@ -157,9 +149,6 @@ dependencies {
implementation 'com.52inc:scoops:1.0.0'
implementation'com.jrummyapps:colorpicker:2.1.7'
// Github issues reporter
implementation 'com.heinrichreimersoftware:android-issue-reporter:1.3.1'
implementation 'com.github.rubensousa:floatingtoolbar:1.5.1'
// Pager
@@ -177,7 +166,6 @@ dependencies {
afterEvaluate {
initAppLoginPropertiesIfNeeded()
initAppForSecretPropertiesIfNeeded()
}
def initAppLoginPropertiesIfNeeded() {
@@ -191,17 +179,3 @@ def initAppLoginPropertiesIfNeeded() {
}
}
}
def initAppForSecretPropertiesIfNeeded() {
def propertiesFile = file(System.getProperty("user.home") + '/.gradle/gradle.properties')
if (!propertiesFile.exists()) {
def commentMessage = "This is autogenerated local property from system environment to prevent key to be committed to source control."
ant.propertyfile(file: System.getProperty("user.home") + "/.gradle/gradle.properties", comment: commentMessage) {
entry(key: "feedbackEmail", value: System.getProperty("feedbackEmail"))
entry(key: "sourceUrl", value: System.getProperty("sourceUrl"))
entry(key: "trackerUrl", value: System.getProperty("trackerUrl"))
entry(key: "translationUrl", value: System.getProperty("translationUrl"))
entry(key: "githubToken", value: System.getProperty("githubToken"))
}
}
}