├── .buckconfig ├── .editorconfig ├── .env.example ├── .eslintrc.js ├── .eslintrc.json ├── .flowconfig ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── LICENSE ├── README.md ├── __tests__ └── App-test.js ├── android ├── .project ├── .settings │ └── org.eclipse.buildship.core.prefs ├── app │ ├── BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── debug.keystore │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── openweather │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── local.properties.example └── settings.gradle ├── app.json ├── babel.config.js ├── index.js ├── ios ├── OpenWeather-tvOS │ └── Info.plist ├── OpenWeather-tvOSTests │ └── Info.plist ├── OpenWeather.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── OpenWeather-tvOS.xcscheme │ │ └── OpenWeather.xcscheme ├── OpenWeather.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── OpenWeather │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── main.m ├── OpenWeatherTests │ ├── Info.plist │ └── OpenWeatherTests.m ├── Podfile └── Podfile.lock ├── jsconfig.json ├── metro.config.js ├── package-lock.json ├── package.json ├── readme ├── bookmark_detail.png ├── bookmarked_location.png ├── bookmarked_showing.png ├── logo.png └── map_view.png ├── src ├── assets │ └── lottie-animations │ │ └── sunny.json ├── components │ └── ForecastDetails │ │ ├── index.js │ │ └── styles.js ├── config │ └── ReactotronConfig.js ├── index.js ├── pages │ └── Main │ │ └── index.js ├── routes.js └── services │ └── api.js └── yarn.lock /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | OPEN_WEATHER_MAP_APP_ID= 2 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint", 3 | "env": { 4 | "es6": true, 5 | "jest": true 6 | }, 7 | "extends": ["airbnb", "plugin:react-native/all"], 8 | "globals": { 9 | "Atomics": "readonly", 10 | "SharedArrayBuffer": "readonly", 11 | "__DEV__": true 12 | }, 13 | "parserOptions": { 14 | "ecmaFeatures": { 15 | "jsx": true 16 | }, 17 | "ecmaVersion": 2018, 18 | "sourceType": "module" 19 | }, 20 | "plugins": ["react", "react-native", "jsx-a11y", "import"], 21 | "rules": { 22 | "react/jsx-filename-extension": [ 23 | "error", 24 | { "extensions": [".js", ".jsx"] } 25 | ], 26 | "import/prefer-default-export": "off", 27 | "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], 28 | "react/jsx-one-expression-per-line": "off", 29 | "react-native/no-color-literals": "off", 30 | "react-native/sort-styles": "off", 31 | "global-require": "off", 32 | "react-native/no-raw-text": "off" 33 | }, 34 | "settings": { 35 | "import/resolver": { 36 | "babel-plugin-root-import": { "rootPathSuffix": "src" } 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore polyfills 9 | node_modules/react-native/Libraries/polyfills/.* 10 | 11 | ; These should not be required directly 12 | ; require from fbjs/lib instead: require('fbjs/lib/warning') 13 | node_modules/warning/.* 14 | 15 | ; Flow doesn't support platforms 16 | .*/Libraries/Utilities/LoadingView.js 17 | 18 | [untyped] 19 | .*/node_modules/@react-native-community/cli/.*/.* 20 | 21 | [include] 22 | 23 | [libs] 24 | node_modules/react-native/Libraries/react-native/react-native-interface.js 25 | node_modules/react-native/flow/ 26 | 27 | [options] 28 | emoji=true 29 | 30 | esproposal.optional_chaining=enable 31 | esproposal.nullish_coalescing=enable 32 | 33 | module.file_ext=.js 34 | module.file_ext=.json 35 | module.file_ext=.ios.js 36 | 37 | munge_underscores=true 38 | 39 | module.name_mapper='^react-native$' -> '/node_modules/react-native/Libraries/react-native/react-native-implementation' 40 | module.name_mapper='^react-native/\(.*\)$' -> '/node_modules/react-native/\1' 41 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' 42 | 43 | suppress_type=$FlowIssue 44 | suppress_type=$FlowFixMe 45 | suppress_type=$FlowFixMeProps 46 | suppress_type=$FlowFixMeState 47 | 48 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\) 49 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+ 50 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 51 | 52 | [lints] 53 | sketchy-null-number=warn 54 | sketchy-null-mixed=warn 55 | sketchy-number=warn 56 | untyped-type-import=warn 57 | nonstrict-import=warn 58 | deprecated-type=warn 59 | unsafe-getters-setters=warn 60 | inexact-spread=warn 61 | unnecessary-invariant=warn 62 | signature-verification-failure=warn 63 | deprecated-utility=error 64 | 65 | [strict] 66 | deprecated-type 67 | nonstrict-import 68 | sketchy-null 69 | unclear-type 70 | unsafe-getters-setters 71 | untyped-import 72 | untyped-type-import 73 | 74 | [version] 75 | ^0.105.0 76 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | # 2 | 3 | ## Labels 4 | 5 | 11 | 12 | --- 13 | 14 | ## About 15 | 16 | 17 | 18 | --- 19 | 20 | ## User Story 21 | 22 | 27 | 28 | --- 29 | 30 | ## Discussion 31 | 32 | 33 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | # 2 | 3 | ## Goal 4 | 5 | 6 | 7 | ## Changeset 8 | 9 | 14 | 15 | ## Tests 16 | 17 | 21 | 22 | ## Discussion 23 | 24 | 25 | 26 | 29 | 30 | ## Review 31 | 32 | 47 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | 61 | # Environment 62 | .env 63 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | endOfLine: 'auto' 7 | }; 8 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Lucas Montano 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 | Open Weather Logo 4 | 5 |

6 | 7 |

8 | React Native OpenWeather App 9 |

10 | 11 |

OpenWeather is a project created by Lucas Montano initially as an One-Day-Challange, then he decided to create an Open Source project to help his followers and everyone getting started with Open Source world building a basic but very strategic application!

12 | 13 |

14 | 15 | Made by Lucas Montano 16 | 17 | 18 | Last Commit 19 | 20 | Contributors 21 | 22 | License 23 |

24 | 25 |

26 | 27 | 28 | 29 | 30 |

31 | 32 | --- 33 | 34 | ## Table of Contents 35 | 36 | 44 | 45 | --- 46 | 47 | ## 🚀 Getting Started 48 | 49 | ### Prerequisites 50 | 51 | - To run any React Native application you need to configure the environment on your machine. 52 | 53 | - Setting the environment is a complex process, so it's recommended to follow the Rocketseat guide which is currently the most complete and detailed to make the settings: 54 | 55 | #### [**Rocketseat Guide**](https://react-native.rocketseat.dev/) 56 | 57 | ### Clone 58 | 59 | - Clone this repo to your local machine using: 60 | 61 | ``` 62 | https://github.com/lucasmontano/openweathermap-reactnative 63 | ``` 64 | 65 | ### Setup 66 | 67 | #### Android 68 | 69 | - Configure the Google Maps API Key, follow the instructions in: https://developers.google.com/maps/documentation/android-sdk/get-api-key to generate a new api key. 70 | - Rename the file 'android/local.properties.example' to 'android/local.properties' and change the string with your api key. 71 | 72 | - `$ react-native run-android` 73 | 74 | #### iOS - _MAC Only_ 75 | 76 | - `cd ios && pod install && cd ..` 77 | 78 | - `react-native run-ios` 79 | 80 | --- 81 | 82 | ## 📋 Features 83 | 84 | ### Documentation 85 | 86 | - [ ] Explore the Earth Weather forecast (Real Time) 87 | - [ ] Check detailed information about the weather by coordinates (lat, lon) 88 | - [ ] Bookmark a location 89 | - [ ] Visualize all bookmarked locations in the map 90 | - [ ] Remove a bookmark 91 | - [ ] Data Cache 92 | - [ ] Theme Switcher (Light/Dark Mode) 93 | - [ ] One way data flow (implement a state reducer) 94 | - [ ] Unique source of truth, implementing a centralized repository 95 | - [ ] Search functionality 96 | - [ ] Five+ days forecast 97 | - [ ] Write some tests (of course) 98 | 99 | ### Build with 100 | 101 | - Core 102 | - [React Native](https://reactnative.dev/) - A framework for building native apps with React 103 | - Navigation 104 | - [React Navigation](https://reactnavigation.org/) - Routing and navigation for your React Native apps 105 | - Debugging 106 | - [Reactotron](https://github.com/infinitered/reactotron) - Reactotron is a macOS, Windows, and Linux app for inspecting your React JS and React Native apps 107 | - Styling 108 | - [Styled Components](https://styled-components.com/) - Use the best bits of ES6 and CSS to style your apps without stress 109 | - HTTP Comunication 110 | - [Axios](https://github.com/axios/axios) - Promise based HTTP client for the browser and node.js 111 | - Type Checking 112 | - [prop-types](https://github.com/facebook/prop-types) - Runtime type checking for React props and similar objects 113 | - Linting 114 | - [ESLint](https://github.com/eslint/eslint) - Find and fix problems in your JavaScript code 115 | - [Prettier](https://prettier.io/) - Prettier is an opinionated code formatter 116 | - Extra 117 | - [react-native-gesture-handler](https://github.com/software-mansion/react-native-gesture-handler) - Declarative API exposing platform native touch and gesture system to React Native 118 | - [babel-plugin-root-import](https://github.com/entwicklerstube/babel-plugin-root-import) - Babel plugin to add the opportunity to use import and require with root based paths 119 | - [eslint-config-airbnb](https://github.com/airbnb/javascript) - A mostly reasonable approach to JavaScript 120 | 121 | --- 122 | 123 | ## 🤔 Contributing 124 | 125 | > To get started... 126 | 127 | ### Step 1 128 | 129 | - 🍴 Fork this repo! 130 | 131 | ### Step 2 132 | 133 | - 👯 Clone this repo to your local machine using `https://github.com/lucasmontano/openweathermap-reactnative.git` 134 | 135 | ### Step 3 136 | 137 | - 🎋 Create your feature branch using `git checkout -b my-feature` 138 | 139 | ### Step 4 140 | 141 | - ✅ Commit your changes using `git commit -m 'feat: My new feature'`; 142 | 143 | ### Step 5 144 | 145 | - 📌 Push to the branch using `git push origin my-feature`; 146 | 147 | ### Step 6 148 | 149 | - 🔃 Create a new pull request 150 | 151 | After your Pull Request is merged, can you delete your feature branch. 152 | 153 | --- 154 | 155 | ## 📌 Support 156 | 157 | Reach out to me at one of the following places! 158 | 159 | - Twitter at [@lucas_montano](https://twitter.com/lucas_montano) 160 | - Instagram at [@lucasmontano](https://www.instagram.com/lucasmontano/) 161 | - Linkedin at [Lucas Montano](https://www.linkedin.com/in/lucasmontano/) 162 | - Youtube at [Lucas Montano](https://www.youtube.com/lucasmontano) 163 | 164 | --- 165 | 166 | ## 📝 License 167 | 168 | License 169 | 170 | This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. 171 | 172 | --- 173 | 174 | ## ⚒ Other Platforms 175 | 176 | Open Weather on Other Platforms: 177 | 178 | - Android: https://github.com/lucasmontano/openweathermap 179 | - iOS: https://github.com/lucasmontano/openweathermap-ios 180 | - Flutter: https://github.com/lucasmontano/openweathermap-flutter 181 | 182 | --- 183 | 184 | Made with ♥ Enjoy it! 185 | -------------------------------------------------------------------------------- /__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | android 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.openweather", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.openweather", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format 22 | * bundleCommand: "ram-bundle", 23 | * 24 | * // whether to bundle JS and assets in debug mode 25 | * bundleInDebug: false, 26 | * 27 | * // whether to bundle JS and assets in release mode 28 | * bundleInRelease: true, 29 | * 30 | * // whether to bundle JS and assets in another build variant (if configured). 31 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 32 | * // The configuration property can be in the following formats 33 | * // 'bundleIn${productFlavor}${buildType}' 34 | * // 'bundleIn${buildType}' 35 | * // bundleInFreeDebug: true, 36 | * // bundleInPaidRelease: true, 37 | * // bundleInBeta: true, 38 | * 39 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 40 | * // for example: to disable dev mode in the staging build type (if configured) 41 | * devDisabledInStaging: true, 42 | * // The configuration property can be in the following formats 43 | * // 'devDisabledIn${productFlavor}${buildType}' 44 | * // 'devDisabledIn${buildType}' 45 | * 46 | * // the root of your project, i.e. where "package.json" lives 47 | * root: "../../", 48 | * 49 | * // where to put the JS bundle asset in debug mode 50 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 51 | * 52 | * // where to put the JS bundle asset in release mode 53 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 54 | * 55 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 56 | * // require('./image.png')), in debug mode 57 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 58 | * 59 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 60 | * // require('./image.png')), in release mode 61 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 62 | * 63 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 64 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 65 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 66 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 67 | * // for example, you might want to remove it from here. 68 | * inputExcludes: ["android/**", "ios/**"], 69 | * 70 | * // override which node gets called and with what additional arguments 71 | * nodeExecutableAndArgs: ["node"], 72 | * 73 | * // supply additional arguments to the packager 74 | * extraPackagerArgs: [] 75 | * ] 76 | */ 77 | 78 | project.ext.react = [ 79 | entryFile: "index.js", 80 | enableHermes: false, // clean and rebuild if changing 81 | ] 82 | 83 | apply from: "../../node_modules/react-native/react.gradle" 84 | 85 | /** 86 | * Set this to true to create two separate APKs instead of one: 87 | * - An APK that only works on ARM devices 88 | * - An APK that only works on x86 devices 89 | * The advantage is the size of the APK is reduced by about 4MB. 90 | * Upload all the APKs to the Play Store and people will download 91 | * the correct one based on the CPU architecture of their device. 92 | */ 93 | def enableSeparateBuildPerCPUArchitecture = false 94 | 95 | /** 96 | * Run Proguard to shrink the Java bytecode in release builds. 97 | */ 98 | def enableProguardInReleaseBuilds = false 99 | 100 | /** 101 | * The preferred build flavor of JavaScriptCore. 102 | * 103 | * For example, to use the international variant, you can use: 104 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 105 | * 106 | * The international variant includes ICU i18n library and necessary data 107 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 108 | * give correct results when using with locales other than en-US. Note that 109 | * this variant is about 6MiB larger per architecture than default. 110 | */ 111 | def jscFlavor = 'org.webkit:android-jsc:+' 112 | 113 | /** 114 | * Whether to enable the Hermes VM. 115 | * 116 | * This should be set on project.ext.react and mirrored here. If it is not set 117 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 118 | * and the benefits of using Hermes will therefore be sharply reduced. 119 | */ 120 | def enableHermes = project.ext.react.get("enableHermes", false); 121 | Properties properties = new Properties(); 122 | properties.load(project.rootProject.file('local.properties').newDataInputStream()); 123 | def googleMapApi = properties.getProperty('google.map.key'); 124 | 125 | android { 126 | compileSdkVersion rootProject.ext.compileSdkVersion 127 | 128 | compileOptions { 129 | sourceCompatibility JavaVersion.VERSION_1_8 130 | targetCompatibility JavaVersion.VERSION_1_8 131 | } 132 | 133 | defaultConfig { 134 | applicationId "com.openweather" 135 | minSdkVersion rootProject.ext.minSdkVersion 136 | targetSdkVersion rootProject.ext.targetSdkVersion 137 | versionCode 1 138 | versionName "1.0" 139 | manifestPlaceholders = [googleMapApiKey:googleMapApi] 140 | } 141 | splits { 142 | abi { 143 | reset() 144 | enable enableSeparateBuildPerCPUArchitecture 145 | universalApk false // If true, also generate a universal APK 146 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 147 | } 148 | } 149 | signingConfigs { 150 | debug { 151 | storeFile file('debug.keystore') 152 | storePassword 'android' 153 | keyAlias 'androiddebugkey' 154 | keyPassword 'android' 155 | } 156 | } 157 | buildTypes { 158 | debug { 159 | signingConfig signingConfigs.debug 160 | } 161 | release { 162 | // Caution! In production, you need to generate your own keystore file. 163 | // see https://facebook.github.io/react-native/docs/signed-apk-android. 164 | signingConfig signingConfigs.debug 165 | minifyEnabled enableProguardInReleaseBuilds 166 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 167 | } 168 | } 169 | // applicationVariants are e.g. debug, release 170 | applicationVariants.all { variant -> 171 | variant.outputs.each { output -> 172 | // For each separate APK per architecture, set a unique version code as described here: 173 | // https://developer.android.com/studio/build/configure-apk-splits.html 174 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 175 | def abi = output.getFilter(OutputFile.ABI) 176 | if (abi != null) { // null for the universal-debug, universal-release variants 177 | output.versionCodeOverride = 178 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 179 | } 180 | 181 | } 182 | } 183 | } 184 | 185 | dependencies { 186 | implementation fileTree(dir: "libs", include: ["*.jar"]) 187 | implementation "com.facebook.react:react-native:+" // From node_modules 188 | 189 | implementation project(':lottie-react-native') 190 | 191 | if (enableHermes) { 192 | def hermesPath = "../../node_modules/hermes-engine/android/"; 193 | debugImplementation files(hermesPath + "hermes-debug.aar") 194 | releaseImplementation files(hermesPath + "hermes-release.aar") 195 | } else { 196 | implementation jscFlavor 197 | } 198 | } 199 | 200 | // Run this once to be able to run the application with BUCK 201 | // puts all compile dependencies into folder libs for BUCK to use 202 | task copyDownloadableDepsToLibs(type: Copy) { 203 | from configurations.compile 204 | into 'libs' 205 | } 206 | 207 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 208 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/android/app/debug.keystore -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 15 | 16 | 19 | 20 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/openweather/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.openweather; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | import com.facebook.react.ReactActivityDelegate; 6 | import com.facebook.react.ReactRootView; 7 | import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView; 8 | 9 | public class MainActivity extends ReactActivity { 10 | 11 | /** 12 | * Returns the name of the main component registered from JavaScript. This is used to schedule 13 | * rendering of the component. 14 | */ 15 | @Override 16 | protected String getMainComponentName() { 17 | return "OpenWeather"; 18 | } 19 | 20 | @Override 21 | protected ReactActivityDelegate createReactActivityDelegate() { 22 | return new ReactActivityDelegate(this, getMainComponentName()) { 23 | @Override 24 | protected ReactRootView createRootView() { 25 | return new RNGestureHandlerEnabledRootView(MainActivity.this); 26 | } 27 | }; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/openweather/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.openweather; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.soloader.SoLoader; 10 | import java.lang.reflect.InvocationTargetException; 11 | import java.util.List; 12 | 13 | //Lottie package 14 | import com.airbnb.android.react.lottie.LottiePackage; 15 | 16 | public class MainApplication extends Application implements ReactApplication { 17 | 18 | private final ReactNativeHost mReactNativeHost = 19 | new ReactNativeHost(this) { 20 | @Override 21 | public boolean getUseDeveloperSupport() { 22 | return BuildConfig.DEBUG; 23 | } 24 | 25 | @Override 26 | protected List getPackages() { 27 | @SuppressWarnings("UnnecessaryLocalVariable") 28 | List packages = new PackageList(this).getPackages(); 29 | // Packages that cannot be autolinked yet can be added manually here, for example: 30 | // packages.add(new MyReactNativePackage()); 31 | 32 | packages.add(new LottiePackage()); 33 | 34 | return packages; 35 | } 36 | 37 | @Override 38 | protected String getJSMainModuleName() { 39 | return "index"; 40 | } 41 | }; 42 | 43 | @Override 44 | public ReactNativeHost getReactNativeHost() { 45 | return mReactNativeHost; 46 | } 47 | 48 | @Override 49 | public void onCreate() { 50 | super.onCreate(); 51 | SoLoader.init(this, /* native exopackage */ false); 52 | initializeFlipper(this); // Remove this line if you don't want Flipper enabled 53 | } 54 | 55 | /** 56 | * Loads Flipper in React Native templates. 57 | * 58 | * @param context 59 | */ 60 | private static void initializeFlipper(Context context) { 61 | if (BuildConfig.DEBUG) { 62 | try { 63 | /* 64 | We use reflection here to pick up the class that initializes Flipper, 65 | since Flipper library is not available in release mode 66 | */ 67 | Class aClass = Class.forName("com.facebook.flipper.ReactNativeFlipper"); 68 | aClass.getMethod("initializeFlipper", Context.class).invoke(null, context); 69 | } catch (ClassNotFoundException e) { 70 | e.printStackTrace(); 71 | } catch (NoSuchMethodException e) { 72 | e.printStackTrace(); 73 | } catch (IllegalAccessException e) { 74 | e.printStackTrace(); 75 | } catch (InvocationTargetException e) { 76 | e.printStackTrace(); 77 | } 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | OpenWeather 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "28.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 28 8 | targetSdkVersion = 28 9 | } 10 | repositories { 11 | google() 12 | jcenter() 13 | } 14 | dependencies { 15 | classpath("com.android.tools.build:gradle:3.4.2") 16 | 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenLocal() 25 | maven { 26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 27 | url("$rootDir/../node_modules/react-native/android") 28 | } 29 | maven { 30 | // Android JSC is installed from npm 31 | url("$rootDir/../node_modules/jsc-android/dist") 32 | } 33 | 34 | google() 35 | jcenter() 36 | maven { url 'https://jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useAndroidX=true 21 | android.enableJetifier=true 22 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin, switch paths to Windows format before running java 129 | if $cygwin ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=$((i+1)) 158 | done 159 | case $i in 160 | (0) set -- ;; 161 | (1) set -- "$args0" ;; 162 | (2) set -- "$args0" "$args1" ;; 163 | (3) set -- "$args0" "$args1" "$args2" ;; 164 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=$(save "$@") 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 184 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 185 | cd "$(dirname "$0")" 186 | fi 187 | 188 | exec "$JAVACMD" "$@" 189 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem http://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 33 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 34 | 35 | @rem Find java.exe 36 | if defined JAVA_HOME goto findJavaFromJavaHome 37 | 38 | set JAVA_EXE=java.exe 39 | %JAVA_EXE% -version >NUL 2>&1 40 | if "%ERRORLEVEL%" == "0" goto init 41 | 42 | echo. 43 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 44 | echo. 45 | echo Please set the JAVA_HOME variable in your environment to match the 46 | echo location of your Java installation. 47 | 48 | goto fail 49 | 50 | :findJavaFromJavaHome 51 | set JAVA_HOME=%JAVA_HOME:"=% 52 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 53 | 54 | if exist "%JAVA_EXE%" goto init 55 | 56 | echo. 57 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 58 | echo. 59 | echo Please set the JAVA_HOME variable in your environment to match the 60 | echo location of your Java installation. 61 | 62 | goto fail 63 | 64 | :init 65 | @rem Get command-line arguments, handling Windows variants 66 | 67 | if not "%OS%" == "Windows_NT" goto win9xME_args 68 | 69 | :win9xME_args 70 | @rem Slurp the command line arguments. 71 | set CMD_LINE_ARGS= 72 | set _SKIP=2 73 | 74 | :win9xME_args_slurp 75 | if "x%~1" == "x" goto execute 76 | 77 | set CMD_LINE_ARGS=%* 78 | 79 | :execute 80 | @rem Setup the command line 81 | 82 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 83 | 84 | @rem Execute Gradle 85 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 86 | 87 | :end 88 | @rem End local scope for the variables with windows NT shell 89 | if "%ERRORLEVEL%"=="0" goto mainEnd 90 | 91 | :fail 92 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 93 | rem the _cmd.exe /c_ return code! 94 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 95 | exit /b 1 96 | 97 | :mainEnd 98 | if "%OS%"=="Windows_NT" endlocal 99 | 100 | :omega 101 | -------------------------------------------------------------------------------- /android/local.properties.example: -------------------------------------------------------------------------------- 1 | ## This file must *NOT* be checked into Version Control Systems, 2 | # as it contains information specific to your local configuration. 3 | # 4 | # Location of the SDK. This is only used by Gradle. 5 | # For customization when using a Version Control System, please read the 6 | # header note. 7 | google.map.key = AIza.... 8 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'OpenWeather' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | 5 | include ':lottie-react-native' 6 | project(':lottie-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/lottie-react-native/src/android') 7 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "OpenWeather", 3 | "displayName": "OpenWeather" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | 'module:metro-react-native-babel-preset', 4 | 'module:react-native-dotenv', 5 | ], 6 | plugins: [ 7 | [ 8 | 'babel-plugin-root-import', 9 | { 10 | rootPathSuffix: 'src', 11 | }, 12 | ], 13 | ], 14 | }; 15 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import {AppRegistry} from 'react-native'; 2 | import App from './src'; 3 | import {name as appName} from './app.json'; 4 | 5 | AppRegistry.registerComponent(appName, () => App); 6 | -------------------------------------------------------------------------------- /ios/OpenWeather-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSAppTransportSecurity 26 | 27 | NSExceptionDomains 28 | 29 | localhost 30 | 31 | NSExceptionAllowsInsecureHTTPLoads 32 | 33 | 34 | 35 | 36 | NSLocationWhenInUseUsageDescription 37 | 38 | UILaunchStoryboardName 39 | LaunchScreen 40 | UIRequiredDeviceCapabilities 41 | 42 | armv7 43 | 44 | UISupportedInterfaceOrientations 45 | 46 | UIInterfaceOrientationPortrait 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | UIViewControllerBasedStatusBarAppearance 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /ios/OpenWeather-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/OpenWeather.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* OpenWeatherTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* OpenWeatherTests.m */; }; 11 | 0D2AFC683BA995FAFECBDA42 /* Pods_OpenWeather.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AA8EC9A8380F65EEF2E4016A /* Pods_OpenWeather.framework */; }; 12 | 0D2B324EC40F291E2DE9A105 /* Pods_OpenWeather_tvOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E8672C2BC55FEEDAEFF93066 /* Pods_OpenWeather_tvOS.framework */; }; 13 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 14 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 15 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 16 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 17 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 18 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 19 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 20 | 2DCD954D1E0B4F2C00145EB5 /* OpenWeatherTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* OpenWeatherTests.m */; }; 21 | 91B8FAA8BE0F7E1D5971EE23 /* Pods_OpenWeather_tvOSTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BA183EF2AF3D932D32A35E1C /* Pods_OpenWeather_tvOSTests.framework */; }; 22 | FC7901175BEC844C73D11341 /* Pods_OpenWeatherTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7CEE0DE6F5757C157F40F47 /* Pods_OpenWeatherTests.framework */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 31 | remoteInfo = OpenWeather; 32 | }; 33 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 38 | remoteInfo = "OpenWeather-tvOS"; 39 | }; 40 | 55D7A4FF24284C0D00F59C6D /* PBXContainerItemProxy */ = { 41 | isa = PBXContainerItemProxy; 42 | containerPortal = 55D7A4F724284C0100F59C6D /* Lottie.xcodeproj */; 43 | proxyType = 2; 44 | remoteGlobalIDString = 486E83B2220A317C007CD915; 45 | remoteInfo = Lottie_iOS; 46 | }; 47 | 55D7A50124284C0D00F59C6D /* PBXContainerItemProxy */ = { 48 | isa = PBXContainerItemProxy; 49 | containerPortal = 55D7A4F724284C0100F59C6D /* Lottie.xcodeproj */; 50 | proxyType = 2; 51 | remoteGlobalIDString = 486E84E2220A357D007CD915; 52 | remoteInfo = Lottie_tvOS; 53 | }; 54 | 55D7A50324284C0D00F59C6D /* PBXContainerItemProxy */ = { 55 | isa = PBXContainerItemProxy; 56 | containerPortal = 55D7A4F724284C0100F59C6D /* Lottie.xcodeproj */; 57 | proxyType = 2; 58 | remoteGlobalIDString = 486E8567220A3605007CD915; 59 | remoteInfo = Lottie_macOS; 60 | }; 61 | 55D7A50524284C0D00F59C6D /* PBXContainerItemProxy */ = { 62 | isa = PBXContainerItemProxy; 63 | containerPortal = 55D7A4F724284C0100F59C6D /* Lottie.xcodeproj */; 64 | proxyType = 2; 65 | remoteGlobalIDString = 486E85F3220A36F6007CD915; 66 | remoteInfo = LottieLibraryIOS; 67 | }; 68 | 55D7A50724284C0D00F59C6D /* PBXContainerItemProxy */ = { 69 | isa = PBXContainerItemProxy; 70 | containerPortal = 55D7A4F724284C0100F59C6D /* Lottie.xcodeproj */; 71 | proxyType = 2; 72 | remoteGlobalIDString = 486E8675220A3751007CD915; 73 | remoteInfo = LottieLibraryMacOS; 74 | }; 75 | 55D7A50D24284CFE00F59C6D /* PBXContainerItemProxy */ = { 76 | isa = PBXContainerItemProxy; 77 | containerPortal = 55D7A50924284CFA00F59C6D /* LottieReactNative.xcodeproj */; 78 | proxyType = 2; 79 | remoteGlobalIDString = 11FA5C511C4A1296003AC2EE; 80 | remoteInfo = LottieReactNative; 81 | }; 82 | /* End PBXContainerItemProxy section */ 83 | 84 | /* Begin PBXFileReference section */ 85 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 86 | 00E356EE1AD99517003FC87E /* OpenWeatherTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = OpenWeatherTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 87 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 88 | 00E356F21AD99517003FC87E /* OpenWeatherTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = OpenWeatherTests.m; sourceTree = ""; }; 89 | 13B07F961A680F5B00A75B9A /* OpenWeather.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OpenWeather.app; sourceTree = BUILT_PRODUCTS_DIR; }; 90 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = OpenWeather/AppDelegate.h; sourceTree = ""; }; 91 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = OpenWeather/AppDelegate.m; sourceTree = ""; }; 92 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 93 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = OpenWeather/Images.xcassets; sourceTree = ""; }; 94 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = OpenWeather/Info.plist; sourceTree = ""; }; 95 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = OpenWeather/main.m; sourceTree = ""; }; 96 | 14B3E2595CBCDAB0D4C5F902 /* Pods-OpenWeather-tvOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenWeather-tvOSTests.release.xcconfig"; path = "Target Support Files/Pods-OpenWeather-tvOSTests/Pods-OpenWeather-tvOSTests.release.xcconfig"; sourceTree = ""; }; 97 | 2D02E47B1E0B4A5D006451C7 /* OpenWeather-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "OpenWeather-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 98 | 2D02E4901E0B4A5D006451C7 /* OpenWeather-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "OpenWeather-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 99 | 30CE7B20C853A4F408A2A5A5 /* Pods-OpenWeather.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenWeather.debug.xcconfig"; path = "Target Support Files/Pods-OpenWeather/Pods-OpenWeather.debug.xcconfig"; sourceTree = ""; }; 100 | 55D7A4F724284C0100F59C6D /* Lottie.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Lottie.xcodeproj; path = "../node_modules/lottie-ios/Lottie.xcodeproj"; sourceTree = ""; }; 101 | 55D7A50924284CFA00F59C6D /* LottieReactNative.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = LottieReactNative.xcodeproj; path = "../node_modules/lottie-react-native/src/ios/LottieReactNative.xcodeproj"; sourceTree = ""; }; 102 | 91D54C1B0F89F66450EDE503 /* Pods-OpenWeather-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenWeather-tvOS.debug.xcconfig"; path = "Target Support Files/Pods-OpenWeather-tvOS/Pods-OpenWeather-tvOS.debug.xcconfig"; sourceTree = ""; }; 103 | 9B6F91B94D2E228AC4983BF7 /* Pods-OpenWeather-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenWeather-tvOS.release.xcconfig"; path = "Target Support Files/Pods-OpenWeather-tvOS/Pods-OpenWeather-tvOS.release.xcconfig"; sourceTree = ""; }; 104 | AA8EC9A8380F65EEF2E4016A /* Pods_OpenWeather.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OpenWeather.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 105 | BA183EF2AF3D932D32A35E1C /* Pods_OpenWeather_tvOSTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OpenWeather_tvOSTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 106 | D52FECE5BE741B0864E695ED /* Pods-OpenWeatherTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenWeatherTests.release.xcconfig"; path = "Target Support Files/Pods-OpenWeatherTests/Pods-OpenWeatherTests.release.xcconfig"; sourceTree = ""; }; 107 | DD4926D1AA0BB8EEC16EB1AF /* Pods-OpenWeather-tvOSTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenWeather-tvOSTests.debug.xcconfig"; path = "Target Support Files/Pods-OpenWeather-tvOSTests/Pods-OpenWeather-tvOSTests.debug.xcconfig"; sourceTree = ""; }; 108 | E7CEE0DE6F5757C157F40F47 /* Pods_OpenWeatherTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OpenWeatherTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 109 | E8672C2BC55FEEDAEFF93066 /* Pods_OpenWeather_tvOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OpenWeather_tvOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 110 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 111 | 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; }; 112 | F152799A8B76D4F1D0DBA178 /* Pods-OpenWeather.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenWeather.release.xcconfig"; path = "Target Support Files/Pods-OpenWeather/Pods-OpenWeather.release.xcconfig"; sourceTree = ""; }; 113 | F30752645F788C2AD8D41950 /* Pods-OpenWeatherTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenWeatherTests.debug.xcconfig"; path = "Target Support Files/Pods-OpenWeatherTests/Pods-OpenWeatherTests.debug.xcconfig"; sourceTree = ""; }; 114 | /* End PBXFileReference section */ 115 | 116 | /* Begin PBXFrameworksBuildPhase section */ 117 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 118 | isa = PBXFrameworksBuildPhase; 119 | buildActionMask = 2147483647; 120 | files = ( 121 | FC7901175BEC844C73D11341 /* Pods_OpenWeatherTests.framework in Frameworks */, 122 | ); 123 | runOnlyForDeploymentPostprocessing = 0; 124 | }; 125 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 126 | isa = PBXFrameworksBuildPhase; 127 | buildActionMask = 2147483647; 128 | files = ( 129 | 0D2AFC683BA995FAFECBDA42 /* Pods_OpenWeather.framework in Frameworks */, 130 | ); 131 | runOnlyForDeploymentPostprocessing = 0; 132 | }; 133 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 134 | isa = PBXFrameworksBuildPhase; 135 | buildActionMask = 2147483647; 136 | files = ( 137 | 0D2B324EC40F291E2DE9A105 /* Pods_OpenWeather_tvOS.framework in Frameworks */, 138 | ); 139 | runOnlyForDeploymentPostprocessing = 0; 140 | }; 141 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 142 | isa = PBXFrameworksBuildPhase; 143 | buildActionMask = 2147483647; 144 | files = ( 145 | 91B8FAA8BE0F7E1D5971EE23 /* Pods_OpenWeather_tvOSTests.framework in Frameworks */, 146 | ); 147 | runOnlyForDeploymentPostprocessing = 0; 148 | }; 149 | /* End PBXFrameworksBuildPhase section */ 150 | 151 | /* Begin PBXGroup section */ 152 | 00E356EF1AD99517003FC87E /* OpenWeatherTests */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 00E356F21AD99517003FC87E /* OpenWeatherTests.m */, 156 | 00E356F01AD99517003FC87E /* Supporting Files */, 157 | ); 158 | path = OpenWeatherTests; 159 | sourceTree = ""; 160 | }; 161 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 00E356F11AD99517003FC87E /* Info.plist */, 165 | ); 166 | name = "Supporting Files"; 167 | sourceTree = ""; 168 | }; 169 | 13B07FAE1A68108700A75B9A /* OpenWeather */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 173 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 174 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 175 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 176 | 13B07FB61A68108700A75B9A /* Info.plist */, 177 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 178 | 13B07FB71A68108700A75B9A /* main.m */, 179 | ); 180 | name = OpenWeather; 181 | sourceTree = ""; 182 | }; 183 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 184 | isa = PBXGroup; 185 | children = ( 186 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 187 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 188 | AA8EC9A8380F65EEF2E4016A /* Pods_OpenWeather.framework */, 189 | E8672C2BC55FEEDAEFF93066 /* Pods_OpenWeather_tvOS.framework */, 190 | BA183EF2AF3D932D32A35E1C /* Pods_OpenWeather_tvOSTests.framework */, 191 | E7CEE0DE6F5757C157F40F47 /* Pods_OpenWeatherTests.framework */, 192 | ); 193 | name = Frameworks; 194 | sourceTree = ""; 195 | }; 196 | 55D7A4F824284C0100F59C6D /* Products */ = { 197 | isa = PBXGroup; 198 | children = ( 199 | 55D7A50024284C0D00F59C6D /* Lottie.framework */, 200 | 55D7A50224284C0D00F59C6D /* Lottie.framework */, 201 | 55D7A50424284C0D00F59C6D /* Lottie.framework */, 202 | 55D7A50624284C0D00F59C6D /* libLottie.a */, 203 | 55D7A50824284C0D00F59C6D /* libLottie.a */, 204 | ); 205 | name = Products; 206 | sourceTree = ""; 207 | }; 208 | 55D7A50A24284CFA00F59C6D /* Products */ = { 209 | isa = PBXGroup; 210 | children = ( 211 | 55D7A50E24284CFE00F59C6D /* libLottieReactNative.a */, 212 | ); 213 | name = Products; 214 | sourceTree = ""; 215 | }; 216 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 217 | isa = PBXGroup; 218 | children = ( 219 | 55D7A50924284CFA00F59C6D /* LottieReactNative.xcodeproj */, 220 | 55D7A4F724284C0100F59C6D /* Lottie.xcodeproj */, 221 | ); 222 | name = Libraries; 223 | sourceTree = ""; 224 | }; 225 | 83CBB9F61A601CBA00E9B192 = { 226 | isa = PBXGroup; 227 | children = ( 228 | 13B07FAE1A68108700A75B9A /* OpenWeather */, 229 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 230 | 00E356EF1AD99517003FC87E /* OpenWeatherTests */, 231 | 83CBBA001A601CBA00E9B192 /* Products */, 232 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 233 | 8D309FDACF0C8FDE090B4AF8 /* Pods */, 234 | ); 235 | indentWidth = 2; 236 | sourceTree = ""; 237 | tabWidth = 2; 238 | usesTabs = 0; 239 | }; 240 | 83CBBA001A601CBA00E9B192 /* Products */ = { 241 | isa = PBXGroup; 242 | children = ( 243 | 13B07F961A680F5B00A75B9A /* OpenWeather.app */, 244 | 00E356EE1AD99517003FC87E /* OpenWeatherTests.xctest */, 245 | 2D02E47B1E0B4A5D006451C7 /* OpenWeather-tvOS.app */, 246 | 2D02E4901E0B4A5D006451C7 /* OpenWeather-tvOSTests.xctest */, 247 | ); 248 | name = Products; 249 | sourceTree = ""; 250 | }; 251 | 8D309FDACF0C8FDE090B4AF8 /* Pods */ = { 252 | isa = PBXGroup; 253 | children = ( 254 | 30CE7B20C853A4F408A2A5A5 /* Pods-OpenWeather.debug.xcconfig */, 255 | F152799A8B76D4F1D0DBA178 /* Pods-OpenWeather.release.xcconfig */, 256 | 91D54C1B0F89F66450EDE503 /* Pods-OpenWeather-tvOS.debug.xcconfig */, 257 | 9B6F91B94D2E228AC4983BF7 /* Pods-OpenWeather-tvOS.release.xcconfig */, 258 | DD4926D1AA0BB8EEC16EB1AF /* Pods-OpenWeather-tvOSTests.debug.xcconfig */, 259 | 14B3E2595CBCDAB0D4C5F902 /* Pods-OpenWeather-tvOSTests.release.xcconfig */, 260 | F30752645F788C2AD8D41950 /* Pods-OpenWeatherTests.debug.xcconfig */, 261 | D52FECE5BE741B0864E695ED /* Pods-OpenWeatherTests.release.xcconfig */, 262 | ); 263 | path = Pods; 264 | sourceTree = ""; 265 | }; 266 | /* End PBXGroup section */ 267 | 268 | /* Begin PBXNativeTarget section */ 269 | 00E356ED1AD99517003FC87E /* OpenWeatherTests */ = { 270 | isa = PBXNativeTarget; 271 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "OpenWeatherTests" */; 272 | buildPhases = ( 273 | F4A6685E9C06F8D51D1A8964 /* [CP] Check Pods Manifest.lock */, 274 | 00E356EA1AD99517003FC87E /* Sources */, 275 | 00E356EB1AD99517003FC87E /* Frameworks */, 276 | 00E356EC1AD99517003FC87E /* Resources */, 277 | ); 278 | buildRules = ( 279 | ); 280 | dependencies = ( 281 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 282 | ); 283 | name = OpenWeatherTests; 284 | productName = OpenWeatherTests; 285 | productReference = 00E356EE1AD99517003FC87E /* OpenWeatherTests.xctest */; 286 | productType = "com.apple.product-type.bundle.unit-test"; 287 | }; 288 | 13B07F861A680F5B00A75B9A /* OpenWeather */ = { 289 | isa = PBXNativeTarget; 290 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "OpenWeather" */; 291 | buildPhases = ( 292 | DC6E89A3F9F9C30C5BA85131 /* [CP] Check Pods Manifest.lock */, 293 | FD10A7F022414F080027D42C /* Start Packager */, 294 | 13B07F871A680F5B00A75B9A /* Sources */, 295 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 296 | 13B07F8E1A680F5B00A75B9A /* Resources */, 297 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 298 | 3D938800CB5DE472BEDB7DA5 /* [CP] Embed Pods Frameworks */, 299 | ); 300 | buildRules = ( 301 | ); 302 | dependencies = ( 303 | ); 304 | name = OpenWeather; 305 | productName = OpenWeather; 306 | productReference = 13B07F961A680F5B00A75B9A /* OpenWeather.app */; 307 | productType = "com.apple.product-type.application"; 308 | }; 309 | 2D02E47A1E0B4A5D006451C7 /* OpenWeather-tvOS */ = { 310 | isa = PBXNativeTarget; 311 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "OpenWeather-tvOS" */; 312 | buildPhases = ( 313 | 4B47F44725566BD53D2D16A4 /* [CP] Check Pods Manifest.lock */, 314 | FD10A7F122414F3F0027D42C /* Start Packager */, 315 | 2D02E4771E0B4A5D006451C7 /* Sources */, 316 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 317 | 2D02E4791E0B4A5D006451C7 /* Resources */, 318 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 319 | ); 320 | buildRules = ( 321 | ); 322 | dependencies = ( 323 | ); 324 | name = "OpenWeather-tvOS"; 325 | productName = "OpenWeather-tvOS"; 326 | productReference = 2D02E47B1E0B4A5D006451C7 /* OpenWeather-tvOS.app */; 327 | productType = "com.apple.product-type.application"; 328 | }; 329 | 2D02E48F1E0B4A5D006451C7 /* OpenWeather-tvOSTests */ = { 330 | isa = PBXNativeTarget; 331 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "OpenWeather-tvOSTests" */; 332 | buildPhases = ( 333 | AE90CFB8C17D5E1F3C0B0208 /* [CP] Check Pods Manifest.lock */, 334 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 335 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 336 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 337 | ); 338 | buildRules = ( 339 | ); 340 | dependencies = ( 341 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 342 | ); 343 | name = "OpenWeather-tvOSTests"; 344 | productName = "OpenWeather-tvOSTests"; 345 | productReference = 2D02E4901E0B4A5D006451C7 /* OpenWeather-tvOSTests.xctest */; 346 | productType = "com.apple.product-type.bundle.unit-test"; 347 | }; 348 | /* End PBXNativeTarget section */ 349 | 350 | /* Begin PBXProject section */ 351 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 352 | isa = PBXProject; 353 | attributes = { 354 | LastUpgradeCheck = 0940; 355 | ORGANIZATIONNAME = Facebook; 356 | TargetAttributes = { 357 | 00E356ED1AD99517003FC87E = { 358 | CreatedOnToolsVersion = 6.2; 359 | TestTargetID = 13B07F861A680F5B00A75B9A; 360 | }; 361 | 2D02E47A1E0B4A5D006451C7 = { 362 | CreatedOnToolsVersion = 8.2.1; 363 | ProvisioningStyle = Automatic; 364 | }; 365 | 2D02E48F1E0B4A5D006451C7 = { 366 | CreatedOnToolsVersion = 8.2.1; 367 | ProvisioningStyle = Automatic; 368 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 369 | }; 370 | }; 371 | }; 372 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "OpenWeather" */; 373 | compatibilityVersion = "Xcode 3.2"; 374 | developmentRegion = English; 375 | hasScannedForEncodings = 0; 376 | knownRegions = ( 377 | English, 378 | en, 379 | Base, 380 | ); 381 | mainGroup = 83CBB9F61A601CBA00E9B192; 382 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 383 | projectDirPath = ""; 384 | projectReferences = ( 385 | { 386 | ProductGroup = 55D7A4F824284C0100F59C6D /* Products */; 387 | ProjectRef = 55D7A4F724284C0100F59C6D /* Lottie.xcodeproj */; 388 | }, 389 | { 390 | ProductGroup = 55D7A50A24284CFA00F59C6D /* Products */; 391 | ProjectRef = 55D7A50924284CFA00F59C6D /* LottieReactNative.xcodeproj */; 392 | }, 393 | ); 394 | projectRoot = ""; 395 | targets = ( 396 | 13B07F861A680F5B00A75B9A /* OpenWeather */, 397 | 00E356ED1AD99517003FC87E /* OpenWeatherTests */, 398 | 2D02E47A1E0B4A5D006451C7 /* OpenWeather-tvOS */, 399 | 2D02E48F1E0B4A5D006451C7 /* OpenWeather-tvOSTests */, 400 | ); 401 | }; 402 | /* End PBXProject section */ 403 | 404 | /* Begin PBXReferenceProxy section */ 405 | 55D7A50024284C0D00F59C6D /* Lottie.framework */ = { 406 | isa = PBXReferenceProxy; 407 | fileType = wrapper.framework; 408 | path = Lottie.framework; 409 | remoteRef = 55D7A4FF24284C0D00F59C6D /* PBXContainerItemProxy */; 410 | sourceTree = BUILT_PRODUCTS_DIR; 411 | }; 412 | 55D7A50224284C0D00F59C6D /* Lottie.framework */ = { 413 | isa = PBXReferenceProxy; 414 | fileType = wrapper.framework; 415 | path = Lottie.framework; 416 | remoteRef = 55D7A50124284C0D00F59C6D /* PBXContainerItemProxy */; 417 | sourceTree = BUILT_PRODUCTS_DIR; 418 | }; 419 | 55D7A50424284C0D00F59C6D /* Lottie.framework */ = { 420 | isa = PBXReferenceProxy; 421 | fileType = wrapper.framework; 422 | path = Lottie.framework; 423 | remoteRef = 55D7A50324284C0D00F59C6D /* PBXContainerItemProxy */; 424 | sourceTree = BUILT_PRODUCTS_DIR; 425 | }; 426 | 55D7A50624284C0D00F59C6D /* libLottie.a */ = { 427 | isa = PBXReferenceProxy; 428 | fileType = archive.ar; 429 | path = libLottie.a; 430 | remoteRef = 55D7A50524284C0D00F59C6D /* PBXContainerItemProxy */; 431 | sourceTree = BUILT_PRODUCTS_DIR; 432 | }; 433 | 55D7A50824284C0D00F59C6D /* libLottie.a */ = { 434 | isa = PBXReferenceProxy; 435 | fileType = archive.ar; 436 | path = libLottie.a; 437 | remoteRef = 55D7A50724284C0D00F59C6D /* PBXContainerItemProxy */; 438 | sourceTree = BUILT_PRODUCTS_DIR; 439 | }; 440 | 55D7A50E24284CFE00F59C6D /* libLottieReactNative.a */ = { 441 | isa = PBXReferenceProxy; 442 | fileType = archive.ar; 443 | path = libLottieReactNative.a; 444 | remoteRef = 55D7A50D24284CFE00F59C6D /* PBXContainerItemProxy */; 445 | sourceTree = BUILT_PRODUCTS_DIR; 446 | }; 447 | /* End PBXReferenceProxy section */ 448 | 449 | /* Begin PBXResourcesBuildPhase section */ 450 | 00E356EC1AD99517003FC87E /* Resources */ = { 451 | isa = PBXResourcesBuildPhase; 452 | buildActionMask = 2147483647; 453 | files = ( 454 | ); 455 | runOnlyForDeploymentPostprocessing = 0; 456 | }; 457 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 458 | isa = PBXResourcesBuildPhase; 459 | buildActionMask = 2147483647; 460 | files = ( 461 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 462 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 463 | ); 464 | runOnlyForDeploymentPostprocessing = 0; 465 | }; 466 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 467 | isa = PBXResourcesBuildPhase; 468 | buildActionMask = 2147483647; 469 | files = ( 470 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 471 | ); 472 | runOnlyForDeploymentPostprocessing = 0; 473 | }; 474 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 475 | isa = PBXResourcesBuildPhase; 476 | buildActionMask = 2147483647; 477 | files = ( 478 | ); 479 | runOnlyForDeploymentPostprocessing = 0; 480 | }; 481 | /* End PBXResourcesBuildPhase section */ 482 | 483 | /* Begin PBXShellScriptBuildPhase section */ 484 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 485 | isa = PBXShellScriptBuildPhase; 486 | buildActionMask = 2147483647; 487 | files = ( 488 | ); 489 | inputPaths = ( 490 | ); 491 | name = "Bundle React Native code and images"; 492 | outputPaths = ( 493 | ); 494 | runOnlyForDeploymentPostprocessing = 0; 495 | shellPath = /bin/sh; 496 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 497 | }; 498 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 499 | isa = PBXShellScriptBuildPhase; 500 | buildActionMask = 2147483647; 501 | files = ( 502 | ); 503 | inputPaths = ( 504 | ); 505 | name = "Bundle React Native Code And Images"; 506 | outputPaths = ( 507 | ); 508 | runOnlyForDeploymentPostprocessing = 0; 509 | shellPath = /bin/sh; 510 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 511 | }; 512 | 3D938800CB5DE472BEDB7DA5 /* [CP] Embed Pods Frameworks */ = { 513 | isa = PBXShellScriptBuildPhase; 514 | buildActionMask = 2147483647; 515 | files = ( 516 | ); 517 | inputPaths = ( 518 | "${PODS_ROOT}/Target Support Files/Pods-OpenWeather/Pods-OpenWeather-frameworks.sh", 519 | "${BUILT_PRODUCTS_DIR}/DoubleConversion/DoubleConversion.framework", 520 | "${BUILT_PRODUCTS_DIR}/FBReactNativeSpec/FBReactNativeSpec.framework", 521 | "${BUILT_PRODUCTS_DIR}/Folly/folly.framework", 522 | "${BUILT_PRODUCTS_DIR}/RCTTypeSafety/RCTTypeSafety.framework", 523 | "${BUILT_PRODUCTS_DIR}/RNGestureHandler/RNGestureHandler.framework", 524 | "${BUILT_PRODUCTS_DIR}/React-Core/React.framework", 525 | "${BUILT_PRODUCTS_DIR}/React-CoreModules/CoreModules.framework", 526 | "${BUILT_PRODUCTS_DIR}/React-RCTActionSheet/RCTActionSheet.framework", 527 | "${BUILT_PRODUCTS_DIR}/React-RCTAnimation/RCTAnimation.framework", 528 | "${BUILT_PRODUCTS_DIR}/React-RCTBlob/RCTBlob.framework", 529 | "${BUILT_PRODUCTS_DIR}/React-RCTImage/RCTImage.framework", 530 | "${BUILT_PRODUCTS_DIR}/React-RCTLinking/RCTLinking.framework", 531 | "${BUILT_PRODUCTS_DIR}/React-RCTNetwork/RCTNetwork.framework", 532 | "${BUILT_PRODUCTS_DIR}/React-RCTSettings/RCTSettings.framework", 533 | "${BUILT_PRODUCTS_DIR}/React-RCTText/RCTText.framework", 534 | "${BUILT_PRODUCTS_DIR}/React-RCTVibration/RCTVibration.framework", 535 | "${BUILT_PRODUCTS_DIR}/React-cxxreact/cxxreact.framework", 536 | "${BUILT_PRODUCTS_DIR}/React-jsi/jsi.framework", 537 | "${BUILT_PRODUCTS_DIR}/React-jsiexecutor/jsireact.framework", 538 | "${BUILT_PRODUCTS_DIR}/React-jsinspector/jsinspector.framework", 539 | "${BUILT_PRODUCTS_DIR}/ReactCommon/ReactCommon.framework", 540 | "${BUILT_PRODUCTS_DIR}/Yoga/yoga.framework", 541 | "${BUILT_PRODUCTS_DIR}/glog/glog.framework", 542 | "${BUILT_PRODUCTS_DIR}/lottie-ios/Lottie.framework", 543 | "${BUILT_PRODUCTS_DIR}/lottie-react-native/lottie_react_native.framework", 544 | ); 545 | name = "[CP] Embed Pods Frameworks"; 546 | outputPaths = ( 547 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DoubleConversion.framework", 548 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBReactNativeSpec.framework", 549 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/folly.framework", 550 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RCTTypeSafety.framework", 551 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RNGestureHandler.framework", 552 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/React.framework", 553 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CoreModules.framework", 554 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RCTActionSheet.framework", 555 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RCTAnimation.framework", 556 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RCTBlob.framework", 557 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RCTImage.framework", 558 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RCTLinking.framework", 559 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RCTNetwork.framework", 560 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RCTSettings.framework", 561 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RCTText.framework", 562 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RCTVibration.framework", 563 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/cxxreact.framework", 564 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/jsi.framework", 565 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/jsireact.framework", 566 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/jsinspector.framework", 567 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ReactCommon.framework", 568 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/yoga.framework", 569 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/glog.framework", 570 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Lottie.framework", 571 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/lottie_react_native.framework", 572 | ); 573 | runOnlyForDeploymentPostprocessing = 0; 574 | shellPath = /bin/sh; 575 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-OpenWeather/Pods-OpenWeather-frameworks.sh\"\n"; 576 | showEnvVarsInLog = 0; 577 | }; 578 | 4B47F44725566BD53D2D16A4 /* [CP] Check Pods Manifest.lock */ = { 579 | isa = PBXShellScriptBuildPhase; 580 | buildActionMask = 2147483647; 581 | files = ( 582 | ); 583 | inputFileListPaths = ( 584 | ); 585 | inputPaths = ( 586 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 587 | "${PODS_ROOT}/Manifest.lock", 588 | ); 589 | name = "[CP] Check Pods Manifest.lock"; 590 | outputFileListPaths = ( 591 | ); 592 | outputPaths = ( 593 | "$(DERIVED_FILE_DIR)/Pods-OpenWeather-tvOS-checkManifestLockResult.txt", 594 | ); 595 | runOnlyForDeploymentPostprocessing = 0; 596 | shellPath = /bin/sh; 597 | 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"; 598 | showEnvVarsInLog = 0; 599 | }; 600 | AE90CFB8C17D5E1F3C0B0208 /* [CP] Check Pods Manifest.lock */ = { 601 | isa = PBXShellScriptBuildPhase; 602 | buildActionMask = 2147483647; 603 | files = ( 604 | ); 605 | inputFileListPaths = ( 606 | ); 607 | inputPaths = ( 608 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 609 | "${PODS_ROOT}/Manifest.lock", 610 | ); 611 | name = "[CP] Check Pods Manifest.lock"; 612 | outputFileListPaths = ( 613 | ); 614 | outputPaths = ( 615 | "$(DERIVED_FILE_DIR)/Pods-OpenWeather-tvOSTests-checkManifestLockResult.txt", 616 | ); 617 | runOnlyForDeploymentPostprocessing = 0; 618 | shellPath = /bin/sh; 619 | 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"; 620 | showEnvVarsInLog = 0; 621 | }; 622 | DC6E89A3F9F9C30C5BA85131 /* [CP] Check Pods Manifest.lock */ = { 623 | isa = PBXShellScriptBuildPhase; 624 | buildActionMask = 2147483647; 625 | files = ( 626 | ); 627 | inputFileListPaths = ( 628 | ); 629 | inputPaths = ( 630 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 631 | "${PODS_ROOT}/Manifest.lock", 632 | ); 633 | name = "[CP] Check Pods Manifest.lock"; 634 | outputFileListPaths = ( 635 | ); 636 | outputPaths = ( 637 | "$(DERIVED_FILE_DIR)/Pods-OpenWeather-checkManifestLockResult.txt", 638 | ); 639 | runOnlyForDeploymentPostprocessing = 0; 640 | shellPath = /bin/sh; 641 | 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"; 642 | showEnvVarsInLog = 0; 643 | }; 644 | F4A6685E9C06F8D51D1A8964 /* [CP] Check Pods Manifest.lock */ = { 645 | isa = PBXShellScriptBuildPhase; 646 | buildActionMask = 2147483647; 647 | files = ( 648 | ); 649 | inputFileListPaths = ( 650 | ); 651 | inputPaths = ( 652 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 653 | "${PODS_ROOT}/Manifest.lock", 654 | ); 655 | name = "[CP] Check Pods Manifest.lock"; 656 | outputFileListPaths = ( 657 | ); 658 | outputPaths = ( 659 | "$(DERIVED_FILE_DIR)/Pods-OpenWeatherTests-checkManifestLockResult.txt", 660 | ); 661 | runOnlyForDeploymentPostprocessing = 0; 662 | shellPath = /bin/sh; 663 | 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"; 664 | showEnvVarsInLog = 0; 665 | }; 666 | FD10A7F022414F080027D42C /* Start Packager */ = { 667 | isa = PBXShellScriptBuildPhase; 668 | buildActionMask = 2147483647; 669 | files = ( 670 | ); 671 | inputFileListPaths = ( 672 | ); 673 | inputPaths = ( 674 | ); 675 | name = "Start Packager"; 676 | outputFileListPaths = ( 677 | ); 678 | outputPaths = ( 679 | ); 680 | runOnlyForDeploymentPostprocessing = 0; 681 | shellPath = /bin/sh; 682 | 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"; 683 | showEnvVarsInLog = 0; 684 | }; 685 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 686 | isa = PBXShellScriptBuildPhase; 687 | buildActionMask = 2147483647; 688 | files = ( 689 | ); 690 | inputFileListPaths = ( 691 | ); 692 | inputPaths = ( 693 | ); 694 | name = "Start Packager"; 695 | outputFileListPaths = ( 696 | ); 697 | outputPaths = ( 698 | ); 699 | runOnlyForDeploymentPostprocessing = 0; 700 | shellPath = /bin/sh; 701 | 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"; 702 | showEnvVarsInLog = 0; 703 | }; 704 | /* End PBXShellScriptBuildPhase section */ 705 | 706 | /* Begin PBXSourcesBuildPhase section */ 707 | 00E356EA1AD99517003FC87E /* Sources */ = { 708 | isa = PBXSourcesBuildPhase; 709 | buildActionMask = 2147483647; 710 | files = ( 711 | 00E356F31AD99517003FC87E /* OpenWeatherTests.m in Sources */, 712 | ); 713 | runOnlyForDeploymentPostprocessing = 0; 714 | }; 715 | 13B07F871A680F5B00A75B9A /* Sources */ = { 716 | isa = PBXSourcesBuildPhase; 717 | buildActionMask = 2147483647; 718 | files = ( 719 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 720 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 721 | ); 722 | runOnlyForDeploymentPostprocessing = 0; 723 | }; 724 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 725 | isa = PBXSourcesBuildPhase; 726 | buildActionMask = 2147483647; 727 | files = ( 728 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 729 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 730 | ); 731 | runOnlyForDeploymentPostprocessing = 0; 732 | }; 733 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 734 | isa = PBXSourcesBuildPhase; 735 | buildActionMask = 2147483647; 736 | files = ( 737 | 2DCD954D1E0B4F2C00145EB5 /* OpenWeatherTests.m in Sources */, 738 | ); 739 | runOnlyForDeploymentPostprocessing = 0; 740 | }; 741 | /* End PBXSourcesBuildPhase section */ 742 | 743 | /* Begin PBXTargetDependency section */ 744 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 745 | isa = PBXTargetDependency; 746 | target = 13B07F861A680F5B00A75B9A /* OpenWeather */; 747 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 748 | }; 749 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 750 | isa = PBXTargetDependency; 751 | target = 2D02E47A1E0B4A5D006451C7 /* OpenWeather-tvOS */; 752 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 753 | }; 754 | /* End PBXTargetDependency section */ 755 | 756 | /* Begin PBXVariantGroup section */ 757 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 758 | isa = PBXVariantGroup; 759 | children = ( 760 | 13B07FB21A68108700A75B9A /* Base */, 761 | ); 762 | name = LaunchScreen.xib; 763 | path = OpenWeather; 764 | sourceTree = ""; 765 | }; 766 | /* End PBXVariantGroup section */ 767 | 768 | /* Begin XCBuildConfiguration section */ 769 | 00E356F61AD99517003FC87E /* Debug */ = { 770 | isa = XCBuildConfiguration; 771 | baseConfigurationReference = F30752645F788C2AD8D41950 /* Pods-OpenWeatherTests.debug.xcconfig */; 772 | buildSettings = { 773 | BUNDLE_LOADER = "$(TEST_HOST)"; 774 | GCC_PREPROCESSOR_DEFINITIONS = ( 775 | "DEBUG=1", 776 | "$(inherited)", 777 | ); 778 | INFOPLIST_FILE = OpenWeatherTests/Info.plist; 779 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 780 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 781 | OTHER_LDFLAGS = ( 782 | "-ObjC", 783 | "-lc++", 784 | "$(inherited)", 785 | ); 786 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 787 | PRODUCT_NAME = "$(TARGET_NAME)"; 788 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OpenWeather.app/OpenWeather"; 789 | }; 790 | name = Debug; 791 | }; 792 | 00E356F71AD99517003FC87E /* Release */ = { 793 | isa = XCBuildConfiguration; 794 | baseConfigurationReference = D52FECE5BE741B0864E695ED /* Pods-OpenWeatherTests.release.xcconfig */; 795 | buildSettings = { 796 | BUNDLE_LOADER = "$(TEST_HOST)"; 797 | COPY_PHASE_STRIP = NO; 798 | INFOPLIST_FILE = OpenWeatherTests/Info.plist; 799 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 800 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 801 | OTHER_LDFLAGS = ( 802 | "-ObjC", 803 | "-lc++", 804 | "$(inherited)", 805 | ); 806 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 807 | PRODUCT_NAME = "$(TARGET_NAME)"; 808 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OpenWeather.app/OpenWeather"; 809 | }; 810 | name = Release; 811 | }; 812 | 13B07F941A680F5B00A75B9A /* Debug */ = { 813 | isa = XCBuildConfiguration; 814 | baseConfigurationReference = 30CE7B20C853A4F408A2A5A5 /* Pods-OpenWeather.debug.xcconfig */; 815 | buildSettings = { 816 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 817 | CURRENT_PROJECT_VERSION = 1; 818 | DEAD_CODE_STRIPPING = NO; 819 | INFOPLIST_FILE = OpenWeather/Info.plist; 820 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 821 | OTHER_LDFLAGS = ( 822 | "$(inherited)", 823 | "-ObjC", 824 | "-lc++", 825 | ); 826 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 827 | PRODUCT_NAME = OpenWeather; 828 | VERSIONING_SYSTEM = "apple-generic"; 829 | }; 830 | name = Debug; 831 | }; 832 | 13B07F951A680F5B00A75B9A /* Release */ = { 833 | isa = XCBuildConfiguration; 834 | baseConfigurationReference = F152799A8B76D4F1D0DBA178 /* Pods-OpenWeather.release.xcconfig */; 835 | buildSettings = { 836 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 837 | CURRENT_PROJECT_VERSION = 1; 838 | INFOPLIST_FILE = OpenWeather/Info.plist; 839 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 840 | OTHER_LDFLAGS = ( 841 | "$(inherited)", 842 | "-ObjC", 843 | "-lc++", 844 | ); 845 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 846 | PRODUCT_NAME = OpenWeather; 847 | VERSIONING_SYSTEM = "apple-generic"; 848 | }; 849 | name = Release; 850 | }; 851 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 852 | isa = XCBuildConfiguration; 853 | baseConfigurationReference = 91D54C1B0F89F66450EDE503 /* Pods-OpenWeather-tvOS.debug.xcconfig */; 854 | buildSettings = { 855 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 856 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 857 | CLANG_ANALYZER_NONNULL = YES; 858 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 859 | CLANG_WARN_INFINITE_RECURSION = YES; 860 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 861 | DEBUG_INFORMATION_FORMAT = dwarf; 862 | ENABLE_TESTABILITY = YES; 863 | GCC_NO_COMMON_BLOCKS = YES; 864 | INFOPLIST_FILE = "OpenWeather-tvOS/Info.plist"; 865 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 866 | OTHER_LDFLAGS = ( 867 | "$(inherited)", 868 | "-ObjC", 869 | "-lc++", 870 | ); 871 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.OpenWeather-tvOS"; 872 | PRODUCT_NAME = "$(TARGET_NAME)"; 873 | SDKROOT = appletvos; 874 | TARGETED_DEVICE_FAMILY = 3; 875 | TVOS_DEPLOYMENT_TARGET = 9.2; 876 | }; 877 | name = Debug; 878 | }; 879 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 880 | isa = XCBuildConfiguration; 881 | baseConfigurationReference = 9B6F91B94D2E228AC4983BF7 /* Pods-OpenWeather-tvOS.release.xcconfig */; 882 | buildSettings = { 883 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 884 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 885 | CLANG_ANALYZER_NONNULL = YES; 886 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 887 | CLANG_WARN_INFINITE_RECURSION = YES; 888 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 889 | COPY_PHASE_STRIP = NO; 890 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 891 | GCC_NO_COMMON_BLOCKS = YES; 892 | INFOPLIST_FILE = "OpenWeather-tvOS/Info.plist"; 893 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 894 | OTHER_LDFLAGS = ( 895 | "$(inherited)", 896 | "-ObjC", 897 | "-lc++", 898 | ); 899 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.OpenWeather-tvOS"; 900 | PRODUCT_NAME = "$(TARGET_NAME)"; 901 | SDKROOT = appletvos; 902 | TARGETED_DEVICE_FAMILY = 3; 903 | TVOS_DEPLOYMENT_TARGET = 9.2; 904 | }; 905 | name = Release; 906 | }; 907 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 908 | isa = XCBuildConfiguration; 909 | baseConfigurationReference = DD4926D1AA0BB8EEC16EB1AF /* Pods-OpenWeather-tvOSTests.debug.xcconfig */; 910 | buildSettings = { 911 | BUNDLE_LOADER = "$(TEST_HOST)"; 912 | CLANG_ANALYZER_NONNULL = YES; 913 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 914 | CLANG_WARN_INFINITE_RECURSION = YES; 915 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 916 | DEBUG_INFORMATION_FORMAT = dwarf; 917 | ENABLE_TESTABILITY = YES; 918 | GCC_NO_COMMON_BLOCKS = YES; 919 | INFOPLIST_FILE = "OpenWeather-tvOSTests/Info.plist"; 920 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 921 | OTHER_LDFLAGS = ( 922 | "$(inherited)", 923 | "-ObjC", 924 | "-lc++", 925 | ); 926 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.OpenWeather-tvOSTests"; 927 | PRODUCT_NAME = "$(TARGET_NAME)"; 928 | SDKROOT = appletvos; 929 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OpenWeather-tvOS.app/OpenWeather-tvOS"; 930 | TVOS_DEPLOYMENT_TARGET = 10.1; 931 | }; 932 | name = Debug; 933 | }; 934 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 935 | isa = XCBuildConfiguration; 936 | baseConfigurationReference = 14B3E2595CBCDAB0D4C5F902 /* Pods-OpenWeather-tvOSTests.release.xcconfig */; 937 | buildSettings = { 938 | BUNDLE_LOADER = "$(TEST_HOST)"; 939 | CLANG_ANALYZER_NONNULL = YES; 940 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 941 | CLANG_WARN_INFINITE_RECURSION = YES; 942 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 943 | COPY_PHASE_STRIP = NO; 944 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 945 | GCC_NO_COMMON_BLOCKS = YES; 946 | INFOPLIST_FILE = "OpenWeather-tvOSTests/Info.plist"; 947 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 948 | OTHER_LDFLAGS = ( 949 | "$(inherited)", 950 | "-ObjC", 951 | "-lc++", 952 | ); 953 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.OpenWeather-tvOSTests"; 954 | PRODUCT_NAME = "$(TARGET_NAME)"; 955 | SDKROOT = appletvos; 956 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/OpenWeather-tvOS.app/OpenWeather-tvOS"; 957 | TVOS_DEPLOYMENT_TARGET = 10.1; 958 | }; 959 | name = Release; 960 | }; 961 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 962 | isa = XCBuildConfiguration; 963 | buildSettings = { 964 | ALWAYS_SEARCH_USER_PATHS = NO; 965 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 966 | CLANG_CXX_LIBRARY = "libc++"; 967 | CLANG_ENABLE_MODULES = YES; 968 | CLANG_ENABLE_OBJC_ARC = YES; 969 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 970 | CLANG_WARN_BOOL_CONVERSION = YES; 971 | CLANG_WARN_COMMA = YES; 972 | CLANG_WARN_CONSTANT_CONVERSION = YES; 973 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 974 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 975 | CLANG_WARN_EMPTY_BODY = YES; 976 | CLANG_WARN_ENUM_CONVERSION = YES; 977 | CLANG_WARN_INFINITE_RECURSION = YES; 978 | CLANG_WARN_INT_CONVERSION = YES; 979 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 980 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 981 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 982 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 983 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 984 | CLANG_WARN_STRICT_PROTOTYPES = YES; 985 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 986 | CLANG_WARN_UNREACHABLE_CODE = YES; 987 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 988 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 989 | COPY_PHASE_STRIP = NO; 990 | ENABLE_STRICT_OBJC_MSGSEND = YES; 991 | ENABLE_TESTABILITY = YES; 992 | GCC_C_LANGUAGE_STANDARD = gnu99; 993 | GCC_DYNAMIC_NO_PIC = NO; 994 | GCC_NO_COMMON_BLOCKS = YES; 995 | GCC_OPTIMIZATION_LEVEL = 0; 996 | GCC_PREPROCESSOR_DEFINITIONS = ( 997 | "DEBUG=1", 998 | "$(inherited)", 999 | ); 1000 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1001 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1002 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1003 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1004 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1005 | GCC_WARN_UNUSED_FUNCTION = YES; 1006 | GCC_WARN_UNUSED_VARIABLE = YES; 1007 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1008 | MTL_ENABLE_DEBUG_INFO = YES; 1009 | ONLY_ACTIVE_ARCH = YES; 1010 | SDKROOT = iphoneos; 1011 | }; 1012 | name = Debug; 1013 | }; 1014 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1015 | isa = XCBuildConfiguration; 1016 | buildSettings = { 1017 | ALWAYS_SEARCH_USER_PATHS = NO; 1018 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1019 | CLANG_CXX_LIBRARY = "libc++"; 1020 | CLANG_ENABLE_MODULES = YES; 1021 | CLANG_ENABLE_OBJC_ARC = YES; 1022 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1023 | CLANG_WARN_BOOL_CONVERSION = YES; 1024 | CLANG_WARN_COMMA = YES; 1025 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1026 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1027 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1028 | CLANG_WARN_EMPTY_BODY = YES; 1029 | CLANG_WARN_ENUM_CONVERSION = YES; 1030 | CLANG_WARN_INFINITE_RECURSION = YES; 1031 | CLANG_WARN_INT_CONVERSION = YES; 1032 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1033 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1034 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1035 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1036 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1037 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1038 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1039 | CLANG_WARN_UNREACHABLE_CODE = YES; 1040 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1041 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1042 | COPY_PHASE_STRIP = YES; 1043 | ENABLE_NS_ASSERTIONS = NO; 1044 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1045 | GCC_C_LANGUAGE_STANDARD = gnu99; 1046 | GCC_NO_COMMON_BLOCKS = YES; 1047 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1048 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1049 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1050 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1051 | GCC_WARN_UNUSED_FUNCTION = YES; 1052 | GCC_WARN_UNUSED_VARIABLE = YES; 1053 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1054 | MTL_ENABLE_DEBUG_INFO = NO; 1055 | SDKROOT = iphoneos; 1056 | VALIDATE_PRODUCT = YES; 1057 | }; 1058 | name = Release; 1059 | }; 1060 | /* End XCBuildConfiguration section */ 1061 | 1062 | /* Begin XCConfigurationList section */ 1063 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "OpenWeatherTests" */ = { 1064 | isa = XCConfigurationList; 1065 | buildConfigurations = ( 1066 | 00E356F61AD99517003FC87E /* Debug */, 1067 | 00E356F71AD99517003FC87E /* Release */, 1068 | ); 1069 | defaultConfigurationIsVisible = 0; 1070 | defaultConfigurationName = Release; 1071 | }; 1072 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "OpenWeather" */ = { 1073 | isa = XCConfigurationList; 1074 | buildConfigurations = ( 1075 | 13B07F941A680F5B00A75B9A /* Debug */, 1076 | 13B07F951A680F5B00A75B9A /* Release */, 1077 | ); 1078 | defaultConfigurationIsVisible = 0; 1079 | defaultConfigurationName = Release; 1080 | }; 1081 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "OpenWeather-tvOS" */ = { 1082 | isa = XCConfigurationList; 1083 | buildConfigurations = ( 1084 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1085 | 2D02E4981E0B4A5E006451C7 /* Release */, 1086 | ); 1087 | defaultConfigurationIsVisible = 0; 1088 | defaultConfigurationName = Release; 1089 | }; 1090 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "OpenWeather-tvOSTests" */ = { 1091 | isa = XCConfigurationList; 1092 | buildConfigurations = ( 1093 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1094 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1095 | ); 1096 | defaultConfigurationIsVisible = 0; 1097 | defaultConfigurationName = Release; 1098 | }; 1099 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "OpenWeather" */ = { 1100 | isa = XCConfigurationList; 1101 | buildConfigurations = ( 1102 | 83CBBA201A601CBA00E9B192 /* Debug */, 1103 | 83CBBA211A601CBA00E9B192 /* Release */, 1104 | ); 1105 | defaultConfigurationIsVisible = 0; 1106 | defaultConfigurationName = Release; 1107 | }; 1108 | /* End XCConfigurationList section */ 1109 | }; 1110 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1111 | } 1112 | -------------------------------------------------------------------------------- /ios/OpenWeather.xcodeproj/xcshareddata/xcschemes/OpenWeather-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/OpenWeather.xcodeproj/xcshareddata/xcschemes/OpenWeather.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/OpenWeather.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/OpenWeather.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/OpenWeather/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (nonatomic, strong) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ios/OpenWeather/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "AppDelegate.h" 9 | 10 | #import 11 | #import 12 | #import 13 | 14 | @implementation AppDelegate 15 | 16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | { 18 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 19 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 20 | moduleName:@"OpenWeather" 21 | initialProperties:nil]; 22 | 23 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 24 | 25 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 26 | UIViewController *rootViewController = [UIViewController new]; 27 | rootViewController.view = rootView; 28 | self.window.rootViewController = rootViewController; 29 | [self.window makeKeyAndVisible]; 30 | return YES; 31 | } 32 | 33 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 34 | { 35 | #if DEBUG 36 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 37 | #else 38 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 39 | #endif 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /ios/OpenWeather/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/OpenWeather/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/OpenWeather/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/OpenWeather/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | OpenWeather 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSAllowsArbitraryLoads 30 | 31 | NSExceptionDomains 32 | 33 | localhost 34 | 35 | NSExceptionAllowsInsecureHTTPLoads 36 | 37 | 38 | 39 | 40 | NSLocationWhenInUseUsageDescription 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /ios/OpenWeather/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ios/OpenWeatherTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/OpenWeatherTests/OpenWeatherTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | #define TIMEOUT_SECONDS 600 15 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 16 | 17 | @interface OpenWeatherTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation OpenWeatherTests 22 | 23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 24 | { 25 | if (test(view)) { 26 | return YES; 27 | } 28 | for (UIView *subview in [view subviews]) { 29 | if ([self findSubviewInView:subview matching:test]) { 30 | return YES; 31 | } 32 | } 33 | return NO; 34 | } 35 | 36 | - (void)testRendersWelcomeScreen 37 | { 38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 40 | BOOL foundElement = NO; 41 | 42 | __block NSString *redboxError = nil; 43 | #ifdef DEBUG 44 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 45 | if (level >= RCTLogLevelError) { 46 | redboxError = message; 47 | } 48 | }); 49 | #endif 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | #ifdef DEBUG 64 | RCTSetLogFunction(RCTDefaultLogFunction); 65 | #endif 66 | 67 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 68 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 69 | } 70 | 71 | 72 | @end 73 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '9.0' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | use_frameworks! 5 | 6 | target 'OpenWeather' do 7 | # Pods for OpenWeather 8 | pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" 9 | pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec" 10 | pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired" 11 | pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety" 12 | pod 'React', :path => '../node_modules/react-native/' 13 | pod 'React-Core', :path => '../node_modules/react-native/' 14 | pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules' 15 | pod 'React-Core/DevSupport', :path => '../node_modules/react-native/' 16 | pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' 17 | pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' 18 | pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' 19 | pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' 20 | pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' 21 | pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' 22 | pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' 23 | pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' 24 | pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' 25 | pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/' 26 | 27 | pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' 28 | pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' 29 | pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' 30 | pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' 31 | pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon" 32 | pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon" 33 | pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga' 34 | 35 | pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' 36 | pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' 37 | pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' 38 | 39 | target 'OpenWeatherTests' do 40 | inherit! :search_paths 41 | # Pods for testing 42 | end 43 | 44 | use_native_modules! 45 | end 46 | 47 | target 'OpenWeather-tvOS' do 48 | # Pods for OpenWeather-tvOS 49 | 50 | target 'OpenWeather-tvOSTests' do 51 | inherit! :search_paths 52 | # Pods for testing 53 | end 54 | 55 | end 56 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - DoubleConversion (1.1.6) 4 | - FBLazyVector (0.61.5) 5 | - FBReactNativeSpec (0.61.5): 6 | - Folly (= 2018.10.22.00) 7 | - RCTRequired (= 0.61.5) 8 | - RCTTypeSafety (= 0.61.5) 9 | - React-Core (= 0.61.5) 10 | - React-jsi (= 0.61.5) 11 | - ReactCommon/turbomodule/core (= 0.61.5) 12 | - Folly (2018.10.22.00): 13 | - boost-for-react-native 14 | - DoubleConversion 15 | - Folly/Default (= 2018.10.22.00) 16 | - glog 17 | - Folly/Default (2018.10.22.00): 18 | - boost-for-react-native 19 | - DoubleConversion 20 | - glog 21 | - glog (0.3.5) 22 | - lottie-ios (3.1.3) 23 | - lottie-react-native (3.3.2): 24 | - lottie-ios (~> 3.1.3) 25 | - React 26 | - RCTRequired (0.61.5) 27 | - RCTTypeSafety (0.61.5): 28 | - FBLazyVector (= 0.61.5) 29 | - Folly (= 2018.10.22.00) 30 | - RCTRequired (= 0.61.5) 31 | - React-Core (= 0.61.5) 32 | - React (0.61.5): 33 | - React-Core (= 0.61.5) 34 | - React-Core/DevSupport (= 0.61.5) 35 | - React-Core/RCTWebSocket (= 0.61.5) 36 | - React-RCTActionSheet (= 0.61.5) 37 | - React-RCTAnimation (= 0.61.5) 38 | - React-RCTBlob (= 0.61.5) 39 | - React-RCTImage (= 0.61.5) 40 | - React-RCTLinking (= 0.61.5) 41 | - React-RCTNetwork (= 0.61.5) 42 | - React-RCTSettings (= 0.61.5) 43 | - React-RCTText (= 0.61.5) 44 | - React-RCTVibration (= 0.61.5) 45 | - React-Core (0.61.5): 46 | - Folly (= 2018.10.22.00) 47 | - glog 48 | - React-Core/Default (= 0.61.5) 49 | - React-cxxreact (= 0.61.5) 50 | - React-jsi (= 0.61.5) 51 | - React-jsiexecutor (= 0.61.5) 52 | - Yoga 53 | - React-Core/CoreModulesHeaders (0.61.5): 54 | - Folly (= 2018.10.22.00) 55 | - glog 56 | - React-Core/Default 57 | - React-cxxreact (= 0.61.5) 58 | - React-jsi (= 0.61.5) 59 | - React-jsiexecutor (= 0.61.5) 60 | - Yoga 61 | - React-Core/Default (0.61.5): 62 | - Folly (= 2018.10.22.00) 63 | - glog 64 | - React-cxxreact (= 0.61.5) 65 | - React-jsi (= 0.61.5) 66 | - React-jsiexecutor (= 0.61.5) 67 | - Yoga 68 | - React-Core/DevSupport (0.61.5): 69 | - Folly (= 2018.10.22.00) 70 | - glog 71 | - React-Core/Default (= 0.61.5) 72 | - React-Core/RCTWebSocket (= 0.61.5) 73 | - React-cxxreact (= 0.61.5) 74 | - React-jsi (= 0.61.5) 75 | - React-jsiexecutor (= 0.61.5) 76 | - React-jsinspector (= 0.61.5) 77 | - Yoga 78 | - React-Core/RCTActionSheetHeaders (0.61.5): 79 | - Folly (= 2018.10.22.00) 80 | - glog 81 | - React-Core/Default 82 | - React-cxxreact (= 0.61.5) 83 | - React-jsi (= 0.61.5) 84 | - React-jsiexecutor (= 0.61.5) 85 | - Yoga 86 | - React-Core/RCTAnimationHeaders (0.61.5): 87 | - Folly (= 2018.10.22.00) 88 | - glog 89 | - React-Core/Default 90 | - React-cxxreact (= 0.61.5) 91 | - React-jsi (= 0.61.5) 92 | - React-jsiexecutor (= 0.61.5) 93 | - Yoga 94 | - React-Core/RCTBlobHeaders (0.61.5): 95 | - Folly (= 2018.10.22.00) 96 | - glog 97 | - React-Core/Default 98 | - React-cxxreact (= 0.61.5) 99 | - React-jsi (= 0.61.5) 100 | - React-jsiexecutor (= 0.61.5) 101 | - Yoga 102 | - React-Core/RCTImageHeaders (0.61.5): 103 | - Folly (= 2018.10.22.00) 104 | - glog 105 | - React-Core/Default 106 | - React-cxxreact (= 0.61.5) 107 | - React-jsi (= 0.61.5) 108 | - React-jsiexecutor (= 0.61.5) 109 | - Yoga 110 | - React-Core/RCTLinkingHeaders (0.61.5): 111 | - Folly (= 2018.10.22.00) 112 | - glog 113 | - React-Core/Default 114 | - React-cxxreact (= 0.61.5) 115 | - React-jsi (= 0.61.5) 116 | - React-jsiexecutor (= 0.61.5) 117 | - Yoga 118 | - React-Core/RCTNetworkHeaders (0.61.5): 119 | - Folly (= 2018.10.22.00) 120 | - glog 121 | - React-Core/Default 122 | - React-cxxreact (= 0.61.5) 123 | - React-jsi (= 0.61.5) 124 | - React-jsiexecutor (= 0.61.5) 125 | - Yoga 126 | - React-Core/RCTSettingsHeaders (0.61.5): 127 | - Folly (= 2018.10.22.00) 128 | - glog 129 | - React-Core/Default 130 | - React-cxxreact (= 0.61.5) 131 | - React-jsi (= 0.61.5) 132 | - React-jsiexecutor (= 0.61.5) 133 | - Yoga 134 | - React-Core/RCTTextHeaders (0.61.5): 135 | - Folly (= 2018.10.22.00) 136 | - glog 137 | - React-Core/Default 138 | - React-cxxreact (= 0.61.5) 139 | - React-jsi (= 0.61.5) 140 | - React-jsiexecutor (= 0.61.5) 141 | - Yoga 142 | - React-Core/RCTVibrationHeaders (0.61.5): 143 | - Folly (= 2018.10.22.00) 144 | - glog 145 | - React-Core/Default 146 | - React-cxxreact (= 0.61.5) 147 | - React-jsi (= 0.61.5) 148 | - React-jsiexecutor (= 0.61.5) 149 | - Yoga 150 | - React-Core/RCTWebSocket (0.61.5): 151 | - Folly (= 2018.10.22.00) 152 | - glog 153 | - React-Core/Default (= 0.61.5) 154 | - React-cxxreact (= 0.61.5) 155 | - React-jsi (= 0.61.5) 156 | - React-jsiexecutor (= 0.61.5) 157 | - Yoga 158 | - React-CoreModules (0.61.5): 159 | - FBReactNativeSpec (= 0.61.5) 160 | - Folly (= 2018.10.22.00) 161 | - RCTTypeSafety (= 0.61.5) 162 | - React-Core/CoreModulesHeaders (= 0.61.5) 163 | - React-RCTImage (= 0.61.5) 164 | - ReactCommon/turbomodule/core (= 0.61.5) 165 | - React-cxxreact (0.61.5): 166 | - boost-for-react-native (= 1.63.0) 167 | - DoubleConversion 168 | - Folly (= 2018.10.22.00) 169 | - glog 170 | - React-jsinspector (= 0.61.5) 171 | - React-jsi (0.61.5): 172 | - boost-for-react-native (= 1.63.0) 173 | - DoubleConversion 174 | - Folly (= 2018.10.22.00) 175 | - glog 176 | - React-jsi/Default (= 0.61.5) 177 | - React-jsi/Default (0.61.5): 178 | - boost-for-react-native (= 1.63.0) 179 | - DoubleConversion 180 | - Folly (= 2018.10.22.00) 181 | - glog 182 | - React-jsiexecutor (0.61.5): 183 | - DoubleConversion 184 | - Folly (= 2018.10.22.00) 185 | - glog 186 | - React-cxxreact (= 0.61.5) 187 | - React-jsi (= 0.61.5) 188 | - React-jsinspector (0.61.5) 189 | - React-RCTActionSheet (0.61.5): 190 | - React-Core/RCTActionSheetHeaders (= 0.61.5) 191 | - React-RCTAnimation (0.61.5): 192 | - React-Core/RCTAnimationHeaders (= 0.61.5) 193 | - React-RCTBlob (0.61.5): 194 | - React-Core/RCTBlobHeaders (= 0.61.5) 195 | - React-Core/RCTWebSocket (= 0.61.5) 196 | - React-jsi (= 0.61.5) 197 | - React-RCTNetwork (= 0.61.5) 198 | - React-RCTImage (0.61.5): 199 | - React-Core/RCTImageHeaders (= 0.61.5) 200 | - React-RCTNetwork (= 0.61.5) 201 | - React-RCTLinking (0.61.5): 202 | - React-Core/RCTLinkingHeaders (= 0.61.5) 203 | - React-RCTNetwork (0.61.5): 204 | - React-Core/RCTNetworkHeaders (= 0.61.5) 205 | - React-RCTSettings (0.61.5): 206 | - React-Core/RCTSettingsHeaders (= 0.61.5) 207 | - React-RCTText (0.61.5): 208 | - React-Core/RCTTextHeaders (= 0.61.5) 209 | - React-RCTVibration (0.61.5): 210 | - React-Core/RCTVibrationHeaders (= 0.61.5) 211 | - ReactCommon/jscallinvoker (0.61.5): 212 | - DoubleConversion 213 | - Folly (= 2018.10.22.00) 214 | - glog 215 | - React-cxxreact (= 0.61.5) 216 | - ReactCommon/turbomodule/core (0.61.5): 217 | - DoubleConversion 218 | - Folly (= 2018.10.22.00) 219 | - glog 220 | - React-Core (= 0.61.5) 221 | - React-cxxreact (= 0.61.5) 222 | - React-jsi (= 0.61.5) 223 | - ReactCommon/jscallinvoker (= 0.61.5) 224 | - RNGestureHandler (1.6.0): 225 | - React 226 | - Yoga (1.14.0) 227 | 228 | DEPENDENCIES: 229 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 230 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 231 | - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`) 232 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) 233 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 234 | - lottie-ios (from `../node_modules/lottie-ios`) 235 | - lottie-react-native (from `../node_modules/lottie-react-native`) 236 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 237 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 238 | - React (from `../node_modules/react-native/`) 239 | - React-Core (from `../node_modules/react-native/`) 240 | - React-Core/DevSupport (from `../node_modules/react-native/`) 241 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 242 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 243 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 244 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 245 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 246 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 247 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 248 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 249 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 250 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 251 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 252 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 253 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 254 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 255 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 256 | - ReactCommon/jscallinvoker (from `../node_modules/react-native/ReactCommon`) 257 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 258 | - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) 259 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 260 | 261 | SPEC REPOS: 262 | https://github.com/CocoaPods/Specs.git: 263 | - boost-for-react-native 264 | 265 | EXTERNAL SOURCES: 266 | DoubleConversion: 267 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 268 | FBLazyVector: 269 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 270 | FBReactNativeSpec: 271 | :path: "../node_modules/react-native/Libraries/FBReactNativeSpec" 272 | Folly: 273 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" 274 | glog: 275 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 276 | lottie-ios: 277 | :path: "../node_modules/lottie-ios" 278 | lottie-react-native: 279 | :path: "../node_modules/lottie-react-native" 280 | RCTRequired: 281 | :path: "../node_modules/react-native/Libraries/RCTRequired" 282 | RCTTypeSafety: 283 | :path: "../node_modules/react-native/Libraries/TypeSafety" 284 | React: 285 | :path: "../node_modules/react-native/" 286 | React-Core: 287 | :path: "../node_modules/react-native/" 288 | React-CoreModules: 289 | :path: "../node_modules/react-native/React/CoreModules" 290 | React-cxxreact: 291 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 292 | React-jsi: 293 | :path: "../node_modules/react-native/ReactCommon/jsi" 294 | React-jsiexecutor: 295 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 296 | React-jsinspector: 297 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 298 | React-RCTActionSheet: 299 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 300 | React-RCTAnimation: 301 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 302 | React-RCTBlob: 303 | :path: "../node_modules/react-native/Libraries/Blob" 304 | React-RCTImage: 305 | :path: "../node_modules/react-native/Libraries/Image" 306 | React-RCTLinking: 307 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 308 | React-RCTNetwork: 309 | :path: "../node_modules/react-native/Libraries/Network" 310 | React-RCTSettings: 311 | :path: "../node_modules/react-native/Libraries/Settings" 312 | React-RCTText: 313 | :path: "../node_modules/react-native/Libraries/Text" 314 | React-RCTVibration: 315 | :path: "../node_modules/react-native/Libraries/Vibration" 316 | ReactCommon: 317 | :path: "../node_modules/react-native/ReactCommon" 318 | RNGestureHandler: 319 | :path: "../node_modules/react-native-gesture-handler" 320 | Yoga: 321 | :path: "../node_modules/react-native/ReactCommon/yoga" 322 | 323 | SPEC CHECKSUMS: 324 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 325 | DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2 326 | FBLazyVector: aaeaf388755e4f29cd74acbc9e3b8da6d807c37f 327 | FBReactNativeSpec: 118d0d177724c2d67f08a59136eb29ef5943ec75 328 | Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51 329 | glog: 1f3da668190260b06b429bb211bfbee5cd790c28 330 | lottie-ios: 496ac5cea1bbf1a7bd1f1f472f3232eb1b8d744b 331 | lottie-react-native: 2a1a82bb326ae51331a5520de0cf706733c6db69 332 | RCTRequired: b153add4da6e7dbc44aebf93f3cf4fcae392ddf1 333 | RCTTypeSafety: 9aa1b91d7f9310fc6eadc3cf95126ffe818af320 334 | React: b6a59ef847b2b40bb6e0180a97d0ca716969ac78 335 | React-Core: 688b451f7d616cc1134ac95295b593d1b5158a04 336 | React-CoreModules: d04f8494c1a328b69ec11db9d1137d667f916dcb 337 | React-cxxreact: d0f7bcafa196ae410e5300736b424455e7fb7ba7 338 | React-jsi: cb2cd74d7ccf4cffb071a46833613edc79cdf8f7 339 | React-jsiexecutor: d5525f9ed5f782fdbacb64b9b01a43a9323d2386 340 | React-jsinspector: fa0ecc501688c3c4c34f28834a76302233e29dc0 341 | React-RCTActionSheet: 600b4d10e3aea0913b5a92256d2719c0cdd26d76 342 | React-RCTAnimation: 791a87558389c80908ed06cc5dfc5e7920dfa360 343 | React-RCTBlob: d89293cc0236d9cb0933d85e430b0bbe81ad1d72 344 | React-RCTImage: 6b8e8df449eb7c814c99a92d6b52de6fe39dea4e 345 | React-RCTLinking: 121bb231c7503cf9094f4d8461b96a130fabf4a5 346 | React-RCTNetwork: fb353640aafcee84ca8b78957297bd395f065c9a 347 | React-RCTSettings: 8db258ea2a5efee381fcf7a6d5044e2f8b68b640 348 | React-RCTText: 9ccc88273e9a3aacff5094d2175a605efa854dbe 349 | React-RCTVibration: a49a1f42bf8f5acf1c3e297097517c6b3af377ad 350 | ReactCommon: 198c7c8d3591f975e5431bec1b0b3b581aa1c5dd 351 | RNGestureHandler: dde546180bf24af0b5f737c8ad04b6f3fa51609a 352 | Yoga: f2a7cd4280bfe2cca5a7aed98ba0eb3d1310f18b 353 | 354 | PODFILE CHECKSUM: 76a1263521295cc0d7a13986407a64fadbba0231 355 | 356 | COCOAPODS: 1.9.1 357 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "paths": { 5 | "~/*": ["src/*"] 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: false, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "OpenWeather", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint ." 11 | }, 12 | "dependencies": { 13 | "axios": "^0.19.2", 14 | "lottie-ios": "3.1.3", 15 | "lottie-react-native": "^3.3.2", 16 | "prop-types": "^15.7.2", 17 | "react": "16.9.0", 18 | "react-native": "0.61.5", 19 | "react-native-dotenv": "^0.2.0", 20 | "react-native-gesture-handler": "^1.6.0", 21 | "react-native-location": "^2.5.0", 22 | "react-native-maps": "0.27.1", 23 | "react-navigation": "^4.2.2", 24 | "reactotron-react-native": "^4.0.3", 25 | "styled-components": "^5.0.1" 26 | }, 27 | "devDependencies": { 28 | "@babel/core": "^7.8.7", 29 | "@babel/runtime": "^7.8.7", 30 | "@react-native-community/eslint-config": "^0.0.7", 31 | "babel-eslint": "^10.1.0", 32 | "babel-jest": "^25.1.0", 33 | "babel-plugin-root-import": "^6.4.1", 34 | "eslint": "^6.8.0", 35 | "eslint-config-airbnb": "^18.0.1", 36 | "eslint-import-resolver-babel-plugin-root-import": "^1.1.1", 37 | "eslint-plugin-import": "^2.20.1", 38 | "eslint-plugin-jsx-a11y": "^6.2.3", 39 | "eslint-plugin-react": "^7.19.0", 40 | "eslint-plugin-react-native": "^3.8.1", 41 | "jest": "^25.1.0", 42 | "metro-react-native-babel-preset": "^0.58.0", 43 | "react-test-renderer": "16.9.0" 44 | }, 45 | "jest": { 46 | "preset": "react-native" 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /readme/bookmark_detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/readme/bookmark_detail.png -------------------------------------------------------------------------------- /readme/bookmarked_location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/readme/bookmarked_location.png -------------------------------------------------------------------------------- /readme/bookmarked_showing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/readme/bookmarked_showing.png -------------------------------------------------------------------------------- /readme/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/readme/logo.png -------------------------------------------------------------------------------- /readme/map_view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucasmontano/openweathermap-reactnative/ae023bf06d317bc8a841e7f72d0d47832198d818/readme/map_view.png -------------------------------------------------------------------------------- /src/assets/lottie-animations/sunny.json: -------------------------------------------------------------------------------- 1 | {"v":"5.1.1","fr":60,"ip":0,"op":180,"w":256,"h":256,"nm":"Sunny","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Oval ","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[127.43,127.43,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,-0.294]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_-0p294_0p333_0"],"t":0,"s":[100,100,100],"e":[103,103,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,1.985]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_1p985_0p333_0"],"t":35,"s":[103,103,100],"e":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,15.47]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_15p47_0p333_0"],"t":80,"s":[100,100,100],"e":[103,103,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,-13.47]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_-13p47_0p333_0"],"t":125,"s":[103,103,100],"e":[100,100,100]},{"t":180}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[153.6,153.6],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.788235008717,0.188234999776,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Oval ","np":2,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Oval","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[127.435,127.435,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":0,"s":[98,98,100],"e":[101,101,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,2.005]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_2p005_0p333_0"],"t":40,"s":[101,101,100],"e":[98,98,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,-0.005]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_-0p005_0p333_0"],"t":85,"s":[98,98,100],"e":[101,101,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p833_1_0p333_0","0p833_1_0p333_0","0p833_1_0p333_0"],"t":130,"s":[101,101,100],"e":[98,98,100]},{"t":180}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[180.91,180.91],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.860368013382,0.464744985104,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":8.533,"ix":5},"lc":1,"lj":1,"ml":4,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Oval","np":2,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Oval","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[128,128,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.015]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p015_0p333_0"],"t":0,"s":[100,100,100],"e":[103,103,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,1.985]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_1p985_0p333_0"],"t":45,"s":[103,103,100],"e":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.015]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p015_0p333_0"],"t":90,"s":[100,100,100],"e":[103,103,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,1.985]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_1p985_0p333_0"],"t":135,"s":[103,103,100],"e":[100,100,100]},{"t":180}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[204.8,204.8],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.961977005005,0.856356978416,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4.571,"ix":5},"lc":1,"lj":1,"ml":4,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Oval","np":2,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"bond","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[128,128,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[256,256],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"bond","np":1,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180,"st":0,"bm":0}],"markers":[]} -------------------------------------------------------------------------------- /src/components/ForecastDetails/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import {Animated} from 'react-native'; 3 | import {PanGestureHandler, State} from 'react-native-gesture-handler'; 4 | 5 | import LottieView from 'lottie-react-native'; 6 | import LottieAnimationJson from '~/assets/lottie-animations/sunny.json'; 7 | 8 | import { 9 | Card, 10 | Header, 11 | Body, 12 | Wind, 13 | Temperature, 14 | WeatherInfo, 15 | Umidity, 16 | Observations, 17 | BookmarkButton, 18 | ButtonText, 19 | WeatherInfoContainer, 20 | AnimationContainer, 21 | Bottom, 22 | } from './styles'; 23 | 24 | export default function ForecastDetails() { 25 | let offset = 0; 26 | const translateY = new Animated.Value(0); 27 | 28 | const animatedEvent = Animated.event( 29 | [ 30 | { 31 | nativeEvent: { 32 | translationY: translateY, 33 | }, 34 | }, 35 | ], 36 | {useNativeDriver: true}, 37 | ); 38 | 39 | function onHandlerStateChanged(event) { 40 | if (event.nativeEvent.oldState === State.ACTIVE) { 41 | const {translationY} = event.nativeEvent; 42 | let opened = false; 43 | offset += translationY; 44 | 45 | if (translationY >= 100) { 46 | opened = true; 47 | } else { 48 | translateY.setValue(offset); 49 | translateY.setOffset(0); 50 | offset = 0; 51 | } 52 | 53 | Animated.timing(translateY, { 54 | toValue: opened ? 500 : 0, 55 | duration: 300, 56 | useNativeDriver: true, 57 | }).start(() => { 58 | offset = opened ? 500 : 0; 59 | translateY.setOffset(offset); 60 | translateY.setValue(0); 61 | }); 62 | } 63 | } 64 | 65 | return ( 66 | 69 | 81 |
89 | Vreeland 90 |
91 | 99 | 100 | M7º / L5º 101 | 102 | Light rain 103 | 87 % 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | Right now is 5ºC and feels like -1ºC outside. The wind is blowing 112 | around 8.7 km/h and the pressure is 1009 hPa. 113 | 114 | 115 | Bookmark this location 116 | 117 | 118 |
119 |
120 | ); 121 | } 122 | -------------------------------------------------------------------------------- /src/components/ForecastDetails/styles.js: -------------------------------------------------------------------------------- 1 | import {Animated} from 'react-native'; 2 | import styled from 'styled-components/native'; 3 | 4 | export const Card = styled(Animated.View)` 5 | flex: 1; 6 | background: #fff; 7 | border-top-left-radius: 10px; 8 | border-top-right-radius: 10px; 9 | height: 100%; 10 | margin: 30px 20px; 11 | width: 90%; 12 | left: 0; 13 | right: 0; 14 | top: 0; 15 | position: absolute; 16 | `; 17 | 18 | export const Header = styled(Animated.Text)` 19 | font-size: 30px; 20 | font-weight: bold; 21 | padding: 10px 10px 10px 20px; 22 | border-top-left-radius: 10px; 23 | border-top-right-radius: 10px; 24 | background-color: #7159c1; 25 | color: #fff; 26 | `; 27 | 28 | export const Body = styled(Animated.View)` 29 | flex-direction: row; 30 | `; 31 | 32 | export const Wind = styled.Text` 33 | padding: 20px 0 0 20px; 34 | font-size: 18px; 35 | font-weight: bold; 36 | `; 37 | 38 | export const Temperature = styled.Text` 39 | padding: 0 0 0 20px; 40 | margin-top: 70px; 41 | font-size: 70px; 42 | `; 43 | 44 | export const WeatherInfo = styled.Text` 45 | padding: 0 0 0 20px; 46 | font-size: 20px; 47 | font-weight: bold; 48 | `; 49 | 50 | export const WeatherInfoContainer = styled.View``; 51 | 52 | export const Umidity = styled.Text` 53 | padding: 0 0 0 20px; 54 | margin-top: 70px; 55 | font-size: 20px; 56 | font-weight: bold; 57 | `; 58 | 59 | export const Observations = styled.Text` 60 | padding: 30px 20px 0 20px; 61 | `; 62 | 63 | export const BookmarkButton = styled.TouchableOpacity` 64 | padding: 15px; 65 | background-color: #7159c1; 66 | margin: 30px 20px 0 20px; 67 | border-radius: 10px; 68 | align-items: center; 69 | `; 70 | 71 | export const ButtonText = styled.Text` 72 | color: white; 73 | font-weight: bold; 74 | `; 75 | 76 | export const AnimationContainer = styled.View` 77 | flex: 1; 78 | margin: 10px; 79 | `; 80 | 81 | export const Bottom = styled.View``; 82 | -------------------------------------------------------------------------------- /src/config/ReactotronConfig.js: -------------------------------------------------------------------------------- 1 | import Reactotron from 'reactotron-react-native'; 2 | 3 | if (__DEV__) { 4 | const tron = Reactotron.configure() 5 | .useReactNative() 6 | .connect(); 7 | 8 | tron.clear(); 9 | 10 | console.tron = tron; 11 | } 12 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import '~/config/ReactotronConfig'; 4 | 5 | import Routes from '~/routes'; 6 | 7 | const App = () => ; 8 | 9 | export default App; 10 | -------------------------------------------------------------------------------- /src/pages/Main/index.js: -------------------------------------------------------------------------------- 1 | import React, {useEffect, useState} from 'react'; 2 | 3 | import {View, StyleSheet} from 'react-native'; 4 | import ForecastDetails from '~/components/ForecastDetails'; 5 | import MapView from 'react-native-maps'; 6 | import {SafeAreaView} from 'react-navigation'; 7 | import RNLocation from 'react-native-location'; 8 | 9 | const styles = StyleSheet.create({ 10 | container: { 11 | alignItems: 'center', 12 | flex: 1, 13 | backgroundColor: '#cecece', 14 | }, 15 | }); 16 | 17 | const Main = () => { 18 | const [currentRegion, setCurrentRegion] = useState({ 19 | latitude: null, 20 | longitude: null, 21 | latitudeDelta: 1, 22 | longitudeDelta: 1, 23 | }); 24 | 25 | useEffect(() => { 26 | async function loadInitialPosition() { 27 | const granted = await RNLocation.requestPermission({ 28 | ios: 'whenInUse', 29 | android: { 30 | detail: 'coarse', 31 | }, 32 | }); 33 | 34 | if (granted) { 35 | RNLocation.subscribeToLocationUpdates(locations => { 36 | if (locations.length > 0) { 37 | const {latitude, longitude} = locations[0]; 38 | setCurrentRegion({ 39 | latitude, 40 | longitude, 41 | latitudeDelta: 1, 42 | longitudeDelta: 1, 43 | }); 44 | } 45 | }); 46 | } 47 | } 48 | 49 | loadInitialPosition(); 50 | }, []); 51 | 52 | return ( 53 | 54 | {currentRegion.latitude && ( 55 | 59 | )} 60 | 61 | 62 | ); 63 | }; 64 | 65 | export default Main; 66 | -------------------------------------------------------------------------------- /src/routes.js: -------------------------------------------------------------------------------- 1 | import {createAppContainer, createSwitchNavigator} from 'react-navigation'; 2 | 3 | import Main from '~/pages/Main'; 4 | 5 | const Routes = createAppContainer(createSwitchNavigator({Main})); 6 | 7 | export default Routes; 8 | -------------------------------------------------------------------------------- /src/services/api.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | 3 | import {OPEN_WEATHER_MAP_APP_ID} from 'react-native-dotenv'; 4 | 5 | const api = axios.create({ 6 | baseURL: 'https://api.openweathermap.org/data/2.5/', 7 | }); 8 | 9 | api.interceptors.request.use(config => { 10 | config.params = config.params || {}; 11 | 12 | config.params.APPID = OPEN_WEATHER_MAP_APP_ID; 13 | config.params.units = config.params.units || 'metric'; 14 | 15 | return config; 16 | }); 17 | 18 | export default api; 19 | --------------------------------------------------------------------------------