diff --git a/pokedex/.buckconfig b/pokedex/.buckconfig new file mode 100644 index 000000000..934256cb2 --- /dev/null +++ b/pokedex/.buckconfig @@ -0,0 +1,6 @@ + +[android] + target = Google Inc.:Google APIs:23 + +[maven_repositories] + central = https://repo1.maven.org/maven2 diff --git a/pokedex/.editorconfig b/pokedex/.editorconfig new file mode 100644 index 000000000..445bf4880 --- /dev/null +++ b/pokedex/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +end_of_line = lf +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true \ No newline at end of file diff --git a/pokedex/.env.example b/pokedex/.env.example new file mode 100644 index 000000000..7892f3545 --- /dev/null +++ b/pokedex/.env.example @@ -0,0 +1 @@ +REACT_APP_API_URL=http://localhost:3333 diff --git a/pokedex/.eslintignore b/pokedex/.eslintignore new file mode 100644 index 000000000..d982ef7e9 --- /dev/null +++ b/pokedex/.eslintignore @@ -0,0 +1,3 @@ +**/*.js +node_modules +build \ No newline at end of file diff --git a/pokedex/.eslintrc.json b/pokedex/.eslintrc.json new file mode 100644 index 000000000..0f49bd21e --- /dev/null +++ b/pokedex/.eslintrc.json @@ -0,0 +1,82 @@ +{ + "env": { + "es2020": true + }, + "extends": [ + "plugin:react/recommended", + "airbnb", + "plugin:@typescript-eslint/recommended", + "prettier/@typescript-eslint", + "plugin:prettier/recommended" + ], + "globals": { + "__DEV__": "readonly" + }, + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaFeatures": { + "jsx": true + }, + "ecmaVersion": 11, + "sourceType": "module" + }, + "plugins": [ + "react", + "@typescript-eslint", + "react-hooks", + "prettier" + ], + "rules": { + "prettier/prettier": "error", + "react/prop-types": "off", + "react-hooks/rules-of-hooks": "error", + "react-hooks/exhaustive-deps": "warn", + "react/jsx-props-no-spreading": "off", + "react/jsx-one-expression-per-line": "off", + "no-unused-expressions": "off", + "no-use-before-define":"off", + "no-shadow": "off", + "import/no-duplicates": "off", + "camelcase": "off", + "@typescript-eslint/camelcase": "off", + "jsx-a11y/anchor-is-valid": "off", + "react/jsx-wrap-multilines": [ + "error", + { + "declaration": false, + "assignment": false + } + ], + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".tsx" + ] + } + ], + "import/prefer-default-export": "off", + "@typescript-eslint/naming-convention": [ + "error", + { + "selector": "interface", + "format": [ + "PascalCase" + ] + } + ], + "import/extensions": [ + "error", + "ignorePackages", + { + "ts": "never", + "tsx": "never" + } + ] + }, + "settings": { + "import/resolver": { + "typescript": {} + } + } +} diff --git a/pokedex/.gitattributes b/pokedex/.gitattributes new file mode 100644 index 000000000..d42ff1835 --- /dev/null +++ b/pokedex/.gitattributes @@ -0,0 +1 @@ +*.pbxproj -text diff --git a/pokedex/.gitignore b/pokedex/.gitignore new file mode 100644 index 000000000..d6235084b --- /dev/null +++ b/pokedex/.gitignore @@ -0,0 +1,67 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml + +# Visual Studio Code +# +.vscode/ + +# dotenv environment variables file +.env +.env.test + +# node.js +# +node_modules/ +npm-debug.log +yarn-error.log + +# BUCK +buck-out/ +\.buckd/ +*.keystore +!debug.keystore + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/ + +*/fastlane/report.xml +*/fastlane/Preview.html +*/fastlane/screenshots + +# Bundle artifact +*.jsbundle + +# CocoaPods +/ios/Pods/ diff --git a/pokedex/.watchmanconfig b/pokedex/.watchmanconfig new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/pokedex/.watchmanconfig @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/pokedex/LICENSE b/pokedex/LICENSE new file mode 100644 index 000000000..2f7289d69 --- /dev/null +++ b/pokedex/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Alan Andrade + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/pokedex/android/app/_BUCK b/pokedex/android/app/_BUCK new file mode 100644 index 000000000..07e2364c2 --- /dev/null +++ b/pokedex/android/app/_BUCK @@ -0,0 +1,55 @@ +# To learn about Buck see [Docs](https://buckbuild.com/). +# To run your application with Buck: +# - install Buck +# - `npm start` - to start the packager +# - `cd android` +# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` +# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck +# - `buck install -r android/app` - compile, install and run application +# + +load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") + +lib_deps = [] + +create_aar_targets(glob(["libs/*.aar"])) + +create_jar_targets(glob(["libs/*.jar"])) + +android_library( + name = "all-libs", + exported_deps = lib_deps, +) + +android_library( + name = "app-code", + srcs = glob([ + "src/main/java/**/*.java", + ]), + deps = [ + ":all-libs", + ":build_config", + ":res", + ], +) + +android_build_config( + name = "build_config", + package = "com.pokedex", +) + +android_resource( + name = "res", + package = "com.pokedex", + res = "src/main/res", +) + +android_binary( + name = "app", + keystore = "//android/keystores:debug", + manifest = "src/main/AndroidManifest.xml", + package_type = "debug", + deps = [ + ":app-code", + ], +) diff --git a/pokedex/android/app/build.gradle b/pokedex/android/app/build.gradle new file mode 100644 index 000000000..5d6d6ea1b --- /dev/null +++ b/pokedex/android/app/build.gradle @@ -0,0 +1,225 @@ +apply plugin: "com.android.application" + +import com.android.build.OutputFile + +/** + * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets + * and bundleReleaseJsAndAssets). + * These basically call `react-native bundle` with the correct arguments during the Android build + * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the + * bundle directly from the development server. Below you can see all the possible configurations + * and their defaults. If you decide to add a configuration block, make sure to add it before the + * `apply from: "../../node_modules/react-native/react.gradle"` line. + * + * project.ext.react = [ + * // the name of the generated asset file containing your JS bundle + * bundleAssetName: "index.android.bundle", + * + * // the entry file for bundle generation. If none specified and + * // "index.android.js" exists, it will be used. Otherwise "index.js" is + * // default. Can be overridden with ENTRY_FILE environment variable. + * entryFile: "index.android.js", + * + * // https://reactnative.dev/docs/performance#enable-the-ram-format + * bundleCommand: "ram-bundle", + * + * // whether to bundle JS and assets in debug mode + * bundleInDebug: false, + * + * // whether to bundle JS and assets in release mode + * bundleInRelease: true, + * + * // whether to bundle JS and assets in another build variant (if configured). + * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants + * // The configuration property can be in the following formats + * // 'bundleIn${productFlavor}${buildType}' + * // 'bundleIn${buildType}' + * // bundleInFreeDebug: true, + * // bundleInPaidRelease: true, + * // bundleInBeta: true, + * + * // whether to disable dev mode in custom build variants (by default only disabled in release) + * // for example: to disable dev mode in the staging build type (if configured) + * devDisabledInStaging: true, + * // The configuration property can be in the following formats + * // 'devDisabledIn${productFlavor}${buildType}' + * // 'devDisabledIn${buildType}' + * + * // the root of your project, i.e. where "package.json" lives + * root: "../../", + * + * // where to put the JS bundle asset in debug mode + * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", + * + * // where to put the JS bundle asset in release mode + * jsBundleDirRelease: "$buildDir/intermediates/assets/release", + * + * // where to put drawable resources / React Native assets, e.g. the ones you use via + * // require('./image.png')), in debug mode + * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", + * + * // where to put drawable resources / React Native assets, e.g. the ones you use via + * // require('./image.png')), in release mode + * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", + * + * // by default the gradle tasks are skipped if none of the JS files or assets change; this means + * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to + * // date; if you have any other folders that you want to ignore for performance reasons (gradle + * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ + * // for example, you might want to remove it from here. + * inputExcludes: ["android/**", "ios/**"], + * + * // override which node gets called and with what additional arguments + * nodeExecutableAndArgs: ["node"], + * + * // supply additional arguments to the packager + * extraPackagerArgs: [] + * ] + */ + +project.ext.react = [ + enableHermes: false, // clean and rebuild if changing +] + +apply from: "../../node_modules/react-native/react.gradle" + +/** + * Set this to true to create two separate APKs instead of one: + * - An APK that only works on ARM devices + * - An APK that only works on x86 devices + * The advantage is the size of the APK is reduced by about 4MB. + * Upload all the APKs to the Play Store and people will download + * the correct one based on the CPU architecture of their device. + */ +def enableSeparateBuildPerCPUArchitecture = false + +/** + * Run Proguard to shrink the Java bytecode in release builds. + */ +def enableProguardInReleaseBuilds = false + +/** + * The preferred build flavor of JavaScriptCore. + * + * For example, to use the international variant, you can use: + * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` + * + * The international variant includes ICU i18n library and necessary data + * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that + * give correct results when using with locales other than en-US. Note that + * this variant is about 6MiB larger per architecture than default. + */ +def jscFlavor = 'org.webkit:android-jsc:+' + +/** + * Whether to enable the Hermes VM. + * + * This should be set on project.ext.react and mirrored here. If it is not set + * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode + * and the benefits of using Hermes will therefore be sharply reduced. + */ +def enableHermes = project.ext.react.get("enableHermes", false); + +android { + compileSdkVersion rootProject.ext.compileSdkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + applicationId "com.pokedex" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0" + multiDexEnabled true + } + splits { + abi { + reset() + enable enableSeparateBuildPerCPUArchitecture + universalApk false // If true, also generate a universal APK + include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" + } + } + signingConfigs { + debug { + storeFile file('debug.keystore') + storePassword 'android' + keyAlias 'androiddebugkey' + keyPassword 'android' + } + } + buildTypes { + debug { + signingConfig signingConfigs.debug + } + release { + // Caution! In production, you need to generate your own keystore file. + // see https://reactnative.dev/docs/signed-apk-android. + signingConfig signingConfigs.debug + minifyEnabled enableProguardInReleaseBuilds + proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + } + } + + // applicationVariants are e.g. debug, release + applicationVariants.all { variant -> + variant.outputs.each { output -> + // For each separate APK per architecture, set a unique version code as described here: + // https://developer.android.com/studio/build/configure-apk-splits.html + def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] + def abi = output.getFilter(OutputFile.ABI) + if (abi != null) { // null for the universal-debug, universal-release variants + output.versionCodeOverride = + versionCodes.get(abi) * 1048576 + defaultConfig.versionCode + } + + } + } +} + +dependencies { + implementation fileTree(dir: "libs", include: ["*.jar"]) + //noinspection GradleDynamicVersion + implementation "com.facebook.react:react-native:+" // From node_modules + + implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" + + debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { + exclude group:'com.facebook.fbjni' + } + + debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { + exclude group:'com.facebook.flipper' + } + + debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { + exclude group:'com.facebook.flipper' + } + + if (enableHermes) { + def hermesPath = "../../node_modules/hermes-engine/android/"; + debugImplementation files(hermesPath + "hermes-debug.aar") + releaseImplementation files(hermesPath + "hermes-release.aar") + } else { + implementation jscFlavor + } +} + +// Run this once to be able to run the application with BUCK +// puts all compile dependencies into folder libs for BUCK to use +task copyDownloadableDepsToLibs(type: Copy) { + from configurations.compile + into 'libs' +} + +apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) + +project.ext.vectoricons = [ + iconFontNames: [ 'MaterialIcons.ttf', 'Feather.ttf', 'Ionicons.ttf' ] +] + +apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" diff --git a/pokedex/android/app/build_defs.bzl b/pokedex/android/app/build_defs.bzl new file mode 100644 index 000000000..fff270f8d --- /dev/null +++ b/pokedex/android/app/build_defs.bzl @@ -0,0 +1,19 @@ +"""Helper definitions to glob .aar and .jar targets""" + +def create_aar_targets(aarfiles): + for aarfile in aarfiles: + name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] + lib_deps.append(":" + name) + android_prebuilt_aar( + name = name, + aar = aarfile, + ) + +def create_jar_targets(jarfiles): + for jarfile in jarfiles: + name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] + lib_deps.append(":" + name) + prebuilt_jar( + name = name, + binary_jar = jarfile, + ) diff --git a/pokedex/android/app/debug.keystore b/pokedex/android/app/debug.keystore new file mode 100644 index 000000000..364e105ed Binary files /dev/null and b/pokedex/android/app/debug.keystore differ diff --git a/pokedex/android/app/proguard-rules.pro b/pokedex/android/app/proguard-rules.pro new file mode 100644 index 000000000..11b025724 --- /dev/null +++ b/pokedex/android/app/proguard-rules.pro @@ -0,0 +1,10 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: diff --git a/pokedex/android/app/src/debug/AndroidManifest.xml b/pokedex/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 000000000..fa26aa56e --- /dev/null +++ b/pokedex/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,8 @@ + + + + + + + diff --git a/pokedex/android/app/src/debug/java/com/pokedex/ReactNativeFlipper.java b/pokedex/android/app/src/debug/java/com/pokedex/ReactNativeFlipper.java new file mode 100644 index 000000000..4794d0c96 --- /dev/null +++ b/pokedex/android/app/src/debug/java/com/pokedex/ReactNativeFlipper.java @@ -0,0 +1,72 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. + */ +package com.pokedex; + +import android.content.Context; +import com.facebook.flipper.android.AndroidFlipperClient; +import com.facebook.flipper.android.utils.FlipperUtils; +import com.facebook.flipper.core.FlipperClient; +import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; +import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; +import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; +import com.facebook.flipper.plugins.inspector.DescriptorMapping; +import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; +import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; +import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; +import com.facebook.flipper.plugins.react.ReactFlipperPlugin; +import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; +import com.facebook.react.ReactInstanceManager; +import com.facebook.react.bridge.ReactContext; +import com.facebook.react.modules.network.NetworkingModule; +import okhttp3.OkHttpClient; + +public class ReactNativeFlipper { + public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { + if (FlipperUtils.shouldEnableFlipper(context)) { + final FlipperClient client = AndroidFlipperClient.getInstance(context); + + client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); + client.addPlugin(new ReactFlipperPlugin()); + client.addPlugin(new DatabasesFlipperPlugin(context)); + client.addPlugin(new SharedPreferencesFlipperPlugin(context)); + client.addPlugin(CrashReporterPlugin.getInstance()); + + NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); + NetworkingModule.setCustomClientBuilder( + new NetworkingModule.CustomClientBuilder() { + @Override + public void apply(OkHttpClient.Builder builder) { + builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); + } + }); + client.addPlugin(networkFlipperPlugin); + client.start(); + + // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized + // Hence we run if after all native modules have been initialized + ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); + if (reactContext == null) { + reactInstanceManager.addReactInstanceEventListener( + new ReactInstanceManager.ReactInstanceEventListener() { + @Override + public void onReactContextInitialized(ReactContext reactContext) { + reactInstanceManager.removeReactInstanceEventListener(this); + reactContext.runOnNativeModulesQueueThread( + new Runnable() { + @Override + public void run() { + client.addPlugin(new FrescoFlipperPlugin()); + } + }); + } + }); + } else { + client.addPlugin(new FrescoFlipperPlugin()); + } + } + } +} diff --git a/pokedex/android/app/src/main/AndroidManifest.xml b/pokedex/android/app/src/main/AndroidManifest.xml new file mode 100644 index 000000000..873336de8 --- /dev/null +++ b/pokedex/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + diff --git a/pokedex/android/app/src/main/assets/fonts/AntDesign.ttf b/pokedex/android/app/src/main/assets/fonts/AntDesign.ttf new file mode 100644 index 000000000..2abf03542 Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/AntDesign.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/Entypo.ttf b/pokedex/android/app/src/main/assets/fonts/Entypo.ttf new file mode 100644 index 000000000..1c8f5e910 Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/Entypo.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/EvilIcons.ttf b/pokedex/android/app/src/main/assets/fonts/EvilIcons.ttf new file mode 100644 index 000000000..6868f7bb6 Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/EvilIcons.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/Feather.ttf b/pokedex/android/app/src/main/assets/fonts/Feather.ttf new file mode 100644 index 000000000..a3c58c506 Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/Feather.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/FontAwesome.ttf b/pokedex/android/app/src/main/assets/fonts/FontAwesome.ttf new file mode 100644 index 000000000..35acda2fa Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/FontAwesome.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf b/pokedex/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf new file mode 100644 index 000000000..948a2a6cc Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf b/pokedex/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf new file mode 100644 index 000000000..abe99e20c Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf b/pokedex/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf new file mode 100644 index 000000000..5b979039a Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/Fontisto.ttf b/pokedex/android/app/src/main/assets/fonts/Fontisto.ttf new file mode 100644 index 000000000..96e2e81a3 Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/Fontisto.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/Foundation.ttf b/pokedex/android/app/src/main/assets/fonts/Foundation.ttf new file mode 100644 index 000000000..6cce217dd Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/Foundation.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/Ionicons.ttf b/pokedex/android/app/src/main/assets/fonts/Ionicons.ttf new file mode 100644 index 000000000..719442d42 Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/Ionicons.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf b/pokedex/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf new file mode 100644 index 000000000..522dc3105 Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/MaterialIcons.ttf b/pokedex/android/app/src/main/assets/fonts/MaterialIcons.ttf new file mode 100644 index 000000000..e50801b3b Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/MaterialIcons.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/Octicons.ttf b/pokedex/android/app/src/main/assets/fonts/Octicons.ttf new file mode 100644 index 000000000..ceac75d75 Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/Octicons.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/Roboto-Bold.ttf b/pokedex/android/app/src/main/assets/fonts/Roboto-Bold.ttf new file mode 100644 index 000000000..d998cf5b4 Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/Roboto-Bold.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/Roboto-Medium.ttf b/pokedex/android/app/src/main/assets/fonts/Roboto-Medium.ttf new file mode 100644 index 000000000..f714a514d Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/Roboto-Medium.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/Roboto-Regular.ttf b/pokedex/android/app/src/main/assets/fonts/Roboto-Regular.ttf new file mode 100644 index 000000000..2b6392ffe Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/Roboto-Regular.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/SimpleLineIcons.ttf b/pokedex/android/app/src/main/assets/fonts/SimpleLineIcons.ttf new file mode 100644 index 000000000..6ecb68683 Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/SimpleLineIcons.ttf differ diff --git a/pokedex/android/app/src/main/assets/fonts/Zocial.ttf b/pokedex/android/app/src/main/assets/fonts/Zocial.ttf new file mode 100644 index 000000000..e4ae46c62 Binary files /dev/null and b/pokedex/android/app/src/main/assets/fonts/Zocial.ttf differ diff --git a/pokedex/android/app/src/main/ic_launcher-playstore.png b/pokedex/android/app/src/main/ic_launcher-playstore.png new file mode 100644 index 000000000..ff6af481e Binary files /dev/null and b/pokedex/android/app/src/main/ic_launcher-playstore.png differ diff --git a/pokedex/android/app/src/main/java/com/pokedex/MainActivity.java b/pokedex/android/app/src/main/java/com/pokedex/MainActivity.java new file mode 100644 index 000000000..abd210222 --- /dev/null +++ b/pokedex/android/app/src/main/java/com/pokedex/MainActivity.java @@ -0,0 +1,25 @@ +package com.pokedex; + +import com.facebook.react.ReactActivity; +import org.devio.rn.splashscreen.SplashScreen; +import android.os.Bundle; + +public class MainActivity extends ReactActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + SplashScreen.show(this); + super.onCreate(savedInstanceState); + } + + /** + * Returns the name of the main component registered from JavaScript. This is used to schedule + * rendering of the component. + */ + @Override + protected String getMainComponentName() { + return "pokedex"; + } + + +} diff --git a/pokedex/android/app/src/main/java/com/pokedex/MainApplication.java b/pokedex/android/app/src/main/java/com/pokedex/MainApplication.java new file mode 100644 index 000000000..692bb649d --- /dev/null +++ b/pokedex/android/app/src/main/java/com/pokedex/MainApplication.java @@ -0,0 +1,80 @@ +package com.pokedex; + +import android.app.Application; +import android.content.Context; +import com.facebook.react.PackageList; +import com.facebook.react.ReactApplication; +import com.facebook.react.ReactInstanceManager; +import com.facebook.react.ReactNativeHost; +import com.facebook.react.ReactPackage; +import com.facebook.soloader.SoLoader; +import java.lang.reflect.InvocationTargetException; +import java.util.List; + +public class MainApplication extends Application implements ReactApplication { + + private final ReactNativeHost mReactNativeHost = + new ReactNativeHost(this) { + @Override + public boolean getUseDeveloperSupport() { + return BuildConfig.DEBUG; + } + + @Override + protected List getPackages() { + @SuppressWarnings("UnnecessaryLocalVariable") + List packages = new PackageList(this).getPackages(); + // Packages that cannot be autolinked yet can be added manually here, for example: + // packages.add(new MyReactNativePackage()); + return packages; + } + + @Override + protected String getJSMainModuleName() { + return "index"; + } + }; + + @Override + public ReactNativeHost getReactNativeHost() { + return mReactNativeHost; + } + + @Override + public void onCreate() { + super.onCreate(); + SoLoader.init(this, /* native exopackage */ false); + initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); + } + + /** + * Loads Flipper in React Native templates. Call this in the onCreate method with something like + * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); + * + * @param context + * @param reactInstanceManager + */ + private static void initializeFlipper( + Context context, ReactInstanceManager reactInstanceManager) { + if (BuildConfig.DEBUG) { + try { + /* + We use reflection here to pick up the class that initializes Flipper, + since Flipper library is not available in release mode + */ + Class aClass = Class.forName("com.pokedex.ReactNativeFlipper"); + aClass + .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) + .invoke(null, context, reactInstanceManager); + } catch (ClassNotFoundException e) { + e.printStackTrace(); + } catch (NoSuchMethodException e) { + e.printStackTrace(); + } catch (IllegalAccessException e) { + e.printStackTrace(); + } catch (InvocationTargetException e) { + e.printStackTrace(); + } + } + } +} diff --git a/pokedex/android/app/src/main/java/com/pokedex/SplashActivity.java b/pokedex/android/app/src/main/java/com/pokedex/SplashActivity.java new file mode 100644 index 000000000..f06ad1192 --- /dev/null +++ b/pokedex/android/app/src/main/java/com/pokedex/SplashActivity.java @@ -0,0 +1,16 @@ +package com.pokedex; + +import android.content.Intent; +import android.os.Bundle; +import androidx.appcompat.app.AppCompatActivity; + +public class SplashActivity extends AppCompatActivity { + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + Intent intent = new Intent(this, MainActivity.class); + startActivity(intent); + finish(); + } +} diff --git a/pokedex/android/app/src/main/res/drawable/background_splash.xml b/pokedex/android/app/src/main/res/drawable/background_splash.xml new file mode 100644 index 000000000..feeef9c03 --- /dev/null +++ b/pokedex/android/app/src/main/res/drawable/background_splash.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/pokedex/android/app/src/main/res/layout/launch_screen.xml b/pokedex/android/app/src/main/res/layout/launch_screen.xml new file mode 100644 index 000000000..2f0b5966a --- /dev/null +++ b/pokedex/android/app/src/main/res/layout/launch_screen.xml @@ -0,0 +1,7 @@ + + + diff --git a/pokedex/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/pokedex/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 000000000..036d09bc5 --- /dev/null +++ b/pokedex/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/pokedex/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/pokedex/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 000000000..036d09bc5 --- /dev/null +++ b/pokedex/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/pokedex/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/pokedex/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..9d036854d Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/pokedex/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..dc398e111 Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/pokedex/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 000000000..b7693ec49 Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-hdpi/splash_icon.png b/pokedex/android/app/src/main/res/mipmap-hdpi/splash_icon.png new file mode 100644 index 000000000..89954123b Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-hdpi/splash_icon.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/pokedex/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..d29b19a3e Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/pokedex/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..a04ae7b77 Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/pokedex/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 000000000..a4685e29f Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-mdpi/splash_icon.png b/pokedex/android/app/src/main/res/mipmap-mdpi/splash_icon.png new file mode 100644 index 000000000..506ab7462 Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-mdpi/splash_icon.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/pokedex/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..bd42c2426 Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/pokedex/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..323b42a9f Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/pokedex/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 000000000..ab21afcfd Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-xhdpi/splash_icon.png b/pokedex/android/app/src/main/res/mipmap-xhdpi/splash_icon.png new file mode 100644 index 000000000..575930a92 Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-xhdpi/splash_icon.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/pokedex/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..a173b3abd Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/pokedex/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..f9035df6e Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/pokedex/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..680751a6e Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-xxhdpi/splash_icon.png b/pokedex/android/app/src/main/res/mipmap-xxhdpi/splash_icon.png new file mode 100644 index 000000000..575930a92 Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-xxhdpi/splash_icon.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/pokedex/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..12f3685aa Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/pokedex/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..895ed84a5 Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/pokedex/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..283fa6e4d Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/pokedex/android/app/src/main/res/mipmap-xxxhdpi/splash_icon.png b/pokedex/android/app/src/main/res/mipmap-xxxhdpi/splash_icon.png new file mode 100644 index 000000000..575930a92 Binary files /dev/null and b/pokedex/android/app/src/main/res/mipmap-xxxhdpi/splash_icon.png differ diff --git a/pokedex/android/app/src/main/res/values/colors.xml b/pokedex/android/app/src/main/res/values/colors.xml new file mode 100644 index 000000000..fc53e4a4f --- /dev/null +++ b/pokedex/android/app/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #ff9000 + #ff9000 + #FFB156 + diff --git a/pokedex/android/app/src/main/res/values/ic_launcher_background.xml b/pokedex/android/app/src/main/res/values/ic_launcher_background.xml new file mode 100644 index 000000000..c5d5899fd --- /dev/null +++ b/pokedex/android/app/src/main/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #FFFFFF + \ No newline at end of file diff --git a/pokedex/android/app/src/main/res/values/strings.xml b/pokedex/android/app/src/main/res/values/strings.xml new file mode 100644 index 000000000..6ce9587ed --- /dev/null +++ b/pokedex/android/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + Pokedex - RedFox + diff --git a/pokedex/android/app/src/main/res/values/styles.xml b/pokedex/android/app/src/main/res/values/styles.xml new file mode 100644 index 000000000..30964c46a --- /dev/null +++ b/pokedex/android/app/src/main/res/values/styles.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/pokedex/android/build.gradle b/pokedex/android/build.gradle new file mode 100644 index 000000000..ed5a56842 --- /dev/null +++ b/pokedex/android/build.gradle @@ -0,0 +1,37 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + ext { + buildToolsVersion = "29.0.2" + minSdkVersion = 16 + compileSdkVersion = 29 + targetSdkVersion = 29 + } + repositories { + google() + jcenter() + } + dependencies { + classpath("com.android.tools.build:gradle:3.5.3") + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +allprojects { + repositories { + mavenLocal() + maven { + // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm + url("$rootDir/../node_modules/react-native/android") + } + maven { + // Android JSC is installed from npm + url("$rootDir/../node_modules/jsc-android/dist") + } + + google() + jcenter() + maven { url 'https://www.jitpack.io' } + } +} diff --git a/pokedex/android/gradle.properties b/pokedex/android/gradle.properties new file mode 100644 index 000000000..04ca0ef29 --- /dev/null +++ b/pokedex/android/gradle.properties @@ -0,0 +1,28 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +# Default value: -Xmx10248m -XX:MaxPermSize=256m +# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true + +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Automatically convert third-party libraries to use AndroidX +android.enableJetifier=true + +# Version of flipper SDK to use with React Native +FLIPPER_VERSION=0.37.0 diff --git a/pokedex/android/gradle/wrapper/gradle-wrapper.jar b/pokedex/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 000000000..5c2d1cf01 Binary files /dev/null and b/pokedex/android/gradle/wrapper/gradle-wrapper.jar differ diff --git a/pokedex/android/gradle/wrapper/gradle-wrapper.properties b/pokedex/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..842267020 --- /dev/null +++ b/pokedex/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/pokedex/android/gradlew b/pokedex/android/gradlew new file mode 100644 index 000000000..2fe81a7d9 --- /dev/null +++ b/pokedex/android/gradlew @@ -0,0 +1,183 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/pokedex/android/gradlew.bat b/pokedex/android/gradlew.bat new file mode 100644 index 000000000..62bd9b9cc --- /dev/null +++ b/pokedex/android/gradlew.bat @@ -0,0 +1,103 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/pokedex/android/settings.gradle b/pokedex/android/settings.gradle new file mode 100644 index 000000000..95f645e00 --- /dev/null +++ b/pokedex/android/settings.gradle @@ -0,0 +1,3 @@ +rootProject.name = 'pokedex' +apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) +include ':app' diff --git a/pokedex/app.json b/pokedex/app.json new file mode 100644 index 000000000..9a8b78960 --- /dev/null +++ b/pokedex/app.json @@ -0,0 +1,4 @@ +{ + "name": "pokedex", + "displayName": "pokedex" +} diff --git a/pokedex/assets/fonts/Roboto-Bold.ttf b/pokedex/assets/fonts/Roboto-Bold.ttf new file mode 100644 index 000000000..d998cf5b4 Binary files /dev/null and b/pokedex/assets/fonts/Roboto-Bold.ttf differ diff --git a/pokedex/assets/fonts/Roboto-Medium.ttf b/pokedex/assets/fonts/Roboto-Medium.ttf new file mode 100644 index 000000000..f714a514d Binary files /dev/null and b/pokedex/assets/fonts/Roboto-Medium.ttf differ diff --git a/pokedex/assets/fonts/Roboto-Regular.ttf b/pokedex/assets/fonts/Roboto-Regular.ttf new file mode 100644 index 000000000..2b6392ffe Binary files /dev/null and b/pokedex/assets/fonts/Roboto-Regular.ttf differ diff --git a/pokedex/babel.config.js b/pokedex/babel.config.js new file mode 100644 index 000000000..f842b77fc --- /dev/null +++ b/pokedex/babel.config.js @@ -0,0 +1,3 @@ +module.exports = { + presets: ['module:metro-react-native-babel-preset'], +}; diff --git a/pokedex/index.js b/pokedex/index.js new file mode 100644 index 000000000..ef707c254 --- /dev/null +++ b/pokedex/index.js @@ -0,0 +1,5 @@ +import {AppRegistry} from 'react-native'; +import App from './src/App'; +import {name as appName} from './app.json'; + +AppRegistry.registerComponent(appName, () => App); diff --git a/pokedex/ios/Podfile b/pokedex/ios/Podfile new file mode 100644 index 000000000..bc908f008 --- /dev/null +++ b/pokedex/ios/Podfile @@ -0,0 +1,24 @@ +require_relative '../node_modules/react-native/scripts/react_native_pods' +require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' + +platform :ios, '10.0' + +target 'pokedex' do + config = use_native_modules! + + use_react_native!(:path => config["reactNativePath"]) + + target 'pokedexTests' do + inherit! :complete + # Pods for testing + end + + # Enables Flipper. + # + # Note that if you have use_frameworks! enabled, Flipper will not work and + # you should disable these next few lines. + use_flipper! + post_install do |installer| + flipper_post_install(installer) + end +end diff --git a/pokedex/ios/pokedex-tvOS/Info.plist b/pokedex/ios/pokedex-tvOS/Info.plist new file mode 100644 index 000000000..ecbd496be --- /dev/null +++ b/pokedex/ios/pokedex-tvOS/Info.plist @@ -0,0 +1,53 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + NSAppTransportSecurity + + NSExceptionDomains + + localhost + + NSExceptionAllowsInsecureHTTPLoads + + + + + NSLocationWhenInUseUsageDescription + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/pokedex/ios/pokedex-tvOSTests/Info.plist b/pokedex/ios/pokedex-tvOSTests/Info.plist new file mode 100644 index 000000000..886825ccc --- /dev/null +++ b/pokedex/ios/pokedex-tvOSTests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/pokedex/ios/pokedex/AppDelegate.h b/pokedex/ios/pokedex/AppDelegate.h new file mode 100644 index 000000000..ef1de86a2 --- /dev/null +++ b/pokedex/ios/pokedex/AppDelegate.h @@ -0,0 +1,8 @@ +#import +#import + +@interface AppDelegate : UIResponder + +@property (nonatomic, strong) UIWindow *window; + +@end diff --git a/pokedex/ios/pokedex/AppDelegate.m b/pokedex/ios/pokedex/AppDelegate.m new file mode 100644 index 000000000..eb30df5b8 --- /dev/null +++ b/pokedex/ios/pokedex/AppDelegate.m @@ -0,0 +1,68 @@ +#import "AppDelegate.h" + +#import +#import +#import + +#ifdef FB_SONARKIT_ENABLED +#import +#import +#import +#import +#import +#import + +static void InitializeFlipper(UIApplication *application) { + FlipperClient *client = [FlipperClient sharedClient]; + SKDescriptorMapper *layoutDescriptorMapper = + [[SKDescriptorMapper alloc] initWithDefaults]; + [client addPlugin:[[FlipperKitLayoutPlugin alloc] + initWithRootNode:application + withDescriptorMapper:layoutDescriptorMapper]]; + [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; + [client addPlugin:[FlipperKitReactPlugin new]]; + [client addPlugin:[[FlipperKitNetworkPlugin alloc] + initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; + [client start]; +} +#endif + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { +#ifdef FB_SONARKIT_ENABLED + InitializeFlipper(application); +#endif + + RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self + launchOptions:launchOptions]; + RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge + moduleName:@"pokedex" + initialProperties:nil]; + + rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f + green:1.0f + blue:1.0f + alpha:1]; + + self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; + UIViewController *rootViewController = [UIViewController new]; + rootViewController.view = rootView; + self.window.rootViewController = rootViewController; + [self.window makeKeyAndVisible]; + return YES; +} + +- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { +#ifdef FB_SONARKIT_ENABLED + return + [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" + fallbackResource:nil]; +#else + return [[NSBundle mainBundle] URLForResource:@"main" + withExtension:@"jsbundle"]; +#endif +} + +@end diff --git a/pokedex/ios/pokedex/Images.xcassets/AppIcon.appiconset/Contents.json b/pokedex/ios/pokedex/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..d3942e941 --- /dev/null +++ b/pokedex/ios/pokedex/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,38 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/pokedex/ios/pokedex/Images.xcassets/Contents.json b/pokedex/ios/pokedex/Images.xcassets/Contents.json new file mode 100644 index 000000000..2d92bd53f --- /dev/null +++ b/pokedex/ios/pokedex/Images.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/pokedex/ios/pokedex/Info.plist b/pokedex/ios/pokedex/Info.plist new file mode 100644 index 000000000..2b9ff6405 --- /dev/null +++ b/pokedex/ios/pokedex/Info.plist @@ -0,0 +1,65 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + pokedex + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + NSExceptionDomains + + localhost + + NSExceptionAllowsInsecureHTTPLoads + + + + + NSLocationWhenInUseUsageDescription + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + UIViewControllerBasedStatusBarAppearance + + UIAppFonts + + Roboto-Bold.ttf + Roboto-Medium.ttf + Roboto-Regular.ttf + Feather.ttf + Ionicons.ttf + MaterialCommunityIcons.ttf + MaterialIcons.ttf + + + diff --git a/pokedex/ios/pokedex/LaunchScreen.storyboard b/pokedex/ios/pokedex/LaunchScreen.storyboard new file mode 100644 index 000000000..75ee5a131 --- /dev/null +++ b/pokedex/ios/pokedex/LaunchScreen.storyboard @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pokedex/ios/pokedex/main.m b/pokedex/ios/pokedex/main.m new file mode 100644 index 000000000..b1df44b95 --- /dev/null +++ b/pokedex/ios/pokedex/main.m @@ -0,0 +1,9 @@ +#import + +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/pokedex/ios/pokedexTests/Info.plist b/pokedex/ios/pokedexTests/Info.plist new file mode 100644 index 000000000..ba72822e8 --- /dev/null +++ b/pokedex/ios/pokedexTests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/pokedex/ios/pokedexTests/pokedexTests.m b/pokedex/ios/pokedexTests/pokedexTests.m new file mode 100644 index 000000000..9eab35a79 --- /dev/null +++ b/pokedex/ios/pokedexTests/pokedexTests.m @@ -0,0 +1,65 @@ +#import +#import + +#import +#import + +#define TIMEOUT_SECONDS 600 +#define TEXT_TO_LOOK_FOR @"Welcome to React" + +@interface pokedexTests : XCTestCase + +@end + +@implementation pokedexTests + +- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test +{ + if (test(view)) { + return YES; + } + for (UIView *subview in [view subviews]) { + if ([self findSubviewInView:subview matching:test]) { + return YES; + } + } + return NO; +} + +- (void)testRendersWelcomeScreen +{ + UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; + NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; + BOOL foundElement = NO; + + __block NSString *redboxError = nil; +#ifdef DEBUG + RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { + if (level >= RCTLogLevelError) { + redboxError = message; + } + }); +#endif + + while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { + [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; + [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; + + foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { + if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { + return YES; + } + return NO; + }]; + } + +#ifdef DEBUG + RCTSetLogFunction(RCTDefaultLogFunction); +#endif + + XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); + XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); +} + + +@end diff --git a/pokedex/ios/pokedexxcodeproj/project.pbxproj b/pokedex/ios/pokedexxcodeproj/project.pbxproj new file mode 100644 index 000000000..c62042036 --- /dev/null +++ b/pokedex/ios/pokedexxcodeproj/project.pbxproj @@ -0,0 +1,1055 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 00E356F31AD99517003FC87E /* pokedexTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* pokedexTests.m */; }; + 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; + 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; + 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; + 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; + 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; + 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; + 2DCD954D1E0B4F2C00145EB5 /* pokedexTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* pokedexTests.m */; }; + 6DE1035BF7DE317FE9E328C2 /* libPods-pokedex.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B32E30124374EF66F22F144 /* libPods-pokedex.a */; }; + 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; + C5A2E9E15985BB9A5A338FCD /* libPods-pokedex-pokedexTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F36FD6641BD6D81442298FE /* libPods-pokedex-pokedexTests.a */; }; + D661D060C3F808F4D682CEBA /* libPods-pokedex-tvOSTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8010B05BCFEEF7B2DE0098FC /* libPods-pokedex-tvOSTests.a */; }; + D9D043758AFC733BDBB3991E /* libPods-pokedex-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4DC3286782267089D12A053B /* libPods-pokedex-tvOS.a */; }; + C120E60C56464BC2AF32BA44 /* Roboto-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 33CDC7C31C0F4624A942B9C6 /* Roboto-Bold.ttf */; }; + F4F92EDB8F124E6199D2E807 /* Roboto-Medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A8AFF0567FF94A678398829C /* Roboto-Medium.ttf */; }; + D30C02DB244945B7A6D7C6B6 /* Roboto-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F4EA4EDB1F2441F4B9BC2AF7 /* Roboto-Regular.ttf */; }; + 3FBB7718C1D64F69894195FE /* AntDesign.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7A13CC0445E949D791709D34 /* AntDesign.ttf */; }; + 6A119E0C463949E3A79173AA /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B3B0A89CD56C48049FB26751 /* Entypo.ttf */; }; + 61F4CE29B0BE4E36A88E887C /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8EDF8FBBBBB546EBA9C6FB63 /* EvilIcons.ttf */; }; + BB6CF99590D64587B5122EDA /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 637F7AB2DDF540039C39B680 /* Feather.ttf */; }; + 00633E19292E4BF3B5E29523 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B60EC89310EC44B1A15B3A79 /* FontAwesome.ttf */; }; + 2A570BDD825546FBBC94E2CB /* FontAwesome5_Brands.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B1954925AA084B87B9DBBB03 /* FontAwesome5_Brands.ttf */; }; + CDEB243DBB3D43EBB4BB6A89 /* FontAwesome5_Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B5E94A0D82CA4D7BA93277FE /* FontAwesome5_Regular.ttf */; }; + BB3F3A49617045B5976D85B2 /* FontAwesome5_Solid.ttf in Resources */ = {isa = PBXBuildFile; fileRef = BFFBC0CB711941EEB135B7A1 /* FontAwesome5_Solid.ttf */; }; + 37EB349D9E904911BFC08A50 /* Fontisto.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D2E4198D6140489583833375 /* Fontisto.ttf */; }; + 3C29AD9796524D87B48AC2B3 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D4A249A51CEC48A88BD89D08 /* Foundation.ttf */; }; + E9B75B76947F491A8A6966B2 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4F2D6993476442E1BE028478 /* Ionicons.ttf */; }; + 2F1F73A878304117B23E79AB /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 118D95226F634F44A859BFC4 /* MaterialCommunityIcons.ttf */; }; + A3238378236B4567AE2ABD14 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A5B342EB92F548629C6F0674 /* MaterialIcons.ttf */; }; + 27BFCE6489474803AEAF547C /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 27444F7B39E7412F9758AB46 /* Octicons.ttf */; }; + C495AC623BC84603B78DCB66 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 22151F37AD424A10B4838B05 /* SimpleLineIcons.ttf */; }; + 9BDC6328E969421A8BE2838B /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D708449E78A649D7B64D86C7 /* Zocial.ttf */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 13B07F861A680F5B00A75B9A; + remoteInfo = pokedex; + }; + 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; + remoteInfo = "pokedex-tvOS"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; + 00E356EE1AD99517003FC87E /* pokedexTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = pokedexTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 00E356F21AD99517003FC87E /* pokedexTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = pokedexTests.m; sourceTree = ""; }; + 0B32E30124374EF66F22F144 /* libPods-pokedex.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-pokedex.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 0F36FD6641BD6D81442298FE /* libPods-pokedex-pokedexTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-pokedex-pokedexTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 13B07F961A680F5B00A75B9A /* pokedex.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = pokedex.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = pokedex/AppDelegate.h; sourceTree = ""; }; + 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = pokedex/AppDelegate.m; sourceTree = ""; }; + 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = pokedex/Images.xcassets; sourceTree = ""; }; + 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = pokedex/Info.plist; sourceTree = ""; }; + 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = pokedex/main.m; sourceTree = ""; }; + 2D02E47B1E0B4A5D006451C7 /* pokedex-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "pokedex-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2D02E4901E0B4A5D006451C7 /* pokedex-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "pokedex-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2DAE40E563D5409120515C05 /* Pods-pokedex-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-pokedex-tvOS.debug.xcconfig"; path = "Target Support Files/Pods-pokedex-tvOS/Pods-pokedex-tvOS.debug.xcconfig"; sourceTree = ""; }; + 4DC3286782267089D12A053B /* libPods-pokedex-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-pokedex-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 8010B05BCFEEF7B2DE0098FC /* libPods-pokedex-tvOSTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-pokedex-tvOSTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = pokedex/LaunchScreen.storyboard; sourceTree = ""; }; + 920AE01196CF291853BA329C /* Pods-pokedex-pokedexTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-pokedex-pokedexTests.release.xcconfig"; path = "Target Support Files/Pods-pokedex-pokedexTests/Pods-pokedex-pokedexTests.release.xcconfig"; sourceTree = ""; }; + A4096936F8A21A29A78A2722 /* Pods-pokedex-tvOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-pokedex-tvOSTests.release.xcconfig"; path = "Target Support Files/Pods-pokedex-tvOSTests/Pods-pokedex-tvOSTests.release.xcconfig"; sourceTree = ""; }; + A73D6623F5213E78782B8867 /* Pods-pokedex.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-pokedex.release.xcconfig"; path = "Target Support Files/Pods-pokedex/Pods-pokedex.release.xcconfig"; sourceTree = ""; }; + BCCF69254288BC7566338DA6 /* Pods-pokedex-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-pokedex-tvOS.release.xcconfig"; path = "Target Support Files/Pods-pokedex-tvOS/Pods-pokedex-tvOS.release.xcconfig"; sourceTree = ""; }; + C08C308E478E4A49AB617A33 /* Pods-pokedex-tvOSTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-pokedex-tvOSTests.debug.xcconfig"; path = "Target Support Files/Pods-pokedex-tvOSTests/Pods-pokedex-tvOSTests.debug.xcconfig"; sourceTree = ""; }; + D5B2C53165757B8DB1E88994 /* Pods-pokedex-pokedexTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-pokedex-pokedexTests.debug.xcconfig"; path = "Target Support Files/Pods-pokedex-pokedexTests/Pods-pokedex-pokedexTests.debug.xcconfig"; sourceTree = ""; }; + ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; + ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; + F3E913972B31574447799D3B /* Pods-pokedex.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-pokedex.debug.xcconfig"; path = "Target Support Files/Pods-pokedex/Pods-pokedex.debug.xcconfig"; sourceTree = ""; }; + 33CDC7C31C0F4624A942B9C6 /* Roboto-Bold.ttf */ = {isa = PBXFileReference; name = "Roboto-Bold.ttf"; path = "../assets/fonts/Roboto-Bold.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + A8AFF0567FF94A678398829C /* Roboto-Medium.ttf */ = {isa = PBXFileReference; name = "Roboto-Medium.ttf"; path = "../assets/fonts/Roboto-Medium.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + F4EA4EDB1F2441F4B9BC2AF7 /* Roboto-Regular.ttf */ = {isa = PBXFileReference; name = "Roboto-Regular.ttf"; path = "../assets/fonts/Roboto-Regular.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + 7A13CC0445E949D791709D34 /* AntDesign.ttf */ = {isa = PBXFileReference; name = "AntDesign.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + B3B0A89CD56C48049FB26751 /* Entypo.ttf */ = {isa = PBXFileReference; name = "Entypo.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + 8EDF8FBBBBB546EBA9C6FB63 /* EvilIcons.ttf */ = {isa = PBXFileReference; name = "EvilIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + 637F7AB2DDF540039C39B680 /* Feather.ttf */ = {isa = PBXFileReference; name = "Feather.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Feather.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + B60EC89310EC44B1A15B3A79 /* FontAwesome.ttf */ = {isa = PBXFileReference; name = "FontAwesome.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + B1954925AA084B87B9DBBB03 /* FontAwesome5_Brands.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Brands.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + B5E94A0D82CA4D7BA93277FE /* FontAwesome5_Regular.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Regular.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + BFFBC0CB711941EEB135B7A1 /* FontAwesome5_Solid.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Solid.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + D2E4198D6140489583833375 /* Fontisto.ttf */ = {isa = PBXFileReference; name = "Fontisto.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + D4A249A51CEC48A88BD89D08 /* Foundation.ttf */ = {isa = PBXFileReference; name = "Foundation.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + 4F2D6993476442E1BE028478 /* Ionicons.ttf */ = {isa = PBXFileReference; name = "Ionicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + 118D95226F634F44A859BFC4 /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; name = "MaterialCommunityIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + A5B342EB92F548629C6F0674 /* MaterialIcons.ttf */ = {isa = PBXFileReference; name = "MaterialIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + 27444F7B39E7412F9758AB46 /* Octicons.ttf */ = {isa = PBXFileReference; name = "Octicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + 22151F37AD424A10B4838B05 /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; name = "SimpleLineIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; + D708449E78A649D7B64D86C7 /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 00E356EB1AD99517003FC87E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + C5A2E9E15985BB9A5A338FCD /* libPods-pokedex-pokedexTests.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 6DE1035BF7DE317FE9E328C2 /* libPods-pokedex.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + D9D043758AFC733BDBB3991E /* libPods-pokedex-tvOS.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + D661D060C3F808F4D682CEBA /* libPods-pokedex-tvOSTests.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 00E356EF1AD99517003FC87E /* pokedexTests */ = { + isa = PBXGroup; + children = ( + 00E356F21AD99517003FC87E /* pokedexTests.m */, + 00E356F01AD99517003FC87E /* Supporting Files */, + ); + path = pokedexTests; + sourceTree = ""; + }; + 00E356F01AD99517003FC87E /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 00E356F11AD99517003FC87E /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 13B07FAE1A68108700A75B9A /* pokedex */ = { + isa = PBXGroup; + children = ( + 008F07F21AC5B25A0029DE68 /* main.jsbundle */, + 13B07FAF1A68108700A75B9A /* AppDelegate.h */, + 13B07FB01A68108700A75B9A /* AppDelegate.m */, + 13B07FB51A68108700A75B9A /* Images.xcassets */, + 13B07FB61A68108700A75B9A /* Info.plist */, + 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, + 13B07FB71A68108700A75B9A /* main.m */, + ); + name = pokedex; + sourceTree = ""; + }; + 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { + isa = PBXGroup; + children = ( + ED297162215061F000B7C4FE /* JavaScriptCore.framework */, + ED2971642150620600B7C4FE /* JavaScriptCore.framework */, + 0B32E30124374EF66F22F144 /* libPods-pokedex.a */, + 0F36FD6641BD6D81442298FE /* libPods-pokedex-pokedexTests.a */, + 4DC3286782267089D12A053B /* libPods-pokedex-tvOS.a */, + 8010B05BCFEEF7B2DE0098FC /* libPods-pokedex-tvOSTests.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 832341AE1AAA6A7D00B99B32 /* Libraries */ = { + isa = PBXGroup; + children = ( + ); + name = Libraries; + sourceTree = ""; + }; + 83CBB9F61A601CBA00E9B192 = { + isa = PBXGroup; + children = ( + 13B07FAE1A68108700A75B9A /* pokedex */, + 832341AE1AAA6A7D00B99B32 /* Libraries */, + 00E356EF1AD99517003FC87E /* pokedexTests */, + 83CBBA001A601CBA00E9B192 /* Products */, + 2D16E6871FA4F8E400B85C8A /* Frameworks */, + 896751923113820FB4EA36BE /* Pods */, + 00731C0144F64E718646F6D1 /* Resources */, + ); + indentWidth = 2; + sourceTree = ""; + tabWidth = 2; + usesTabs = 0; + }; + 83CBBA001A601CBA00E9B192 /* Products */ = { + isa = PBXGroup; + children = ( + 13B07F961A680F5B00A75B9A /* pokedex.app */, + 00E356EE1AD99517003FC87E /* pokedexTests.xctest */, + 2D02E47B1E0B4A5D006451C7 /* pokedex-tvOS.app */, + 2D02E4901E0B4A5D006451C7 /* pokedex-tvOSTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 896751923113820FB4EA36BE /* Pods */ = { + isa = PBXGroup; + children = ( + F3E913972B31574447799D3B /* Pods-pokedex.debug.xcconfig */, + A73D6623F5213E78782B8867 /* Pods-pokedex.release.xcconfig */, + D5B2C53165757B8DB1E88994 /* Pods-pokedex-pokedexTests.debug.xcconfig */, + 920AE01196CF291853BA329C /* Pods-pokedex-pokedexTests.release.xcconfig */, + 2DAE40E563D5409120515C05 /* Pods-pokedex-tvOS.debug.xcconfig */, + BCCF69254288BC7566338DA6 /* Pods-pokedex-tvOS.release.xcconfig */, + C08C308E478E4A49AB617A33 /* Pods-pokedex-tvOSTests.debug.xcconfig */, + A4096936F8A21A29A78A2722 /* Pods-pokedex-tvOSTests.release.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; + 00731C0144F64E718646F6D1 /* Resources */ = { + isa = "PBXGroup"; + children = ( + 33CDC7C31C0F4624A942B9C6 /* Roboto-Bold.ttf */, + A8AFF0567FF94A678398829C /* Roboto-Medium.ttf */, + F4EA4EDB1F2441F4B9BC2AF7 /* Roboto-Regular.ttf */, + 7A13CC0445E949D791709D34 /* AntDesign.ttf */, + B3B0A89CD56C48049FB26751 /* Entypo.ttf */, + 8EDF8FBBBBB546EBA9C6FB63 /* EvilIcons.ttf */, + 637F7AB2DDF540039C39B680 /* Feather.ttf */, + B60EC89310EC44B1A15B3A79 /* FontAwesome.ttf */, + B1954925AA084B87B9DBBB03 /* FontAwesome5_Brands.ttf */, + B5E94A0D82CA4D7BA93277FE /* FontAwesome5_Regular.ttf */, + BFFBC0CB711941EEB135B7A1 /* FontAwesome5_Solid.ttf */, + D2E4198D6140489583833375 /* Fontisto.ttf */, + D4A249A51CEC48A88BD89D08 /* Foundation.ttf */, + 4F2D6993476442E1BE028478 /* Ionicons.ttf */, + 118D95226F634F44A859BFC4 /* MaterialCommunityIcons.ttf */, + A5B342EB92F548629C6F0674 /* MaterialIcons.ttf */, + 27444F7B39E7412F9758AB46 /* Octicons.ttf */, + 22151F37AD424A10B4838B05 /* SimpleLineIcons.ttf */, + D708449E78A649D7B64D86C7 /* Zocial.ttf */, + ); + name = Resources; + sourceTree = ""; + path = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 00E356ED1AD99517003FC87E /* pokedexTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "pokedexTests" */; + buildPhases = ( + 99B57772D4E3BBB71ECEB08D /* [CP] Check Pods Manifest.lock */, + 00E356EA1AD99517003FC87E /* Sources */, + 00E356EB1AD99517003FC87E /* Frameworks */, + 00E356EC1AD99517003FC87E /* Resources */, + 4DF74E02309D0674CD39F2F6 /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + 00E356F51AD99517003FC87E /* PBXTargetDependency */, + ); + name = pokedexTests; + productName = pokedexTests; + productReference = 00E356EE1AD99517003FC87E /* pokedexTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 13B07F861A680F5B00A75B9A /* pokedex */ = { + isa = PBXNativeTarget; + buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "pokedex" */; + buildPhases = ( + 0420A8CB575674623975BAD1 /* [CP] Check Pods Manifest.lock */, + FD10A7F022414F080027D42C /* Start Packager */, + 13B07F871A680F5B00A75B9A /* Sources */, + 13B07F8C1A680F5B00A75B9A /* Frameworks */, + 13B07F8E1A680F5B00A75B9A /* Resources */, + 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, + 7673B7292A47C1F4F6B8C9E4 /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = pokedex; + productName = pokedex; + productReference = 13B07F961A680F5B00A75B9A /* pokedex.app */; + productType = "com.apple.product-type.application"; + }; + 2D02E47A1E0B4A5D006451C7 /* pokedex-tvOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "pokedex-tvOS" */; + buildPhases = ( + CA2691919A07F07A150F36BC /* [CP] Check Pods Manifest.lock */, + FD10A7F122414F3F0027D42C /* Start Packager */, + 2D02E4771E0B4A5D006451C7 /* Sources */, + 2D02E4781E0B4A5D006451C7 /* Frameworks */, + 2D02E4791E0B4A5D006451C7 /* Resources */, + 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "pokedex-tvOS"; + productName = "pokedex-tvOS"; + productReference = 2D02E47B1E0B4A5D006451C7 /* pokedex-tvOS.app */; + productType = "com.apple.product-type.application"; + }; + 2D02E48F1E0B4A5D006451C7 /* pokedex-tvOSTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "pokedex-tvOSTests" */; + buildPhases = ( + 30F0657714A30065FBB70FBB /* [CP] Check Pods Manifest.lock */, + 2D02E48C1E0B4A5D006451C7 /* Sources */, + 2D02E48D1E0B4A5D006451C7 /* Frameworks */, + 2D02E48E1E0B4A5D006451C7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, + ); + name = "pokedex-tvOSTests"; + productName = "pokedex-tvOSTests"; + productReference = 2D02E4901E0B4A5D006451C7 /* pokedex-tvOSTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 83CBB9F71A601CBA00E9B192 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1130; + TargetAttributes = { + 00E356ED1AD99517003FC87E = { + CreatedOnToolsVersion = 6.2; + TestTargetID = 13B07F861A680F5B00A75B9A; + }; + 13B07F861A680F5B00A75B9A = { + LastSwiftMigration = 1120; + }; + 2D02E47A1E0B4A5D006451C7 = { + CreatedOnToolsVersion = 8.2.1; + ProvisioningStyle = Automatic; + }; + 2D02E48F1E0B4A5D006451C7 = { + CreatedOnToolsVersion = 8.2.1; + ProvisioningStyle = Automatic; + TestTargetID = 2D02E47A1E0B4A5D006451C7; + }; + }; + }; + buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "pokedex" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 83CBB9F61A601CBA00E9B192; + productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 13B07F861A680F5B00A75B9A /* pokedex */, + 00E356ED1AD99517003FC87E /* pokedexTests */, + 2D02E47A1E0B4A5D006451C7 /* pokedex-tvOS */, + 2D02E48F1E0B4A5D006451C7 /* pokedex-tvOSTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 00E356EC1AD99517003FC87E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 13B07F8E1A680F5B00A75B9A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, + 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, + C120E60C56464BC2AF32BA44 /* Roboto-Bold.ttf in Resources */, + F4F92EDB8F124E6199D2E807 /* Roboto-Medium.ttf in Resources */, + D30C02DB244945B7A6D7C6B6 /* Roboto-Regular.ttf in Resources */, + 3FBB7718C1D64F69894195FE /* AntDesign.ttf in Resources */, + 6A119E0C463949E3A79173AA /* Entypo.ttf in Resources */, + 61F4CE29B0BE4E36A88E887C /* EvilIcons.ttf in Resources */, + BB6CF99590D64587B5122EDA /* Feather.ttf in Resources */, + 00633E19292E4BF3B5E29523 /* FontAwesome.ttf in Resources */, + 2A570BDD825546FBBC94E2CB /* FontAwesome5_Brands.ttf in Resources */, + CDEB243DBB3D43EBB4BB6A89 /* FontAwesome5_Regular.ttf in Resources */, + BB3F3A49617045B5976D85B2 /* FontAwesome5_Solid.ttf in Resources */, + 37EB349D9E904911BFC08A50 /* Fontisto.ttf in Resources */, + 3C29AD9796524D87B48AC2B3 /* Foundation.ttf in Resources */, + E9B75B76947F491A8A6966B2 /* Ionicons.ttf in Resources */, + 2F1F73A878304117B23E79AB /* MaterialCommunityIcons.ttf in Resources */, + A3238378236B4567AE2ABD14 /* MaterialIcons.ttf in Resources */, + 27BFCE6489474803AEAF547C /* Octicons.ttf in Resources */, + C495AC623BC84603B78DCB66 /* SimpleLineIcons.ttf in Resources */, + 9BDC6328E969421A8BE2838B /* Zocial.ttf in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2D02E4791E0B4A5D006451C7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2D02E48E1E0B4A5D006451C7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Bundle React Native code and images"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; + }; + 0420A8CB575674623975BAD1 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-pokedex-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Bundle React Native Code And Images"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; + }; + 30F0657714A30065FBB70FBB /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-pokedex-tvOSTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 4DF74E02309D0674CD39F2F6 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-pokedex-pokedexTests/Pods-pokedex-pokedexTests-resources.sh", + "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-pokedex-pokedexTests/Pods-pokedex-pokedexTests-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 7673B7292A47C1F4F6B8C9E4 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-pokedex/Pods-pokedex-resources.sh", + "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-pokedex/Pods-pokedex-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 99B57772D4E3BBB71ECEB08D /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-pokedex-pokedexTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + CA2691919A07F07A150F36BC /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-pokedex-tvOS-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + FD10A7F022414F080027D42C /* Start Packager */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "Start Packager"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; + showEnvVarsInLog = 0; + }; + FD10A7F122414F3F0027D42C /* Start Packager */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "Start Packager"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 00E356EA1AD99517003FC87E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 00E356F31AD99517003FC87E /* pokedexTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 13B07F871A680F5B00A75B9A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, + 13B07FC11A68108700A75B9A /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2D02E4771E0B4A5D006451C7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, + 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2D02E48C1E0B4A5D006451C7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2DCD954D1E0B4F2C00145EB5 /* pokedexTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 13B07F861A680F5B00A75B9A /* pokedex */; + targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; + }; + 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 2D02E47A1E0B4A5D006451C7 /* pokedex-tvOS */; + targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 00E356F61AD99517003FC87E /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = D5B2C53165757B8DB1E88994 /* Pods-pokedex-pokedexTests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = pokedexTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + OTHER_LDFLAGS = ( + "-ObjC", + "-lc++", + "$(inherited)", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/pokedex.app/pokedex"; + }; + name = Debug; + }; + 00E356F71AD99517003FC87E /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 920AE01196CF291853BA329C /* Pods-pokedex-pokedexTests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + COPY_PHASE_STRIP = NO; + INFOPLIST_FILE = pokedexTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + OTHER_LDFLAGS = ( + "-ObjC", + "-lc++", + "$(inherited)", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/pokedex.app/pokedex"; + }; + name = Release; + }; + 13B07F941A680F5B00A75B9A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = F3E913972B31574447799D3B /* Pods-pokedex.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = 1; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = pokedex/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = pokedex; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 13B07F951A680F5B00A75B9A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A73D6623F5213E78782B8867 /* Pods-pokedex.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = 1; + INFOPLIST_FILE = pokedex/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = pokedex; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; + 2D02E4971E0B4A5E006451C7 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2DAE40E563D5409120515C05 /* Pods-pokedex-tvOS.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CLANG_ANALYZER_NONNULL = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_TESTABILITY = YES; + GCC_NO_COMMON_BLOCKS = YES; + INFOPLIST_FILE = "pokedex-tvOS/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.pokedex-tvOS"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 10.0; + }; + name = Debug; + }; + 2D02E4981E0B4A5E006451C7 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = BCCF69254288BC7566338DA6 /* Pods-pokedex-tvOS.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + CLANG_ANALYZER_NONNULL = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_NO_COMMON_BLOCKS = YES; + INFOPLIST_FILE = "pokedex-tvOS/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.pokedex-tvOS"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 10.0; + }; + name = Release; + }; + 2D02E4991E0B4A5E006451C7 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = C08C308E478E4A49AB617A33 /* Pods-pokedex-tvOSTests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ANALYZER_NONNULL = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_TESTABILITY = YES; + GCC_NO_COMMON_BLOCKS = YES; + INFOPLIST_FILE = "pokedex-tvOSTests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.pokedex-tvOSTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/pokedex-tvOS.app/pokedex-tvOS"; + TVOS_DEPLOYMENT_TARGET = 10.1; + }; + name = Debug; + }; + 2D02E49A1E0B4A5E006451C7 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A4096936F8A21A29A78A2722 /* Pods-pokedex-tvOSTests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ANALYZER_NONNULL = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_NO_COMMON_BLOCKS = YES; + INFOPLIST_FILE = "pokedex-tvOSTests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.pokedex-tvOSTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/pokedex-tvOS.app/pokedex-tvOS"; + TVOS_DEPLOYMENT_TARGET = 10.1; + }; + name = Release; + }; + 83CBBA201A601CBA00E9B192 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; + LIBRARY_SEARCH_PATHS = ( + "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", + "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", + "\"$(inherited)\"", + ); + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 83CBBA211A601CBA00E9B192 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; + LIBRARY_SEARCH_PATHS = ( + "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", + "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", + "\"$(inherited)\"", + ); + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "pokedexTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 00E356F61AD99517003FC87E /* Debug */, + 00E356F71AD99517003FC87E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "pokedex" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 13B07F941A680F5B00A75B9A /* Debug */, + 13B07F951A680F5B00A75B9A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "pokedex-tvOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2D02E4971E0B4A5E006451C7 /* Debug */, + 2D02E4981E0B4A5E006451C7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "pokedex-tvOSTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2D02E4991E0B4A5E006451C7 /* Debug */, + 2D02E49A1E0B4A5E006451C7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "pokedex" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 83CBBA201A601CBA00E9B192 /* Debug */, + 83CBBA211A601CBA00E9B192 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; +} diff --git a/pokedex/ios/pokedexxcodeproj/xcshareddata/xcschemes/pokedex-tvOS.xcscheme b/pokedex/ios/pokedexxcodeproj/xcshareddata/xcschemes/pokedex-tvOS.xcscheme new file mode 100644 index 000000000..beef4ba69 --- /dev/null +++ b/pokedex/ios/pokedexxcodeproj/xcshareddata/xcschemes/pokedex-tvOS.xcscheme @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pokedex/ios/pokedexxcodeproj/xcshareddata/xcschemes/pokedex.xcscheme b/pokedex/ios/pokedexxcodeproj/xcshareddata/xcschemes/pokedex.xcscheme new file mode 100644 index 000000000..b485f5e8d --- /dev/null +++ b/pokedex/ios/pokedexxcodeproj/xcshareddata/xcschemes/pokedex.xcscheme @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pokedex/jest.setup.js b/pokedex/jest.setup.js new file mode 100644 index 000000000..b4ca07c53 --- /dev/null +++ b/pokedex/jest.setup.js @@ -0,0 +1,3 @@ +import mockAsyncStorage from '@react-native-community/async-storage/jest/async-storage-mock'; + +jest.mock('@react-native-community/async-storage', () => mockAsyncStorage); diff --git a/pokedex/metro.config.js b/pokedex/metro.config.js new file mode 100644 index 000000000..13a964217 --- /dev/null +++ b/pokedex/metro.config.js @@ -0,0 +1,17 @@ +/** + * Metro configuration for React Native + * https://github.com/facebook/react-native + * + * @format + */ + +module.exports = { + transformer: { + getTransformOptions: async () => ({ + transform: { + experimentalImportSupport: false, + inlineRequires: false, + }, + }), + }, +}; diff --git a/pokedex/package.json b/pokedex/package.json new file mode 100644 index 000000000..9df9e3101 --- /dev/null +++ b/pokedex/package.json @@ -0,0 +1,89 @@ +{ + "name": "pokedex", + "version": "0.0.1", + "private": true, + "scripts": { + "android": "react-native run-android", + "ios": "react-native run-ios", + "start": "react-native start", + "test": "jest --watchAll false", + "lint": "eslint . --ext .js,.jsx,.ts,.tsx", + "postinstall": "yarn run infinite-flatlist-patch", + "postuninstall": "yarn run infinite-flatlist-patch" + }, + "dependencies": { + "@react-native-community/async-storage": "^1.11.0", + "@react-native-community/masked-view": "^0.1.10", + "@react-navigation/bottom-tabs": "^5.9.0", + "@react-navigation/native": "^5.7.0", + "@react-navigation/stack": "^5.7.0", + "axios": "^0.19.2", + "axios-mock-adapter": "^1.18.1", + "react": "16.13.1", + "react-native": "^0.63.2", + "react-native-autocomplete-input": "^4.2.0", + "react-native-gesture-handler": "^1.6.1", + "react-native-reanimated": "^1.9.0", + "react-native-safe-area-context": "^3.1.1", + "react-native-screens": "^2.9.0", + "react-native-splash-screen": "^3.2.0", + "react-native-vector-icons": "^7.0.0", + "styled-components": "^5.1.1" + }, + "devDependencies": { + "@babel/core": "^7.8.4", + "@babel/runtime": "^7.8.4", + "@react-native-community/eslint-config": "^1.1.0", + "@testing-library/jest-native": "^3.1.0", + "@testing-library/react-hooks": "^3.3.0", + "@types/jest": "^25.2.3", + "@types/react-native": "^0.63.2", + "@types/react-native-autocomplete-input": "^4.0.1", + "@types/react-native-vector-icons": "^6.4.5", + "@types/react-test-renderer": "^16.9.2", + "@types/styled-components": "^5.1.1", + "@typescript-eslint/eslint-plugin": "^4.2.0", + "@typescript-eslint/parser": "^4.2.0", + "babel-jest": "^25.1.0", + "eslint": "^7.9.0", + "eslint-config-airbnb": "^18.2.0", + "eslint-config-prettier": "^6.11.0", + "eslint-import-resolver-typescript": "^2.3.0", + "eslint-plugin-import": "^2.21.2", + "eslint-plugin-jsx-a11y": "^6.3.1", + "eslint-plugin-prettier": "^3.1.4", + "eslint-plugin-react": "^7.20.0", + "eslint-plugin-react-hooks": "^4", + "jest": "^25.1.0", + "metro-react-native-babel-preset": "^0.59.0", + "prettier": "^2.1.2", + "react-native-infinite-flatlist-patch": "^1.0.7", + "react-native-testing-library": "^2.1.0", + "react-test-renderer": "16.13.1", + "typescript": "^3.8.3" + }, + "jest": { + "preset": "react-native", + "setupFiles": [ + "./jest.setup.js", + "./node_modules/react-native-gesture-handler/jestSetup.js" + ], + "setupFilesAfterEnv": [ + "@testing-library/jest-native/extend-expect" + ], + "collectCoverageFrom": [ + "src/pages/**/*.tsx", + "src/components/**/*.tsx", + "src/hooks/*.tsx", + "!src/hooks/index.tsx" + ], + "moduleFileExtensions": [ + "ts", + "tsx", + "js", + "jsx", + "json", + "node" + ] + } +} diff --git a/pokedex/prettier.config.js b/pokedex/prettier.config.js new file mode 100644 index 000000000..bd6da79c4 --- /dev/null +++ b/pokedex/prettier.config.js @@ -0,0 +1,4 @@ +module.exports = { + singleQuote: true, + trailingComma: 'all', +} \ No newline at end of file diff --git a/pokedex/react-native.config.js b/pokedex/react-native.config.js new file mode 100644 index 000000000..ff09851c3 --- /dev/null +++ b/pokedex/react-native.config.js @@ -0,0 +1,9 @@ +module.exports = { + project: { + ios: {}, + android: {}, + }, + assets: [ + './assets/fonts/' + ], +}; diff --git a/pokedex/src/@types/index.d.ts b/pokedex/src/@types/index.d.ts new file mode 100644 index 000000000..e2937d470 --- /dev/null +++ b/pokedex/src/@types/index.d.ts @@ -0,0 +1 @@ +declare module '*.png'; diff --git a/pokedex/src/App.tsx b/pokedex/src/App.tsx new file mode 100644 index 000000000..8f30145e3 --- /dev/null +++ b/pokedex/src/App.tsx @@ -0,0 +1,32 @@ +import 'react-native-gesture-handler'; + +import React, { useEffect } from 'react'; +import { SafeAreaView, StatusBar } from 'react-native'; +import { NavigationContainer } from '@react-navigation/native'; +import SplashScreen from 'react-native-splash-screen'; + +import AppProvider from './hooks'; +import AppRoutes from './routes/app.routes'; +import colors from './global/styles/colors'; + +const App: React.FC = () => { + useEffect(() => { + SplashScreen.hide(); + }, []); + + return ( + + + + + + + + + ); +}; + +export default App; diff --git a/pokedex/src/assets/images/ash.png b/pokedex/src/assets/images/ash.png new file mode 100644 index 000000000..81bc2fed0 Binary files /dev/null and b/pokedex/src/assets/images/ash.png differ diff --git a/pokedex/src/assets/images/pokeball.png b/pokedex/src/assets/images/pokeball.png new file mode 100644 index 000000000..ae4a22519 Binary files /dev/null and b/pokedex/src/assets/images/pokeball.png differ diff --git a/pokedex/src/assets/images/pokedex.png b/pokedex/src/assets/images/pokedex.png new file mode 100644 index 000000000..1630b8a3f Binary files /dev/null and b/pokedex/src/assets/images/pokedex.png differ diff --git a/pokedex/src/assets/images/redfox.png b/pokedex/src/assets/images/redfox.png new file mode 100644 index 000000000..e76d2a8a2 Binary files /dev/null and b/pokedex/src/assets/images/redfox.png differ diff --git a/pokedex/src/components/Button/index.tsx b/pokedex/src/components/Button/index.tsx new file mode 100644 index 000000000..86b0ccfbc --- /dev/null +++ b/pokedex/src/components/Button/index.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import { StyleProp, ViewStyle } from 'react-native'; +import { RectButtonProperties } from 'react-native-gesture-handler'; + +import { Container, ButtonText } from './styles'; + +interface ButtonProps extends RectButtonProperties { + title: string; + loading?: boolean; + style: StyleProp; +} + +const Button: React.FC = ({ title, loading, style, ...rest }) => ( + + {loading ? ( + Carregando... + ) : ( + {title} + )} + +); + +export default Button; diff --git a/pokedex/src/components/Button/styles.ts b/pokedex/src/components/Button/styles.ts new file mode 100644 index 000000000..927e5683f --- /dev/null +++ b/pokedex/src/components/Button/styles.ts @@ -0,0 +1,20 @@ +import styled from 'styled-components/native'; +import { RectButton } from 'react-native-gesture-handler'; +import colors from '../../global/styles/colors'; + +export const Container = styled(RectButton)` + height: 56px; + background: ${colors.successVariant}; + border-radius: 8px; + margin-top: 8px; + + justify-content: center; + align-items: center; + align-self: stretch; +`; + +export const ButtonText = styled.Text` + font-size: 16px; + font-family: 'Roboto-Medium'; + color: #fff; +`; diff --git a/pokedex/src/components/Input/index.tsx b/pokedex/src/components/Input/index.tsx new file mode 100644 index 000000000..3d84601fe --- /dev/null +++ b/pokedex/src/components/Input/index.tsx @@ -0,0 +1,33 @@ +import React from 'react'; +import { TextInputProps } from 'react-native'; +import { TouchableWithoutFeedback } from 'react-native-gesture-handler'; +import MaterialIcon from 'react-native-vector-icons/MaterialIcons'; +import colors from '../../global/styles/colors'; + +import { Container, InputField, Label, TextInput } from './styles'; + +interface IInputProps extends TextInputProps { + label: string; + clearField(): void; +} + +const Input: React.FC = ({ + label, + clearField, + style, + ...rest +}) => { + return ( + + + + + + + + + + + ); +}; +export default Input; diff --git a/pokedex/src/components/Input/styles.ts b/pokedex/src/components/Input/styles.ts new file mode 100644 index 000000000..f62554cc0 --- /dev/null +++ b/pokedex/src/components/Input/styles.ts @@ -0,0 +1,34 @@ +import styled from 'styled-components/native'; +import MaterialIcon from 'react-native-vector-icons/MaterialIcons'; +import fonts from '../../global/styles/fonts'; +import colors from '../../global/styles/colors'; + +export const Container = styled.View` + width: 48%; +`; + +export const InputField = styled.View` + height: 56px; + padding: 0 12px; + background: #fff; + border-radius: 8px; + + flex-direction: row; + align-items: center; +`; +export const Label = styled.Text` + color: #fff; + font-family: ${fonts.Regular}; + margin: 0 0 4px 4px; +`; + +export const TextInput = styled.TextInput` + flex: 1; + color: ${colors.primary}; + font-size: 16px; + font-family: ${fonts.Regular}; +`; + +export const Icon = styled(MaterialIcon)` + margin-right: 16px; +`; diff --git a/pokedex/src/components/LocationsModal/index.tsx b/pokedex/src/components/LocationsModal/index.tsx new file mode 100644 index 000000000..63e87bc7f --- /dev/null +++ b/pokedex/src/components/LocationsModal/index.tsx @@ -0,0 +1,75 @@ +import React, { useCallback } from 'react'; +import { FlatList, Modal, ModalBaseProps } from 'react-native'; +import MaterialIcon from 'react-native-vector-icons/MaterialIcons'; +import { PokemonDetailedProps } from 'src/pages/Details'; +import colors from '../../global/styles/colors'; + +import { + Container, + Content, + ExitButton, + Avatar, + Name, + Divider, + LocationsLabel, + Location, + EmptyText, +} from './styles'; + +interface LocationsModalProps extends ModalBaseProps { + pokemon: PokemonDetailedProps; + locations: Array; + closeModal(): void; +} + +const LocationsModal: React.FC = ({ + pokemon, + locations, + closeModal, + ...rest +}) => { + const handleExit = useCallback(() => { + closeModal(); + }, [closeModal]); + + return ( + + + + + + + + {pokemon.avatar && ( + + )} + + {pokemon.name} + + + + Locais onde pode ser encontrado: + {(locations.length > 0 && ( + item} + renderItem={({ item }) => {item}} + /> + )) || ( + + Oops... Nenhuma localização específica conhecida. + + )} + + + + ); +}; + +export default LocationsModal; diff --git a/pokedex/src/components/LocationsModal/styles.ts b/pokedex/src/components/LocationsModal/styles.ts new file mode 100644 index 000000000..0ddfe8156 --- /dev/null +++ b/pokedex/src/components/LocationsModal/styles.ts @@ -0,0 +1,78 @@ +import styled from 'styled-components/native'; +import colors from '../../global/styles/colors'; +import fonts from '../../global/styles/fonts'; + +export const Container = styled.View` + background: rgba(0, 0, 0, 0.3); + + flex: 1; + align-items: center; + justify-content: center; + + padding: 16px; +`; + +export const Content = styled.View` + flex: 1; + align-self: stretch; + background: #fff; + border-radius: 8px; + + padding: 32px 16px; +`; + +export const ExitButton = styled.TouchableOpacity` + width: 32px; + height: 32px; + border-radius: 8px; + align-self: flex-end; + margin-top: -16px; + + justify-content: center; + align-items: center; +`; + +export const Avatar = styled.Image` + width: 180px; + height: 180px; + align-self: center; +`; + +export const Name = styled.Text` + font-family: ${fonts.Bold}; + color: #32264d; + font-size: 24px; + text-transform: capitalize; +`; + +export const Divider = styled.View` + border-bottom-width: 0.5px; + border-bottom-color: #6a6180; + margin-top: 8px; +`; + +export const LocationsLabel = styled.Text` + font-family: ${fonts.Medium}; + color: #6a6180; + font-size: 16px; + margin-top: 16px; + margin-bottom: 8px; +`; + +export const Location = styled.Text` + font-family: ${fonts.Regular}; + color: #6a6180; + font-size: 16px; + margin: 4px 2px 0px 2px; + border: 0.5px; + border-radius: 8px; + padding: 4px; + border-color: #6a6180; +`; + +export const EmptyText = styled.Text` + font-family: ${fonts.Medium}; + font-size: 16px; + color: ${colors.primaryVariant}; + text-align: center; +`; diff --git a/pokedex/src/components/PageHeader/index.tsx b/pokedex/src/components/PageHeader/index.tsx new file mode 100644 index 000000000..440250602 --- /dev/null +++ b/pokedex/src/components/PageHeader/index.tsx @@ -0,0 +1,278 @@ +import React, { + forwardRef, + useCallback, + useImperativeHandle, + useRef, + useState, +} from 'react'; +import MaterialIcon from 'react-native-vector-icons/MaterialIcons'; +import FeatherIcon from 'react-native-vector-icons/Feather'; + +import { ActivityIndicator, Keyboard } from 'react-native'; +import { usePokemons } from '../../hooks/pokemons'; +import logoImg from '../../assets/images/pokeball.png'; +import colors from '../../global/styles/colors'; + +import Button from '../Button'; +import { SelectRef } from '../Select'; + +import { + Container, + TobBar, + BackButton, + LogoImage, + BottomBar, + Title, + HeaderRight, + FiltersButtonContainer, + ListOrderGroup, + ListOrderLabel, + DefaultOrderButton, + NameOrderButton, + FiltersButton, + CleanFiltersContainer, + CleanFilterButtonText, + FilterButtonText, + SearchForm, + InputGroup, + TypeSelect, + NameSelect, +} from './styles'; + +export interface FilterOptions { + typeFilter: string | undefined; + nameFilter: string | undefined; +} + +interface PageHeaderProps { + title: string; + loading?: boolean; + hasFilter?: boolean; + clearFilters?(): void; + filtersSubmit?(filter: FilterOptions): void; + onPressLeftButton(): void; + onSelectOrder?(defaultOrder: boolean): void; +} + +export interface PageHeaderRef { + clear(): void; +} + +const PageHeader: React.ForwardRefRenderFunction< + PageHeaderRef, + PageHeaderProps +> = ( + { + title, + loading = false, + hasFilter = true, + clearFilters = () => {}, //eslint-disable-line + filtersSubmit = () => {}, //eslint-disable-line + onSelectOrder = () => {}, //eslint-disable-line + onPressLeftButton, + }, + ref, +) => { + const typeSelectRef = useRef(null); + const nameSelectRef = useRef(null); + + const { types, names } = usePokemons(); + + const [filtersVisible, setFiltersVisible] = useState(false); + const [clearFiltersVisible, setClearFiltersVisible] = useState(false); + const [typeFilter, setTypeFilter] = useState(undefined); + const [nameFilter, setNameFilter] = useState(undefined); + const [listDefaultOrder, setListDefaultOrder] = useState(true); + + useImperativeHandle(ref, () => ({ + clear() { + handleClearFilters(); + }, + })); + + const handleToggleFiltersVisible = useCallback(async () => { + setFiltersVisible((prevState) => !prevState); + }, []); + + const handleTypeFilterChange = useCallback((value: string) => { + setNameFilter(undefined); + + nameSelectRef.current?.clear(); + setTypeFilter(value); + }, []); + + const handleNameFilterChange = useCallback((value: string) => { + setTypeFilter(undefined); + + typeSelectRef.current?.clear(); + setNameFilter(value); + }, []); + + const handleClearFilters = useCallback(() => { + setClearFiltersVisible(false); + setListDefaultOrder(true); + + clearFilters(); + + setTypeFilter(undefined); + setNameFilter(undefined); + }, [clearFilters]); + + const handleClearTypeFilter = useCallback(() => { + if (clearFiltersVisible) { + setClearFiltersVisible(false); + setListDefaultOrder(true); + clearFilters(); + } + + setTypeFilter(undefined); + }, [clearFiltersVisible, clearFilters]); + + const handleClearNameFilter = useCallback(() => { + if (clearFiltersVisible) { + setClearFiltersVisible(false); + setListDefaultOrder(true); + clearFilters(); + } + + setNameFilter(undefined); + }, [clearFiltersVisible, clearFilters]); + + const handleFiltersSubmit = useCallback(() => { + if (typeFilter || nameFilter) { + handleToggleFiltersVisible(); + setClearFiltersVisible(true); + setListDefaultOrder(true); + } + + Keyboard.dismiss(); + + filtersSubmit({ typeFilter, nameFilter }); + }, [filtersSubmit, handleToggleFiltersVisible, nameFilter, typeFilter]); + + const handleSelectOrder = useCallback( + (defaultOrder: boolean) => { + handleToggleFiltersVisible(); + setListDefaultOrder(defaultOrder); + + onSelectOrder(defaultOrder); + }, + [handleToggleFiltersVisible, onSelectOrder], + ); + + return ( + + + + + + + + + {title} + + {hasFilter && ( + + + + {(!loading && ( + <> + Filtrar + + + )) || ( + + )} + + + + {clearFiltersVisible && ( + + + limpar filtros + + + + )} + + )} + + + {filtersVisible && ( + + + + + + + {clearFiltersVisible && ( + + handleSelectOrder(true)} + > + ordem padrão + + + + handleSelectOrder(false)} + > + + ordem alfabética + + + )} + +