Skip to content

Commit

Permalink
v1.1.2 Adding generation 3's Pokemon
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan910 committed Oct 15, 2017
1 parent 9161429 commit 38a022f
Show file tree
Hide file tree
Showing 141 changed files with 26 additions and 8 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ In order to protect the website, the security part is not included in this proje

<img src="https://raw.githubusercontent.com/kaiyan910/PGO-WeCatch-Android/master/screenshot_1.png" width="200"> <img src="https://raw.githubusercontent.com/kaiyan910/PGO-WeCatch-Android/master/screenshot_2.png" width="200"> <img src="https://raw.githubusercontent.com/kaiyan910/PGO-WeCatch-Android/master/screenshot_3.png" width="200"> <img src="https://raw.githubusercontent.com/kaiyan910/PGO-WeCatch-Android/master/screenshot_4.png" width="200">

## v1.1.2
- Adding Generation 3's Pokemons

## v1.1.1
- OSM is added as another map provider

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ androidExtensions {

android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "com.kennah.wecatch"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.1.1"
versionName "1.1.2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

externalNativeBuild {
Expand Down
10 changes: 7 additions & 3 deletions app/src/main/java/com/kennah/wecatch/local/Constant.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,22 @@ object Constant {
val MAP_PROVIDER_OSM = "OSM"

@JvmField
val POKEMON_GENERATION = 2
val POKEMON_GENERATION = 3

@JvmField
val MAX_POKEMON = 251
val MAX_POKEMON = 386
@JvmField
val GYM = (0..5)
@JvmField
val GEN_1 = (1..151)
@JvmField
val GEN_2 = (152..251)
@JvmField
val GENERATION = listOf(GEN_1, GEN_2)
val GEN_3 = (252..386)
@JvmField
val GENERATION = listOf(GEN_1, GEN_2, GEN_3)
@JvmField
val MOVE_SET = 281

@JvmField
val REQ_FILTER = 10001
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import com.kennah.wecatch.R
import com.kennah.wecatch.core.utils.ResourceUtils
import com.kennah.wecatch.core.utils.TimeUtils
import com.kennah.wecatch.core.withDelay
import com.kennah.wecatch.local.Constant
import com.kennah.wecatch.local.model.Pokemon
import com.kennah.wecatch.local.utils.ColorUtils
import org.jetbrains.anko.textColor
Expand Down Expand Up @@ -72,8 +73,17 @@ class MapPokemonWindow(context: Context) : LinearLayout(context) {
pokemon.cp
)

mTextMove1.text = ResourceUtils.getStringResource(context, "move_" + pokemon.move1)
mTextMove2.text = ResourceUtils.getStringResource(context, "move_" + pokemon.move2)
mTextMove1.text = if (pokemon.move1 > Constant.MOVE_SET) {
ResourceUtils.getStringResource(context, "move_0")
} else {
ResourceUtils.getStringResource(context, "move_" + pokemon.move1)
}

mTextMove2.text = if (pokemon.move2 > Constant.MOVE_SET) {
ResourceUtils.getStringResource(context, "move_0")
} else {
ResourceUtils.getStringResource(context, "move_" + pokemon.move2)
}
}
}
}
Binary file added app/src/main/res/drawable-xhdpi/pkm_252.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_253.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_254.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_255.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_257.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_258.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_259.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_260.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_261.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_262.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_263.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_264.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_265.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_266.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_267.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_268.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_269.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_270.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_271.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_272.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_273.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_274.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_275.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_276.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/pkm_277.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_278.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_279.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_280.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_281.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_282.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_283.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_284.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_285.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_286.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_287.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_288.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_289.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_290.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_291.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_292.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_293.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_294.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_295.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_296.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_297.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_298.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_299.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_300.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_301.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_302.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_303.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_304.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_305.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_306.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_307.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_308.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_309.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_310.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_311.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_312.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_313.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_314.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_315.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_316.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_317.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_318.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_319.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_320.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_321.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_322.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_323.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_324.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_325.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_326.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_327.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_328.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_329.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_330.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_331.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_332.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_333.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_334.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_335.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_336.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_337.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_338.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_339.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_340.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_341.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_342.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_343.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_344.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_345.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_346.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_347.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_348.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_349.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_350.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_351.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_352.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_353.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_354.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_355.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_356.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_357.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_358.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_359.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_360.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_361.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_362.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_363.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_364.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_365.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_366.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_367.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_368.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_369.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_370.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_371.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_372.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_373.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_374.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_375.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_376.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_377.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_378.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_379.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_380.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_381.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_382.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_383.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_384.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_385.png
Binary file added app/src/main/res/drawable-xhdpi/pkm_386.png
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<item>RAID</item>
<item>GEN. 1</item>
<item>GEN. 2</item>
<item>GEN. 3</item>
</string-array>

<string name="filter_gym">GYM</string>
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-beta6'
classpath 'com.android.tools.build:gradle:3.0.0-beta7'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down

0 comments on commit 38a022f

Please sign in to comment.