@@ -7,10 +7,13 @@ apply plugin: 'io.fabric'
77
88android {
99 compileSdkVersion 25
10- buildToolsVersion " 25.0.2 "
10+ buildToolsVersion " 25.0.3 "
1111 packagingOptions. excludes = [' META-INF/services/javax.annotation.processing.Processor' ,
1212 ' META-INF/LICENSE.txt' , ' META-INF/NOTICE.txt' , ' META-INF/README.txt' ,
1313 ' LICENSE.txt' , ' NOTICE.txt' , ' README.txt' , ' .readme' ]
14+
15+ def props = new Properties ()
16+ props. load(file(" secrets.properties" ). newInputStream())
1417 defaultConfig {
1518 applicationId " com.ediposouza.teslesgendstracker"
1619 minSdkVersion prepareToRelease ? 16 : 21
@@ -21,31 +24,29 @@ android {
2124
2225 buildConfigField " boolean" , " ENABLE_LOGS_IN_RELEASE" , " false"
2326 buildConfigField " boolean" , " PREPARE_TO_RELEASE" , " $prepareToRelease "
24- resValue " string" , " app_ads_card_full" , " $ key_ads_card_full "
25- resValue " string" , " app_ads_card_list" , " $ key_ads_card_list "
26- resValue " string" , " app_ads_deck_list" , " $ key_ads_deck_list "
27- resValue " string" , " app_ads_new_deck_card_list" , " $ key_ads_new_deck_card_list "
28- resValue " string" , " app_ads_match_history_list" , " $ key_ads_match_history_list "
29- resValue " string" , " app_ads_match_statistics_class_full" , " $ key_ads_match_statistics_class_full "
30- resValue " string" , " app_ads_new_matches_full" , " $ key_ads_new_matches_full "
31- resValue " string" , " app_ads_news_list" , " $ key_ads_news_list "
32- resValue " string" , " app_ads_season_list" , " $ key_ads_season_list "
33- resValue " string" , " app_ads_patch_full" , " $ key_ads_patch_full "
34- resValue " string" , " key_ads_intersticial" , " $ key_ads_intersticial "
35- resValue " string" , " facebook_app_id" , " $ key_facebook_app_id "
36- resValue " string" , " mixpanel_app_id" , " $ key_mixpanel_app_id "
27+ resValue " string" , " app_ads_card_full" , props . getProperty( ' key_ads_card_full' )
28+ resValue " string" , " app_ads_card_list" , props . getProperty( ' key_ads_card_list' )
29+ resValue " string" , " app_ads_deck_list" , props . getProperty( ' key_ads_deck_list' )
30+ resValue " string" , " app_ads_new_deck_card_list" , props . getProperty( ' key_ads_new_deck_card_list' )
31+ resValue " string" , " app_ads_match_history_list" , props . getProperty( ' key_ads_match_history_list' )
32+ resValue " string" , " app_ads_match_statistics_class_full" , props . getProperty( ' key_ads_match_statistics_class_full' )
33+ resValue " string" , " app_ads_new_matches_full" , props . getProperty( ' key_ads_new_matches_full' )
34+ resValue " string" , " app_ads_news_list" , props . getProperty( ' key_ads_news_list' )
35+ resValue " string" , " app_ads_season_list" , props . getProperty( ' key_ads_season_list' )
36+ resValue " string" , " app_ads_patch_full" , props . getProperty( ' key_ads_patch_full' )
37+ resValue " string" , " key_ads_intersticial" , props . getProperty( ' key_ads_intersticial' )
38+ resValue " string" , " facebook_app_id" , props . getProperty( ' key_facebook_app_id' )
39+ resValue " string" , " mixpanel_app_id" , props . getProperty( ' key_mixpanel_app_id' )
3740 multiDexEnabled true
3841 vectorDrawables. useSupportLibrary true
3942 }
4043 signingConfigs {
4144 release {
4245 try {
43- def props = new Properties ()
44- props. load(file(propsFile). newInputStream())
45- storeFile file(props. keystore_file)
46- storePassword props. keystore_pass
46+ storeFile file(' AppsByEdipo.keystore' )
47+ storePassword props. getProperty(' keystore_pass' )
4748 keyAlias " tes_legends_tracker"
48- keyPassword props. tes_legends_tracker_pass
49+ keyPassword props. getProperty( ' tes_legends_tracker_pass' )
4950 } catch (e) {
5051 println (e. message)
5152 }
0 commit comments