Skip to content

Commit

Permalink
change gradle version
Browse files Browse the repository at this point in the history
  • Loading branch information
Amuri-Bonface committed Jul 25, 2019
1 parent e7e1e6a commit a715e18
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 10 deletions.
Binary file added .idea/caches/build_file_checksums.ser
Binary file not shown.
Binary file added .idea/caches/gradle_models.ser
Binary file not shown.
4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
apply plugin: 'com.android.application'

ext.android_support_version = '26.1.0'
ext.android_support_version = '28.0.0'
ext.arch_version = '1.0.0'
ext.retrofit_version = '2.3.0'

android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
compileSdkVersion 28
// buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.news.droiddebo.mytimes"
minSdkVersion 15
targetSdkVersion 26
targetSdkVersion 28
versionCode 5
versionName "2.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -23,10 +23,11 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildTypes.each {
it.buildConfigField('String', 'NEWS_API_KEY', MY_NEWS_API_KEY)
/*buildTypes.each {
it.buildConfigField('String', 'NEWS_API_KEY', "b46d2d93dc4d474aaa81864563640575")
it.buildConfigField 'String', 'OPEN_WEATHER_MAP_API_KEY', "\"6df0...9ac\""
//Put your key in the gradle.properties (Project Properties)
}
}*/
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class Constants {
public static final String BASE_URL = "https://newsapi.org/v2/";

//API Key
public static final String API_KEY = BuildConfig.NEWS_API_KEY;
public static final String API_KEY = "b46d2d93dc4d474aaa81864563640575";

//Used to save the instance of the recyclerView
public static final String RECYCLER_STATE_KEY = "recycler_list_state";
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.4.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip

0 comments on commit a715e18

Please sign in to comment.