Skip to content

Commit

Permalink
Fixes to make it work after API changes and AS 3.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniolg committed Nov 27, 2017
1 parent 678f3f3 commit c290ebc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
buildToolsVersion "26.0.2"

defaultConfig {
applicationId "com.antonioleiva.weatherapp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ForecastByZipCodeRequest(private val zipCode: Long, val gson: Gson = Gson(
companion object {
private val APP_ID = "15646a06818f61f7b8d7823ca833e1ce"
private val URL = "http://api.openweathermap.org/data/2.5/forecast/daily?mode=json&units=metric&cnt=7"
private val COMPLETE_URL = "$URL&APPID=$APP_ID&q="
private val COMPLETE_URL = "$URL&APPID=$APP_ID&zip="
}

fun execute(): ForecastResult {
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.support_version = '26.0.2'
ext.kotlin_version = '1.1.4-3'
ext.anko_version = '0.10.0'
ext.support_version = '26.1.0'
ext.kotlin_version = '1.1.61'
ext.anko_version = '0.10.3'
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon May 01 13:34:26 CEST 2017
#Mon Nov 27 09:27:13 CET 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

0 comments on commit c290ebc

Please sign in to comment.