Skip to content

Commit

Permalink
1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
survivingwithandroid committed Oct 19, 2015
1 parent 594a95c commit 838965d
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions OkHttpClient/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 9
targetSdkVersion 19
versionCode 159
versionName "1.5.9"
versionCode 160
versionName "1.6.0"
}
buildTypes {
release {
Expand Down
4 changes: 2 additions & 2 deletions demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ android {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.survivingwithandroid:weatherlib:1.5.2'
compile 'com.survivingwithandroid:weatherlib_volleyclient:1.5.2'
compile project(':lib')
compile project(':volleyclient')
compile 'com.mcxiaoke.volley:library:1.0.6@aar'
compile 'com.android.support:support-v4:20.0.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void onWeatherRetrieved(WeatherForecast weatherForecast) {

@Override
public void onWeatherError(WeatherLibException e) {
Log.e("SwA", "#####à ERROR #####", e);
Log.e("SwA", "##### ERROR #####", e);
Toast.makeText(getActivity(), "Forecast: Error parsing the data", Toast.LENGTH_LONG).show();
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.5.9
VERSION_CODE=18
VERSION_NAME=1.6.0
VERSION_CODE=19
GROUP=com.survivingwithandroid

POM_DESCRIPTION=Android Weather Lib
Expand Down
4 changes: 2 additions & 2 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 9
targetSdkVersion 19
versionCode 159
versionName "1.5.9"
versionCode 1591
versionName "1.6.0"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public void setConfig(WeatherConfig config) {

@Override
public String getQueryCityURL(String cityNamePattern) {
return SEARCH_URL + cityNamePattern + createAPPID(); // + "&cnt=" + config.maxResult;
return SEARCH_URL + cityNamePattern + createAPPID();
}

/*
Expand All @@ -464,12 +464,12 @@ public void setWeatherCodeProvider(IWeatherCodeProvider codeProvider) {

@Override
public String getQueryCityURLByLocation(android.location.Location location) throws ApiKeyRequiredException {
return SEARCH_URL_GEO + "&lat=" + location.getLatitude() + "&lon=" + location.getLongitude() + "&cnt=3";
return SEARCH_URL_GEO + "&lat=" + location.getLatitude() + "&lon=" + location.getLongitude() + "&cnt=3" + createAPPID();
}

@Override
public String getQueryCityURLByCoord(double lon, double lat) throws ApiKeyRequiredException {
return SEARCH_URL_GEO + "&lat=" + lat + "&lon=" + lon + "&cnt=3";
return SEARCH_URL_GEO + "&lat=" + lat + "&lon=" + lon + "&cnt=3" + createAPPID() ;
}


Expand All @@ -495,9 +495,11 @@ public String getQueryLayerURL(String cityId, Params params) throws ApiKeyRequir


private String createAPPID() {

if (config.ApiKey == null || config.ApiKey.equals(""))
return "";


return "&APPID=" + config.ApiKey;
}

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':lib', ':volleyclient', ':demo15', ':OkHttpClient', 'demo'
include ':lib', ':volleyclient', ':demo15', ':OkHttpClient', ':weathertestapp', 'demo'
4 changes: 2 additions & 2 deletions volleyclient/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion 9
targetSdkVersion 19
versionCode 159
versionName '1.5.9'
versionCode 160
versionName '1.6.0'
}
buildTypes {
release {
Expand Down

0 comments on commit 838965d

Please sign in to comment.