update gradle build
This commit is contained in:
parent
dca1345bd8
commit
ad97934a9d
5 changed files with 6 additions and 6 deletions
Binary file not shown.
|
@ -1,8 +1,8 @@
|
||||||
import com.google.gms.googleservices.GoogleServicesPlugin
|
import com.google.gms.googleservices.GoogleServicesPlugin
|
||||||
|
|
||||||
Properties props = new Properties()
|
Properties twitterProps = new Properties()
|
||||||
try {
|
try {
|
||||||
props.load(file('twitter.properties').newDataInputStream())
|
twitterProps.load(file('twitter.properties').newDataInputStream())
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
throw new GradleException("Missing twitter.properties.")
|
throw new GradleException("Missing twitter.properties.")
|
||||||
}
|
}
|
||||||
|
@ -50,12 +50,12 @@ android {
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
debug {
|
debug {
|
||||||
resValue "string", "TWITTER_CONSUMER_KEY", "\"${props.getProperty("twitterConsumerKey")}\""
|
resValue "string", "TWITTER_CONSUMER_KEY", "\"${twitterProps.getProperty("twitterConsumerKey")}\""
|
||||||
resValue "string", "TWITTER_CONSUMER_SECRET", "\"${props.getProperty("twitterConsumerSecret")}\""
|
resValue "string", "TWITTER_CONSUMER_SECRET", "\"${twitterProps.getProperty("twitterConsumerSecret")}\""
|
||||||
}
|
}
|
||||||
release {
|
release {
|
||||||
resValue "string", "TWITTER_CONSUMER_KEY", "\"${props.getProperty("twitterConsumerKey")}\""
|
resValue "string", "TWITTER_CONSUMER_KEY", "\"${twitterProps.getProperty("twitterConsumerKey")}\""
|
||||||
resValue "string", "TWITTER_CONSUMER_SECRET", "\"${props.getProperty("twitterConsumerSecret")}\""
|
resValue "string", "TWITTER_CONSUMER_SECRET", "\"${twitterProps.getProperty("twitterConsumerSecret")}\""
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue