├── app
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── drawable
│ │ │ │ ├── height.png
│ │ │ │ ├── weight.png
│ │ │ │ ├── appicon.png
│ │ │ │ └── ic_launcher_background.xml
│ │ │ ├── font
│ │ │ │ └── manropemedium.ttf
│ │ │ ├── values
│ │ │ │ ├── dimens.xml
│ │ │ │ ├── colors.xml
│ │ │ │ ├── strings.xml
│ │ │ │ └── styles.xml
│ │ │ ├── layout
│ │ │ │ ├── splash_screen.xml
│ │ │ │ ├── main_adapter_single_row.xml
│ │ │ │ ├── activity_main.xml
│ │ │ │ └── pokemon_detail.xml
│ │ │ └── drawable-v24
│ │ │ │ └── ic_launcher_foreground.xml
│ │ ├── graphql
│ │ │ └── com
│ │ │ │ └── tayfuncesur
│ │ │ │ └── pokehub
│ │ │ │ ├── API.graphql
│ │ │ │ ├── PokemonDetail.graphql
│ │ │ │ └── schema.json
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── tayfuncesur
│ │ │ │ └── pokehub
│ │ │ │ ├── util
│ │ │ │ └── Const.kt
│ │ │ │ ├── base
│ │ │ │ ├── Repository.kt
│ │ │ │ ├── Resource.kt
│ │ │ │ ├── ViewModelFactory.kt
│ │ │ │ └── BaseDaggerActivity.kt
│ │ │ │ ├── di
│ │ │ │ ├── AppInjector.kt
│ │ │ │ ├── module
│ │ │ │ │ ├── FragmentModule.kt
│ │ │ │ │ ├── AppModule.kt
│ │ │ │ │ ├── ViewModelModule.kt
│ │ │ │ │ └── NetworkModule.kt
│ │ │ │ └── AppComponent.kt
│ │ │ │ ├── binding
│ │ │ │ └── BindingAdapter.kt
│ │ │ │ ├── App.kt
│ │ │ │ ├── ui
│ │ │ │ ├── splash
│ │ │ │ │ ├── SplashScreenViewModel.kt
│ │ │ │ │ └── SplashActivity.kt
│ │ │ │ ├── main
│ │ │ │ │ ├── MainViewModel.kt
│ │ │ │ │ ├── MainAdapter.kt
│ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── detail
│ │ │ │ │ ├── PokemonDetailViewModel.kt
│ │ │ │ │ ├── PokemonEvulotionAdapter.kt
│ │ │ │ │ └── PokemonDetailFragment.kt
│ │ │ │ ├── network
│ │ │ │ └── ApiService.kt
│ │ │ │ └── repository
│ │ │ │ ├── PokemonRepository.kt
│ │ │ │ └── PokemonDetailRepository.kt
│ │ ├── AndroidManifest.xml
│ │ └── assets
│ │ │ └── anims
│ │ │ ├── loading.json
│ │ │ └── error.json
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── tayfuncesur
│ │ └── pokehub
│ │ └── ExampleInstrumentedTest.kt
├── proguard-rules.pro
└── build.gradle
├── settings.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .gitignore
├── gradle.properties
├── gradlew.bat
├── README.md
└── gradlew
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TayfunCesur/Pokehub/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/app/src/main/res/drawable/height.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TayfunCesur/Pokehub/HEAD/app/src/main/res/drawable/height.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/weight.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TayfunCesur/Pokehub/HEAD/app/src/main/res/drawable/weight.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/appicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TayfunCesur/Pokehub/HEAD/app/src/main/res/drawable/appicon.png
--------------------------------------------------------------------------------
/app/src/main/res/font/manropemedium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TayfunCesur/Pokehub/HEAD/app/src/main/res/font/manropemedium.ttf
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 250dp
4 |
--------------------------------------------------------------------------------
/app/src/main/graphql/com/tayfuncesur/pokehub/API.graphql:
--------------------------------------------------------------------------------
1 | query PokemonRepository($first:Int!){
2 | pokemons(first:$first) {
3 | id
4 | image
5 | name
6 | }
7 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/util/Const.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.util
2 |
3 | var BASE_URL = "https://graphql-pokemon.now.sh/"
4 | const val SPLASH_SCREEN_DELAY = 1500L
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/base/Repository.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.base
2 |
3 | import io.reactivex.disposables.Disposable
4 |
5 | interface Repository {
6 |
7 | fun addDisposable(disposable: Disposable)
8 |
9 | fun clear()
10 |
11 | }
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sat Apr 13 22:12:41 EET 2019
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
7 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/base/Resource.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.base
2 |
3 | sealed class Resource {
4 | class Loading : Resource()
5 | data class Success(val data: T?) : Resource()
6 | data class Failure(val cause: String?) : Resource()
7 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/di/AppInjector.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.di
2 |
3 | import com.tayfuncesur.pokehub.App
4 |
5 | object AppInjector {
6 | fun init(app: App) {
7 | DaggerAppComponent.builder().application(app)
8 | .build().inject(app)
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/di/module/FragmentModule.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.di.module
2 |
3 | import com.tayfuncesur.pokehub.ui.detail.PokemonDetailFragment
4 | import dagger.Module
5 | import dagger.android.ContributesAndroidInjector
6 |
7 | @Suppress("unused")
8 | @Module
9 | abstract class FragmentModule {
10 |
11 | @ContributesAndroidInjector
12 | abstract fun contributePokemonDetailFragment(): PokemonDetailFragment
13 | }
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 | #f44336
7 | #ffb74d
8 | #4caf50
9 | #000000
10 | #FFFFFF
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/binding/BindingAdapter.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.binding
2 |
3 | import android.databinding.BindingAdapter
4 | import android.view.View
5 | import android.widget.ImageView
6 | import com.bumptech.glide.Glide
7 | import com.bumptech.glide.request.RequestOptions
8 |
9 | object BindingAdapter {
10 | @JvmStatic
11 | @BindingAdapter("visibleGone")
12 | fun showHide(view: View, show: Boolean) {
13 | view.visibility = if (show) View.VISIBLE else View.GONE
14 | }
15 |
16 |
17 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/di/module/AppModule.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.di.module
2 |
3 | import com.tayfuncesur.pokehub.ui.main.MainActivity
4 | import com.tayfuncesur.pokehub.ui.splash.SplashActivity
5 | import dagger.Module
6 | import dagger.android.ContributesAndroidInjector
7 |
8 | @Module
9 | abstract class AppModule {
10 |
11 | @ContributesAndroidInjector
12 | abstract fun bindSplashActivity() : SplashActivity
13 |
14 | @ContributesAndroidInjector(modules = [FragmentModule::class])
15 | abstract fun bindMainActivity() : MainActivity
16 |
17 |
18 | }
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | PokeHub
3 | Loading Pokemons…
4 | An error has occurred
5 | Weight
6 | Height
7 | Resistant:
8 | Special Attacks
9 | Weaknesses
10 | Evolutions
11 | Getting Details..
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/App.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub
2 |
3 | import android.app.Activity
4 | import android.app.Application
5 | import com.tayfuncesur.pokehub.di.AppInjector
6 | import dagger.android.AndroidInjector
7 | import dagger.android.DispatchingAndroidInjector
8 | import dagger.android.HasActivityInjector
9 | import javax.inject.Inject
10 |
11 | class App : Application(), HasActivityInjector {
12 | @Inject
13 | lateinit var dispatchingAndroidInjector: DispatchingAndroidInjector
14 |
15 | override fun activityInjector(): AndroidInjector {
16 | return dispatchingAndroidInjector
17 | }
18 |
19 | override fun onCreate() {
20 | super.onCreate()
21 | AppInjector.init(this)
22 | }
23 |
24 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/ui/splash/SplashScreenViewModel.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.ui.splash
2 |
3 | import android.arch.lifecycle.MutableLiveData
4 | import android.arch.lifecycle.ViewModel
5 | import android.os.CountDownTimer
6 | import com.tayfuncesur.pokehub.util.SPLASH_SCREEN_DELAY
7 | import javax.inject.Inject
8 |
9 |
10 | class SplashScreenViewModel @Inject constructor() : ViewModel() {
11 |
12 | val isFinished = MutableLiveData()
13 |
14 | init {
15 | object : CountDownTimer(SPLASH_SCREEN_DELAY, 1000) {
16 |
17 | override fun onTick(millisUntilFinished: Long) {
18 |
19 | }
20 |
21 | override fun onFinish() {
22 | isFinished.postValue(true)
23 | }
24 |
25 | }.start()
26 | }
27 | }
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/tayfuncesur/pokehub/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub
2 |
3 | import android.support.test.InstrumentationRegistry
4 | import android.support.test.runner.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getTargetContext()
22 | assertEquals("com.tayfuncesur.pokehub", appContext.packageName)
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # Kotlin code style for this project: "official" or "obsolete":
15 | kotlin.code.style=official
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/di/AppComponent.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.di
2 |
3 | import android.app.Application
4 | import com.tayfuncesur.pokehub.App
5 | import com.tayfuncesur.pokehub.di.module.AppModule
6 | import com.tayfuncesur.pokehub.di.module.NetworkModule
7 | import dagger.BindsInstance
8 | import dagger.Component
9 | import dagger.android.AndroidInjectionModule
10 | import javax.inject.Singleton
11 |
12 | @Singleton
13 | @Component(
14 | modules = [
15 | AndroidInjectionModule::class,
16 | AppModule::class,
17 | NetworkModule::class
18 | ]
19 | )
20 | interface AppComponent {
21 |
22 | @Component.Builder
23 | interface Builder {
24 | @BindsInstance
25 | fun application(application: Application): Builder
26 |
27 | fun build(): AppComponent
28 | }
29 |
30 | fun inject(app: App)
31 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/ui/main/MainViewModel.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.ui.main
2 |
3 | import android.arch.lifecycle.LiveData
4 | import android.arch.lifecycle.ViewModel
5 | import com.tayfuncesur.pokehub.PokemonRepositoryQuery
6 | import com.tayfuncesur.pokehub.base.Resource
7 | import com.tayfuncesur.pokehub.repository.PokemonRepository
8 | import javax.inject.Inject
9 |
10 | class MainViewModel @Inject constructor(private val pokemonRepository: PokemonRepository) : ViewModel() {
11 |
12 | lateinit var pokemonLiveData: LiveData>>
13 |
14 | init {
15 | getPokemons()
16 | }
17 |
18 | private fun getPokemons() {
19 | pokemonLiveData = pokemonRepository.getPokemons(200)
20 | }
21 |
22 | override fun onCleared() {
23 | pokemonRepository.clear()
24 | super.onCleared()
25 | }
26 |
27 | }
--------------------------------------------------------------------------------
/app/src/main/graphql/com/tayfuncesur/pokehub/PokemonDetail.graphql:
--------------------------------------------------------------------------------
1 | query PokemonDetailRepository($id:String!){
2 | pokemon(id :$id){
3 | id
4 | number
5 | name
6 | weight{
7 | minimum
8 | maximum
9 | }
10 | height{
11 | minimum
12 | maximum
13 | }
14 | classification
15 | types
16 | resistant
17 | attacks{
18 | fast{
19 | name
20 | type
21 | damage
22 | }
23 | special{
24 | name
25 | type
26 | damage
27 | }
28 | }
29 | weaknesses
30 | fleeRate
31 | maxCP
32 | evolutions{
33 | id
34 | name
35 | image
36 | }
37 | evolutionRequirements{
38 | amount
39 | name
40 | }
41 | maxHP
42 | image
43 | }
44 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/ui/detail/PokemonDetailViewModel.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.ui.detail
2 |
3 | import android.arch.lifecycle.LiveData
4 | import android.arch.lifecycle.ViewModel
5 | import com.tayfuncesur.pokehub.PokemonDetailRepositoryQuery
6 | import com.tayfuncesur.pokehub.PokemonRepositoryQuery
7 | import com.tayfuncesur.pokehub.base.Resource
8 | import com.tayfuncesur.pokehub.repository.PokemonDetailRepository
9 | import com.tayfuncesur.pokehub.repository.PokemonRepository
10 | import javax.inject.Inject
11 |
12 | class PokemonDetailViewModel @Inject constructor(private val pokemonDetailRepository: PokemonDetailRepository) :
13 | ViewModel() {
14 |
15 | fun getPokemonDetail(id: String): LiveData> {
16 | return pokemonDetailRepository.getPokemonDetail(id)
17 | }
18 |
19 | override fun onCleared() {
20 | pokemonDetailRepository.clear()
21 | super.onCleared()
22 | }
23 |
24 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/network/ApiService.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.network
2 |
3 | import com.apollographql.apollo.ApolloClient
4 | import com.apollographql.apollo.rx2.Rx2Apollo
5 | import com.tayfuncesur.pokehub.PokemonDetailRepositoryQuery
6 | import com.tayfuncesur.pokehub.PokemonRepositoryQuery
7 | import io.reactivex.Observable
8 | import javax.inject.Inject
9 |
10 | class ApiService @Inject constructor(private var apolloClient: ApolloClient) {
11 |
12 | fun getPokemons(count: Int): Observable> {
13 | return Rx2Apollo.from(apolloClient.query(PokemonRepositoryQuery.builder().first(count).build())).map {
14 | it.data()?.pokemons()
15 | }
16 | }
17 |
18 | fun getPokemonDetail(id: String): Observable {
19 | return Rx2Apollo.from(apolloClient.query(PokemonDetailRepositoryQuery.builder().id(id).build())).map {
20 | it.data()?.pokemon()
21 | }
22 | }
23 |
24 | }
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/di/module/ViewModelModule.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.di.module
2 |
3 | import android.arch.lifecycle.ViewModel
4 | import android.arch.lifecycle.ViewModelProvider
5 | import com.tayfuncesur.pokehub.base.ViewModelFactory
6 | import com.tayfuncesur.pokehub.base.ViewModelKey
7 | import com.tayfuncesur.pokehub.ui.detail.PokemonDetailViewModel
8 | import com.tayfuncesur.pokehub.ui.splash.SplashScreenViewModel
9 | import com.tayfuncesur.pokehub.ui.main.MainViewModel
10 | import dagger.Binds
11 | import dagger.Module
12 | import dagger.multibindings.IntoMap
13 |
14 | @Module
15 | abstract class ViewModelModule {
16 |
17 | @Binds
18 | internal abstract fun bindViewModelFactory(factory: ViewModelFactory): ViewModelProvider.Factory
19 |
20 | @Binds
21 | @IntoMap
22 | @ViewModelKey(SplashScreenViewModel::class)
23 | internal abstract fun bindSplashViewModel(splashScreenViewModel: SplashScreenViewModel): ViewModel
24 |
25 | @Binds
26 | @IntoMap
27 | @ViewModelKey(MainViewModel::class)
28 | internal abstract fun bindMainViewModel(mainViewModel: MainViewModel): ViewModel
29 |
30 | @Binds
31 | @IntoMap
32 | @ViewModelKey(PokemonDetailViewModel::class)
33 | internal abstract fun bindPokemonDetailViewModel(pokemonDetailViewModel: PokemonDetailViewModel): ViewModel
34 |
35 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/di/module/NetworkModule.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.di.module
2 |
3 | import com.apollographql.apollo.ApolloClient
4 | import com.tayfuncesur.pokehub.BuildConfig
5 | import com.tayfuncesur.pokehub.network.ApiService
6 | import com.tayfuncesur.pokehub.util.BASE_URL
7 | import dagger.Module
8 | import dagger.Provides
9 | import okhttp3.OkHttpClient
10 | import okhttp3.logging.HttpLoggingInterceptor
11 | import javax.inject.Singleton
12 |
13 | @Module(includes = [ViewModelModule::class])
14 | class NetworkModule {
15 |
16 | @Provides
17 | @Singleton
18 | fun provideHttpClient(): OkHttpClient {
19 | val client = OkHttpClient.Builder()
20 | if (BuildConfig.DEBUG) {
21 | val interceptor = HttpLoggingInterceptor()
22 | interceptor.level = HttpLoggingInterceptor.Level.BODY
23 | client.addInterceptor(interceptor)
24 | }
25 | return client.build()
26 | }
27 |
28 | @Provides
29 | @Singleton
30 | fun provideApolloClient(okHttpClient: OkHttpClient): ApolloClient {
31 | return ApolloClient.builder()
32 | .serverUrl(BASE_URL)
33 | .okHttpClient(okHttpClient)
34 | .build()
35 | }
36 |
37 | @Provides
38 | @Singleton
39 | fun providesApiService(apolloClient: ApolloClient): ApiService {
40 | return ApiService(apolloClient)
41 | }
42 |
43 | }
--------------------------------------------------------------------------------
/app/src/main/res/layout/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
17 |
18 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/ui/splash/SplashActivity.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.ui.splash
2 |
3 | import android.arch.lifecycle.Observer
4 | import android.arch.lifecycle.ViewModelProvider
5 | import android.arch.lifecycle.ViewModelProviders
6 | import android.content.Intent
7 | import android.os.Bundle
8 | import android.view.Window
9 | import android.view.WindowManager
10 | import com.tayfuncesur.pokehub.R
11 | import com.tayfuncesur.pokehub.base.BaseDaggerActivity
12 | import com.tayfuncesur.pokehub.ui.main.MainActivity
13 | import dagger.android.AndroidInjection
14 | import javax.inject.Inject
15 |
16 |
17 | class SplashActivity : BaseDaggerActivity() {
18 |
19 | private lateinit var splashScreenViewModel: SplashScreenViewModel
20 |
21 | @Inject
22 | lateinit var viewModelFactory: ViewModelProvider.Factory
23 |
24 | override fun onCreate(savedInstanceState: Bundle?) {
25 | super.onCreate(savedInstanceState)
26 | window.requestFeature(Window.FEATURE_NO_TITLE)
27 | window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN)
28 | setContentView(R.layout.splash_screen)
29 | AndroidInjection.inject(this)
30 |
31 | splashScreenViewModel = ViewModelProviders.of(this, viewModelFactory).get(SplashScreenViewModel::class.java)
32 |
33 | splashScreenViewModel.isFinished.observe(this, Observer {
34 | startActivity(Intent(this@SplashActivity, MainActivity::class.java))
35 | finish()
36 | })
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/base/ViewModelFactory.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.base
2 |
3 | import android.arch.lifecycle.ViewModel
4 | import android.arch.lifecycle.ViewModelProvider
5 | import dagger.MapKey
6 | import javax.inject.Inject
7 | import javax.inject.Provider
8 | import javax.inject.Singleton
9 | import kotlin.reflect.KClass
10 |
11 | @Suppress("UNCHECKED_CAST")
12 | @Singleton
13 | class ViewModelFactory @Inject
14 | constructor(
15 | private val creators: Map,
16 | @JvmSuppressWildcards Provider>
17 | ) : ViewModelProvider.Factory {
18 |
19 | override fun create(modelClass: Class): T {
20 | var creator: Provider? = creators[modelClass]
21 | if (creator == null) {
22 | for ((key, value) in creators) {
23 | if (modelClass.isAssignableFrom(key)) {
24 | creator = value
25 | break
26 | }
27 | }
28 | }
29 | if (creator == null) {
30 | throw IllegalArgumentException("unknown model class $modelClass")
31 | }
32 | try {
33 | return creator.get() as T
34 | } catch (e: Exception) {
35 | throw RuntimeException(e)
36 | }
37 |
38 | }
39 | }
40 |
41 | @Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
42 | @kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
43 | @MapKey
44 | internal annotation class ViewModelKey(val value: KClass)
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/ui/main/MainAdapter.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.ui.main
2 |
3 | import android.support.v7.widget.RecyclerView
4 | import android.view.LayoutInflater
5 | import android.view.View
6 | import android.view.ViewGroup
7 | import com.bumptech.glide.Glide
8 | import com.tayfuncesur.pokehub.PokemonRepositoryQuery
9 | import com.tayfuncesur.pokehub.R
10 | import com.thekhaeng.pushdownanim.PushDownAnim
11 | import kotlinx.android.synthetic.main.main_adapter_single_row.view.*
12 |
13 | class MainAdapter(var list: List, var click: (PokemonRepositoryQuery.Pokemon) -> Unit) :
14 | RecyclerView.Adapter() {
15 |
16 |
17 | override fun onCreateViewHolder(p0: ViewGroup, p1: Int): SingleRow {
18 | return SingleRow(LayoutInflater.from(p0.context).inflate(R.layout.main_adapter_single_row, p0, false))
19 | }
20 |
21 | override fun getItemCount(): Int {
22 | return list.size
23 | }
24 |
25 | override fun onBindViewHolder(p0: SingleRow, p1: Int) {
26 | p0.bind(p1)
27 | }
28 |
29 |
30 | inner class SingleRow(var view: View) : RecyclerView.ViewHolder(view) {
31 |
32 | fun bind(pos: Int) {
33 | Glide.with(view.context).load(list[pos].image()).into(view.image)
34 | view.name.text = list[pos].name()
35 | PushDownAnim.setPushDownAnimTo(view.pokemonItem).setScale(PushDownAnim.MODE_STATIC_DP, 5F)
36 | .setOnClickListener {
37 | click.invoke(list[pos])
38 | }
39 | }
40 |
41 | }
42 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/base/BaseDaggerActivity.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.base
2 |
3 | import android.graphics.Color
4 | import android.os.Bundle
5 | import android.support.design.widget.Snackbar
6 | import android.support.v4.content.ContextCompat
7 | import android.support.v7.app.AppCompatActivity
8 | import android.view.View
9 | import com.tayfuncesur.pokehub.R
10 | import dagger.android.AndroidInjection
11 |
12 | open class BaseDaggerActivity : AppCompatActivity() {
13 |
14 | override fun onCreate(savedInstanceState: Bundle?) {
15 | super.onCreate(savedInstanceState)
16 | AndroidInjection.inject(this)
17 | }
18 |
19 | fun showSnackbar(
20 | view: View,
21 | message: String,
22 | type: Int,
23 | duration: Int = Snackbar.LENGTH_SHORT,
24 | callback: () -> Unit
25 | ) {
26 | val snackbar = Snackbar
27 | .make(view, message, duration)
28 | when (type) {
29 | 1 -> snackbar.view.setBackgroundColor(ContextCompat.getColor(view.context, R.color.successColor))
30 | 2 -> snackbar.view.setBackgroundColor(ContextCompat.getColor(view.context, R.color.errColor))
31 | else -> snackbar.view.setBackgroundColor(ContextCompat.getColor(view.context, R.color.yellowWarning))
32 | }
33 | snackbar.setActionTextColor(Color.WHITE)
34 | snackbar.addCallback(object : Snackbar.Callback() {
35 | override fun onDismissed(transientBottomBar: Snackbar?, event: Int) {
36 | super.onDismissed(transientBottomBar, event)
37 | callback()
38 | }
39 | })
40 | snackbar.show()
41 | }
42 |
43 |
44 | }
--------------------------------------------------------------------------------
/app/src/main/res/layout/main_adapter_single_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
13 |
14 |
18 |
19 |
23 |
24 |
28 |
29 |
30 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/ui/detail/PokemonEvulotionAdapter.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.ui.detail
2 |
3 | import android.support.v7.widget.RecyclerView
4 | import android.view.LayoutInflater
5 | import android.view.View
6 | import android.view.ViewGroup
7 | import com.bumptech.glide.Glide
8 | import com.tayfuncesur.pokehub.PokemonDetailRepositoryQuery
9 | import com.tayfuncesur.pokehub.PokemonRepositoryQuery
10 | import com.tayfuncesur.pokehub.R
11 | import com.thekhaeng.pushdownanim.PushDownAnim
12 | import kotlinx.android.synthetic.main.main_adapter_single_row.view.*
13 |
14 | class PokemonEvulotionAdapter(
15 | var list: List,
16 | var click: (PokemonRepositoryQuery.Pokemon) -> Unit
17 | ) :
18 | RecyclerView.Adapter() {
19 |
20 |
21 | override fun onCreateViewHolder(p0: ViewGroup, p1: Int): SingleRow {
22 | return SingleRow(LayoutInflater.from(p0.context).inflate(R.layout.main_adapter_single_row, p0, false))
23 | }
24 |
25 | override fun getItemCount(): Int {
26 | return list.size
27 | }
28 |
29 | override fun onBindViewHolder(p0: SingleRow, p1: Int) {
30 | p0.bind(p1)
31 | }
32 |
33 |
34 | inner class SingleRow(var view: View) : RecyclerView.ViewHolder(view) {
35 |
36 | fun bind(pos: Int) {
37 | Glide.with(view.context).load(list[pos].image()).into(view.image)
38 | view.name.text = list[pos].name()
39 | PushDownAnim.setPushDownAnimTo(view.pokemonItem).setScale(PushDownAnim.MODE_STATIC_DP, 5F)
40 | .setOnClickListener {
41 | click.invoke(
42 | PokemonRepositoryQuery.Pokemon(
43 | list[pos].__typename(),
44 | list[pos].id(),
45 | list[pos].image(),
46 | list[pos].name()
47 | )
48 | )
49 | }
50 | }
51 |
52 | }
53 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/repository/PokemonRepository.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.repository
2 |
3 | import android.arch.lifecycle.LiveData
4 | import android.arch.lifecycle.MutableLiveData
5 | import com.tayfuncesur.pokehub.PokemonRepositoryQuery
6 | import com.tayfuncesur.pokehub.base.Repository
7 | import com.tayfuncesur.pokehub.base.Resource
8 | import com.tayfuncesur.pokehub.network.ApiService
9 | import io.reactivex.android.schedulers.AndroidSchedulers
10 | import io.reactivex.disposables.CompositeDisposable
11 | import io.reactivex.disposables.Disposable
12 | import io.reactivex.schedulers.Schedulers
13 | import javax.inject.Inject
14 |
15 | class PokemonRepository @Inject constructor(private var apiService: ApiService) : Repository {
16 |
17 | private val compositeDisposable = CompositeDisposable()
18 |
19 | private val result = MutableLiveData>>()
20 |
21 | fun getPokemons(count: Int): LiveData>> {
22 | addDisposable(
23 | apiService.getPokemons(count)
24 | .subscribeOn(Schedulers.io())
25 | .observeOn(AndroidSchedulers.mainThread())
26 | .doOnSubscribe { whenStart() }
27 | .subscribe(
28 | { result -> whenSuccess(result) },
29 | { cause -> whenError(cause.toString()) }
30 | )
31 | )
32 |
33 | return result
34 | }
35 |
36 | private fun whenStart() {
37 | result.value = Resource.Loading()
38 | }
39 |
40 | fun whenSuccess(pokemonList: List) {
41 | result.value = Resource.Success(pokemonList)
42 | }
43 |
44 | fun whenError(cause: String) {
45 | result.value = Resource.Failure(cause)
46 | }
47 |
48 | override fun addDisposable(disposable: Disposable) {
49 | compositeDisposable.add(disposable)
50 | }
51 |
52 | override fun clear() {
53 | compositeDisposable.clear()
54 | }
55 | }
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/repository/PokemonDetailRepository.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.repository
2 |
3 | import android.arch.lifecycle.LiveData
4 | import android.arch.lifecycle.MutableLiveData
5 | import com.tayfuncesur.pokehub.PokemonDetailRepositoryQuery
6 | import com.tayfuncesur.pokehub.PokemonRepositoryQuery
7 | import com.tayfuncesur.pokehub.base.Repository
8 | import com.tayfuncesur.pokehub.base.Resource
9 | import com.tayfuncesur.pokehub.network.ApiService
10 | import io.reactivex.android.schedulers.AndroidSchedulers
11 | import io.reactivex.disposables.CompositeDisposable
12 | import io.reactivex.disposables.Disposable
13 | import io.reactivex.schedulers.Schedulers
14 | import javax.inject.Inject
15 |
16 | class PokemonDetailRepository @Inject constructor(private var apiService: ApiService) : Repository {
17 |
18 | private val compositeDisposable = CompositeDisposable()
19 |
20 | private val result = MutableLiveData>()
21 |
22 | fun getPokemonDetail(id: String): LiveData> {
23 | addDisposable(
24 | apiService.getPokemonDetail(id)
25 | .subscribeOn(Schedulers.io())
26 | .observeOn(AndroidSchedulers.mainThread())
27 | .doOnSubscribe { whenStart() }
28 | .subscribe(
29 | { result -> whenSuccess(result) },
30 | { cause -> whenError(cause.toString()) }
31 | )
32 | )
33 |
34 | return result
35 | }
36 |
37 | private fun whenStart() {
38 | result.value = Resource.Loading()
39 | }
40 |
41 | fun whenSuccess(pokemon: PokemonDetailRepositoryQuery.Pokemon) {
42 | result.value = Resource.Success(pokemon)
43 | }
44 |
45 | fun whenError(cause: String) {
46 | result.value = Resource.Failure(cause)
47 | }
48 |
49 | override fun addDisposable(disposable: Disposable) {
50 | compositeDisposable.add(disposable)
51 | }
52 |
53 | override fun clear() {
54 | compositeDisposable.clear()
55 | }
56 | }
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/ui/main/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.ui.main
2 |
3 | import android.arch.lifecycle.Observer
4 | import android.arch.lifecycle.ViewModelProvider
5 | import android.arch.lifecycle.ViewModelProviders
6 | import android.databinding.DataBindingUtil
7 | import android.os.Bundle
8 | import android.support.v4.app.Fragment
9 | import android.support.v7.widget.GridLayoutManager
10 | import com.tayfuncesur.pokehub.R
11 | import com.tayfuncesur.pokehub.base.BaseDaggerActivity
12 | import com.tayfuncesur.pokehub.base.Resource
13 | import com.tayfuncesur.pokehub.databinding.ActivityMainBinding
14 | import com.tayfuncesur.pokehub.ui.detail.PokemonDetailFragment
15 | import dagger.android.DispatchingAndroidInjector
16 | import dagger.android.support.HasSupportFragmentInjector
17 | import kotlinx.android.synthetic.main.activity_main.*
18 | import javax.inject.Inject
19 |
20 | class MainActivity : BaseDaggerActivity(), HasSupportFragmentInjector {
21 |
22 | @Inject
23 | lateinit var dispatchingAndroidInjector: DispatchingAndroidInjector
24 |
25 | @Inject
26 | lateinit var viewModelFactory: ViewModelProvider.Factory
27 |
28 | private lateinit var mainViewModel: MainViewModel
29 |
30 | lateinit var binding: ActivityMainBinding
31 |
32 | override fun onCreate(savedInstanceState: Bundle?) {
33 | super.onCreate(savedInstanceState)
34 | binding = DataBindingUtil.setContentView(this, R.layout.activity_main)
35 | mainViewModel = ViewModelProviders.of(this, viewModelFactory).get(MainViewModel::class.java)
36 | val liveData = mainViewModel.pokemonLiveData
37 | binding.data = liveData
38 | binding.lifecycleOwner = this
39 |
40 | recycler.layoutManager = GridLayoutManager(this, 2)
41 |
42 | liveData.observe(this, Observer {
43 | if (it is Resource.Success) {
44 | val adapter = it.data?.let { it1 ->
45 | MainAdapter(it1) { pokemon ->
46 | pokemon.id().let { it2 -> PokemonDetailFragment.newInstance(it2) }.let { it3 ->
47 | supportFragmentManager.beginTransaction().setCustomAnimations(
48 | android.R.anim.fade_in,
49 | android.R.anim.fade_out,
50 | android.R.anim.fade_in,
51 | android.R.anim.fade_out
52 | ).add(
53 | R.id.mainActivityRoot,
54 | it3
55 | ).addToBackStack(PokemonDetailFragment::class.java.name).commit()
56 | }
57 | }
58 | }
59 | recycler.adapter = adapter
60 | }
61 | })
62 | }
63 |
64 | override fun supportFragmentInjector() = dispatchingAndroidInjector
65 | }
66 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | apply plugin: 'kotlin-android'
4 |
5 | apply plugin: 'kotlin-android-extensions'
6 |
7 | apply plugin: 'com.apollographql.android'
8 |
9 | apply plugin: 'kotlin-kapt'
10 |
11 | apply plugin: 'org.jetbrains.kotlin.android.extensions'
12 |
13 | android {
14 | compileSdkVersion 28
15 | defaultConfig {
16 | applicationId "com.tayfuncesur.pokehub"
17 | minSdkVersion 16
18 | targetSdkVersion 28
19 | versionCode 1
20 | versionName "1.0"
21 | multiDexEnabled true
22 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
23 | }
24 | buildTypes {
25 | release {
26 | minifyEnabled false
27 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
28 | }
29 | }
30 | androidExtensions {
31 | experimental = true
32 | }
33 |
34 | kapt {
35 | correctErrorTypes = true
36 | }
37 |
38 | dataBinding {
39 | enabled = true
40 | }
41 | compileOptions {
42 | sourceCompatibility JavaVersion.VERSION_1_8
43 | targetCompatibility JavaVersion.VERSION_1_8
44 | }
45 | }
46 |
47 | dependencies {
48 |
49 | //Support
50 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
51 | implementation 'com.android.support:appcompat-v7:28.0.0'
52 |
53 | //Structure
54 | implementation 'android.arch.lifecycle:extensions:1.1.1'
55 | implementation 'com.android.support:multidex:1.0.3'
56 |
57 | //Design
58 | implementation 'com.android.support.constraint:constraint-layout:1.1.3'
59 | implementation "com.airbnb.android:lottie:$lottieVersion"
60 | implementation 'com.android.support:design:28.0.0'
61 | implementation('com.github.thekhaeng:pushdown-anim-click:1.1.1') {
62 | exclude group: 'com.android.support'
63 | }
64 |
65 | //Glide
66 | implementation 'com.github.bumptech.glide:glide:4.9.0'
67 | kapt 'com.github.bumptech.glide:compiler:4.9.0'
68 |
69 | //Apollo
70 | implementation "com.apollographql.apollo:apollo-runtime:$apolloVersion"
71 | implementation "com.apollographql.apollo:apollo-rx2-support:$apolloVersion"
72 | implementation "com.apollographql.apollo:apollo-android-support:$apolloVersion"
73 |
74 | //OkHttp
75 | implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
76 |
77 | // Dagger 2
78 | implementation "com.google.dagger:dagger:$dagger2_version"
79 | implementation "com.google.dagger:dagger-android:$dagger2_version"
80 | implementation "com.google.dagger:dagger-android-support:$dagger2_version"
81 | kapt "com.google.dagger:dagger-compiler:$dagger2_version"
82 | kapt "com.google.dagger:dagger-android-processor:$dagger2_version"
83 | compileOnly "org.glassfish:javax.annotation:3.1.1"
84 |
85 | //Rx
86 | implementation "io.reactivex.rxjava2:rxjava:2.2.6"
87 | implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
88 | implementation "io.reactivex.rxjava2:rxkotlin:2.2.0"
89 |
90 | //Testing
91 | implementation "junit:junit:$jUnitVersion"
92 | implementation "com.nhaarman:mockito-kotlin:$mockitoKotlinVersion"
93 | implementation "org.assertj:assertj-core:$assertJVersion"
94 | implementation "com.google.code.gson:gson:$gsonVersion"
95 |
96 | }
97 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PokeHub
2 | This is my personal project to learn about new tech for me. This is a sample project that uses Graphql API's with Rx implementation. If you are bored with REST API's and create a model class for every new API, go forward! :)
3 |
4 |
5 | ### Libraries
6 | - [Graphql Apollo Client](https://github.com/apollographql/apollo-android)
7 | - [Android Architecture Components](https://developer.android.com/topic/libraries/architecture/)
8 | - [Android Data Binding](https://developer.android.com/topic/libraries/data-binding/)
9 | - [Dagger](https://google.github.io/dagger/)
10 | - [Glide](https://github.com/bumptech/glide)
11 | - [Rx](https://github.com/ReactiveX/RxJava)
12 | - [Lottie](https://github.com/airbnb/lottie-android)
13 |
14 |
15 |
16 |
17 | # So what is the difference between REST?
18 | As I am an Android Developer, I can compare them in client side.Rest is network architectural concept, but Graphql is a query language.Apollo Android is a good client framework for Graphql
19 |
20 | - In Apollo-Android, you don't have to create your own classes to retrieve network response.
21 | - Once you define your query like below, it will generate your model class automatically. That is really good thing, if you have knowledge about traditional way.
22 | ```
23 | query PokemonRepository($first:Int!){
24 | pokemons(first:$first) {
25 | id
26 | image
27 | name
28 | }
29 | }
30 | ```
31 | The above query is equalivent of some REST API. This is the way to define a new API in Graphql. And as you see, it's so simple.
32 |
33 | # RX implementation
34 | With Apollo-Rx support dependency, you can use Apollo Calls with Rx. For this, you must add this,
35 | ```
36 | implementation "com.apollographql.apollo:apollo-rx2-support:$apolloVersion"
37 | ```
38 | This dependency is in the end of the Apollo's github page. So it's pretty hard to find.
39 | After add this dependecy, the rest of work is below,
40 | ```
41 | var observable = Rx2Apollo.from(apolloClient.query(PokemonRepositoryQuery.builder().first(count).build()))
42 | .map {
43 | it.data()?.pokemons()
44 | }
45 | ```
46 | That's it. Now you have your observable and you must just subscribe it and observe the incoming datas :)
47 |
48 | # Warning for Dagger2 fans
49 | While setting up the project, you must add the graphql folder under the `app/src` folder. You can just put the `API.graphql` file under there and you can use it in proper way. But if you want use dagger, you must put it under the `app/src/graphql/{PACKAGENAME}/` folder. I wasn't careful while I was doing this and I struggled for this issue about 2 days. Dagger does not recognize your auto-generated classes if you don't put them under the `app/src/graphql/{PACKAGENAME}/` folder.
50 |
51 | ## Outputs
52 |
53 |
54 | ## Thanks
55 | Thanks for [@lucasbento](https://github.com/lucasbento) to provide these useful API's.
56 | [Graphql Pokemon API](https://github.com/lucasbento/graphql-pokemon)
57 |
58 | ## Licence
59 | ```
60 | Copyright 2019 Tayfun CESUR
61 |
62 | Licensed under the Apache License, Version 2.0 (the "License");
63 | you may not use this file except in compliance with the License.
64 | You may obtain a copy of the License at
65 |
66 | http://www.apache.org/licenses/LICENSE-2.0
67 |
68 | Unless required by applicable law or agreed to in writing, software
69 | distributed under the License is distributed on an "AS IS" BASIS,
70 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
71 | See the License for the specific language governing permissions and
72 | limitations under the License.
73 | ```
74 |
--------------------------------------------------------------------------------
/app/src/main/java/com/tayfuncesur/pokehub/ui/detail/PokemonDetailFragment.kt:
--------------------------------------------------------------------------------
1 | package com.tayfuncesur.pokehub.ui.detail
2 |
3 | import android.annotation.SuppressLint
4 | import android.arch.lifecycle.Observer
5 | import android.arch.lifecycle.ViewModelProvider
6 | import android.arch.lifecycle.ViewModelProviders
7 | import android.databinding.DataBindingUtil
8 | import android.os.Bundle
9 | import android.support.v4.app.Fragment
10 | import android.support.v7.widget.LinearLayoutManager
11 | import android.view.LayoutInflater
12 | import android.view.View
13 | import android.view.ViewGroup
14 | import com.bumptech.glide.Glide
15 | import com.tayfuncesur.pokehub.PokemonDetailRepositoryQuery
16 | import com.tayfuncesur.pokehub.R
17 | import com.tayfuncesur.pokehub.base.Resource
18 | import com.tayfuncesur.pokehub.databinding.PokemonDetailBinding
19 | import com.tayfuncesur.pokehub.ui.main.MainAdapter
20 | import dagger.android.support.AndroidSupportInjection
21 | import kotlinx.android.synthetic.main.pokemon_detail.*
22 | import javax.inject.Inject
23 |
24 | class PokemonDetailFragment : Fragment() {
25 |
26 | @Inject
27 | lateinit var viewModelFactory: ViewModelProvider.Factory
28 |
29 | private lateinit var pokemonDetailViewModel: PokemonDetailViewModel
30 |
31 | lateinit var binding: PokemonDetailBinding
32 |
33 | companion object {
34 | private const val POKEMON_ID = "POKEMON_ID"
35 |
36 | fun newInstance(pokemonId: String) = PokemonDetailFragment().apply {
37 | arguments = Bundle(1).apply {
38 | putString(POKEMON_ID, pokemonId)
39 | }
40 | }
41 | }
42 |
43 | override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
44 | binding = DataBindingUtil.inflate(inflater, R.layout.pokemon_detail, container, false)
45 | return binding.root
46 | }
47 |
48 | @SuppressLint("SetTextI18n")
49 | override fun onActivityCreated(savedInstanceState: Bundle?) {
50 | super.onActivityCreated(savedInstanceState)
51 | AndroidSupportInjection.inject(this)
52 | pokemonDetailViewModel = ViewModelProviders.of(this, viewModelFactory).get(PokemonDetailViewModel::class.java)
53 | val liveData = arguments?.getString(POKEMON_ID)?.let { pokemonDetailViewModel.getPokemonDetail(it) }
54 | binding.data = liveData
55 | binding.lifecycleOwner = viewLifecycleOwner
56 |
57 |
58 | liveData?.observe(viewLifecycleOwner, Observer {
59 | if (it is Resource.Success) {
60 | toolbarText.text = it.data?.name()
61 | Glide.with(this).load(it.data?.image()).into(image)
62 | weight.text = " Max: ${it.data?.weight()?.maximum()}\n Min: ${it.data?.weight()?.minimum()}"
63 | height.text = " Max: ${it.data?.height()?.maximum()}\n Min: ${it.data?.height()?.minimum()}"
64 | var resistanceString = ""
65 | for (item in it.data?.resistant()!!) {
66 | resistanceString += "$item,"
67 | }
68 | resistance.text = resistanceString
69 |
70 | var specialAttacksString = ""
71 | for (item in it.data.attacks()?.special()!!) {
72 | specialAttacksString += "${item.name()},"
73 | }
74 | specialAttacks.text = specialAttacksString
75 |
76 | var weaknessesString = ""
77 | for (item in it.data.weaknesses()!!) {
78 | weaknessesString += "$item,"
79 | }
80 | weaknesses.text = weaknessesString
81 | if (it.data.evolutions() == null) {
82 | evolutionLabel.visibility = View.GONE
83 | }
84 | evolutionRecycler.layoutManager =
85 | LinearLayoutManager(this@PokemonDetailFragment.context, LinearLayoutManager.HORIZONTAL, false)
86 | evolutionRecycler.adapter =
87 | it.data.evolutions()?.let { it1 ->
88 | PokemonEvulotionAdapter(it1) { pokemon ->
89 | newInstance(pokemon.id()).let { it3 ->
90 | activity?.supportFragmentManager?.beginTransaction()?.setCustomAnimations(
91 | android.R.anim.fade_in,
92 | android.R.anim.fade_out,
93 | android.R.anim.fade_in,
94 | android.R.anim.fade_out
95 | )?.add(
96 | R.id.mainActivityRoot,
97 | it3
98 | )?.addToBackStack(PokemonDetailFragment::class.java.name)?.commit()
99 | }
100 | }
101 | }
102 | }
103 | })
104 | }
105 |
106 | }
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
10 |
12 |
14 |
16 |
18 |
20 |
22 |
24 |
26 |
28 |
30 |
32 |
34 |
36 |
38 |
40 |
42 |
44 |
46 |
48 |
50 |
52 |
54 |
56 |
58 |
60 |
62 |
64 |
66 |
68 |
70 |
72 |
74 |
75 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
22 |
23 |
24 |
35 |
36 |
37 |
48 |
49 |
50 |
51 |
59 |
60 |
61 |
72 |
73 |
82 |
83 |
92 |
93 |
94 |
95 |
109 |
110 |
118 |
119 |
132 |
133 |
134 |
135 |
136 |
137 |
--------------------------------------------------------------------------------
/app/src/main/assets/anims/loading.json:
--------------------------------------------------------------------------------
1 | {"v":"4.5.7","fr":25,"ip":0,"op":33,"w":800,"h":600,"ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":0,"ty":3,"nm":"Null 1","ks":{"o":{"a":0,"k":0},"r":{"a":1,"k":[{"i":{"x":[0.268],"y":[1]},"o":{"x":[0.73],"y":[0]},"n":["0p268_1_0p73_0"],"t":0,"s":[0],"e":[180]},{"t":33}]},"p":{"a":1,"k":[{"i":{"x":0.277,"y":1},"o":{"x":0.721,"y":0},"n":"0p277_1_0p721_0","t":0,"s":[460,304,0],"e":[338,298,0],"to":[-20.3333339691162,-1,0],"ti":[20.3333339691162,1,0]},{"t":33}]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[200,200,100]}},"ao":0,"ip":0,"op":33,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 4","parent":0,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":1,"k":[{"i":{"x":0.26,"y":1},"o":{"x":0.731,"y":0},"n":"0p26_1_0p731_0","t":6,"s":[14.5,-1.375,0],"e":[14.5,28.625,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.267,"y":1},"o":{"x":0.716,"y":0},"n":"0p267_1_0p716_0","t":19,"s":[14.5,28.625,0],"e":[14.5,-1.375,0],"to":[0,0,0],"ti":[0,0,0]},{"t":32}]},"a":{"a":0,"k":[-99.5,-5.375,0]},"s":{"a":1,"k":[{"i":{"x":[0.279,0.279,0.667],"y":[1,1,0.667]},"o":{"x":[0.728,0.728,0.333],"y":[0,0,0.333]},"n":["0p279_1_0p728_0","0p279_1_0p728_0","0p667_0p667_0p333_0p333"],"t":6,"s":[75,75,100],"e":[150,150,100]},{"i":{"x":[0.275,0.275,0.667],"y":[1,1,0.667]},"o":{"x":[0.729,0.729,0.333],"y":[0,0,0.333]},"n":["0p275_1_0p729_0","0p275_1_0p729_0","0p667_0p667_0p333_0p333"],"t":19,"s":[150,150,100],"e":[75,75,100]},{"t":32}]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[20.969,20.969]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"st","c":{"a":0,"k":[0.64,0.16,0.16,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":0},"lc":1,"lj":1,"ml":4,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":0,"s":[0.84,0.09,0.38,1],"e":[0.18,0.78,0.69,1]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":17,"s":[0.18,0.78,0.69,1],"e":[0.84,0.09,0.38,1]},{"t":33}]},"o":{"a":0,"k":100},"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":0,"k":[-99.516,-5.516],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"mn":"ADBE Vector Group"}],"ip":0,"op":33,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 3","parent":0,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":1,"k":[{"i":{"x":0.281,"y":1},"o":{"x":0.73,"y":0},"n":"0p281_1_0p73_0","t":4,"s":[-15.5,-1.375,0],"e":[-15.5,-31.375,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.266,"y":1},"o":{"x":0.737,"y":0},"n":"0p266_1_0p737_0","t":17,"s":[-15.5,-31.375,0],"e":[-15.5,-1.375,0],"to":[0,0,0],"ti":[0,0,0]},{"t":30}]},"a":{"a":0,"k":[-99.5,-5.375,0]},"s":{"a":1,"k":[{"i":{"x":[0.279,0.279,0.667],"y":[1,1,0.667]},"o":{"x":[0.728,0.728,0.333],"y":[0,0,0.333]},"n":["0p279_1_0p728_0","0p279_1_0p728_0","0p667_0p667_0p333_0p333"],"t":4,"s":[75,75,100],"e":[150,150,100]},{"i":{"x":[0.275,0.275,0.667],"y":[1,1,0.667]},"o":{"x":[0.729,0.729,0.333],"y":[0,0,0.333]},"n":["0p275_1_0p729_0","0p275_1_0p729_0","0p667_0p667_0p333_0p333"],"t":17,"s":[150,150,100],"e":[75,75,100]},{"t":30}]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[20.969,20.969]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"st","c":{"a":0,"k":[0.64,0.16,0.16,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":0},"lc":1,"lj":1,"ml":4,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":0,"s":[0.84,0.09,0.38,1],"e":[0.61,0.76,0.03,1]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":17,"s":[0.61,0.76,0.03,1],"e":[0.84,0.09,0.38,1]},{"t":33}]},"o":{"a":0,"k":100},"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":0,"k":[-99.516,-5.516],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"mn":"ADBE Vector Group"}],"ip":0,"op":33,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":3,"ty":4,"nm":"Shape Layer 2","parent":0,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":1,"k":[{"i":{"x":0.28,"y":1},"o":{"x":0.729,"y":0},"n":"0p28_1_0p729_0","t":2,"s":[-45.5,-1.375,0],"e":[-45.5,28.625,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.287,"y":1},"o":{"x":0.714,"y":0},"n":"0p287_1_0p714_0","t":15,"s":[-45.5,28.625,0],"e":[-45.5,-1.375,0],"to":[0,0,0],"ti":[0,0,0]},{"t":28}]},"a":{"a":0,"k":[-99.5,-5.375,0]},"s":{"a":1,"k":[{"i":{"x":[0.279,0.279,0.667],"y":[1,1,0.667]},"o":{"x":[0.728,0.728,0.333],"y":[0,0,0.333]},"n":["0p279_1_0p728_0","0p279_1_0p728_0","0p667_0p667_0p333_0p333"],"t":2,"s":[75,75,100],"e":[150,150,100]},{"i":{"x":[0.275,0.275,0.667],"y":[1,1,0.667]},"o":{"x":[0.729,0.729,0.333],"y":[0,0,0.333]},"n":["0p275_1_0p729_0","0p275_1_0p729_0","0p667_0p667_0p333_0p333"],"t":15,"s":[150,150,100],"e":[75,75,100]},{"t":28}]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[20.969,20.969]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"st","c":{"a":0,"k":[0.64,0.16,0.16,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":0},"lc":1,"lj":1,"ml":4,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":0,"s":[0.84,0.09,0.38,1],"e":[0.95,0.47,0.36,1]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":17,"s":[0.95,0.47,0.36,1],"e":[0.84,0.09,0.38,1]},{"t":33}]},"o":{"a":0,"k":100},"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":0,"k":[-99.516,-5.516],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"mn":"ADBE Vector Group"}],"ip":0,"op":33,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":4,"ty":4,"nm":"Shape Layer 1","parent":0,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":1,"k":[{"i":{"x":0.279,"y":1},"o":{"x":0.728,"y":0},"n":"0p279_1_0p728_0","t":0,"s":[-75.5,-1.375,0],"e":[-75.5,-31.375,0],"to":[0,-5,0],"ti":[0,0,0]},{"i":{"x":0.264,"y":1},"o":{"x":0.735,"y":0},"n":"0p264_1_0p735_0","t":13,"s":[-75.5,-31.375,0],"e":[-75.5,-1.375,0],"to":[0,0,0],"ti":[0,-5,0]},{"t":26}]},"a":{"a":0,"k":[-99.5,-5.375,0]},"s":{"a":1,"k":[{"i":{"x":[0.279,0.279,0.667],"y":[1,1,0.667]},"o":{"x":[0.728,0.728,0.333],"y":[0,0,0.333]},"n":["0p279_1_0p728_0","0p279_1_0p728_0","0p667_0p667_0p333_0p333"],"t":0,"s":[75,75,100],"e":[150,150,100]},{"i":{"x":[0.275,0.275,0.667],"y":[1,1,0.667]},"o":{"x":[0.729,0.729,0.333],"y":[0,0,0.333]},"n":["0p275_1_0p729_0","0p275_1_0p729_0","0p667_0p667_0p333_0p333"],"t":13,"s":[150,150,100],"e":[75,75,100]},{"t":26}]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[20.969,20.969]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"st","c":{"a":0,"k":[0.64,0.16,0.16,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":0},"lc":1,"lj":1,"ml":4,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"fl","c":{"a":0,"k":[0.84,0.09,0.38,1]},"o":{"a":0,"k":100},"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":0,"k":[-99.516,-5.516],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"mn":"ADBE Vector Group"}],"ip":0,"op":33,"st":0,"bm":0,"sr":1}]}],"layers":[{"ddd":0,"ind":0,"ty":0,"nm":"Komplet","refId":"comp_0","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[400,300,0]},"a":{"a":0,"k":[400,300,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"w":800,"h":600,"ip":0,"op":15,"st":-18,"bm":0,"sr":1},{"ddd":0,"ind":1,"ty":0,"nm":"Komplet","refId":"comp_0","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[400,300,0]},"a":{"a":0,"k":[400,300,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"w":800,"h":600,"ip":15,"op":33,"st":15,"bm":0,"sr":1}]}
--------------------------------------------------------------------------------
/app/src/main/res/layout/pokemon_detail.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
21 |
22 |
33 |
34 |
44 |
45 |
46 |
47 |
53 |
54 |
62 |
63 |
64 |
69 |
70 |
74 |
75 |
79 |
80 |
84 |
85 |
89 |
90 |
94 |
95 |
104 |
105 |
106 |
107 |
115 |
116 |
117 |
122 |
123 |
127 |
128 |
137 |
138 |
139 |
140 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
162 |
163 |
164 |
171 |
172 |
173 |
174 |
178 |
179 |
185 |
186 |
187 |
195 |
196 |
197 |
198 |
201 |
202 |
208 |
209 |
210 |
218 |
219 |
220 |
221 |
230 |
231 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
253 |
254 |
263 |
264 |
273 |
274 |
275 |
276 |
290 |
291 |
299 |
300 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
--------------------------------------------------------------------------------
/app/src/main/assets/anims/error.json:
--------------------------------------------------------------------------------
1 | {"v":"5.1.1","fr":74,"ip":0,"op":193,"w":141,"h":112,"nm":"Comp 1","ddd":0,"assets":[],"fonts":{"list":[{"fName":"Lato-Bold","fFamily":"Lato","fStyle":"Bold","ascent":74.2996215820313}]},"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Layer 2/error2 Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[81.75,74,0],"ix":2},"a":{"a":0,"k":[2.5,40,0],"ix":1},"s":{"a":0,"k":[38.062,46.611,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[-1.145,0],[0,-1.144]],"o":[[0,0],[0,0],[0,-1.144],[1.145,0],[0,0]],"v":[[2.073,39.624],[-2.073,39.624],[-2.073,-37.553],[0,-39.624],[2.073,-37.553]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.478,0.533,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[2.323,39.875],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":194,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":5,"nm":"Network Error","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[76.25,42,0],"ix":2},"a":{"a":0,"k":[46.5,-4,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p667_1_0p333_0","0p667_1_0p333_0","0p667_1_0p333_0"],"t":147,"s":[0,0,100],"e":[105,105,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p667_1_0p333_0","0p667_1_0p333_0","0p667_1_0p333_0"],"t":152,"s":[105,105,100],"e":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p667_1_0p333_0","0p667_1_0p333_0","0p667_1_0p333_0"],"t":155,"s":[100,100,100],"e":[105,105,100]},{"t":157}],"ix":6}},"ao":0,"t":{"d":{"k":[{"s":{"s":13,"f":"Lato-Bold","t":"Network Error","j":0,"tr":0,"lh":15.6,"ls":0,"fc":[0.96,0.12,0.12]},"t":0}]},"p":{},"m":{"g":1,"a":{"a":0,"k":[0,0],"ix":2}},"a":[]},"ip":147,"op":194,"st":147,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Layer 1/error2 Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":81,"s":[0],"e":[-26]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":94,"s":[-26],"e":[26]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p833_1_0p333_0"],"t":106,"s":[26],"e":[319]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"n":["0p833_1_0p167_0"],"t":124,"s":[319],"e":[414]},{"t":147}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"n":"0p667_1_0p333_0","t":107,"s":[82.25,47,0],"e":[96,78.5,0],"to":[2.29166674613953,5.25,0],"ti":[-4.375,-4.41666650772095,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"n":"0p667_1_0p333_0","t":124,"s":[96,78.5,0],"e":[108.5,73.5,0],"to":[4.375,4.41666650772095,0],"ti":[-3.625,-1.41666662693024,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"n":"0p667_1_0p333_0","t":137,"s":[108.5,73.5,0],"e":[117.75,87,0],"to":[3.625,1.41666662693024,0],"ti":[-1.54166662693024,-2.25,0]},{"t":147}],"ix":2},"a":{"a":0,"k":[29,25.5,0],"ix":1},"s":{"a":0,"k":[35.293,35.293,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[1.037,-8.539],[0.54,8.538],[-0.541,8.538],[-1.038,-8.539]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0.23,-0.237],[-0.009,-0.329],[0,0],[-0.669,0],[0,0],[-0.02,0.669],[0,0],[0.23,0.236],[0.33,0],[0,0]],"o":[[-0.23,0.236],[0,0],[0.02,0.668],[0,0],[0.669,0],[0,0],[0.01,-0.329],[-0.23,-0.237],[0,0],[-0.33,0]],"v":[[-2.317,-9.781],[-2.664,-8.892],[-2.145,8.962],[-0.917,10.154],[0.916,10.154],[2.144,8.962],[2.663,-8.892],[2.316,-9.781],[1.436,-10.154],[-1.436,-10.154]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[28.703,26.116],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":4,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.1,0],[0,0],[0,0.946],[-0.877,0],[0,-0.992]],"o":[[0,0],[-0.854,0],[0,-0.947],[0.919,0],[0,0.741]],"v":[[0,1.607],[-0.04,1.607],[-1.49,0.001],[0,-1.607],[1.49,0.001]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[1.828,0],[0,-1.837],[-1.748,0],[0,0],[0,1.867]],"o":[[-1.771,0],[0,1.836],[0,0],[1.799,0],[0,-1.898]],"v":[[0,-3.222],[-3.105,0.001],[-0.04,3.222],[0,3.222],[3.105,0.001]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.478,0.533,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[28.703,40.443],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":4,"cix":2,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.034,-0.061],[0.017,0],[0,0],[0.034,0.06],[-0.009,0.015],[0,0],[-0.069,0],[-0.008,-0.014],[0,0]],"o":[[-0.035,0.06],[0,0],[-0.017,0],[-0.035,-0.061],[0,0],[0.009,-0.014],[0.07,0],[0,0],[0.009,0.015]],"v":[[20.035,17.319],[19.931,17.379],[-19.93,17.379],[-20.034,17.319],[-20.034,17.199],[-0.104,-17.319],[0,-17.378],[0.104,-17.319],[20.035,17.199]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0.628,0],[0.314,-0.544],[0,0],[-0.314,-0.544],[-0.628,0],[0,0],[-0.313,0.543],[0.314,0.543],[0,0]],"o":[[-0.627,0],[0,0],[-0.314,0.543],[0.314,0.543],[0,0],[0.626,0],[0.314,-0.544],[0,0],[-0.314,-0.543]],"v":[[0,-18.994],[-1.503,-18.125],[-21.433,16.391],[-21.433,18.127],[-19.93,18.994],[19.931,18.994],[21.433,18.127],[21.433,16.391],[1.503,-18.126]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.478,0.533,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[28.702,26.987],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":4,"cix":2,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.386,-0.224],[-0.223,0.387],[0,0],[-0.07,0],[-0.008,-0.015],[0,0],[-0.28,0],[-0.127,0.073],[0.222,0.387],[0,0],[0.628,0],[0.314,-0.544],[0,0]],"o":[[0.386,0.223],[0,0],[0.008,-0.014],[0.07,0],[0,0],[0.15,0.26],[0.136,0],[0.387,-0.223],[0,0],[-0.314,-0.544],[-0.627,0],[0,0],[-0.224,0.387]],"v":[[-15.91,13.605],[-14.807,13.309],[-0.105,-12.152],[-0.001,-12.212],[0.104,-12.152],[14.807,13.312],[15.508,13.716],[15.911,13.608],[16.206,12.504],[1.503,-12.959],[-0.001,-13.828],[-1.504,-12.959],[-16.204,12.501]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.478,0.533,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[28.703,14.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 4","np":2,"cix":2,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.313,0.543],[0,0],[0.387,-0.222],[-0.224,-0.387],[0,0],[0.034,-0.06],[0.018,0],[0,0],[0.035,0.06],[-0.009,0.014],[0,0],[0.386,0.223],[0.223,-0.386],[0,0],[-0.313,-0.543],[-0.628,0],[0,0],[-0.313,0.544]],"o":[[0,0],[-0.223,-0.386],[-0.386,0.224],[0,0],[0.007,0.014],[-0.036,0.06],[0,0],[-0.017,0],[-0.035,-0.06],[0,0],[0.224,-0.386],[-0.386,-0.223],[0,0],[-0.313,0.543],[0.314,0.544],[0,0],[0.628,0],[0.313,-0.543]],"v":[[28.139,7.882],[17.833,-9.967],[16.73,-10.264],[16.436,-9.16],[26.742,8.689],[26.742,8.809],[26.636,8.87],[-26.637,8.87],[-26.74,8.809],[-26.74,8.689],[-16.441,-9.148],[-16.736,-10.251],[-17.839,-9.956],[-28.139,7.882],[-28.139,9.617],[-26.635,10.486],[26.636,10.486],[28.139,9.617]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.478,0.533,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[28.703,39.368],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 5","np":2,"cix":2,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.007,-0.236],[0,0],[0.228,0],[0,0],[0.006,0.228],[0,0],[-0.237,0]],"o":[[0.236,0],[0,0],[-0.007,0.228],[0,0],[-0.228,0],[0,0],[-0.007,-0.236],[0,0]],"v":[[1.436,-9.346],[1.856,-8.914],[1.337,8.938],[0.916,9.346],[-0.917,9.346],[-1.337,8.938],[-1.856,-8.914],[-1.436,-9.346]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.478,0.533,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[28.703,26.116],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 6","np":2,"cix":2,"ix":6,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.325,0],[0,-1.402],[1.402,0],[0,0],[0,1.362]],"o":[[1.402,0],[0,1.362],[0,0],[-1.323,0],[0,-1.402]],"v":[[0,-2.415],[2.298,0.001],[0,2.415],[-0.04,2.415],[-2.298,0.001]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[28.703,40.443],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 7","np":2,"cix":2,"ix":7,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.357,0.619],[0,0],[0.357,-0.618],[0,0],[0,0],[0,0]],"o":[[0,0],[-0.358,-0.618],[0,0],[0,0],[0,0],[0.714,-0.001]],"v":[[11.125,16.871],[-8.805,-17.646],[-10.413,-17.646],[-11.482,-15.792],[8.241,18.264],[10.321,18.264]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.478,0.533,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[38.312,26.911],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 8","np":2,"cix":2,"ix":8,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.357,0.619],[0,0],[-0.357,-0.618],[0,0],[0.714,0],[0,0]],"o":[[0,0],[0.357,-0.618],[0,0],[0.357,0.619],[0,0],[-0.715,0]],"v":[[-20.734,16.871],[-0.804,-17.646],[0.803,-17.646],[20.734,16.871],[19.93,18.264],[-19.93,18.264]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.478,0.533,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[28.703,26.91],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 9","np":2,"cix":2,"ix":9,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.357,0.619],[0,0],[0.357,-0.618],[0,0],[0,0],[0,0]],"o":[[0,0],[-0.358,-0.618],[0,0],[0,0],[0,0],[0.714,0]],"v":[[14.426,22.678],[-12.21,-23.453],[-13.818,-23.453],[-14.783,-21.778],[11.689,24.071],[13.622,24.071]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[41.716,24.975],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 10","np":2,"cix":2,"ix":10,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.357,0.619],[0,0],[-0.357,-0.618],[0,0],[0.714,0],[0,0]],"o":[[0,0],[0.357,-0.618],[0,0],[0.357,0.619],[0,0],[-0.715,0]],"v":[[-27.44,22.678],[-0.804,-23.453],[0.803,-23.453],[27.44,22.678],[26.636,24.071],[-26.636,24.071]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[28.703,24.975],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 11","np":2,"cix":2,"ix":11,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":194,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Layer 5/erro Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[94.75,85.5,0],"ix":2},"a":{"a":0,"k":[12,6.5,0],"ix":1},"s":{"a":0,"k":[127.544,127.544,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[5.253,1.788],[4.333,1.723],[2.872,1.617],[-5.253,1.027],[0.05,-1.788],[5.077,1.378]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.773000021542,0.764999988032,0.791999966491,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[16.665,5.949],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[5.253,3.732],[4.333,3.667],[2.872,3.561],[-5.253,2.971],[-3.313,-2.133],[-3.004,-2.949],[-2.704,-3.732],[0.05,0.156],[5.077,3.322]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.532999973671,0.525,0.560999971278,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[16.665,4.005],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[7.549,1.607],[7.374,1.195],[2.346,-1.971],[-0.408,-5.859],[-0.426,-5.88],[-7.803,-3.622],[-8.195,-1.245],[-8.475,0.452],[-9.146,4.503],[-9.262,5.193],[-9.376,5.88],[9.376,5.88]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.670999983245,0.666999966491,0.689999988032,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[14.369,6.131],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[3.115,-3.643],[-1.07,-1.469],[-3.115,3.643],[2.984,3.643]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.470999983245,0.46699999641,0.497999991623,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[3.364,8.369],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 4","np":2,"cix":2,"ix":4,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":194,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Layer 4/erro Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":0,"s":[0],"e":[1800]},{"t":81}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"n":"0p667_1_0p333_0","t":0,"s":[-14.5,84,0],"e":[73.75,83.25,0],"to":[14.7083330154419,-0.125,0],"ti":[-14.7083330154419,0.125,0]},{"i":{"x":0.667,"y":0.667},"o":{"x":0.333,"y":0.333},"n":"0p667_0p667_0p333_0p333","t":81,"s":[73.75,83.25,0],"e":[73.75,83.25,0],"to":[0,0,0],"ti":[0,0,0]},{"t":92}],"ix":2},"a":{"a":0,"k":[13.5,13.5,0],"ix":1},"s":{"a":0,"k":[68.362,68.362,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[7.149,0],[0,-7.152],[-7.152,0],[-2.224,1.795],[0,0],[2.516,0],[0,6.02],[-6.023,0],[0,-6.024],[1.701,-1.925],[0,0],[0,3.328]],"o":[[-7.152,0],[0,7.149],[3.078,0],[0,0],[-1.849,1.433],[-6.023,0],[0,-6.024],[6.021,0],[0,2.765],[0,0],[2.067,-2.295],[0,-7.152]],"v":[[0.002,-12.947],[-12.947,0.001],[0.002,12.947],[8.13,10.077],[6.687,8.633],[0.002,10.924],[-10.924,0.001],[0.002,-10.921],[10.923,0.001],[8.189,7.221],[9.624,8.658],[12.947,0.001]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.992156862745,0.647058823529,0.105882352941,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[13.196,13.196],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.427,0.022],[0.022,-0.426],[1.04,-0.906],[1.785,0.153],[0.036,-0.426],[-0.427,-0.036],[-0.28,0],[-1.214,1.055],[-0.114,2.16]],"o":[[-0.437,-0.023],[-0.092,1.731],[-1.074,0.933],[-0.438,-0.049],[-0.037,0.427],[0.291,0.027],[1.851,0],[1.365,-1.188],[0.023,-0.426]],"v":[[3.519,-3.755],[2.705,-3.023],[0.975,1.007],[-3.398,2.197],[-4.236,2.902],[-3.531,3.74],[-2.675,3.777],[1.99,2.176],[4.25,-2.941]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.694117647059,0.447058823529,0.094117647059,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[17.519,17.092],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":194,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Layer 6/erro Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":0,"s":[0],"e":[1800]},{"t":81}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"n":"0p667_1_0p333_0","t":0,"s":[-42.75,84.5,0],"e":[51.5,83.75,0],"to":[15.7083330154419,-0.125,0],"ti":[-15.75,0.75000107288361,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"n":"0p667_1_0p333_0","t":81,"s":[51.5,83.75,0],"e":[51.75,80,0],"to":[3.14999581974007e-10,-1.50000012411056e-11,0],"ti":[-0.04166666790843,-0.04166666790843,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"n":"0p667_1_0p333_0","t":88,"s":[51.75,80,0],"e":[51.75,84,0],"to":[0.04166666790843,0.04166666790843,0],"ti":[0,-0.66666668653488,0]},{"t":98}],"ix":2},"a":{"a":0,"k":[13.5,13.5,0],"ix":1},"s":{"a":0,"k":[68.362,68.362,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.073,0.933],[0.091,1.73],[0.412,-0.024],[-0.023,-0.427],[-1.364,-1.188],[-1.851,0],[-0.291,0.027],[0.038,0.426],[0.428,-0.048]],"o":[[-1.04,-0.905],[-0.022,-0.427],[-0.428,0.023],[0.113,2.159],[1.215,1.056],[0.28,0],[0.427,-0.036],[-0.037,-0.426],[-1.788,0.154]],"v":[[-0.974,1.007],[-2.703,-3.021],[-3.517,-3.754],[-4.25,-2.939],[-1.991,2.176],[2.675,3.778],[3.531,3.74],[4.235,2.903],[3.398,2.198]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.694117647059,0.447533760819,0.095271046956,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[8.931,17.091],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[7.149,0],[2.261,-1.926],[0,0],[-2.64,0],[0,-6.024],[6.023,0],[0,6.02],[-1.568,1.89],[0,0],[0,-3.209],[-7.149,0],[0,7.149]],"o":[[-3.2,0],[0,0],[1.891,-1.562],[6.023,0],[0,6.02],[-6.023,0],[0,-2.645],[0,0],[-1.932,2.261],[0,7.149],[7.149,0],[0,-7.152]],"v":[[0,-12.947],[-8.392,-9.859],[-6.952,-8.419],[0,-10.921],[10.922,0.001],[0,10.924],[-10.922,0.001],[-8.409,-6.962],[-9.849,-8.402],[-12.948,0.001],[0,12.947],[12.948,0.001]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.992156862745,0.647751393038,0.105051900826,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[13.198,13.196],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":194,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Layer 2/erro Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":81,"s":[0],"e":[7]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":89,"s":[7],"e":[0]},{"t":98}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"n":"0p667_1_0p333_0","t":0,"s":[-28,74.25,0],"e":[63.693,73.5,0],"to":[13.6936912536621,0,0],"ti":[-18.0084609985352,0,0]},{"t":81}],"ix":2},"a":{"a":0,"k":[22,14,0],"ix":1},"s":{"a":0,"k":[68.362,68.362,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0.454],[-0.454,0],[0,0],[0,-0.455],[0.454,0],[0,0]],"o":[[0,-0.454],[0,0],[0.454,0],[0,0.454],[0,0],[-0.454,0]],"v":[[-19.628,-10.889],[-18.805,-11.713],[-10.779,-11.713],[-9.956,-10.889],[-10.779,-10.065],[-18.805,-10.065]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[-0.023,-0.044],[0,0],[-0.442,0.221],[0.221,0.442],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.648,-0.875],[1.12,0],[0,-0.494],[-0.495,0],[-0.794,1.073],[0.04,0.131],[0.393,0],[0,0],[0.11,-0.384],[0,0],[0,0],[0,0],[0,0],[0,1.441],[1.442,0],[0,0],[0,-1.443],[-1.442,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.484,-0.097],[-0.059,0],[-0.084,0.425],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0.016,0.049],[0,0],[0.22,0.443],[0.442,-0.221],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.138,0.799],[-0.443,0.599],[-0.495,0],[0,0.494],[1.702,0],[1.5,-2.026],[-0.115,-0.376],[0,0],[-0.399,0],[0,0],[0,0],[0,0],[0,0],[1.441,0],[0,-1.442],[0,0],[-1.442,0],[0,1.441],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.097,0.485],[0.059,0.012],[0.418,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[10.684,3.214],[11.861,7.136],[11.917,7.278],[14.21,11.864],[15.411,12.265],[15.811,11.064],[13.553,6.548],[12.346,2.523],[11.833,0.807],[10.214,-4.59],[12.247,-11.713],[18.88,-11.713],[18.482,-8.663],[16.158,-7.772],[15.262,-6.877],[16.158,-5.982],[19.921,-7.598],[20.452,-12.871],[19.596,-13.505],[11.572,-13.505],[10.712,-12.856],[8.604,-5.481],[-12.971,-5.481],[-13.77,-8.276],[-10.781,-8.276],[-8.165,-10.89],[-10.781,-13.506],[-18.805,-13.506],[-21.421,-10.89],[-18.805,-8.276],[-15.633,-8.276],[-14.566,-4.548],[-15.548,0.357],[-15.898,2.114],[-17.962,12.435],[-17.262,13.488],[-17.085,13.506],[-16.208,12.786],[-14.145,2.467],[-13.792,0.712],[-12.911,-3.688],[8.615,-3.688],[10.165,1.481]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.992156862745,0.647058823529,0.105882352941,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[21.671,13.756],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":4,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":194,"st":0,"bm":0}],"markers":[],"chars":[{"ch":"N","size":13,"style":"Bold","w":75.6,"data":{"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.6,0],[0,0],[0,0],[0,0],[0,0],[0.05,1.05],[0.1,1.067],[0,0],[-0.7,-0.333],[-1.067,0],[0,0],[0,0],[0,0],[0,0],[-0.05,-1.116],[-0.134,-1.166],[0,0],[0.3,0.284],[0.316,0.15],[0.4,0.05]],"o":[[0,0],[0,0],[0,0],[0,0],[0,-0.866],[-0.05,-1.05],[0,0],[0.666,0.867],[0.7,0.334],[0,0],[0,0],[0,0],[0,0],[0,0.967],[0.05,1.117],[0,0],[-0.367,-0.466],[-0.3,-0.283],[-0.317,-0.15],[-0.4,-0.05]],"v":[[14.35,-72.3],[7.3,-72.3],[7.3,0],[19.15,0],[19.15,-44.4],[19.075,-47.275],[18.85,-50.45],[56.65,-2.3],[58.7,-0.5],[61.35,0],[68.3,0],[68.3,-72.3],[56.45,-72.3],[56.45,-28.35],[56.525,-25.225],[56.8,-21.8],[18.85,-70.15],[17.85,-71.275],[16.925,-71.925],[15.85,-72.225]],"c":true},"ix":2},"nm":"N","mn":"ADBE Vector Shape - Group","hd":false}],"nm":"N","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}]},"fFamily":"Lato"},{"ch":"e","size":13,"style":"Bold","w":53.45,"data":{"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.05,-1.333],[2.116,-2.283],[1.133,-3.083],[0,-3.5],[-1.3,-3.416],[-2.267,-2.316],[-3.067,-1.183],[-3.567,0],[-1.917,0.266],[-1.85,0.65],[-1.7,1.084],[-1.367,1.6],[0,0],[0.366,0.2],[0.5,0],[0.816,-0.466],[1.083,-0.566],[1.45,-0.466],[2,0],[2.466,2.467],[0.366,5.267],[0,0],[-0.367,0.15],[-0.217,0.35],[-0.084,0.617],[0,0.934],[1.1,2.884],[1.966,1.984],[2.716,1.034],[3.233,0]],"o":[[-3.05,1.334],[-2.117,2.284],[-1.134,3.084],[0,4.5],[1.3,3.417],[2.266,2.317],[3.066,1.183],[1.8,0],[1.916,-0.267],[1.85,-0.65],[1.7,-1.083],[0,0],[-0.267,-0.366],[-0.367,-0.2],[-0.767,0],[-0.817,0.467],[-1.084,0.567],[-1.45,0.467],[-4.067,0],[-2.467,-2.466],[0,0],[0.566,0],[0.366,-0.15],[0.216,-0.35],[0.083,-0.616],[0,-3.7],[-1.1,-2.883],[-1.967,-1.983],[-2.717,-1.033],[-3.834,0]],"v":[[17.475,-50.1],[9.725,-44.675],[4.85,-36.625],[3.15,-26.75],[5.1,-14.875],[10.45,-6.275],[18.45,-1.025],[28.4,0.75],[33.975,0.35],[39.625,-1.025],[44.95,-3.625],[49.55,-7.65],[45.95,-12.15],[45,-13],[43.7,-13.3],[41.325,-12.6],[38.475,-11.05],[34.675,-9.5],[29.5,-8.8],[19.7,-12.5],[15.45,-24.1],[47.15,-24.1],[48.55,-24.325],[49.425,-25.075],[49.875,-26.525],[50,-28.85],[48.35,-38.725],[43.75,-46.025],[36.725,-50.55],[27.8,-52.1]],"c":true},"ix":2},"nm":"e","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[-1.367,-0.616],[-0.9,-1.066],[-0.434,-1.416],[0,-1.6],[0,0],[-2.034,2.034],[-3.6,0]],"o":[[1.366,0.617],[0.9,1.067],[0.433,1.417],[0,0],[0.566,-3.733],[2.033,-2.033],[1.833,0]],"v":[[32.85,-42.325],[36.25,-39.8],[38.25,-36.075],[38.9,-31.55],[15.7,-31.55],[19.6,-40.2],[28.05,-43.25]],"c":true},"ix":2},"nm":"e","mn":"ADBE Vector Shape - Group","hd":false}],"nm":"e","np":5,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}]},"fFamily":"Lato"},{"ch":"t","size":13,"style":"Bold","w":38.7,"data":{"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-2.334,0.766],[-1.8,1.5],[0,0],[0.233,0.184],[0.366,0],[0.3,-0.183],[0.383,-0.2],[0.516,-0.183],[0.766,0],[0.8,0.9],[0,1.6],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.483,-0.366],[0.133,-0.666],[0,0],[0,0],[0,0],[-0.484,-0.433],[-0.667,0],[0,0],[0,0],[-2.4,-2.516],[-4.434,0]],"o":[[2.333,-0.766],[0,0],[-0.267,-0.366],[-0.234,-0.183],[-0.3,0],[-0.3,0.184],[-0.384,0.2],[-0.517,0.184],[-1.334,0],[-0.8,-0.9],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.734,0],[-0.484,0.367],[0,0],[0,0],[0,0],[0,0.867],[0.483,0.434],[0,0],[0,0],[0,4.434],[2.4,2.517],[2.5,0]],"v":[[30.7,-0.35],[36.9,-3.75],[33.2,-9.75],[32.45,-10.575],[31.55,-10.85],[30.65,-10.575],[29.625,-10],[28.275,-9.425],[26.35,-9.15],[23.15,-10.5],[21.95,-14.25],[21.95,-42.05],[35.45,-42.05],[35.45,-50.85],[21.95,-50.85],[21.95,-67],[15.55,-67],[13.725,-66.45],[12.8,-64.9],[10.2,-50.9],[1.95,-49.55],[1.95,-44.65],[2.675,-42.7],[4.4,-42.05],[9.6,-42.05],[9.6,-13.4],[13.2,-2.975],[23.45,0.8]],"c":true},"ix":2},"nm":"t","mn":"ADBE Vector Shape - Group","hd":false}],"nm":"t","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}]},"fFamily":"Lato"},{"ch":"w","size":13,"style":"Bold","w":79.1,"data":{"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[-0.467,1.467],[0,0],[-0.234,0.984],[-0.2,1],[-0.25,-0.983],[-0.3,-0.966],[0,0],[-1.067,0],[0,0],[0,0],[0,0],[0.633,-0.433],[0.166,-0.666],[0,0],[0.283,-1.433],[0.233,-1.433],[0.35,1.35],[0.433,1.434],[0,0],[0.6,0.434],[0.9,0],[0,0],[0.6,-0.433],[0.2,-0.666],[0,0],[0.416,-1.433],[0.366,-1.433],[0.25,1.434],[0.4,1.5],[0,0],[0.633,0.434],[0.933,0],[0,0]],"o":[[0,0],[1.333,0],[0,0],[0.3,-1],[0.233,-0.983],[0.166,0.967],[0.25,0.984],[0,0],[0.466,1.467],[0,0],[0,0],[0,0],[-0.834,0],[-0.634,0.434],[0,0],[-0.434,1.534],[-0.284,1.434],[-0.334,-1.366],[-0.35,-1.35],[0,0],[-0.2,-0.666],[-0.6,-0.433],[0,0],[-0.8,0],[-0.6,0.434],[0,0],[-0.467,1.5],[-0.417,1.434],[-0.234,-1.433],[-0.25,-1.433],[0,0],[-0.167,-0.666],[-0.634,-0.433],[0,0],[0,0]],"v":[[16.6,0],[26.05,0],[28.75,-2.2],[38.1,-31.75],[38.9,-34.725],[39.55,-37.7],[40.175,-34.775],[41,-31.85],[50.25,-2.2],[52.55,0],[62.5,0],[78.75,-51.3],[69.4,-51.3],[67.2,-50.65],[66,-49],[58.4,-21.6],[57.325,-17.15],[56.55,-12.85],[55.525,-16.925],[54.35,-21.1],[45.95,-49.1],[44.75,-50.75],[42.5,-51.4],[37.05,-51.4],[34.95,-50.75],[33.75,-49.1],[25.25,-21.6],[23.925,-17.2],[22.75,-12.9],[22.025,-17.2],[21.05,-21.6],[13.7,-49],[12.5,-50.65],[10.15,-51.3],[0.35,-51.3]],"c":true},"ix":2},"nm":"w","mn":"ADBE Vector Shape - Group","hd":false}],"nm":"w","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}]},"fFamily":"Lato"},{"ch":"o","size":13,"style":"Bold","w":56.85,"data":{"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.133,-1.233],[2.216,-2.266],[1.216,-3.266],[0,-4.033],[-1.217,-3.266],[-2.217,-2.3],[-3.134,-1.233],[-3.834,0],[-3.117,1.233],[-2.2,2.3],[-1.2,3.267],[0,4.067],[1.2,3.267],[2.2,2.267],[3.116,1.234],[3.833,0]],"o":[[-3.134,1.234],[-2.217,2.267],[-1.217,3.267],[0,4.067],[1.216,3.267],[2.216,2.3],[3.133,1.233],[3.833,0],[3.116,-1.233],[2.2,-2.3],[1.2,-3.266],[0,-4.033],[-1.2,-3.266],[-2.2,-2.266],[-3.117,-1.233],[-3.834,0]],"v":[[18.05,-50.25],[10.025,-45],[4.875,-36.7],[3.05,-25.75],[4.875,-14.75],[10.025,-6.4],[18.05,-1.1],[28.5,0.75],[38.925,-1.1],[46.9,-6.4],[52,-14.75],[53.8,-25.75],[52,-36.7],[46.9,-45],[38.925,-50.25],[28.5,-52.1]],"c":true},"ix":2},"nm":"o","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[2.066,2.884],[0,5.5],[-2.067,2.917],[-4.334,0],[-2.05,-2.9],[0,-5.533],[2.05,-2.866],[4.266,0]],"o":[[-2.067,-2.883],[0,-5.5],[2.066,-2.916],[4.266,0],[2.05,2.9],[0,5.534],[-2.05,2.867],[-4.334,0]],"v":[[18.9,-13.075],[15.8,-25.65],[18.9,-38.275],[28.5,-42.65],[37.975,-38.3],[41.05,-25.65],[37.975,-13.05],[28.5,-8.75]],"c":true},"ix":2},"nm":"o","mn":"ADBE Vector Shape - Group","hd":false}],"nm":"o","np":5,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}]},"fFamily":"Lato"},{"ch":"r","size":13,"style":"Bold","w":40.85,"data":{"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[-1.834,1.417],[-2.567,0],[-0.867,-0.233],[-0.5,0],[-0.334,0.25],[-0.1,0.6],[0,0],[2.533,0],[2.466,-1.833],[1.833,-3.166],[0,0],[0.5,0.467],[1.266,0],[0,0],[0,0]],"o":[[0,0],[1.266,-2.733],[1.833,-1.416],[1.433,0],[0.866,0.234],[0.566,0],[0.333,-0.25],[0,0],[-1.667,-1.166],[-3.067,0],[-2.467,1.834],[0,0],[-0.167,-1.133],[-0.5,-0.466],[0,0],[0,0],[0,0]],"v":[[18.95,0],[18.95,-31.95],[23.6,-38.175],[30.2,-40.3],[33.65,-39.95],[35.7,-39.6],[37.05,-39.975],[37.7,-41.25],[39.3,-50.5],[33,-52.25],[24.7,-49.5],[18.25,-42],[17.5,-48.2],[16.5,-50.6],[13.85,-51.3],[6.6,-51.3],[6.6,0]],"c":true},"ix":2},"nm":"r","mn":"ADBE Vector Shape - Group","hd":false}],"nm":"r","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}]},"fFamily":"Lato"},{"ch":"k","size":13,"style":"Bold","w":55.15,"data":{"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[-0.5,-0.233],[-0.5,-0.766],[0,0],[-0.667,-0.333],[-0.967,0],[0,0],[0,0],[0.533,0.667],[0.7,0.5],[-0.6,0.584],[-0.567,0.7],[0,0],[0,0],[0.633,-0.383],[0.566,-0.666],[0,0],[0.466,-0.233],[0.833,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[1,0],[0.5,0.234],[0,0],[0.533,0.8],[0.666,0.334],[0,0],[0,0],[-0.534,-0.766],[-0.534,-0.666],[0.7,-0.433],[0.6,-0.583],[0,0],[0,0],[-1.034,0],[-0.634,0.384],[0,0],[-0.534,0.634],[-0.467,0.234],[0,0],[0,0],[0,0]],"v":[[6.75,-74.3],[6.75,0],[19.1,0],[19.1,-23.5],[21.9,-23.5],[24.15,-23.15],[25.65,-21.65],[38.7,-2.2],[40.5,-0.5],[42.95,0],[54.1,0],[37,-24.9],[35.4,-27.05],[33.55,-28.8],[35.5,-30.325],[37.25,-32.25],[53.2,-51.3],[41.9,-51.3],[39.4,-50.725],[37.6,-49.15],[24.85,-33.4],[23.35,-32.1],[21.4,-31.75],[19.1,-31.75],[19.1,-74.3]],"c":true},"ix":2},"nm":"k","mn":"ADBE Vector Shape - Group","hd":false}],"nm":"k","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}]},"fFamily":"Lato"},{"ch":" ","size":13,"style":"Bold","w":19.3,"data":{},"fFamily":"Lato"},{"ch":"E","size":13,"style":"Bold","w":57.25,"data":{"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[7.3,-72.3],[7.3,0],[52.9,0],[52.9,-10.75],[20.85,-10.75],[20.85,-31.2],[46.1,-31.2],[46.1,-41.55],[20.85,-41.55],[20.85,-61.6],[52.9,-61.6],[52.9,-72.3]],"c":true},"ix":2},"nm":"E","mn":"ADBE Vector Shape - Group","hd":false}],"nm":"E","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}]},"fFamily":"Lato"}]}
--------------------------------------------------------------------------------
/app/src/main/graphql/com/tayfuncesur/pokehub/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "__schema": {
4 | "queryType": {
5 | "name": "Query"
6 | },
7 | "mutationType": null,
8 | "subscriptionType": null,
9 | "types": [
10 | {
11 | "kind": "OBJECT",
12 | "name": "Query",
13 | "description": "Query any Pokémon by number or name",
14 | "fields": [
15 | {
16 | "name": "query",
17 | "description": null,
18 | "args": [],
19 | "type": {
20 | "kind": "OBJECT",
21 | "name": "Query",
22 | "ofType": null
23 | },
24 | "isDeprecated": false,
25 | "deprecationReason": null
26 | },
27 | {
28 | "name": "pokemons",
29 | "description": null,
30 | "args": [
31 | {
32 | "name": "first",
33 | "description": null,
34 | "type": {
35 | "kind": "NON_NULL",
36 | "name": null,
37 | "ofType": {
38 | "kind": "SCALAR",
39 | "name": "Int",
40 | "ofType": null
41 | }
42 | },
43 | "defaultValue": null
44 | }
45 | ],
46 | "type": {
47 | "kind": "LIST",
48 | "name": null,
49 | "ofType": {
50 | "kind": "OBJECT",
51 | "name": "Pokemon",
52 | "ofType": null
53 | }
54 | },
55 | "isDeprecated": false,
56 | "deprecationReason": null
57 | },
58 | {
59 | "name": "pokemon",
60 | "description": null,
61 | "args": [
62 | {
63 | "name": "id",
64 | "description": null,
65 | "type": {
66 | "kind": "SCALAR",
67 | "name": "String",
68 | "ofType": null
69 | },
70 | "defaultValue": null
71 | },
72 | {
73 | "name": "name",
74 | "description": null,
75 | "type": {
76 | "kind": "SCALAR",
77 | "name": "String",
78 | "ofType": null
79 | },
80 | "defaultValue": null
81 | }
82 | ],
83 | "type": {
84 | "kind": "OBJECT",
85 | "name": "Pokemon",
86 | "ofType": null
87 | },
88 | "isDeprecated": false,
89 | "deprecationReason": null
90 | }
91 | ],
92 | "inputFields": null,
93 | "interfaces": [],
94 | "enumValues": null,
95 | "possibleTypes": null
96 | },
97 | {
98 | "kind": "SCALAR",
99 | "name": "Int",
100 | "description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ",
101 | "fields": null,
102 | "inputFields": null,
103 | "interfaces": null,
104 | "enumValues": null,
105 | "possibleTypes": null
106 | },
107 | {
108 | "kind": "OBJECT",
109 | "name": "Pokemon",
110 | "description": "Represents a Pokémon",
111 | "fields": [
112 | {
113 | "name": "id",
114 | "description": "The ID of an object",
115 | "args": [],
116 | "type": {
117 | "kind": "NON_NULL",
118 | "name": null,
119 | "ofType": {
120 | "kind": "SCALAR",
121 | "name": "ID",
122 | "ofType": null
123 | }
124 | },
125 | "isDeprecated": false,
126 | "deprecationReason": null
127 | },
128 | {
129 | "name": "number",
130 | "description": "The identifier of this Pokémon",
131 | "args": [],
132 | "type": {
133 | "kind": "SCALAR",
134 | "name": "String",
135 | "ofType": null
136 | },
137 | "isDeprecated": false,
138 | "deprecationReason": null
139 | },
140 | {
141 | "name": "name",
142 | "description": "The name of this Pokémon",
143 | "args": [],
144 | "type": {
145 | "kind": "SCALAR",
146 | "name": "String",
147 | "ofType": null
148 | },
149 | "isDeprecated": false,
150 | "deprecationReason": null
151 | },
152 | {
153 | "name": "weight",
154 | "description": "The minimum and maximum weight of this Pokémon",
155 | "args": [],
156 | "type": {
157 | "kind": "OBJECT",
158 | "name": "PokemonDimension",
159 | "ofType": null
160 | },
161 | "isDeprecated": false,
162 | "deprecationReason": null
163 | },
164 | {
165 | "name": "height",
166 | "description": "The minimum and maximum weight of this Pokémon",
167 | "args": [],
168 | "type": {
169 | "kind": "OBJECT",
170 | "name": "PokemonDimension",
171 | "ofType": null
172 | },
173 | "isDeprecated": false,
174 | "deprecationReason": null
175 | },
176 | {
177 | "name": "classification",
178 | "description": "The classification of this Pokémon",
179 | "args": [],
180 | "type": {
181 | "kind": "SCALAR",
182 | "name": "String",
183 | "ofType": null
184 | },
185 | "isDeprecated": false,
186 | "deprecationReason": null
187 | },
188 | {
189 | "name": "types",
190 | "description": "The type(s) of this Pokémon",
191 | "args": [],
192 | "type": {
193 | "kind": "LIST",
194 | "name": null,
195 | "ofType": {
196 | "kind": "SCALAR",
197 | "name": "String",
198 | "ofType": null
199 | }
200 | },
201 | "isDeprecated": false,
202 | "deprecationReason": null
203 | },
204 | {
205 | "name": "resistant",
206 | "description": "The type(s) of Pokémons that this Pokémon is resistant to",
207 | "args": [],
208 | "type": {
209 | "kind": "LIST",
210 | "name": null,
211 | "ofType": {
212 | "kind": "SCALAR",
213 | "name": "String",
214 | "ofType": null
215 | }
216 | },
217 | "isDeprecated": false,
218 | "deprecationReason": null
219 | },
220 | {
221 | "name": "attacks",
222 | "description": "The attacks of this Pokémon",
223 | "args": [],
224 | "type": {
225 | "kind": "OBJECT",
226 | "name": "PokemonAttack",
227 | "ofType": null
228 | },
229 | "isDeprecated": false,
230 | "deprecationReason": null
231 | },
232 | {
233 | "name": "weaknesses",
234 | "description": "The type(s) of Pokémons that this Pokémon weak to",
235 | "args": [],
236 | "type": {
237 | "kind": "LIST",
238 | "name": null,
239 | "ofType": {
240 | "kind": "SCALAR",
241 | "name": "String",
242 | "ofType": null
243 | }
244 | },
245 | "isDeprecated": false,
246 | "deprecationReason": null
247 | },
248 | {
249 | "name": "fleeRate",
250 | "description": null,
251 | "args": [],
252 | "type": {
253 | "kind": "SCALAR",
254 | "name": "Float",
255 | "ofType": null
256 | },
257 | "isDeprecated": false,
258 | "deprecationReason": null
259 | },
260 | {
261 | "name": "maxCP",
262 | "description": "The maximum CP of this Pokémon",
263 | "args": [],
264 | "type": {
265 | "kind": "SCALAR",
266 | "name": "Int",
267 | "ofType": null
268 | },
269 | "isDeprecated": false,
270 | "deprecationReason": null
271 | },
272 | {
273 | "name": "evolutions",
274 | "description": "The evolutions of this Pokémon",
275 | "args": [],
276 | "type": {
277 | "kind": "LIST",
278 | "name": null,
279 | "ofType": {
280 | "kind": "OBJECT",
281 | "name": "Pokemon",
282 | "ofType": null
283 | }
284 | },
285 | "isDeprecated": false,
286 | "deprecationReason": null
287 | },
288 | {
289 | "name": "evolutionRequirements",
290 | "description": "The evolution requirements of this Pokémon",
291 | "args": [],
292 | "type": {
293 | "kind": "OBJECT",
294 | "name": "PokemonEvolutionRequirement",
295 | "ofType": null
296 | },
297 | "isDeprecated": false,
298 | "deprecationReason": null
299 | },
300 | {
301 | "name": "maxHP",
302 | "description": "The maximum HP of this Pokémon",
303 | "args": [],
304 | "type": {
305 | "kind": "SCALAR",
306 | "name": "Int",
307 | "ofType": null
308 | },
309 | "isDeprecated": false,
310 | "deprecationReason": null
311 | },
312 | {
313 | "name": "image",
314 | "description": null,
315 | "args": [],
316 | "type": {
317 | "kind": "SCALAR",
318 | "name": "String",
319 | "ofType": null
320 | },
321 | "isDeprecated": false,
322 | "deprecationReason": null
323 | }
324 | ],
325 | "inputFields": null,
326 | "interfaces": [],
327 | "enumValues": null,
328 | "possibleTypes": null
329 | },
330 | {
331 | "kind": "SCALAR",
332 | "name": "ID",
333 | "description": "The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"4\"`) or integer (such as `4`) input value will be accepted as an ID.",
334 | "fields": null,
335 | "inputFields": null,
336 | "interfaces": null,
337 | "enumValues": null,
338 | "possibleTypes": null
339 | },
340 | {
341 | "kind": "SCALAR",
342 | "name": "String",
343 | "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",
344 | "fields": null,
345 | "inputFields": null,
346 | "interfaces": null,
347 | "enumValues": null,
348 | "possibleTypes": null
349 | },
350 | {
351 | "kind": "OBJECT",
352 | "name": "PokemonDimension",
353 | "description": "Represents a Pokémon's dimensions",
354 | "fields": [
355 | {
356 | "name": "minimum",
357 | "description": "The minimum value of this dimension",
358 | "args": [],
359 | "type": {
360 | "kind": "SCALAR",
361 | "name": "String",
362 | "ofType": null
363 | },
364 | "isDeprecated": false,
365 | "deprecationReason": null
366 | },
367 | {
368 | "name": "maximum",
369 | "description": "The maximum value of this dimension",
370 | "args": [],
371 | "type": {
372 | "kind": "SCALAR",
373 | "name": "String",
374 | "ofType": null
375 | },
376 | "isDeprecated": false,
377 | "deprecationReason": null
378 | }
379 | ],
380 | "inputFields": null,
381 | "interfaces": [],
382 | "enumValues": null,
383 | "possibleTypes": null
384 | },
385 | {
386 | "kind": "OBJECT",
387 | "name": "PokemonAttack",
388 | "description": "Represents a Pokémon's attack types",
389 | "fields": [
390 | {
391 | "name": "fast",
392 | "description": "The fast attacks of this Pokémon",
393 | "args": [],
394 | "type": {
395 | "kind": "LIST",
396 | "name": null,
397 | "ofType": {
398 | "kind": "OBJECT",
399 | "name": "Attack",
400 | "ofType": null
401 | }
402 | },
403 | "isDeprecated": false,
404 | "deprecationReason": null
405 | },
406 | {
407 | "name": "special",
408 | "description": "The special attacks of this Pokémon",
409 | "args": [],
410 | "type": {
411 | "kind": "LIST",
412 | "name": null,
413 | "ofType": {
414 | "kind": "OBJECT",
415 | "name": "Attack",
416 | "ofType": null
417 | }
418 | },
419 | "isDeprecated": false,
420 | "deprecationReason": null
421 | }
422 | ],
423 | "inputFields": null,
424 | "interfaces": [],
425 | "enumValues": null,
426 | "possibleTypes": null
427 | },
428 | {
429 | "kind": "OBJECT",
430 | "name": "Attack",
431 | "description": "Represents a Pokémon's attack types",
432 | "fields": [
433 | {
434 | "name": "name",
435 | "description": "The name of this Pokémon attack",
436 | "args": [],
437 | "type": {
438 | "kind": "SCALAR",
439 | "name": "String",
440 | "ofType": null
441 | },
442 | "isDeprecated": false,
443 | "deprecationReason": null
444 | },
445 | {
446 | "name": "type",
447 | "description": "The type of this Pokémon attack",
448 | "args": [],
449 | "type": {
450 | "kind": "SCALAR",
451 | "name": "String",
452 | "ofType": null
453 | },
454 | "isDeprecated": false,
455 | "deprecationReason": null
456 | },
457 | {
458 | "name": "damage",
459 | "description": "The damage of this Pokémon attack",
460 | "args": [],
461 | "type": {
462 | "kind": "SCALAR",
463 | "name": "Int",
464 | "ofType": null
465 | },
466 | "isDeprecated": false,
467 | "deprecationReason": null
468 | }
469 | ],
470 | "inputFields": null,
471 | "interfaces": [],
472 | "enumValues": null,
473 | "possibleTypes": null
474 | },
475 | {
476 | "kind": "SCALAR",
477 | "name": "Float",
478 | "description": "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ",
479 | "fields": null,
480 | "inputFields": null,
481 | "interfaces": null,
482 | "enumValues": null,
483 | "possibleTypes": null
484 | },
485 | {
486 | "kind": "OBJECT",
487 | "name": "PokemonEvolutionRequirement",
488 | "description": "Represents a Pokémon's requirement to evolve",
489 | "fields": [
490 | {
491 | "name": "amount",
492 | "description": "The amount of candy to evolve",
493 | "args": [],
494 | "type": {
495 | "kind": "SCALAR",
496 | "name": "Int",
497 | "ofType": null
498 | },
499 | "isDeprecated": false,
500 | "deprecationReason": null
501 | },
502 | {
503 | "name": "name",
504 | "description": "The name of the candy to evolve",
505 | "args": [],
506 | "type": {
507 | "kind": "SCALAR",
508 | "name": "String",
509 | "ofType": null
510 | },
511 | "isDeprecated": false,
512 | "deprecationReason": null
513 | }
514 | ],
515 | "inputFields": null,
516 | "interfaces": [],
517 | "enumValues": null,
518 | "possibleTypes": null
519 | },
520 | {
521 | "kind": "OBJECT",
522 | "name": "__Schema",
523 | "description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",
524 | "fields": [
525 | {
526 | "name": "types",
527 | "description": "A list of all types supported by this server.",
528 | "args": [],
529 | "type": {
530 | "kind": "NON_NULL",
531 | "name": null,
532 | "ofType": {
533 | "kind": "LIST",
534 | "name": null,
535 | "ofType": {
536 | "kind": "NON_NULL",
537 | "name": null,
538 | "ofType": {
539 | "kind": "OBJECT",
540 | "name": "__Type",
541 | "ofType": null
542 | }
543 | }
544 | }
545 | },
546 | "isDeprecated": false,
547 | "deprecationReason": null
548 | },
549 | {
550 | "name": "queryType",
551 | "description": "The type that query operations will be rooted at.",
552 | "args": [],
553 | "type": {
554 | "kind": "NON_NULL",
555 | "name": null,
556 | "ofType": {
557 | "kind": "OBJECT",
558 | "name": "__Type",
559 | "ofType": null
560 | }
561 | },
562 | "isDeprecated": false,
563 | "deprecationReason": null
564 | },
565 | {
566 | "name": "mutationType",
567 | "description": "If this server supports mutation, the type that mutation operations will be rooted at.",
568 | "args": [],
569 | "type": {
570 | "kind": "OBJECT",
571 | "name": "__Type",
572 | "ofType": null
573 | },
574 | "isDeprecated": false,
575 | "deprecationReason": null
576 | },
577 | {
578 | "name": "subscriptionType",
579 | "description": "If this server support subscription, the type that subscription operations will be rooted at.",
580 | "args": [],
581 | "type": {
582 | "kind": "OBJECT",
583 | "name": "__Type",
584 | "ofType": null
585 | },
586 | "isDeprecated": false,
587 | "deprecationReason": null
588 | },
589 | {
590 | "name": "directives",
591 | "description": "A list of all directives supported by this server.",
592 | "args": [],
593 | "type": {
594 | "kind": "NON_NULL",
595 | "name": null,
596 | "ofType": {
597 | "kind": "LIST",
598 | "name": null,
599 | "ofType": {
600 | "kind": "NON_NULL",
601 | "name": null,
602 | "ofType": {
603 | "kind": "OBJECT",
604 | "name": "__Directive",
605 | "ofType": null
606 | }
607 | }
608 | }
609 | },
610 | "isDeprecated": false,
611 | "deprecationReason": null
612 | }
613 | ],
614 | "inputFields": null,
615 | "interfaces": [],
616 | "enumValues": null,
617 | "possibleTypes": null
618 | },
619 | {
620 | "kind": "OBJECT",
621 | "name": "__Type",
622 | "description": "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",
623 | "fields": [
624 | {
625 | "name": "kind",
626 | "description": null,
627 | "args": [],
628 | "type": {
629 | "kind": "NON_NULL",
630 | "name": null,
631 | "ofType": {
632 | "kind": "ENUM",
633 | "name": "__TypeKind",
634 | "ofType": null
635 | }
636 | },
637 | "isDeprecated": false,
638 | "deprecationReason": null
639 | },
640 | {
641 | "name": "name",
642 | "description": null,
643 | "args": [],
644 | "type": {
645 | "kind": "SCALAR",
646 | "name": "String",
647 | "ofType": null
648 | },
649 | "isDeprecated": false,
650 | "deprecationReason": null
651 | },
652 | {
653 | "name": "description",
654 | "description": null,
655 | "args": [],
656 | "type": {
657 | "kind": "SCALAR",
658 | "name": "String",
659 | "ofType": null
660 | },
661 | "isDeprecated": false,
662 | "deprecationReason": null
663 | },
664 | {
665 | "name": "fields",
666 | "description": null,
667 | "args": [
668 | {
669 | "name": "includeDeprecated",
670 | "description": null,
671 | "type": {
672 | "kind": "SCALAR",
673 | "name": "Boolean",
674 | "ofType": null
675 | },
676 | "defaultValue": "false"
677 | }
678 | ],
679 | "type": {
680 | "kind": "LIST",
681 | "name": null,
682 | "ofType": {
683 | "kind": "NON_NULL",
684 | "name": null,
685 | "ofType": {
686 | "kind": "OBJECT",
687 | "name": "__Field",
688 | "ofType": null
689 | }
690 | }
691 | },
692 | "isDeprecated": false,
693 | "deprecationReason": null
694 | },
695 | {
696 | "name": "interfaces",
697 | "description": null,
698 | "args": [],
699 | "type": {
700 | "kind": "LIST",
701 | "name": null,
702 | "ofType": {
703 | "kind": "NON_NULL",
704 | "name": null,
705 | "ofType": {
706 | "kind": "OBJECT",
707 | "name": "__Type",
708 | "ofType": null
709 | }
710 | }
711 | },
712 | "isDeprecated": false,
713 | "deprecationReason": null
714 | },
715 | {
716 | "name": "possibleTypes",
717 | "description": null,
718 | "args": [],
719 | "type": {
720 | "kind": "LIST",
721 | "name": null,
722 | "ofType": {
723 | "kind": "NON_NULL",
724 | "name": null,
725 | "ofType": {
726 | "kind": "OBJECT",
727 | "name": "__Type",
728 | "ofType": null
729 | }
730 | }
731 | },
732 | "isDeprecated": false,
733 | "deprecationReason": null
734 | },
735 | {
736 | "name": "enumValues",
737 | "description": null,
738 | "args": [
739 | {
740 | "name": "includeDeprecated",
741 | "description": null,
742 | "type": {
743 | "kind": "SCALAR",
744 | "name": "Boolean",
745 | "ofType": null
746 | },
747 | "defaultValue": "false"
748 | }
749 | ],
750 | "type": {
751 | "kind": "LIST",
752 | "name": null,
753 | "ofType": {
754 | "kind": "NON_NULL",
755 | "name": null,
756 | "ofType": {
757 | "kind": "OBJECT",
758 | "name": "__EnumValue",
759 | "ofType": null
760 | }
761 | }
762 | },
763 | "isDeprecated": false,
764 | "deprecationReason": null
765 | },
766 | {
767 | "name": "inputFields",
768 | "description": null,
769 | "args": [],
770 | "type": {
771 | "kind": "LIST",
772 | "name": null,
773 | "ofType": {
774 | "kind": "NON_NULL",
775 | "name": null,
776 | "ofType": {
777 | "kind": "OBJECT",
778 | "name": "__InputValue",
779 | "ofType": null
780 | }
781 | }
782 | },
783 | "isDeprecated": false,
784 | "deprecationReason": null
785 | },
786 | {
787 | "name": "ofType",
788 | "description": null,
789 | "args": [],
790 | "type": {
791 | "kind": "OBJECT",
792 | "name": "__Type",
793 | "ofType": null
794 | },
795 | "isDeprecated": false,
796 | "deprecationReason": null
797 | }
798 | ],
799 | "inputFields": null,
800 | "interfaces": [],
801 | "enumValues": null,
802 | "possibleTypes": null
803 | },
804 | {
805 | "kind": "ENUM",
806 | "name": "__TypeKind",
807 | "description": "An enum describing what kind of type a given `__Type` is.",
808 | "fields": null,
809 | "inputFields": null,
810 | "interfaces": null,
811 | "enumValues": [
812 | {
813 | "name": "SCALAR",
814 | "description": "Indicates this type is a scalar.",
815 | "isDeprecated": false,
816 | "deprecationReason": null
817 | },
818 | {
819 | "name": "OBJECT",
820 | "description": "Indicates this type is an object. `fields` and `interfaces` are valid fields.",
821 | "isDeprecated": false,
822 | "deprecationReason": null
823 | },
824 | {
825 | "name": "INTERFACE",
826 | "description": "Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.",
827 | "isDeprecated": false,
828 | "deprecationReason": null
829 | },
830 | {
831 | "name": "UNION",
832 | "description": "Indicates this type is a union. `possibleTypes` is a valid field.",
833 | "isDeprecated": false,
834 | "deprecationReason": null
835 | },
836 | {
837 | "name": "ENUM",
838 | "description": "Indicates this type is an enum. `enumValues` is a valid field.",
839 | "isDeprecated": false,
840 | "deprecationReason": null
841 | },
842 | {
843 | "name": "INPUT_OBJECT",
844 | "description": "Indicates this type is an input object. `inputFields` is a valid field.",
845 | "isDeprecated": false,
846 | "deprecationReason": null
847 | },
848 | {
849 | "name": "LIST",
850 | "description": "Indicates this type is a list. `ofType` is a valid field.",
851 | "isDeprecated": false,
852 | "deprecationReason": null
853 | },
854 | {
855 | "name": "NON_NULL",
856 | "description": "Indicates this type is a non-null. `ofType` is a valid field.",
857 | "isDeprecated": false,
858 | "deprecationReason": null
859 | }
860 | ],
861 | "possibleTypes": null
862 | },
863 | {
864 | "kind": "SCALAR",
865 | "name": "Boolean",
866 | "description": "The `Boolean` scalar type represents `true` or `false`.",
867 | "fields": null,
868 | "inputFields": null,
869 | "interfaces": null,
870 | "enumValues": null,
871 | "possibleTypes": null
872 | },
873 | {
874 | "kind": "OBJECT",
875 | "name": "__Field",
876 | "description": "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",
877 | "fields": [
878 | {
879 | "name": "name",
880 | "description": null,
881 | "args": [],
882 | "type": {
883 | "kind": "NON_NULL",
884 | "name": null,
885 | "ofType": {
886 | "kind": "SCALAR",
887 | "name": "String",
888 | "ofType": null
889 | }
890 | },
891 | "isDeprecated": false,
892 | "deprecationReason": null
893 | },
894 | {
895 | "name": "description",
896 | "description": null,
897 | "args": [],
898 | "type": {
899 | "kind": "SCALAR",
900 | "name": "String",
901 | "ofType": null
902 | },
903 | "isDeprecated": false,
904 | "deprecationReason": null
905 | },
906 | {
907 | "name": "args",
908 | "description": null,
909 | "args": [],
910 | "type": {
911 | "kind": "NON_NULL",
912 | "name": null,
913 | "ofType": {
914 | "kind": "LIST",
915 | "name": null,
916 | "ofType": {
917 | "kind": "NON_NULL",
918 | "name": null,
919 | "ofType": {
920 | "kind": "OBJECT",
921 | "name": "__InputValue",
922 | "ofType": null
923 | }
924 | }
925 | }
926 | },
927 | "isDeprecated": false,
928 | "deprecationReason": null
929 | },
930 | {
931 | "name": "type",
932 | "description": null,
933 | "args": [],
934 | "type": {
935 | "kind": "NON_NULL",
936 | "name": null,
937 | "ofType": {
938 | "kind": "OBJECT",
939 | "name": "__Type",
940 | "ofType": null
941 | }
942 | },
943 | "isDeprecated": false,
944 | "deprecationReason": null
945 | },
946 | {
947 | "name": "isDeprecated",
948 | "description": null,
949 | "args": [],
950 | "type": {
951 | "kind": "NON_NULL",
952 | "name": null,
953 | "ofType": {
954 | "kind": "SCALAR",
955 | "name": "Boolean",
956 | "ofType": null
957 | }
958 | },
959 | "isDeprecated": false,
960 | "deprecationReason": null
961 | },
962 | {
963 | "name": "deprecationReason",
964 | "description": null,
965 | "args": [],
966 | "type": {
967 | "kind": "SCALAR",
968 | "name": "String",
969 | "ofType": null
970 | },
971 | "isDeprecated": false,
972 | "deprecationReason": null
973 | }
974 | ],
975 | "inputFields": null,
976 | "interfaces": [],
977 | "enumValues": null,
978 | "possibleTypes": null
979 | },
980 | {
981 | "kind": "OBJECT",
982 | "name": "__InputValue",
983 | "description": "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",
984 | "fields": [
985 | {
986 | "name": "name",
987 | "description": null,
988 | "args": [],
989 | "type": {
990 | "kind": "NON_NULL",
991 | "name": null,
992 | "ofType": {
993 | "kind": "SCALAR",
994 | "name": "String",
995 | "ofType": null
996 | }
997 | },
998 | "isDeprecated": false,
999 | "deprecationReason": null
1000 | },
1001 | {
1002 | "name": "description",
1003 | "description": null,
1004 | "args": [],
1005 | "type": {
1006 | "kind": "SCALAR",
1007 | "name": "String",
1008 | "ofType": null
1009 | },
1010 | "isDeprecated": false,
1011 | "deprecationReason": null
1012 | },
1013 | {
1014 | "name": "type",
1015 | "description": null,
1016 | "args": [],
1017 | "type": {
1018 | "kind": "NON_NULL",
1019 | "name": null,
1020 | "ofType": {
1021 | "kind": "OBJECT",
1022 | "name": "__Type",
1023 | "ofType": null
1024 | }
1025 | },
1026 | "isDeprecated": false,
1027 | "deprecationReason": null
1028 | },
1029 | {
1030 | "name": "defaultValue",
1031 | "description": "A GraphQL-formatted string representing the default value for this input value.",
1032 | "args": [],
1033 | "type": {
1034 | "kind": "SCALAR",
1035 | "name": "String",
1036 | "ofType": null
1037 | },
1038 | "isDeprecated": false,
1039 | "deprecationReason": null
1040 | }
1041 | ],
1042 | "inputFields": null,
1043 | "interfaces": [],
1044 | "enumValues": null,
1045 | "possibleTypes": null
1046 | },
1047 | {
1048 | "kind": "OBJECT",
1049 | "name": "__EnumValue",
1050 | "description": "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",
1051 | "fields": [
1052 | {
1053 | "name": "name",
1054 | "description": null,
1055 | "args": [],
1056 | "type": {
1057 | "kind": "NON_NULL",
1058 | "name": null,
1059 | "ofType": {
1060 | "kind": "SCALAR",
1061 | "name": "String",
1062 | "ofType": null
1063 | }
1064 | },
1065 | "isDeprecated": false,
1066 | "deprecationReason": null
1067 | },
1068 | {
1069 | "name": "description",
1070 | "description": null,
1071 | "args": [],
1072 | "type": {
1073 | "kind": "SCALAR",
1074 | "name": "String",
1075 | "ofType": null
1076 | },
1077 | "isDeprecated": false,
1078 | "deprecationReason": null
1079 | },
1080 | {
1081 | "name": "isDeprecated",
1082 | "description": null,
1083 | "args": [],
1084 | "type": {
1085 | "kind": "NON_NULL",
1086 | "name": null,
1087 | "ofType": {
1088 | "kind": "SCALAR",
1089 | "name": "Boolean",
1090 | "ofType": null
1091 | }
1092 | },
1093 | "isDeprecated": false,
1094 | "deprecationReason": null
1095 | },
1096 | {
1097 | "name": "deprecationReason",
1098 | "description": null,
1099 | "args": [],
1100 | "type": {
1101 | "kind": "SCALAR",
1102 | "name": "String",
1103 | "ofType": null
1104 | },
1105 | "isDeprecated": false,
1106 | "deprecationReason": null
1107 | }
1108 | ],
1109 | "inputFields": null,
1110 | "interfaces": [],
1111 | "enumValues": null,
1112 | "possibleTypes": null
1113 | },
1114 | {
1115 | "kind": "OBJECT",
1116 | "name": "__Directive",
1117 | "description": "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",
1118 | "fields": [
1119 | {
1120 | "name": "name",
1121 | "description": null,
1122 | "args": [],
1123 | "type": {
1124 | "kind": "NON_NULL",
1125 | "name": null,
1126 | "ofType": {
1127 | "kind": "SCALAR",
1128 | "name": "String",
1129 | "ofType": null
1130 | }
1131 | },
1132 | "isDeprecated": false,
1133 | "deprecationReason": null
1134 | },
1135 | {
1136 | "name": "description",
1137 | "description": null,
1138 | "args": [],
1139 | "type": {
1140 | "kind": "SCALAR",
1141 | "name": "String",
1142 | "ofType": null
1143 | },
1144 | "isDeprecated": false,
1145 | "deprecationReason": null
1146 | },
1147 | {
1148 | "name": "locations",
1149 | "description": null,
1150 | "args": [],
1151 | "type": {
1152 | "kind": "NON_NULL",
1153 | "name": null,
1154 | "ofType": {
1155 | "kind": "LIST",
1156 | "name": null,
1157 | "ofType": {
1158 | "kind": "NON_NULL",
1159 | "name": null,
1160 | "ofType": {
1161 | "kind": "ENUM",
1162 | "name": "__DirectiveLocation",
1163 | "ofType": null
1164 | }
1165 | }
1166 | }
1167 | },
1168 | "isDeprecated": false,
1169 | "deprecationReason": null
1170 | },
1171 | {
1172 | "name": "args",
1173 | "description": null,
1174 | "args": [],
1175 | "type": {
1176 | "kind": "NON_NULL",
1177 | "name": null,
1178 | "ofType": {
1179 | "kind": "LIST",
1180 | "name": null,
1181 | "ofType": {
1182 | "kind": "NON_NULL",
1183 | "name": null,
1184 | "ofType": {
1185 | "kind": "OBJECT",
1186 | "name": "__InputValue",
1187 | "ofType": null
1188 | }
1189 | }
1190 | }
1191 | },
1192 | "isDeprecated": false,
1193 | "deprecationReason": null
1194 | },
1195 | {
1196 | "name": "onOperation",
1197 | "description": null,
1198 | "args": [],
1199 | "type": {
1200 | "kind": "NON_NULL",
1201 | "name": null,
1202 | "ofType": {
1203 | "kind": "SCALAR",
1204 | "name": "Boolean",
1205 | "ofType": null
1206 | }
1207 | },
1208 | "isDeprecated": true,
1209 | "deprecationReason": "Use `locations`."
1210 | },
1211 | {
1212 | "name": "onFragment",
1213 | "description": null,
1214 | "args": [],
1215 | "type": {
1216 | "kind": "NON_NULL",
1217 | "name": null,
1218 | "ofType": {
1219 | "kind": "SCALAR",
1220 | "name": "Boolean",
1221 | "ofType": null
1222 | }
1223 | },
1224 | "isDeprecated": true,
1225 | "deprecationReason": "Use `locations`."
1226 | },
1227 | {
1228 | "name": "onField",
1229 | "description": null,
1230 | "args": [],
1231 | "type": {
1232 | "kind": "NON_NULL",
1233 | "name": null,
1234 | "ofType": {
1235 | "kind": "SCALAR",
1236 | "name": "Boolean",
1237 | "ofType": null
1238 | }
1239 | },
1240 | "isDeprecated": true,
1241 | "deprecationReason": "Use `locations`."
1242 | }
1243 | ],
1244 | "inputFields": null,
1245 | "interfaces": [],
1246 | "enumValues": null,
1247 | "possibleTypes": null
1248 | },
1249 | {
1250 | "kind": "ENUM",
1251 | "name": "__DirectiveLocation",
1252 | "description": "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",
1253 | "fields": null,
1254 | "inputFields": null,
1255 | "interfaces": null,
1256 | "enumValues": [
1257 | {
1258 | "name": "QUERY",
1259 | "description": "Location adjacent to a query operation.",
1260 | "isDeprecated": false,
1261 | "deprecationReason": null
1262 | },
1263 | {
1264 | "name": "MUTATION",
1265 | "description": "Location adjacent to a mutation operation.",
1266 | "isDeprecated": false,
1267 | "deprecationReason": null
1268 | },
1269 | {
1270 | "name": "SUBSCRIPTION",
1271 | "description": "Location adjacent to a subscription operation.",
1272 | "isDeprecated": false,
1273 | "deprecationReason": null
1274 | },
1275 | {
1276 | "name": "FIELD",
1277 | "description": "Location adjacent to a field.",
1278 | "isDeprecated": false,
1279 | "deprecationReason": null
1280 | },
1281 | {
1282 | "name": "FRAGMENT_DEFINITION",
1283 | "description": "Location adjacent to a fragment definition.",
1284 | "isDeprecated": false,
1285 | "deprecationReason": null
1286 | },
1287 | {
1288 | "name": "FRAGMENT_SPREAD",
1289 | "description": "Location adjacent to a fragment spread.",
1290 | "isDeprecated": false,
1291 | "deprecationReason": null
1292 | },
1293 | {
1294 | "name": "INLINE_FRAGMENT",
1295 | "description": "Location adjacent to an inline fragment.",
1296 | "isDeprecated": false,
1297 | "deprecationReason": null
1298 | },
1299 | {
1300 | "name": "SCHEMA",
1301 | "description": "Location adjacent to a schema definition.",
1302 | "isDeprecated": false,
1303 | "deprecationReason": null
1304 | },
1305 | {
1306 | "name": "SCALAR",
1307 | "description": "Location adjacent to a scalar definition.",
1308 | "isDeprecated": false,
1309 | "deprecationReason": null
1310 | },
1311 | {
1312 | "name": "OBJECT",
1313 | "description": "Location adjacent to an object type definition.",
1314 | "isDeprecated": false,
1315 | "deprecationReason": null
1316 | },
1317 | {
1318 | "name": "FIELD_DEFINITION",
1319 | "description": "Location adjacent to a field definition.",
1320 | "isDeprecated": false,
1321 | "deprecationReason": null
1322 | },
1323 | {
1324 | "name": "ARGUMENT_DEFINITION",
1325 | "description": "Location adjacent to an argument definition.",
1326 | "isDeprecated": false,
1327 | "deprecationReason": null
1328 | },
1329 | {
1330 | "name": "INTERFACE",
1331 | "description": "Location adjacent to an interface definition.",
1332 | "isDeprecated": false,
1333 | "deprecationReason": null
1334 | },
1335 | {
1336 | "name": "UNION",
1337 | "description": "Location adjacent to a union definition.",
1338 | "isDeprecated": false,
1339 | "deprecationReason": null
1340 | },
1341 | {
1342 | "name": "ENUM",
1343 | "description": "Location adjacent to an enum definition.",
1344 | "isDeprecated": false,
1345 | "deprecationReason": null
1346 | },
1347 | {
1348 | "name": "ENUM_VALUE",
1349 | "description": "Location adjacent to an enum value definition.",
1350 | "isDeprecated": false,
1351 | "deprecationReason": null
1352 | },
1353 | {
1354 | "name": "INPUT_OBJECT",
1355 | "description": "Location adjacent to an input object type definition.",
1356 | "isDeprecated": false,
1357 | "deprecationReason": null
1358 | },
1359 | {
1360 | "name": "INPUT_FIELD_DEFINITION",
1361 | "description": "Location adjacent to an input object field definition.",
1362 | "isDeprecated": false,
1363 | "deprecationReason": null
1364 | }
1365 | ],
1366 | "possibleTypes": null
1367 | }
1368 | ],
1369 | "directives": [
1370 | {
1371 | "name": "include",
1372 | "description": "Directs the executor to include this field or fragment only when the `if` argument is true.",
1373 | "locations": [
1374 | "FIELD",
1375 | "FRAGMENT_SPREAD",
1376 | "INLINE_FRAGMENT"
1377 | ],
1378 | "args": [
1379 | {
1380 | "name": "if",
1381 | "description": "Included when true.",
1382 | "type": {
1383 | "kind": "NON_NULL",
1384 | "name": null,
1385 | "ofType": {
1386 | "kind": "SCALAR",
1387 | "name": "Boolean",
1388 | "ofType": null
1389 | }
1390 | },
1391 | "defaultValue": null
1392 | }
1393 | ]
1394 | },
1395 | {
1396 | "name": "skip",
1397 | "description": "Directs the executor to skip this field or fragment when the `if` argument is true.",
1398 | "locations": [
1399 | "FIELD",
1400 | "FRAGMENT_SPREAD",
1401 | "INLINE_FRAGMENT"
1402 | ],
1403 | "args": [
1404 | {
1405 | "name": "if",
1406 | "description": "Skipped when true.",
1407 | "type": {
1408 | "kind": "NON_NULL",
1409 | "name": null,
1410 | "ofType": {
1411 | "kind": "SCALAR",
1412 | "name": "Boolean",
1413 | "ofType": null
1414 | }
1415 | },
1416 | "defaultValue": null
1417 | }
1418 | ]
1419 | },
1420 | {
1421 | "name": "deprecated",
1422 | "description": "Marks an element of a GraphQL schema as no longer supported.",
1423 | "locations": [
1424 | "FIELD_DEFINITION",
1425 | "ENUM_VALUE"
1426 | ],
1427 | "args": [
1428 | {
1429 | "name": "reason",
1430 | "description": "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in [Markdown](https://daringfireball.net/projects/markdown/).",
1431 | "type": {
1432 | "kind": "SCALAR",
1433 | "name": "String",
1434 | "ofType": null
1435 | },
1436 | "defaultValue": "\"No longer supported\""
1437 | }
1438 | ]
1439 | }
1440 | ]
1441 | }
1442 | }
1443 | }
--------------------------------------------------------------------------------