Skip to content

Commit

Permalink
increased keys
Browse files Browse the repository at this point in the history
  • Loading branch information
sleep-yearning committed Jan 28, 2021
1 parent 5e847c6 commit 2d5aa85
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
14 changes: 10 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ android {
versionCode 10
versionName "2.4.1"

buildConfigField "String", "DEFAULT_API_KEY1", "\"50467debf1b33d338498afad4977e9b0\""
buildConfigField "String", "DEFAULT_API_KEY2", "\"6ccdf4e2ad55192ed32a70845410868d\""
buildConfigField "String", "DEFAULT_API_KEY3", "\"3fb239a5397459ff57d21c5cc1ca1536\""
buildConfigField "String", "DEFAULT_API_KEY4", "\"c3c0ab1b2cb3a322573bdb4f9d3ea6ed\""
buildConfigField "String", "DEFAULT_API_KEY1", "\"cf591ca34ede65243c96df755c670f4f\""
buildConfigField "String", "DEFAULT_API_KEY2", "\"c7fe92edc0f22f1dcff934a8c97f41a3\""
buildConfigField "String", "DEFAULT_API_KEY3", "\"db7241ad27e214a2ed8b2bfd077a489f\""
buildConfigField "String", "DEFAULT_API_KEY4", "\"f3eb6986f26729bbbef697f4276d0715\""
buildConfigField "String", "DEFAULT_API_KEY5", "\"689205da30f858adcfa4456c1cb11887\""
buildConfigField "String", "DEFAULT_API_KEY6", "\"0494ad5990313615961e7f52cd60d9c2\""
buildConfigField "String", "DEFAULT_API_KEY7", "\"eebec1d11bdaee73923af0796dcba301\""
buildConfigField "String", "DEFAULT_API_KEY8", "\"6ccdf4e2ad55192ed32a70845410868d\""
buildConfigField "String", "DEFAULT_API_KEY9", "\"e876eb56ca28eb0acc3aeadacc4f1c55\""
buildConfigField "String", "DEFAULT_API_KEY10", "\"a7487362846fddda9e950ca1a8356271\""

buildConfigField "String", "BASE_URL", "\"https://api.openweathermap.org/data/2.5/\""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,30 @@ public String getOWMApiKey(Context context) {
editor.putInt("last_used_key", 4);
editor.commit();
return BuildConfig.DEFAULT_API_KEY4;
case 4:
editor.putInt("last_used_key", 5);
editor.commit();
return BuildConfig.DEFAULT_API_KEY5;
case 5:
editor.putInt("last_used_key", 6);
editor.commit();
return BuildConfig.DEFAULT_API_KEY6;
case 6:
editor.putInt("last_used_key", 7);
editor.commit();
return BuildConfig.DEFAULT_API_KEY7;
case 7:
editor.putInt("last_used_key", 8);
editor.commit();
return BuildConfig.DEFAULT_API_KEY8;
case 8:
editor.putInt("last_used_key", 9);
editor.commit();
return BuildConfig.DEFAULT_API_KEY9;
case 9:
editor.putInt("last_used_key", 10);
editor.commit();
return BuildConfig.DEFAULT_API_KEY10;
default:
editor.putInt("last_used_key", 1);
editor.commit();
Expand Down

0 comments on commit 2d5aa85

Please sign in to comment.