├── .npmrc ├── coverage ├── lcov.info └── lcov-report │ ├── sort-arrow-sprite.png │ ├── prettify.css │ ├── index.html │ ├── src │ ├── index.html │ ├── helpers │ │ ├── index.html │ │ └── handleError.js.html │ └── index.js.html │ ├── flow-typed │ └── npm │ │ └── index.html │ ├── sorter.js │ ├── base.css │ └── prettify.js ├── DevApp ├── .watchmanconfig ├── .gitattributes ├── app.json ├── android │ ├── app │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── values │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ └── styles.xml │ │ │ │ │ ├── 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 │ │ │ │ ├── java │ │ │ │ │ └── com │ │ │ │ │ │ └── devapp │ │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ │ └── MainApplication.java │ │ │ │ └── AndroidManifest.xml │ │ │ └── debug │ │ │ │ └── AndroidManifest.xml │ │ ├── proguard-rules.pro │ │ ├── build_defs.bzl │ │ ├── _BUCK │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ ├── gradle.properties │ ├── build.gradle │ ├── gradlew.bat │ └── gradlew ├── ios │ ├── DevApp │ │ ├── Images.xcassets │ │ │ ├── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── AppDelegate.h │ │ ├── main.m │ │ ├── AppDelegate.m │ │ ├── Info.plist │ │ └── Base.lproj │ │ │ └── LaunchScreen.xib │ ├── DevAppTests │ │ ├── Info.plist │ │ └── DevAppTests.m │ ├── DevApp-tvOSTests │ │ └── Info.plist │ ├── DevApp-tvOS │ │ └── Info.plist │ └── DevApp.xcodeproj │ │ ├── xcshareddata │ │ └── xcschemes │ │ │ ├── DevApp.xcscheme │ │ │ └── DevApp-tvOS.xcscheme │ │ └── project.pbxproj ├── index.js ├── .buckconfig ├── babel.config.js ├── metro.config.js ├── __tests__ │ ├── App.test.js │ └── __snapshots__ │ │ └── App.test.js.snap ├── jest.config.js ├── package.json ├── .gitignore ├── App.js ├── __mocks__ │ └── @react-native-community │ │ └── async-storage │ │ └── index.js └── .flowconfig ├── .eslintignore ├── .npmignore ├── .travis.yml ├── .eslintrc ├── babel.config.js ├── .editorconfig ├── src ├── helpers │ └── handleError.js ├── index.js └── __tests__ │ └── index.test.js ├── .flowconfig ├── jest.config.js ├── tsconfig.json ├── .gitignore ├── LICENSE.md ├── __mocks__ └── @react-native-community │ └── async-storage │ └── index.js ├── README.md └── package.json /.npmrc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /coverage/lcov.info: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DevApp/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | **/*.test.js 2 | -------------------------------------------------------------------------------- /DevApp/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | DevApp/ 2 | README.md 3 | .* 4 | src/__tests__/ 5 | flow-typed/ 6 | -------------------------------------------------------------------------------- /DevApp/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DevApp", 3 | "displayName": "DevApp" 4 | } 5 | -------------------------------------------------------------------------------- /DevApp/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | DevApp 3 | 4 | -------------------------------------------------------------------------------- /DevApp/ios/DevApp/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /coverage/lcov-report/sort-arrow-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raphaelpor/sync-storage/HEAD/coverage/lcov-report/sort-arrow-sprite.png -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "lts/*" 4 | before_script: 5 | - "npm install" 6 | script: npm run check-code && npm run test 7 | -------------------------------------------------------------------------------- /DevApp/index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './App'; 3 | 4 | AppRegistry.registerComponent('DevApp', () => App); 5 | -------------------------------------------------------------------------------- /DevApp/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /DevApp/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raphaelpor/sync-storage/HEAD/DevApp/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /DevApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raphaelpor/sync-storage/HEAD/DevApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /DevApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raphaelpor/sync-storage/HEAD/DevApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /DevApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raphaelpor/sync-storage/HEAD/DevApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /DevApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raphaelpor/sync-storage/HEAD/DevApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /DevApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raphaelpor/sync-storage/HEAD/DevApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /DevApp/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raphaelpor/sync-storage/HEAD/DevApp/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /DevApp/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raphaelpor/sync-storage/HEAD/DevApp/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /DevApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raphaelpor/sync-storage/HEAD/DevApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /DevApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raphaelpor/sync-storage/HEAD/DevApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /DevApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raphaelpor/sync-storage/HEAD/DevApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /DevApp/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'DevApp' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /DevApp/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 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint", 3 | "extends": "airbnb", 4 | "plugins": [ 5 | "react", 6 | "jsx-a11y", 7 | "import" 8 | ], 9 | "rules": { 10 | "function-paren-newline": ["off", "never"], 11 | "implicit-arrow-linebreak": ["off", "never"] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /DevApp/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = function (api) { 2 | api.cache(false); 3 | 4 | const presets = ['module:metro-react-native-babel-preset', '@babel/flow']; 5 | const plugins = [ 6 | ]; 7 | 8 | return { 9 | presets, 10 | plugins, 11 | sourceMaps: true 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = function (api) { 2 | api.cache(false); 3 | 4 | const presets = ['@babel/typescript', '@babel/env', 'module:metro-react-native-babel-preset', '@babel/flow']; 5 | const plugins = [ 6 | ]; 7 | 8 | return { 9 | presets, 10 | plugins 11 | }; 12 | } 13 | 14 | 15 | -------------------------------------------------------------------------------- /DevApp/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /DevApp/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 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | # Unix-style newlines with a newline ending every file 5 | [*] 6 | indent_style = space 7 | indent_size = 2 8 | end_of_line = lf 9 | charset = utf-8 10 | trim_trailing_whitespace = true 11 | insert_final_newline = true 12 | 13 | [*.md] 14 | trim_trailing_whitespace = false 15 | 16 | [Makefile] 17 | indent_style = tab 18 | indent_size = 2 19 | -------------------------------------------------------------------------------- /DevApp/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/helpers/handleError.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | 3 | function handleError(func: string, param: ?string): Promise { 4 | let message; 5 | if (!param) { 6 | message = func; 7 | } else { 8 | message = `${func}() requires at least ${param} as its first parameter.`; 9 | } 10 | console.warn(message); // eslint-disable-line no-console 11 | return Promise.reject(message); 12 | } 13 | 14 | export default handleError; 15 | -------------------------------------------------------------------------------- /DevApp/__tests__/App.test.js: -------------------------------------------------------------------------------- 1 | // import 'react-native'; 2 | import React from 'react'; 3 | import App from '../App'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | jest.mock('@react-native-community/async-storage'); 9 | 10 | it('renders correctly', () => { 11 | const tree = renderer.create().toJSON(); 12 | expect(tree).toMatchSnapshot(); 13 | }); 14 | -------------------------------------------------------------------------------- /DevApp/android/app/src/main/java/com/devapp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.devapp; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "DevApp"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | .*/node_modules/.* 3 | .*/DevApp/.* 4 | 5 | [options] 6 | # Workaround to deal with this issue: https://github.com/facebook/flow/issues/869 7 | # More info: https://github.com/reactjs/react-redux/issues/137#issuecomment-264199618 8 | module.name_mapper='\(react-native\)' -> '/flow-workaround/GeneralStub.js.flow' 9 | module.name_mapper='\(react-native-draftjs-render\)' -> '/flow-workaround/GeneralStub.js.flow' 10 | 11 | [version] 12 | ^0.113.0 13 | -------------------------------------------------------------------------------- /DevApp/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 | -------------------------------------------------------------------------------- /DevApp/ios/DevApp/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /DevApp/__tests__/__snapshots__/App.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`renders correctly 1`] = ` 4 | 14 | 23 | Loading... 24 | 25 | 26 | `; 27 | -------------------------------------------------------------------------------- /DevApp/ios/DevApp/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /DevApp/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'react-native', 3 | "verbose": true, 4 | transform: { 5 | '^.+\\.t|j]sx?$': require.resolve('react-native/jest/preprocessor.js') 6 | }, 7 | clearMocks: true, 8 | coverageDirectory: './coverage/', 9 | coverageReporters: [ 10 | 'lcov', 11 | 'text' 12 | ], 13 | transformIgnorePatterns: [ 'node_modules/(?!(sync-storage|react-native)/)' ], 14 | collectCoverage: true, 15 | coveragePathIgnorePatterns: [ 16 | '/node_modules/', 17 | '/coverage/' 18 | ], 19 | collectCoverageFrom: [ 20 | '**/*.{js}' 21 | ] 22 | }; 23 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'react-native', 3 | "verbose": true, 4 | transform: { 5 | '^.+\\.t|j]sx?$': require.resolve('react-native/jest/preprocessor.js') 6 | }, 7 | testMatch: [ 8 | '**/src/**/*.test.js' 9 | ], 10 | modulePathIgnorePatterns: [ 11 | '/DevApp/' 12 | ], 13 | clearMocks: true, 14 | coverageDirectory: './coverage/', 15 | coverageReporters: [ 16 | 'lcov', 17 | 'text' 18 | ], 19 | collectCoverage: true, 20 | coveragePathIgnorePatterns: [ 21 | '/node_modules/', 22 | '/DevApp/', 23 | '/coverage/' 24 | ], 25 | collectCoverageFrom: [ 26 | '**/*.{js}' 27 | ] 28 | }; 29 | -------------------------------------------------------------------------------- /coverage/lcov-report/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | // Target latest version of ECMAScript. 4 | "target": "esnext", 5 | // Search under node_modules for non-relative imports. 6 | "moduleResolution": "node", 7 | // Process & infer types from .js files. 8 | "allowJs": true, 9 | // Don't emit; allow Babel to transform files. 10 | "noEmit": true, 11 | // Enable strictest settings like strictNullChecks & noImplicitAny. 12 | "strict": true, 13 | // Disallow features that require cross-file information for emit. 14 | "isolatedModules": true, 15 | // Import non-ES modules as default imports. 16 | "esModuleInterop": true 17 | }, 18 | "include": [ 19 | "src" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /DevApp/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 | -------------------------------------------------------------------------------- /DevApp/ios/DevApp/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 | } -------------------------------------------------------------------------------- /DevApp/ios/DevAppTests/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 | -------------------------------------------------------------------------------- /DevApp/ios/DevApp-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 | -------------------------------------------------------------------------------- /DevApp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "DevApp", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "start-android": "npx react-native run-android", 8 | "test": "jest --config ./jest.config.js --no-cache" 9 | }, 10 | "dependencies": { 11 | "@react-native-community/async-storage": "^1.6.3", 12 | "react": "^16.9.0", 13 | "react-native": "^0.61.5", 14 | "sync-storage": "^0.4.0" 15 | }, 16 | "devDependencies": { 17 | "@babel/cli": "^7.7.5", 18 | "@babel/core": "^7.7.5", 19 | "@babel/polyfill": "^7.7.0", 20 | "@babel/preset-env": "^7.7.6", 21 | "@babel/preset-flow": "^7.7.4", 22 | "@babel/runtime": "^7.7.6", 23 | "babel-core": "^7.0.0-bridge.0", 24 | "babel-jest": "^24.9.0", 25 | "babel-plugin-jest-hoist": "^24.9.0", 26 | "jest-cli": "^24.9.0", 27 | "metro-react-native-babel-preset": "^0.57.0", 28 | "react-test-renderer": "^16.12.0" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /DevApp/.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 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.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 | -------------------------------------------------------------------------------- /DevApp/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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | coverage 5 | 6 | # Xcode 7 | # 8 | build/ 9 | *.pbxuser 10 | !default.pbxuser 11 | *.mode1v3 12 | !default.mode1v3 13 | *.mode2v3 14 | !default.mode2v3 15 | *.perspectivev3 16 | !default.perspectivev3 17 | xcuserdata 18 | *.xccheckout 19 | *.moved-aside 20 | DerivedData 21 | *.hmap 22 | *.ipa 23 | *.xcuserstate 24 | project.xcworkspace 25 | 26 | # Android/IntelliJ 27 | # 28 | build/ 29 | .idea 30 | .gradle 31 | local.properties 32 | *.iml 33 | 34 | # node.js 35 | # 36 | node_modules/ 37 | npm-debug.log 38 | yarn-error.log 39 | package-lock.json 40 | 41 | # BUCK 42 | buck-out/ 43 | \.buckd/ 44 | *.keystore 45 | 46 | # fastlane 47 | # 48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 49 | # screenshots whenever they are needed. 50 | # For more information about the recommended setup visit: 51 | # https://docs.fastlane.tools/best-practices/source-control/ 52 | 53 | */fastlane/report.xml 54 | */fastlane/Preview.html 55 | */fastlane/screenshots 56 | 57 | DevApp/sync-storage 58 | -------------------------------------------------------------------------------- /DevApp/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright 2017-present, Raphael Porto 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | 11 | Source: http://opensource.org/licenses/MIT 12 | -------------------------------------------------------------------------------- /DevApp/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 | -------------------------------------------------------------------------------- /DevApp/App.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | StyleSheet, 10 | Text, 11 | View, 12 | } from 'react-native'; 13 | 14 | import SyncStorage from 'sync-storage'; 15 | 16 | const styles = StyleSheet.create({ 17 | container: { 18 | flex: 1, 19 | justifyContent: 'center', 20 | alignItems: 'center', 21 | backgroundColor: '#F5FCFF', 22 | }, 23 | welcome: { 24 | fontSize: 20, 25 | textAlign: 'center', 26 | margin: 10, 27 | }, 28 | }); 29 | 30 | class App extends Component<{}> { 31 | constructor() { 32 | super(); 33 | this.state = { 34 | data: '', 35 | loading: true, 36 | }; 37 | } 38 | 39 | async componentDidMount() { 40 | const storageKeys = ['module-name']; 41 | await SyncStorage.init(storageKeys); 42 | SyncStorage.set('module-name', 'DevApp'); 43 | const data = SyncStorage.get('module-name'); 44 | this.setState({ data, loading: false }); 45 | } 46 | 47 | render() { 48 | return ( 49 | 50 | 51 | {this.state.loading ? 'Loading...' : `Welcome to ${this.state.data}!`} 52 | 53 | 54 | ); 55 | } 56 | } 57 | 58 | export default App; 59 | -------------------------------------------------------------------------------- /DevApp/ios/DevApp/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"DevApp" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /__mocks__/@react-native-community/async-storage/index.js: -------------------------------------------------------------------------------- 1 | let cache = {}; 2 | 3 | const multi = (arrKeys) => { 4 | const keys = Object.keys(cache); 5 | const arr = []; 6 | for (var i = 0; i < keys.length; i++) { 7 | if (arrKeys.indexOf(keys[i]) !== -1) { 8 | arr.push(cache[keys[i]]); 9 | } 10 | } 11 | return arr; 12 | } 13 | 14 | export default { 15 | multiGet: (keys) => { 16 | return new Promise((resolve, reject) => { 17 | return (typeof keys !== 'object') 18 | ? reject(new Error('keys must be array')) 19 | : resolve(multi(keys)); 20 | }); 21 | }, 22 | setItem: (key, value) => { 23 | return new Promise((resolve, reject) => { 24 | return (typeof key !== 'string' || typeof value !== 'string') 25 | ? reject(new Error('key and value must be string')) 26 | : resolve(cache[key] = value); 27 | }); 28 | }, 29 | getItem: (key, value) => { 30 | return new Promise((resolve) => { 31 | return cache.hasOwnProperty(key) 32 | ? resolve(cache[key]) 33 | : resolve(null); 34 | }); 35 | }, 36 | removeItem: (key) => { 37 | return new Promise((resolve, reject) => { 38 | return cache.hasOwnProperty(key) 39 | ? resolve(delete cache[key]) 40 | : reject('No such key!'); 41 | }); 42 | }, 43 | clear: (key) => { 44 | return new Promise((resolve, reject) => resolve(cache = {})); 45 | }, 46 | 47 | getAllKeys: (key) => { 48 | return new Promise((resolve, reject) => resolve(Object.keys(cache))); 49 | }, 50 | } 51 | -------------------------------------------------------------------------------- /DevApp/__mocks__/@react-native-community/async-storage/index.js: -------------------------------------------------------------------------------- 1 | let cache = {}; 2 | 3 | const multi = (arrKeys) => { 4 | const keys = Object.keys(cache); 5 | const arr = []; 6 | for (var i = 0; i < keys.length; i++) { 7 | if (arrKeys.indexOf(keys[i]) !== -1) { 8 | arr.push(cache[keys[i]]); 9 | } 10 | } 11 | return arr; 12 | } 13 | 14 | export default { 15 | multiGet: (keys) => { 16 | return new Promise((resolve, reject) => { 17 | return (typeof keys !== 'object') 18 | ? reject(new Error('keys must be array')) 19 | : resolve(multi(keys)); 20 | }); 21 | }, 22 | setItem: (key, value) => { 23 | return new Promise((resolve, reject) => { 24 | return (typeof key !== 'string' || typeof value !== 'string') 25 | ? reject(new Error('key and value must be string')) 26 | : resolve(cache[key] = value); 27 | }); 28 | }, 29 | getItem: (key, value) => { 30 | return new Promise((resolve) => { 31 | return cache.hasOwnProperty(key) 32 | ? resolve(cache[key]) 33 | : resolve(null); 34 | }); 35 | }, 36 | removeItem: (key) => { 37 | return new Promise((resolve, reject) => { 38 | return cache.hasOwnProperty(key) 39 | ? resolve(delete cache[key]) 40 | : reject('No such key!'); 41 | }); 42 | }, 43 | clear: (key) => { 44 | return new Promise((resolve, reject) => resolve(cache = {})); 45 | }, 46 | 47 | getAllKeys: (key) => { 48 | return new Promise((resolve, reject) => resolve(Object.keys(cache))); 49 | }, 50 | } 51 | -------------------------------------------------------------------------------- /DevApp/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.devapp", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.devapp", 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 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import AsyncStorage from '@react-native-community/async-storage'; 2 | 3 | import handleError from './helpers/handleError'; 4 | 5 | type KeyType = string; 6 | 7 | class SyncStorage { 8 | data: Map<*, *> = new Map(); 9 | 10 | loading: boolean = true; 11 | 12 | init(): Promise> { 13 | return AsyncStorage.getAllKeys().then((keys: Array) => 14 | AsyncStorage.multiGet(keys).then((data: Array>): Array< 15 | *, 16 | > => { 17 | data.forEach(this.saveItem.bind(this)); 18 | 19 | return [...this.data]; 20 | }), 21 | ); 22 | } 23 | 24 | get(key: KeyType): any { 25 | return this.data.get(key); 26 | } 27 | 28 | set(key: KeyType, value: any): Promise<*> { 29 | if (!key) return handleError('set', 'a key'); 30 | 31 | this.data.set(key, value); 32 | return AsyncStorage.setItem(key, JSON.stringify(value)); 33 | } 34 | 35 | remove(key: KeyType): Promise<*> { 36 | if (!key) return handleError('remove', 'a key'); 37 | 38 | this.data.delete(key); 39 | return AsyncStorage.removeItem(key); 40 | } 41 | 42 | saveItem(item: Array) { 43 | let value; 44 | 45 | try { 46 | value = JSON.parse(item[1]); 47 | } catch (e) { 48 | [, value] = item; 49 | } 50 | 51 | this.data.set(item[0], value); 52 | this.loading = false; 53 | } 54 | 55 | getAllKeys(): Array<*> { 56 | return Array.from(this.data.keys()); 57 | } 58 | } 59 | 60 | const syncStorage = new SyncStorage(); 61 | 62 | export default syncStorage; 63 | -------------------------------------------------------------------------------- /src/__tests__/index.test.js: -------------------------------------------------------------------------------- 1 | import SyncStorage from '../index'; 2 | 3 | jest.mock('@react-native-community/async-storage'); 4 | 5 | test("Can init with a list of keys", () => { 6 | // expect.assertions(1); 7 | return SyncStorage.set('foo', 'bar').then(() => 8 | SyncStorage.init().then((data) => { 9 | expect(data[0][1]).toBe('bar'); 10 | })); 11 | }); 12 | 13 | test("Can set and get a value", () => { 14 | SyncStorage.set('foo', 'bar'); 15 | expect(SyncStorage.get('foo')).toBe('bar'); 16 | }); 17 | 18 | test("Can set and remove a value", () => { 19 | SyncStorage.set('foo', 'bar'); 20 | SyncStorage.remove('foo') 21 | expect(SyncStorage.get('foo')).toBeFalsy(); 22 | }); 23 | 24 | test("Returns a error when set() don't have a key", () => { 25 | expect.assertions(1); 26 | return SyncStorage.set() 27 | .catch((error) => { 28 | expect(error).toMatch('set() requires at least a key as its first parameter.'); 29 | }); 30 | }); 31 | 32 | test("Returns a error when remove() don't have a key", () => { 33 | expect.assertions(1); 34 | return SyncStorage.remove() 35 | .catch((error) => { 36 | expect(error).toMatch('remove() requires at least a key as its first parameter.'); 37 | }); 38 | }); 39 | 40 | test("Can update an item", () => { 41 | SyncStorage.saveItem(['bar', 'baz']); 42 | expect(SyncStorage.get('bar')).toBe('baz'); 43 | }); 44 | 45 | test('Can get all keys from storage', () => { 46 | SyncStorage.set('foo', 'bar'); 47 | const all_keys = SyncStorage.getAllKeys(); 48 | expect(all_keys) 49 | .toEqual(expect.arrayContaining(['foo'])); 50 | }); 51 | 52 | -------------------------------------------------------------------------------- /DevApp/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | 16 | ; Ignore polyfills 17 | .*/Libraries/polyfills/.* 18 | 19 | [include] 20 | 21 | [libs] 22 | node_modules/react-native/Libraries/react-native/react-native-interface.js 23 | node_modules/react-native/flow/ 24 | 25 | [options] 26 | emoji=true 27 | 28 | module.system=haste 29 | 30 | munge_underscores=true 31 | 32 | 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\)$' -> 'RelativeImageStub' 33 | 34 | suppress_type=$FlowIssue 35 | suppress_type=$FlowFixMe 36 | suppress_type=$FlowFixMeProps 37 | suppress_type=$FlowFixMeState 38 | suppress_type=$FixMe 39 | 40 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 41 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 42 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 43 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 44 | 45 | unsafe.enable_getters_and_setters=true 46 | 47 | [version] 48 | ^0.56.0 49 | -------------------------------------------------------------------------------- /DevApp/ios/DevApp-tvOS/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 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /DevApp/ios/DevApp/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | DevApp 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 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 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | 46 | NSExceptionDomains 47 | 48 | localhost 49 | 50 | NSExceptionAllowsInsecureHTTPLoads 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /DevApp/ios/DevAppTests/DevAppTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface DevAppTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation DevAppTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 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 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /DevApp/android/app/src/main/java/com/devapp/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.devapp; 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 | public class MainApplication extends Application implements ReactApplication { 14 | 15 | private final ReactNativeHost mReactNativeHost = 16 | new ReactNativeHost(this) { 17 | @Override 18 | public boolean getUseDeveloperSupport() { 19 | return BuildConfig.DEBUG; 20 | } 21 | 22 | @Override 23 | protected List getPackages() { 24 | @SuppressWarnings("UnnecessaryLocalVariable") 25 | List packages = new PackageList(this).getPackages(); 26 | // Packages that cannot be autolinked yet can be added manually here, for example: 27 | // packages.add(new MyReactNativePackage()); 28 | return packages; 29 | } 30 | 31 | @Override 32 | protected String getJSMainModuleName() { 33 | return "index"; 34 | } 35 | }; 36 | 37 | @Override 38 | public ReactNativeHost getReactNativeHost() { 39 | return mReactNativeHost; 40 | } 41 | 42 | @Override 43 | public void onCreate() { 44 | super.onCreate(); 45 | SoLoader.init(this, /* native exopackage */ false); 46 | initializeFlipper(this); // Remove this line if you don't want Flipper enabled 47 | } 48 | 49 | /** 50 | * Loads Flipper in React Native templates. 51 | * 52 | * @param context 53 | */ 54 | private static void initializeFlipper(Context context) { 55 | if (BuildConfig.DEBUG) { 56 | try { 57 | /* 58 | We use reflection here to pick up the class that initializes Flipper, 59 | since Flipper library is not available in release mode 60 | */ 61 | Class aClass = Class.forName("com.facebook.flipper.ReactNativeFlipper"); 62 | aClass.getMethod("initializeFlipper", Context.class).invoke(null, context); 63 | } catch (ClassNotFoundException e) { 64 | e.printStackTrace(); 65 | } catch (NoSuchMethodException e) { 66 | e.printStackTrace(); 67 | } catch (IllegalAccessException e) { 68 | e.printStackTrace(); 69 | } catch (InvocationTargetException e) { 70 | e.printStackTrace(); 71 | } 72 | } 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SyncStorage 2 | 3 | Synchronous storage for 4 | [React Native AsyncStorage](https://facebook.github.io/react-native/docs/asyncstorage.html). 5 | 6 | [![Build Status](https://travis-ci.org/raphaelpor/sync-storage.svg?branch=master)](https://travis-ci.org/raphaelpor/sync-storage) 7 | [![codecov](https://codecov.io/gh/raphaelpor/sync-storage/branch/master/graph/badge.svg)](https://codecov.io/gh/raphaelpor/sync-storage) 8 | [![npm version](https://badge.fury.io/js/sync-storage.svg)](https://www.npmjs.com/package/sync-storage) 9 | [![license](https://img.shields.io/npm/l/sync-storage.svg)](https://github.com/raphaelpor/sync-storage/blob/master/LICENSE.md) 10 | 11 | ## Get Started 12 | 13 | * [Installation](https://github.com/raphaelpor/sync-storage#Installation) 14 | * [Usage](https://github.com/raphaelpor/sync-storage#Usage) 15 | * [Methods Available](https://github.com/raphaelpor/sync-storage#methods-available) 16 | 17 | ### Installation 18 | 19 | ```sh 20 | yarn add sync-storage 21 | # or 22 | # npm i --save sync-storage 23 | ``` 24 | 25 | ### Usage 26 | 27 | ```js 28 | import SyncStorage from 'sync-storage'; 29 | 30 | SyncStorage.set('foo', 'bar'); 31 | 32 | const result = SyncStorage.get('foo'); 33 | console.log(result); // 'bar' 34 | ``` 35 | 36 | ### Methods Available 37 | 38 | #### init() 39 | 40 | Init prepares the SyncStorage to work synchronously, by getting all values for all keys previously 41 | saved on RN AsyncStorage. See the example: 42 | 43 | ```js 44 | const data = await SyncStorage.init(); 45 | console.log('AsyncStorage is ready!', data); 46 | ``` 47 | 48 | #### get(key: _string_) 49 | 50 | Returns the value of key. 51 | 52 | ```js 53 | SyncStorage.get('foo'); // 'bar' 54 | ``` 55 | 56 | #### set(key: _string_, value: _Any type_) 57 | 58 | It saves the value on memory and on the AsyncStorage. 59 | 60 | ```js 61 | SyncStorage.set('foo', 'bar'); 62 | SyncStorage.get('foo'); // 'bar' 63 | ``` 64 | 65 | It also returns a Promise for post verification. 66 | 67 | ```js 68 | SyncStorage.set('foo', 'bar') 69 | .then(() => { 70 | SyncStorage.get('foo'); // 'bar' 71 | }) 72 | .catch(error => { 73 | console.log(error); 74 | }); 75 | ``` 76 | 77 | #### remove(key: _string_) 78 | 79 | It removes the value from the memory and from the AsyncStorage. 80 | 81 | ```js 82 | SyncStorage.remove('foo'); 83 | ``` 84 | 85 | It also returns a Promise for post verification. 86 | 87 | ```js 88 | SyncStorage.remove('foo') 89 | .then(() => { 90 | SyncStorage.get('foo'); // undefined 91 | }) 92 | .catch(error => { 93 | console.log(error); 94 | }); 95 | ``` 96 | 97 | #### getAllKeys() 98 | 99 | returns an array from all the keys. 100 | 101 | ```js 102 | SyncStorage.set('foo', 'bar'); 103 | SyncStorage.set('boo', 'baz'); 104 | console.log(SyncStorage.getAllKeys()) // ['foo', 'boo'] 105 | ``` 106 | -------------------------------------------------------------------------------- /coverage/lcov-report/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Code coverage report for All files 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 |
17 |
18 |

19 | All files 20 |

21 |
22 |
23 | Unknown% 24 | Statements 25 | 0/0 26 |
27 |
28 | Unknown% 29 | Branches 30 | 0/0 31 |
32 |
33 | Unknown% 34 | Functions 35 | 0/0 36 |
37 |
38 | Unknown% 39 | Lines 40 | 0/0 41 |
42 |
43 |

44 | Press n or j to go to the next uncovered block, b, p or k for the previous block. 45 |

46 |
47 |
48 |
49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 |
FileStatementsBranchesFunctionsLines
66 |
67 |
68 | 72 | 73 | 74 | 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /DevApp/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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sync-storage", 3 | "version": "0.4.2", 4 | "description": "Synchronous storage for React Native.", 5 | "main": "src/index.js", 6 | "scripts": { 7 | "check-code": "npm run lint && npm run flow", 8 | "coverage": "jest --coverage", 9 | "flow": "flow", 10 | "flow-stop": "flow stop", 11 | "lint": "eslint src/", 12 | "prettier": "prettier --write src/index.js", 13 | "sync-devapp": "cp -R ./src ./DevApp/sync-storage", 14 | "test": "jest --config ./jest.config.js --no-cache", 15 | "test-codecov": "npm test && codecov" 16 | }, 17 | "keywords": [ 18 | "AsyncStorage", 19 | "React", 20 | "Native", 21 | "SyncStorage", 22 | "Storage" 23 | ], 24 | "author": "Raphael Porto", 25 | "license": "MIT", 26 | "repository": { 27 | "type": "git", 28 | "url": "git+https://github.com/raphaelpor/SyncStorage.git" 29 | }, 30 | "bugs": { 31 | "url": "https://github.com/raphaelpor/SyncStorage/issues" 32 | }, 33 | "peerDependencies": { 34 | "react": "*", 35 | "react-native": ">=0.61" 36 | }, 37 | "devDependencies": { 38 | "@babel/cli": "^7.7.5", 39 | "@babel/core": "^7.7.5", 40 | "@babel/plugin-proposal-class-properties": "^7.7.4", 41 | "@babel/plugin-proposal-decorators": "^7.7.4", 42 | "@babel/plugin-proposal-do-expressions": "^7.7.4", 43 | "@babel/plugin-proposal-export-default-from": "^7.7.4", 44 | "@babel/plugin-proposal-export-namespace-from": "^7.7.4", 45 | "@babel/plugin-proposal-function-bind": "^7.7.4", 46 | "@babel/plugin-proposal-function-sent": "^7.7.4", 47 | "@babel/plugin-proposal-json-strings": "^7.7.4", 48 | "@babel/plugin-proposal-logical-assignment-operators": "^7.7.4", 49 | "@babel/plugin-proposal-nullish-coalescing-operator": "^7.7.4", 50 | "@babel/plugin-proposal-numeric-separator": "^7.7.4", 51 | "@babel/plugin-proposal-optional-chaining": "^7.7.5", 52 | "@babel/plugin-proposal-pipeline-operator": "^7.7.4", 53 | "@babel/plugin-proposal-throw-expressions": "^7.7.4", 54 | "@babel/plugin-syntax-dynamic-import": "^7.7.4", 55 | "@babel/plugin-syntax-import-meta": "^7.7.4", 56 | "@babel/plugin-transform-modules-commonjs": "^7.7.5", 57 | "@babel/plugin-transform-typescript": "^7.7.4", 58 | "@babel/polyfill": "^7.7.0", 59 | "@babel/preset-env": "^7.7.6", 60 | "@babel/preset-flow": "^7.7.4", 61 | "@babel/preset-react": "^7.7.4", 62 | "@babel/preset-typescript": "^7.7.4", 63 | "@babel/runtime": "^7.7.6", 64 | "babel-core": "^7.0.0-bridge.0", 65 | "babel-eslint": "^10.0.3", 66 | "babel-jest": "^24.9.0", 67 | "babel-loader": "^8.0.6", 68 | "babel-plugin-jest-hoist": "^24.9.0", 69 | "codecov": "^3.6.1", 70 | "eslint": "^6.7.2", 71 | "eslint-config-airbnb": "^18.0.1", 72 | "eslint-plugin-import": "^2.18.2", 73 | "eslint-plugin-jsx-a11y": "^6.2.3", 74 | "eslint-plugin-react": "^7.17.0", 75 | "flow-bin": "0.113.0", 76 | "jest-cli": "^24.9.0", 77 | "metro-react-native-babel-preset": "^0.57.0", 78 | "prettier-eslint": "^9.0.1", 79 | "react": "^16.6.3", 80 | "react-native": "^0.61.5", 81 | "react-test-renderer": "16.12.0", 82 | "regenerator-runtime": "^0.13.3", 83 | "typescript": "^3.7.3" 84 | }, 85 | "dependencies": { 86 | "@react-native-community/async-storage": "^1.6.3" 87 | }, 88 | "prettier": { 89 | "trailingComma": "all", 90 | "tabWidth": 2, 91 | "semi": true, 92 | "singleQuote": true, 93 | "printWidth": 80 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /DevApp/ios/DevApp/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 | -------------------------------------------------------------------------------- /coverage/lcov-report/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Code coverage report for src 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 |
17 |
18 |

19 | All files src 20 |

21 |
22 |
23 | 0% 24 | Statements 25 | 0/81 26 |
27 |
28 | 0% 29 | Branches 30 | 0/36 31 |
32 |
33 | 0% 34 | Functions 35 | 0/19 36 |
37 |
38 | 0% 39 | Lines 40 | 0/26 41 |
42 |
43 |
44 |
45 |
46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 |
FileStatementsBranchesFunctionsLines
index.js
0%0/810%0/360%0/190%0/26
76 |
77 |
78 | 82 | 83 | 84 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /coverage/lcov-report/src/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Code coverage report for src/helpers 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 |
17 |
18 |

19 | All files src/helpers 20 |

21 |
22 |
23 | 0% 24 | Statements 25 | 0/8 26 |
27 |
28 | 0% 29 | Branches 30 | 0/2 31 |
32 |
33 | 0% 34 | Functions 35 | 0/1 36 |
37 |
38 | 0% 39 | Lines 40 | 0/8 41 |
42 |
43 |
44 |
45 |
46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 |
FileStatementsBranchesFunctionsLines
handleError.js
0%0/80%0/20%0/10%0/8
76 |
77 |
78 | 82 | 83 | 84 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /coverage/lcov-report/flow-typed/npm/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Code coverage report for flow-typed/npm 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 |
17 |
18 |

19 | All files flow-typed/npm 20 |

21 |
22 |
23 | 100% 24 | Statements 25 | 0/0 26 |
27 |
28 | 100% 29 | Branches 30 | 0/0 31 |
32 |
33 | 100% 34 | Functions 35 | 0/0 36 |
37 |
38 | 100% 39 | Lines 40 | 0/0 41 |
42 |
43 |
44 |
45 |
46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 |
FileStatementsBranchesFunctionsLines
react-native_vx.x.x.js
100%0/0100%0/0100%0/0100%0/0
76 |
77 |
78 | 82 | 83 | 84 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /coverage/lcov-report/src/helpers/handleError.js.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Code coverage report for src/helpers/handleError.js 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 |
17 |
18 |

19 | All files / src/helpers handleError.js 20 |

21 |
22 |
23 | 0% 24 | Statements 25 | 0/8 26 |
27 |
28 | 0% 29 | Branches 30 | 0/2 31 |
32 |
33 | 0% 34 | Functions 35 | 0/1 36 |
37 |
38 | 0% 39 | Lines 40 | 0/8 41 |
42 |
43 |
44 |
45 |

 46 | 
 89 | 
1 47 | 2 48 | 3 49 | 4 50 | 5 51 | 6 52 | 7 53 | 8 54 | 9 55 | 10 56 | 11 57 | 12 58 | 13 59 | 14 60 | 15  61 |   62 |   63 |   64 |   65 |   66 |   67 |   68 |   69 |   70 |   71 |   72 |   73 |   74 |  
// @flow
 75 |  
 76 | function handleError(func: string, param: ?string): Promise<string> {
 77 |   let message;
 78 |   if (!param) {
 79 |     message = func;
 80 |   } else {
 81 |     message = `${func}() requires at least ${param} as its first parameter.`;
 82 |   }
 83 |   console.warn(message); // eslint-disable-line no-console
 84 |   return Promise.reject(message);
 85 | }
 86 |  
 87 | export default handleError;
 88 |  
90 |
91 |
92 | 96 | 97 | 98 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /DevApp/ios/DevApp.xcodeproj/xcshareddata/xcschemes/DevApp.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 | -------------------------------------------------------------------------------- /DevApp/ios/DevApp.xcodeproj/xcshareddata/xcschemes/DevApp-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 | -------------------------------------------------------------------------------- /coverage/lcov-report/sorter.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var addSorting = (function() { 3 | 'use strict'; 4 | var cols, 5 | currentSort = { 6 | index: 0, 7 | desc: false 8 | }; 9 | 10 | // returns the summary table element 11 | function getTable() { 12 | return document.querySelector('.coverage-summary'); 13 | } 14 | // returns the thead element of the summary table 15 | function getTableHeader() { 16 | return getTable().querySelector('thead tr'); 17 | } 18 | // returns the tbody element of the summary table 19 | function getTableBody() { 20 | return getTable().querySelector('tbody'); 21 | } 22 | // returns the th element for nth column 23 | function getNthColumn(n) { 24 | return getTableHeader().querySelectorAll('th')[n]; 25 | } 26 | 27 | // loads all columns 28 | function loadColumns() { 29 | var colNodes = getTableHeader().querySelectorAll('th'), 30 | colNode, 31 | cols = [], 32 | col, 33 | i; 34 | 35 | for (i = 0; i < colNodes.length; i += 1) { 36 | colNode = colNodes[i]; 37 | col = { 38 | key: colNode.getAttribute('data-col'), 39 | sortable: !colNode.getAttribute('data-nosort'), 40 | type: colNode.getAttribute('data-type') || 'string' 41 | }; 42 | cols.push(col); 43 | if (col.sortable) { 44 | col.defaultDescSort = col.type === 'number'; 45 | colNode.innerHTML = 46 | colNode.innerHTML + ''; 47 | } 48 | } 49 | return cols; 50 | } 51 | // attaches a data attribute to every tr element with an object 52 | // of data values keyed by column name 53 | function loadRowData(tableRow) { 54 | var tableCols = tableRow.querySelectorAll('td'), 55 | colNode, 56 | col, 57 | data = {}, 58 | i, 59 | val; 60 | for (i = 0; i < tableCols.length; i += 1) { 61 | colNode = tableCols[i]; 62 | col = cols[i]; 63 | val = colNode.getAttribute('data-value'); 64 | if (col.type === 'number') { 65 | val = Number(val); 66 | } 67 | data[col.key] = val; 68 | } 69 | return data; 70 | } 71 | // loads all row data 72 | function loadData() { 73 | var rows = getTableBody().querySelectorAll('tr'), 74 | i; 75 | 76 | for (i = 0; i < rows.length; i += 1) { 77 | rows[i].data = loadRowData(rows[i]); 78 | } 79 | } 80 | // sorts the table using the data for the ith column 81 | function sortByIndex(index, desc) { 82 | var key = cols[index].key, 83 | sorter = function(a, b) { 84 | a = a.data[key]; 85 | b = b.data[key]; 86 | return a < b ? -1 : a > b ? 1 : 0; 87 | }, 88 | finalSorter = sorter, 89 | tableBody = document.querySelector('.coverage-summary tbody'), 90 | rowNodes = tableBody.querySelectorAll('tr'), 91 | rows = [], 92 | i; 93 | 94 | if (desc) { 95 | finalSorter = function(a, b) { 96 | return -1 * sorter(a, b); 97 | }; 98 | } 99 | 100 | for (i = 0; i < rowNodes.length; i += 1) { 101 | rows.push(rowNodes[i]); 102 | tableBody.removeChild(rowNodes[i]); 103 | } 104 | 105 | rows.sort(finalSorter); 106 | 107 | for (i = 0; i < rows.length; i += 1) { 108 | tableBody.appendChild(rows[i]); 109 | } 110 | } 111 | // removes sort indicators for current column being sorted 112 | function removeSortIndicators() { 113 | var col = getNthColumn(currentSort.index), 114 | cls = col.className; 115 | 116 | cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, ''); 117 | col.className = cls; 118 | } 119 | // adds sort indicators for current column being sorted 120 | function addSortIndicators() { 121 | getNthColumn(currentSort.index).className += currentSort.desc 122 | ? ' sorted-desc' 123 | : ' sorted'; 124 | } 125 | // adds event listeners for all sorter widgets 126 | function enableUI() { 127 | var i, 128 | el, 129 | ithSorter = function ithSorter(i) { 130 | var col = cols[i]; 131 | 132 | return function() { 133 | var desc = col.defaultDescSort; 134 | 135 | if (currentSort.index === i) { 136 | desc = !currentSort.desc; 137 | } 138 | sortByIndex(i, desc); 139 | removeSortIndicators(); 140 | currentSort.index = i; 141 | currentSort.desc = desc; 142 | addSortIndicators(); 143 | }; 144 | }; 145 | for (i = 0; i < cols.length; i += 1) { 146 | if (cols[i].sortable) { 147 | // add the click event handler on the th so users 148 | // dont have to click on those tiny arrows 149 | el = getNthColumn(i).querySelector('.sorter').parentElement; 150 | if (el.addEventListener) { 151 | el.addEventListener('click', ithSorter(i)); 152 | } else { 153 | el.attachEvent('onclick', ithSorter(i)); 154 | } 155 | } 156 | } 157 | } 158 | // adds sorting functionality to the UI 159 | return function() { 160 | if (!getTable()) { 161 | return; 162 | } 163 | cols = loadColumns(); 164 | loadData(); 165 | addSortIndicators(); 166 | enableUI(); 167 | }; 168 | })(); 169 | 170 | window.addEventListener('load', addSorting); 171 | -------------------------------------------------------------------------------- /coverage/lcov-report/base.css: -------------------------------------------------------------------------------- 1 | body, html { 2 | margin:0; padding: 0; 3 | height: 100%; 4 | } 5 | body { 6 | font-family: Helvetica Neue, Helvetica, Arial; 7 | font-size: 14px; 8 | color:#333; 9 | } 10 | .small { font-size: 12px; } 11 | *, *:after, *:before { 12 | -webkit-box-sizing:border-box; 13 | -moz-box-sizing:border-box; 14 | box-sizing:border-box; 15 | } 16 | h1 { font-size: 20px; margin: 0;} 17 | h2 { font-size: 14px; } 18 | pre { 19 | font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; 20 | margin: 0; 21 | padding: 0; 22 | -moz-tab-size: 2; 23 | -o-tab-size: 2; 24 | tab-size: 2; 25 | } 26 | a { color:#0074D9; text-decoration:none; } 27 | a:hover { text-decoration:underline; } 28 | .strong { font-weight: bold; } 29 | .space-top1 { padding: 10px 0 0 0; } 30 | .pad2y { padding: 20px 0; } 31 | .pad1y { padding: 10px 0; } 32 | .pad2x { padding: 0 20px; } 33 | .pad2 { padding: 20px; } 34 | .pad1 { padding: 10px; } 35 | .space-left2 { padding-left:55px; } 36 | .space-right2 { padding-right:20px; } 37 | .center { text-align:center; } 38 | .clearfix { display:block; } 39 | .clearfix:after { 40 | content:''; 41 | display:block; 42 | height:0; 43 | clear:both; 44 | visibility:hidden; 45 | } 46 | .fl { float: left; } 47 | @media only screen and (max-width:640px) { 48 | .col3 { width:100%; max-width:100%; } 49 | .hide-mobile { display:none!important; } 50 | } 51 | 52 | .quiet { 53 | color: #7f7f7f; 54 | color: rgba(0,0,0,0.5); 55 | } 56 | .quiet a { opacity: 0.7; } 57 | 58 | .fraction { 59 | font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; 60 | font-size: 10px; 61 | color: #555; 62 | background: #E8E8E8; 63 | padding: 4px 5px; 64 | border-radius: 3px; 65 | vertical-align: middle; 66 | } 67 | 68 | div.path a:link, div.path a:visited { color: #333; } 69 | table.coverage { 70 | border-collapse: collapse; 71 | margin: 10px 0 0 0; 72 | padding: 0; 73 | } 74 | 75 | table.coverage td { 76 | margin: 0; 77 | padding: 0; 78 | vertical-align: top; 79 | } 80 | table.coverage td.line-count { 81 | text-align: right; 82 | padding: 0 5px 0 20px; 83 | } 84 | table.coverage td.line-coverage { 85 | text-align: right; 86 | padding-right: 10px; 87 | min-width:20px; 88 | } 89 | 90 | table.coverage td span.cline-any { 91 | display: inline-block; 92 | padding: 0 5px; 93 | width: 100%; 94 | } 95 | .missing-if-branch { 96 | display: inline-block; 97 | margin-right: 5px; 98 | border-radius: 3px; 99 | position: relative; 100 | padding: 0 4px; 101 | background: #333; 102 | color: yellow; 103 | } 104 | 105 | .skip-if-branch { 106 | display: none; 107 | margin-right: 10px; 108 | position: relative; 109 | padding: 0 4px; 110 | background: #ccc; 111 | color: white; 112 | } 113 | .missing-if-branch .typ, .skip-if-branch .typ { 114 | color: inherit !important; 115 | } 116 | .coverage-summary { 117 | border-collapse: collapse; 118 | width: 100%; 119 | } 120 | .coverage-summary tr { border-bottom: 1px solid #bbb; } 121 | .keyline-all { border: 1px solid #ddd; } 122 | .coverage-summary td, .coverage-summary th { padding: 10px; } 123 | .coverage-summary tbody { border: 1px solid #bbb; } 124 | .coverage-summary td { border-right: 1px solid #bbb; } 125 | .coverage-summary td:last-child { border-right: none; } 126 | .coverage-summary th { 127 | text-align: left; 128 | font-weight: normal; 129 | white-space: nowrap; 130 | } 131 | .coverage-summary th.file { border-right: none !important; } 132 | .coverage-summary th.pct { } 133 | .coverage-summary th.pic, 134 | .coverage-summary th.abs, 135 | .coverage-summary td.pct, 136 | .coverage-summary td.abs { text-align: right; } 137 | .coverage-summary td.file { white-space: nowrap; } 138 | .coverage-summary td.pic { min-width: 120px !important; } 139 | .coverage-summary tfoot td { } 140 | 141 | .coverage-summary .sorter { 142 | height: 10px; 143 | width: 7px; 144 | display: inline-block; 145 | margin-left: 0.5em; 146 | background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; 147 | } 148 | .coverage-summary .sorted .sorter { 149 | background-position: 0 -20px; 150 | } 151 | .coverage-summary .sorted-desc .sorter { 152 | background-position: 0 -10px; 153 | } 154 | .status-line { height: 10px; } 155 | /* yellow */ 156 | .cbranch-no { background: yellow !important; color: #111; } 157 | /* dark red */ 158 | .red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } 159 | .low .chart { border:1px solid #C21F39 } 160 | .highlighted, 161 | .highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{ 162 | background: #C21F39 !important; 163 | } 164 | /* medium red */ 165 | .cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } 166 | /* light red */ 167 | .low, .cline-no { background:#FCE1E5 } 168 | /* light green */ 169 | .high, .cline-yes { background:rgb(230,245,208) } 170 | /* medium green */ 171 | .cstat-yes { background:rgb(161,215,106) } 172 | /* dark green */ 173 | .status-line.high, .high .cover-fill { background:rgb(77,146,33) } 174 | .high .chart { border:1px solid rgb(77,146,33) } 175 | /* dark yellow (gold) */ 176 | .status-line.medium, .medium .cover-fill { background: #f9cd0b; } 177 | .medium .chart { border:1px solid #f9cd0b; } 178 | /* light yellow */ 179 | .medium { background: #fff4c2; } 180 | 181 | .cstat-skip { background: #ddd; color: #111; } 182 | .fstat-skip { background: #ddd; color: #111 !important; } 183 | .cbranch-skip { background: #ddd !important; color: #111; } 184 | 185 | span.cline-neutral { background: #eaeaea; } 186 | 187 | .coverage-summary td.empty { 188 | opacity: .5; 189 | padding-top: 4px; 190 | padding-bottom: 4px; 191 | line-height: 1; 192 | color: #888; 193 | } 194 | 195 | .cover-fill, .cover-empty { 196 | display:inline-block; 197 | height: 12px; 198 | } 199 | .chart { 200 | line-height: 0; 201 | } 202 | .cover-empty { 203 | background: white; 204 | } 205 | .cover-full { 206 | border-right: none !important; 207 | } 208 | pre.prettyprint { 209 | border: none !important; 210 | padding: 0 !important; 211 | margin: 0 !important; 212 | } 213 | .com { color: #999 !important; } 214 | .ignore-none { color: #999; font-weight: normal; } 215 | 216 | .wrapper { 217 | min-height: 100%; 218 | height: auto !important; 219 | height: 100%; 220 | margin: 0 auto -48px; 221 | } 222 | .footer, .push { 223 | height: 48px; 224 | } 225 | -------------------------------------------------------------------------------- /DevApp/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 | -------------------------------------------------------------------------------- /DevApp/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 | 122 | android { 123 | compileSdkVersion rootProject.ext.compileSdkVersion 124 | 125 | compileOptions { 126 | sourceCompatibility JavaVersion.VERSION_1_8 127 | targetCompatibility JavaVersion.VERSION_1_8 128 | } 129 | 130 | defaultConfig { 131 | applicationId "com.devapp" 132 | minSdkVersion rootProject.ext.minSdkVersion 133 | targetSdkVersion rootProject.ext.targetSdkVersion 134 | versionCode 1 135 | versionName "1.0" 136 | } 137 | splits { 138 | abi { 139 | reset() 140 | enable enableSeparateBuildPerCPUArchitecture 141 | universalApk false // If true, also generate a universal APK 142 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 143 | } 144 | } 145 | signingConfigs { 146 | debug { 147 | storeFile file('debug.keystore') 148 | storePassword 'android' 149 | keyAlias 'androiddebugkey' 150 | keyPassword 'android' 151 | } 152 | } 153 | buildTypes { 154 | debug { 155 | signingConfig signingConfigs.debug 156 | } 157 | release { 158 | // Caution! In production, you need to generate your own keystore file. 159 | // see https://facebook.github.io/react-native/docs/signed-apk-android. 160 | signingConfig signingConfigs.debug 161 | minifyEnabled enableProguardInReleaseBuilds 162 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 163 | } 164 | } 165 | // applicationVariants are e.g. debug, release 166 | applicationVariants.all { variant -> 167 | variant.outputs.each { output -> 168 | // For each separate APK per architecture, set a unique version code as described here: 169 | // https://developer.android.com/studio/build/configure-apk-splits.html 170 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 171 | def abi = output.getFilter(OutputFile.ABI) 172 | if (abi != null) { // null for the universal-debug, universal-release variants 173 | output.versionCodeOverride = 174 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 175 | } 176 | 177 | } 178 | } 179 | } 180 | 181 | dependencies { 182 | implementation fileTree(dir: "libs", include: ["*.jar"]) 183 | implementation "com.facebook.react:react-native:+" // From node_modules 184 | 185 | if (enableHermes) { 186 | def hermesPath = "../../node_modules/hermes-engine/android/"; 187 | debugImplementation files(hermesPath + "hermes-debug.aar") 188 | releaseImplementation files(hermesPath + "hermes-release.aar") 189 | } else { 190 | implementation jscFlavor 191 | } 192 | } 193 | 194 | // Run this once to be able to run the application with BUCK 195 | // puts all compile dependencies into folder libs for BUCK to use 196 | task copyDownloadableDepsToLibs(type: Copy) { 197 | from configurations.compile 198 | into 'libs' 199 | } 200 | 201 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 202 | -------------------------------------------------------------------------------- /coverage/lcov-report/src/index.js.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Code coverage report for src/index.js 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 |
17 |
18 |

19 | All files / src index.js 20 |

21 |
22 |
23 | 0% 24 | Statements 25 | 0/81 26 |
27 |
28 | 0% 29 | Branches 30 | 0/36 31 |
32 |
33 | 0% 34 | Functions 35 | 0/19 36 |
37 |
38 | 0% 39 | Lines 40 | 0/26 41 |
42 |
43 |
44 |
45 |

 46 | 
221 | 
1 47 | 2 48 | 3 49 | 4 50 | 5 51 | 6 52 | 7 53 | 8 54 | 9 55 | 10 56 | 11 57 | 12 58 | 13 59 | 14 60 | 15 61 | 16 62 | 17 63 | 18 64 | 19 65 | 20 66 | 21 67 | 22 68 | 23 69 | 24 70 | 25 71 | 26 72 | 27 73 | 28 74 | 29 75 | 30 76 | 31 77 | 32 78 | 33 79 | 34 80 | 35 81 | 36 82 | 37 83 | 38 84 | 39 85 | 40 86 | 41 87 | 42 88 | 43 89 | 44 90 | 45 91 | 46 92 | 47 93 | 48 94 | 49 95 | 50 96 | 51 97 | 52 98 | 53 99 | 54 100 | 55 101 | 56 102 | 57 103 | 58 104 | 59  105 |   106 |   107 |   108 |   109 |   110 |   111 |   112 |   113 |   114 |   115 |   116 |   117 |   118 |   119 |   120 |   121 |   122 |   123 |   124 |   125 |   126 |   127 |   128 |   129 |   130 |   131 |   132 |   133 |   134 |   135 |   136 |   137 |   138 |   139 |   140 |   141 |   142 |   143 |   144 |   145 |   146 |   147 |   148 |   149 |   150 |   151 |   152 |   153 |   154 |   155 |   156 |   157 |   158 |   159 |   160 |   161 |   162 |  
import AsyncStorage from '@react-native-community/async-storage';
163 |  
164 | import handleError from './helpers/handleError';
165 |  
166 | type KeyType = string;
167 |  
168 | class SyncStorage {
169 |   data: Map<*, *> = new Map();
170 |   loading: boolean = true;
171 |  
172 |   init(): Promise<Array<*>> {
173 |     return AsyncStorage.getAllKeys().then((keys: Array<KeyType>) =>
174 |       AsyncStorage.multiGet(keys).then((data: Array<Array<KeyType>>): Array<*> => {
175 |         data.forEach(this.saveItem.bind(this));
176 |  
177 |         return [...this.data];
178 |       }));
179 |   }
180 |  
181 |   get(key: KeyType): any {
182 |     return this.data.get(key);
183 |   }
184 |  
185 |   set(key: KeyType, value: any): Promise<*> {
186 |     if (!key) return handleError('set', 'a key');
187 |  
188 |     this.data.set(key, value);
189 |     return AsyncStorage.setItem(key, JSON.stringify(value));
190 |   }
191 |  
192 |   remove(key: KeyType): Promise<*> {
193 |     if (!key) return handleError('remove', 'a key');
194 |  
195 |     this.data.delete(key);
196 |     return AsyncStorage.removeItem(key);
197 |   }
198 |  
199 |   saveItem(item: Array<KeyType>) {
200 |     let value;
201 |  
202 |     try {
203 |       value = JSON.parse(item[1]);
204 |     } catch (e) {
205 |       [, value] = item;
206 |     }
207 |  
208 |     this.data.set(item[0], value);
209 |     this.loading = false;
210 |   }
211 |  
212 |   getAllKeys(): Array<*> {
213 |     return Array.from(this.data.keys());
214 |   }
215 | }
216 |  
217 | const syncStorage = new SyncStorage();
218 |  
219 | export default syncStorage;
220 |  
222 |
223 |
224 | 228 | 229 | 230 | 237 | 238 | 239 | 240 | -------------------------------------------------------------------------------- /coverage/lcov-report/prettify.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); 3 | -------------------------------------------------------------------------------- /DevApp/ios/DevApp.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | /* Begin PBXBuildFile section */ 9 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 10 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 11 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 12 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 13 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 14 | 00E356F31AD99517003FC87E /* DevAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* DevAppTests.m */; }; 15 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 19 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 20 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 21 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 22 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 23 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 25 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 26 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 27 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */; }; 28 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 29 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 30 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 31 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 32 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 33 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 34 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 35 | 2DCD954D1E0B4F2C00145EB5 /* DevAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* DevAppTests.m */; }; 36 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 37 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 38 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 39 | 5969B693FF66469EAA8B1383 /* libRNCAsyncStorage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BBE1F5AB44864E58B24A2308 /* libRNCAsyncStorage.a */; }; 40 | /* End PBXBuildFile section */ 41 | 42 | /* Begin PBXContainerItemProxy section */ 43 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 46 | proxyType = 2; 47 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 48 | remoteInfo = RCTActionSheet; 49 | }; 50 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 51 | isa = PBXContainerItemProxy; 52 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 53 | proxyType = 2; 54 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 55 | remoteInfo = RCTGeolocation; 56 | }; 57 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 58 | isa = PBXContainerItemProxy; 59 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 60 | proxyType = 2; 61 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 62 | remoteInfo = RCTImage; 63 | }; 64 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 65 | isa = PBXContainerItemProxy; 66 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 67 | proxyType = 2; 68 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 69 | remoteInfo = RCTNetwork; 70 | }; 71 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 72 | isa = PBXContainerItemProxy; 73 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 74 | proxyType = 2; 75 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 76 | remoteInfo = RCTVibration; 77 | }; 78 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 79 | isa = PBXContainerItemProxy; 80 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 81 | proxyType = 1; 82 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 83 | remoteInfo = DevApp; 84 | }; 85 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 86 | isa = PBXContainerItemProxy; 87 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 88 | proxyType = 2; 89 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 90 | remoteInfo = RCTSettings; 91 | }; 92 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 93 | isa = PBXContainerItemProxy; 94 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 95 | proxyType = 2; 96 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 97 | remoteInfo = RCTWebSocket; 98 | }; 99 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 100 | isa = PBXContainerItemProxy; 101 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 102 | proxyType = 2; 103 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 104 | remoteInfo = React; 105 | }; 106 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 107 | isa = PBXContainerItemProxy; 108 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 109 | proxyType = 1; 110 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 111 | remoteInfo = "DevApp-tvOS"; 112 | }; 113 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 114 | isa = PBXContainerItemProxy; 115 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 116 | proxyType = 2; 117 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 118 | remoteInfo = "RCTImage-tvOS"; 119 | }; 120 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 121 | isa = PBXContainerItemProxy; 122 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 123 | proxyType = 2; 124 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 125 | remoteInfo = "RCTLinking-tvOS"; 126 | }; 127 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 128 | isa = PBXContainerItemProxy; 129 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 130 | proxyType = 2; 131 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 132 | remoteInfo = "RCTNetwork-tvOS"; 133 | }; 134 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 135 | isa = PBXContainerItemProxy; 136 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 137 | proxyType = 2; 138 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 139 | remoteInfo = "RCTSettings-tvOS"; 140 | }; 141 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 142 | isa = PBXContainerItemProxy; 143 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 144 | proxyType = 2; 145 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 146 | remoteInfo = "RCTText-tvOS"; 147 | }; 148 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 149 | isa = PBXContainerItemProxy; 150 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 151 | proxyType = 2; 152 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 153 | remoteInfo = "RCTWebSocket-tvOS"; 154 | }; 155 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 156 | isa = PBXContainerItemProxy; 157 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 158 | proxyType = 2; 159 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 160 | remoteInfo = "React-tvOS"; 161 | }; 162 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 163 | isa = PBXContainerItemProxy; 164 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 165 | proxyType = 2; 166 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 167 | remoteInfo = yoga; 168 | }; 169 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 170 | isa = PBXContainerItemProxy; 171 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 172 | proxyType = 2; 173 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 174 | remoteInfo = "yoga-tvOS"; 175 | }; 176 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 177 | isa = PBXContainerItemProxy; 178 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 179 | proxyType = 2; 180 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 181 | remoteInfo = cxxreact; 182 | }; 183 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 184 | isa = PBXContainerItemProxy; 185 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 186 | proxyType = 2; 187 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 188 | remoteInfo = "cxxreact-tvOS"; 189 | }; 190 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 191 | isa = PBXContainerItemProxy; 192 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 193 | proxyType = 2; 194 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 195 | remoteInfo = jschelpers; 196 | }; 197 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 198 | isa = PBXContainerItemProxy; 199 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 200 | proxyType = 2; 201 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 202 | remoteInfo = "jschelpers-tvOS"; 203 | }; 204 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 205 | isa = PBXContainerItemProxy; 206 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 207 | proxyType = 2; 208 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 209 | remoteInfo = RCTAnimation; 210 | }; 211 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 212 | isa = PBXContainerItemProxy; 213 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 214 | proxyType = 2; 215 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 216 | remoteInfo = "RCTAnimation-tvOS"; 217 | }; 218 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 219 | isa = PBXContainerItemProxy; 220 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 221 | proxyType = 2; 222 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 223 | remoteInfo = RCTLinking; 224 | }; 225 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 226 | isa = PBXContainerItemProxy; 227 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 228 | proxyType = 2; 229 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 230 | remoteInfo = RCTText; 231 | }; 232 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 233 | isa = PBXContainerItemProxy; 234 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 235 | proxyType = 2; 236 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 237 | remoteInfo = RCTBlob; 238 | }; 239 | /* End PBXContainerItemProxy section */ 240 | 241 | /* Begin PBXFileReference section */ 242 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 243 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 244 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 245 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 246 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 247 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 248 | 00E356EE1AD99517003FC87E /* DevAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DevAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 249 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 250 | 00E356F21AD99517003FC87E /* DevAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DevAppTests.m; sourceTree = ""; }; 251 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 252 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 253 | 13B07F961A680F5B00A75B9A /* DevApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DevApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 254 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = DevApp/AppDelegate.h; sourceTree = ""; }; 255 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = DevApp/AppDelegate.m; sourceTree = ""; }; 256 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 257 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = DevApp/Images.xcassets; sourceTree = ""; }; 258 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = DevApp/Info.plist; sourceTree = ""; }; 259 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = DevApp/main.m; sourceTree = ""; }; 260 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 261 | 2D02E47B1E0B4A5D006451C7 /* DevApp-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "DevApp-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 262 | 2D02E4901E0B4A5D006451C7 /* DevApp-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "DevApp-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 263 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 264 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 265 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 266 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 267 | 2917539D843C4C4A8D240EA6 /* RNCAsyncStorage.xcodeproj */ = {isa = PBXFileReference; name = "RNCAsyncStorage.xcodeproj"; path = "../../node_modules/@react-native-community/async-storage/ios/RNCAsyncStorage.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; 268 | BBE1F5AB44864E58B24A2308 /* libRNCAsyncStorage.a */ = {isa = PBXFileReference; name = "libRNCAsyncStorage.a"; path = "libRNCAsyncStorage.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 269 | /* End PBXFileReference section */ 270 | 271 | /* Begin PBXFrameworksBuildPhase section */ 272 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 273 | isa = PBXFrameworksBuildPhase; 274 | buildActionMask = 2147483647; 275 | files = ( 276 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 281 | isa = PBXFrameworksBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 285 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 286 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 287 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 288 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 289 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 290 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 291 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 292 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 293 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 294 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 295 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 296 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 297 | 5969B693FF66469EAA8B1383 /* libRNCAsyncStorage.a in Frameworks */, 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | }; 301 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 302 | isa = PBXFrameworksBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 306 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */, 307 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 308 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 309 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 310 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 311 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 312 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | }; 316 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 317 | isa = PBXFrameworksBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | }; 323 | /* End PBXFrameworksBuildPhase section */ 324 | 325 | /* Begin PBXGroup section */ 326 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 327 | isa = PBXGroup; 328 | children = ( 329 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 330 | ); 331 | name = Products; 332 | sourceTree = ""; 333 | }; 334 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 335 | isa = PBXGroup; 336 | children = ( 337 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 338 | ); 339 | name = Products; 340 | sourceTree = ""; 341 | }; 342 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 343 | isa = PBXGroup; 344 | children = ( 345 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 346 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 347 | ); 348 | name = Products; 349 | sourceTree = ""; 350 | }; 351 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 352 | isa = PBXGroup; 353 | children = ( 354 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 355 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 356 | ); 357 | name = Products; 358 | sourceTree = ""; 359 | }; 360 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 361 | isa = PBXGroup; 362 | children = ( 363 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 364 | ); 365 | name = Products; 366 | sourceTree = ""; 367 | }; 368 | 00E356EF1AD99517003FC87E /* DevAppTests */ = { 369 | isa = PBXGroup; 370 | children = ( 371 | 00E356F21AD99517003FC87E /* DevAppTests.m */, 372 | 00E356F01AD99517003FC87E /* Supporting Files */, 373 | ); 374 | path = DevAppTests; 375 | sourceTree = ""; 376 | }; 377 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 378 | isa = PBXGroup; 379 | children = ( 380 | 00E356F11AD99517003FC87E /* Info.plist */, 381 | ); 382 | name = "Supporting Files"; 383 | sourceTree = ""; 384 | }; 385 | 139105B71AF99BAD00B5F7CC /* Products */ = { 386 | isa = PBXGroup; 387 | children = ( 388 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 389 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 390 | ); 391 | name = Products; 392 | sourceTree = ""; 393 | }; 394 | 139FDEE71B06529A00C62182 /* Products */ = { 395 | isa = PBXGroup; 396 | children = ( 397 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 398 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 399 | ); 400 | name = Products; 401 | sourceTree = ""; 402 | }; 403 | 13B07FAE1A68108700A75B9A /* DevApp */ = { 404 | isa = PBXGroup; 405 | children = ( 406 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 407 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 408 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 409 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 410 | 13B07FB61A68108700A75B9A /* Info.plist */, 411 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 412 | 13B07FB71A68108700A75B9A /* main.m */, 413 | ); 414 | name = DevApp; 415 | sourceTree = ""; 416 | }; 417 | 146834001AC3E56700842450 /* Products */ = { 418 | isa = PBXGroup; 419 | children = ( 420 | 146834041AC3E56700842450 /* libReact.a */, 421 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 422 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 423 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 424 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 425 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 426 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 427 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 428 | 3DAD3EA31DF850E9000B6D8A /* libReact-tvOS.a */, 429 | ); 430 | name = Products; 431 | sourceTree = ""; 432 | }; 433 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 434 | isa = PBXGroup; 435 | children = ( 436 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 437 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */, 438 | ); 439 | name = Products; 440 | sourceTree = ""; 441 | }; 442 | 78C398B11ACF4ADC00677621 /* Products */ = { 443 | isa = PBXGroup; 444 | children = ( 445 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 446 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 447 | ); 448 | name = Products; 449 | sourceTree = ""; 450 | }; 451 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 452 | isa = PBXGroup; 453 | children = ( 454 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 455 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 456 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 457 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 458 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 459 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 460 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 461 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 462 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 463 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 464 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 465 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 466 | 2917539D843C4C4A8D240EA6 /* RNCAsyncStorage.xcodeproj */, 467 | ); 468 | name = Libraries; 469 | sourceTree = ""; 470 | }; 471 | 832341B11AAA6A8300B99B32 /* Products */ = { 472 | isa = PBXGroup; 473 | children = ( 474 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 475 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 476 | ); 477 | name = Products; 478 | sourceTree = ""; 479 | }; 480 | 83CBB9F61A601CBA00E9B192 = { 481 | isa = PBXGroup; 482 | children = ( 483 | 13B07FAE1A68108700A75B9A /* DevApp */, 484 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 485 | 00E356EF1AD99517003FC87E /* DevAppTests */, 486 | 83CBBA001A601CBA00E9B192 /* Products */, 487 | ); 488 | indentWidth = 2; 489 | sourceTree = ""; 490 | tabWidth = 2; 491 | usesTabs = 0; 492 | }; 493 | 83CBBA001A601CBA00E9B192 /* Products */ = { 494 | isa = PBXGroup; 495 | children = ( 496 | 13B07F961A680F5B00A75B9A /* DevApp.app */, 497 | 00E356EE1AD99517003FC87E /* DevAppTests.xctest */, 498 | 2D02E47B1E0B4A5D006451C7 /* DevApp-tvOS.app */, 499 | 2D02E4901E0B4A5D006451C7 /* DevApp-tvOSTests.xctest */, 500 | ); 501 | name = Products; 502 | sourceTree = ""; 503 | }; 504 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 505 | isa = PBXGroup; 506 | children = ( 507 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 508 | ); 509 | name = Products; 510 | sourceTree = ""; 511 | }; 512 | /* End PBXGroup section */ 513 | 514 | /* Begin PBXNativeTarget section */ 515 | 00E356ED1AD99517003FC87E /* DevAppTests */ = { 516 | isa = PBXNativeTarget; 517 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "DevAppTests" */; 518 | buildPhases = ( 519 | 00E356EA1AD99517003FC87E /* Sources */, 520 | 00E356EB1AD99517003FC87E /* Frameworks */, 521 | 00E356EC1AD99517003FC87E /* Resources */, 522 | ); 523 | buildRules = ( 524 | ); 525 | dependencies = ( 526 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 527 | ); 528 | name = DevAppTests; 529 | productName = DevAppTests; 530 | productReference = 00E356EE1AD99517003FC87E /* DevAppTests.xctest */; 531 | productType = "com.apple.product-type.bundle.unit-test"; 532 | }; 533 | 13B07F861A680F5B00A75B9A /* DevApp */ = { 534 | isa = PBXNativeTarget; 535 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "DevApp" */; 536 | buildPhases = ( 537 | 13B07F871A680F5B00A75B9A /* Sources */, 538 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 539 | 13B07F8E1A680F5B00A75B9A /* Resources */, 540 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 541 | ); 542 | buildRules = ( 543 | ); 544 | dependencies = ( 545 | ); 546 | name = DevApp; 547 | productName = "Hello World"; 548 | productReference = 13B07F961A680F5B00A75B9A /* DevApp.app */; 549 | productType = "com.apple.product-type.application"; 550 | }; 551 | 2D02E47A1E0B4A5D006451C7 /* DevApp-tvOS */ = { 552 | isa = PBXNativeTarget; 553 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "DevApp-tvOS" */; 554 | buildPhases = ( 555 | 2D02E4771E0B4A5D006451C7 /* Sources */, 556 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 557 | 2D02E4791E0B4A5D006451C7 /* Resources */, 558 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 559 | ); 560 | buildRules = ( 561 | ); 562 | dependencies = ( 563 | ); 564 | name = "DevApp-tvOS"; 565 | productName = "DevApp-tvOS"; 566 | productReference = 2D02E47B1E0B4A5D006451C7 /* DevApp-tvOS.app */; 567 | productType = "com.apple.product-type.application"; 568 | }; 569 | 2D02E48F1E0B4A5D006451C7 /* DevApp-tvOSTests */ = { 570 | isa = PBXNativeTarget; 571 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "DevApp-tvOSTests" */; 572 | buildPhases = ( 573 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 574 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 575 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 576 | ); 577 | buildRules = ( 578 | ); 579 | dependencies = ( 580 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 581 | ); 582 | name = "DevApp-tvOSTests"; 583 | productName = "DevApp-tvOSTests"; 584 | productReference = 2D02E4901E0B4A5D006451C7 /* DevApp-tvOSTests.xctest */; 585 | productType = "com.apple.product-type.bundle.unit-test"; 586 | }; 587 | /* End PBXNativeTarget section */ 588 | 589 | /* Begin PBXProject section */ 590 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 591 | isa = PBXProject; 592 | attributes = { 593 | LastUpgradeCheck = 610; 594 | ORGANIZATIONNAME = Facebook; 595 | TargetAttributes = { 596 | 00E356ED1AD99517003FC87E = { 597 | CreatedOnToolsVersion = 6.2; 598 | TestTargetID = 13B07F861A680F5B00A75B9A; 599 | }; 600 | 2D02E47A1E0B4A5D006451C7 = { 601 | CreatedOnToolsVersion = 8.2.1; 602 | ProvisioningStyle = Automatic; 603 | }; 604 | 2D02E48F1E0B4A5D006451C7 = { 605 | CreatedOnToolsVersion = 8.2.1; 606 | ProvisioningStyle = Automatic; 607 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 608 | }; 609 | }; 610 | }; 611 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "DevApp" */; 612 | compatibilityVersion = "Xcode 3.2"; 613 | developmentRegion = English; 614 | hasScannedForEncodings = 0; 615 | knownRegions = ( 616 | en, 617 | Base, 618 | ); 619 | mainGroup = 83CBB9F61A601CBA00E9B192; 620 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 621 | projectDirPath = ""; 622 | projectReferences = ( 623 | { 624 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 625 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 626 | }, 627 | { 628 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 629 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 630 | }, 631 | { 632 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 633 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 634 | }, 635 | { 636 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 637 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 638 | }, 639 | { 640 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 641 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 642 | }, 643 | { 644 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 645 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 646 | }, 647 | { 648 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 649 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 650 | }, 651 | { 652 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 653 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 654 | }, 655 | { 656 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 657 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 658 | }, 659 | { 660 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 661 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 662 | }, 663 | { 664 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 665 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 666 | }, 667 | { 668 | ProductGroup = 146834001AC3E56700842450 /* Products */; 669 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 670 | }, 671 | ); 672 | projectRoot = ""; 673 | targets = ( 674 | 13B07F861A680F5B00A75B9A /* DevApp */, 675 | 00E356ED1AD99517003FC87E /* DevAppTests */, 676 | 2D02E47A1E0B4A5D006451C7 /* DevApp-tvOS */, 677 | 2D02E48F1E0B4A5D006451C7 /* DevApp-tvOSTests */, 678 | ); 679 | }; 680 | /* End PBXProject section */ 681 | 682 | /* Begin PBXReferenceProxy section */ 683 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 684 | isa = PBXReferenceProxy; 685 | fileType = archive.ar; 686 | path = libRCTActionSheet.a; 687 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 688 | sourceTree = BUILT_PRODUCTS_DIR; 689 | }; 690 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 691 | isa = PBXReferenceProxy; 692 | fileType = archive.ar; 693 | path = libRCTGeolocation.a; 694 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 695 | sourceTree = BUILT_PRODUCTS_DIR; 696 | }; 697 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 698 | isa = PBXReferenceProxy; 699 | fileType = archive.ar; 700 | path = libRCTImage.a; 701 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 702 | sourceTree = BUILT_PRODUCTS_DIR; 703 | }; 704 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 705 | isa = PBXReferenceProxy; 706 | fileType = archive.ar; 707 | path = libRCTNetwork.a; 708 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 709 | sourceTree = BUILT_PRODUCTS_DIR; 710 | }; 711 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 712 | isa = PBXReferenceProxy; 713 | fileType = archive.ar; 714 | path = libRCTVibration.a; 715 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 716 | sourceTree = BUILT_PRODUCTS_DIR; 717 | }; 718 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 719 | isa = PBXReferenceProxy; 720 | fileType = archive.ar; 721 | path = libRCTSettings.a; 722 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 723 | sourceTree = BUILT_PRODUCTS_DIR; 724 | }; 725 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 726 | isa = PBXReferenceProxy; 727 | fileType = archive.ar; 728 | path = libRCTWebSocket.a; 729 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 730 | sourceTree = BUILT_PRODUCTS_DIR; 731 | }; 732 | 146834041AC3E56700842450 /* libReact.a */ = { 733 | isa = PBXReferenceProxy; 734 | fileType = archive.ar; 735 | path = libReact.a; 736 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 737 | sourceTree = BUILT_PRODUCTS_DIR; 738 | }; 739 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 740 | isa = PBXReferenceProxy; 741 | fileType = archive.ar; 742 | path = "libRCTImage-tvOS.a"; 743 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 744 | sourceTree = BUILT_PRODUCTS_DIR; 745 | }; 746 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 747 | isa = PBXReferenceProxy; 748 | fileType = archive.ar; 749 | path = "libRCTLinking-tvOS.a"; 750 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 751 | sourceTree = BUILT_PRODUCTS_DIR; 752 | }; 753 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 754 | isa = PBXReferenceProxy; 755 | fileType = archive.ar; 756 | path = "libRCTNetwork-tvOS.a"; 757 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 758 | sourceTree = BUILT_PRODUCTS_DIR; 759 | }; 760 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 761 | isa = PBXReferenceProxy; 762 | fileType = archive.ar; 763 | path = "libRCTSettings-tvOS.a"; 764 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 765 | sourceTree = BUILT_PRODUCTS_DIR; 766 | }; 767 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 768 | isa = PBXReferenceProxy; 769 | fileType = archive.ar; 770 | path = "libRCTText-tvOS.a"; 771 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 772 | sourceTree = BUILT_PRODUCTS_DIR; 773 | }; 774 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 775 | isa = PBXReferenceProxy; 776 | fileType = archive.ar; 777 | path = "libRCTWebSocket-tvOS.a"; 778 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 779 | sourceTree = BUILT_PRODUCTS_DIR; 780 | }; 781 | 3DAD3EA31DF850E9000B6D8A /* libReact-tvOS.a */ = { 782 | isa = PBXReferenceProxy; 783 | fileType = archive.ar; 784 | path = "libReact-tvOS.a"; 785 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 786 | sourceTree = BUILT_PRODUCTS_DIR; 787 | }; 788 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 789 | isa = PBXReferenceProxy; 790 | fileType = archive.ar; 791 | path = libyoga.a; 792 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 793 | sourceTree = BUILT_PRODUCTS_DIR; 794 | }; 795 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 796 | isa = PBXReferenceProxy; 797 | fileType = archive.ar; 798 | path = libyoga.a; 799 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 800 | sourceTree = BUILT_PRODUCTS_DIR; 801 | }; 802 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 803 | isa = PBXReferenceProxy; 804 | fileType = archive.ar; 805 | path = libcxxreact.a; 806 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 807 | sourceTree = BUILT_PRODUCTS_DIR; 808 | }; 809 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 810 | isa = PBXReferenceProxy; 811 | fileType = archive.ar; 812 | path = libcxxreact.a; 813 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 814 | sourceTree = BUILT_PRODUCTS_DIR; 815 | }; 816 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 817 | isa = PBXReferenceProxy; 818 | fileType = archive.ar; 819 | path = libjschelpers.a; 820 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 821 | sourceTree = BUILT_PRODUCTS_DIR; 822 | }; 823 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 824 | isa = PBXReferenceProxy; 825 | fileType = archive.ar; 826 | path = libjschelpers.a; 827 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 828 | sourceTree = BUILT_PRODUCTS_DIR; 829 | }; 830 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 831 | isa = PBXReferenceProxy; 832 | fileType = archive.ar; 833 | path = libRCTAnimation.a; 834 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 835 | sourceTree = BUILT_PRODUCTS_DIR; 836 | }; 837 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = { 838 | isa = PBXReferenceProxy; 839 | fileType = archive.ar; 840 | path = "libRCTAnimation-tvOS.a"; 841 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 842 | sourceTree = BUILT_PRODUCTS_DIR; 843 | }; 844 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 845 | isa = PBXReferenceProxy; 846 | fileType = archive.ar; 847 | path = libRCTLinking.a; 848 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 849 | sourceTree = BUILT_PRODUCTS_DIR; 850 | }; 851 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 852 | isa = PBXReferenceProxy; 853 | fileType = archive.ar; 854 | path = libRCTText.a; 855 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 856 | sourceTree = BUILT_PRODUCTS_DIR; 857 | }; 858 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 859 | isa = PBXReferenceProxy; 860 | fileType = archive.ar; 861 | path = libRCTBlob.a; 862 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 863 | sourceTree = BUILT_PRODUCTS_DIR; 864 | }; 865 | /* End PBXReferenceProxy section */ 866 | 867 | /* Begin PBXResourcesBuildPhase section */ 868 | 00E356EC1AD99517003FC87E /* Resources */ = { 869 | isa = PBXResourcesBuildPhase; 870 | buildActionMask = 2147483647; 871 | files = ( 872 | ); 873 | runOnlyForDeploymentPostprocessing = 0; 874 | }; 875 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 876 | isa = PBXResourcesBuildPhase; 877 | buildActionMask = 2147483647; 878 | files = ( 879 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 880 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 881 | ); 882 | runOnlyForDeploymentPostprocessing = 0; 883 | }; 884 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 885 | isa = PBXResourcesBuildPhase; 886 | buildActionMask = 2147483647; 887 | files = ( 888 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 889 | ); 890 | runOnlyForDeploymentPostprocessing = 0; 891 | }; 892 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 893 | isa = PBXResourcesBuildPhase; 894 | buildActionMask = 2147483647; 895 | files = ( 896 | ); 897 | runOnlyForDeploymentPostprocessing = 0; 898 | }; 899 | /* End PBXResourcesBuildPhase section */ 900 | 901 | /* Begin PBXShellScriptBuildPhase section */ 902 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 903 | isa = PBXShellScriptBuildPhase; 904 | buildActionMask = 2147483647; 905 | files = ( 906 | ); 907 | inputPaths = ( 908 | ); 909 | name = "Bundle React Native code and images"; 910 | outputPaths = ( 911 | ); 912 | runOnlyForDeploymentPostprocessing = 0; 913 | shellPath = /bin/sh; 914 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 915 | }; 916 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 917 | isa = PBXShellScriptBuildPhase; 918 | buildActionMask = 2147483647; 919 | files = ( 920 | ); 921 | inputPaths = ( 922 | ); 923 | name = "Bundle React Native Code And Images"; 924 | outputPaths = ( 925 | ); 926 | runOnlyForDeploymentPostprocessing = 0; 927 | shellPath = /bin/sh; 928 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 929 | }; 930 | /* End PBXShellScriptBuildPhase section */ 931 | 932 | /* Begin PBXSourcesBuildPhase section */ 933 | 00E356EA1AD99517003FC87E /* Sources */ = { 934 | isa = PBXSourcesBuildPhase; 935 | buildActionMask = 2147483647; 936 | files = ( 937 | 00E356F31AD99517003FC87E /* DevAppTests.m in Sources */, 938 | ); 939 | runOnlyForDeploymentPostprocessing = 0; 940 | }; 941 | 13B07F871A680F5B00A75B9A /* Sources */ = { 942 | isa = PBXSourcesBuildPhase; 943 | buildActionMask = 2147483647; 944 | files = ( 945 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 946 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 947 | ); 948 | runOnlyForDeploymentPostprocessing = 0; 949 | }; 950 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 951 | isa = PBXSourcesBuildPhase; 952 | buildActionMask = 2147483647; 953 | files = ( 954 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 955 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 956 | ); 957 | runOnlyForDeploymentPostprocessing = 0; 958 | }; 959 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 960 | isa = PBXSourcesBuildPhase; 961 | buildActionMask = 2147483647; 962 | files = ( 963 | 2DCD954D1E0B4F2C00145EB5 /* DevAppTests.m in Sources */, 964 | ); 965 | runOnlyForDeploymentPostprocessing = 0; 966 | }; 967 | /* End PBXSourcesBuildPhase section */ 968 | 969 | /* Begin PBXTargetDependency section */ 970 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 971 | isa = PBXTargetDependency; 972 | target = 13B07F861A680F5B00A75B9A /* DevApp */; 973 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 974 | }; 975 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 976 | isa = PBXTargetDependency; 977 | target = 2D02E47A1E0B4A5D006451C7 /* DevApp-tvOS */; 978 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 979 | }; 980 | /* End PBXTargetDependency section */ 981 | 982 | /* Begin PBXVariantGroup section */ 983 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 984 | isa = PBXVariantGroup; 985 | children = ( 986 | 13B07FB21A68108700A75B9A /* Base */, 987 | ); 988 | name = LaunchScreen.xib; 989 | path = DevApp; 990 | sourceTree = ""; 991 | }; 992 | /* End PBXVariantGroup section */ 993 | 994 | /* Begin XCBuildConfiguration section */ 995 | 00E356F61AD99517003FC87E /* Debug */ = { 996 | isa = XCBuildConfiguration; 997 | buildSettings = { 998 | BUNDLE_LOADER = "$(TEST_HOST)"; 999 | GCC_PREPROCESSOR_DEFINITIONS = ( 1000 | "DEBUG=1", 1001 | "$(inherited)", 1002 | ); 1003 | INFOPLIST_FILE = DevAppTests/Info.plist; 1004 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1005 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1006 | OTHER_LDFLAGS = ( 1007 | "-ObjC", 1008 | "-lc++", 1009 | ); 1010 | PRODUCT_NAME = "$(TARGET_NAME)"; 1011 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DevApp.app/DevApp"; 1012 | LIBRARY_SEARCH_PATHS = ( 1013 | "$(inherited)", 1014 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1015 | ); 1016 | HEADER_SEARCH_PATHS = ( 1017 | "$(inherited)", 1018 | "$(SRCROOT)/../../node_modules/@react-native-community/async-storage/ios", 1019 | ); 1020 | }; 1021 | name = Debug; 1022 | }; 1023 | 00E356F71AD99517003FC87E /* Release */ = { 1024 | isa = XCBuildConfiguration; 1025 | buildSettings = { 1026 | BUNDLE_LOADER = "$(TEST_HOST)"; 1027 | COPY_PHASE_STRIP = NO; 1028 | INFOPLIST_FILE = DevAppTests/Info.plist; 1029 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1030 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1031 | OTHER_LDFLAGS = ( 1032 | "-ObjC", 1033 | "-lc++", 1034 | ); 1035 | PRODUCT_NAME = "$(TARGET_NAME)"; 1036 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DevApp.app/DevApp"; 1037 | LIBRARY_SEARCH_PATHS = ( 1038 | "$(inherited)", 1039 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1040 | ); 1041 | HEADER_SEARCH_PATHS = ( 1042 | "$(inherited)", 1043 | "$(SRCROOT)/../../node_modules/@react-native-community/async-storage/ios", 1044 | ); 1045 | }; 1046 | name = Release; 1047 | }; 1048 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1049 | isa = XCBuildConfiguration; 1050 | buildSettings = { 1051 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1052 | CURRENT_PROJECT_VERSION = 1; 1053 | DEAD_CODE_STRIPPING = NO; 1054 | INFOPLIST_FILE = DevApp/Info.plist; 1055 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1056 | OTHER_LDFLAGS = ( 1057 | "$(inherited)", 1058 | "-ObjC", 1059 | "-lc++", 1060 | ); 1061 | PRODUCT_NAME = DevApp; 1062 | VERSIONING_SYSTEM = "apple-generic"; 1063 | HEADER_SEARCH_PATHS = ( 1064 | "$(inherited)", 1065 | "$(SRCROOT)/../../node_modules/@react-native-community/async-storage/ios", 1066 | ); 1067 | }; 1068 | name = Debug; 1069 | }; 1070 | 13B07F951A680F5B00A75B9A /* Release */ = { 1071 | isa = XCBuildConfiguration; 1072 | buildSettings = { 1073 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1074 | CURRENT_PROJECT_VERSION = 1; 1075 | INFOPLIST_FILE = DevApp/Info.plist; 1076 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1077 | OTHER_LDFLAGS = ( 1078 | "$(inherited)", 1079 | "-ObjC", 1080 | "-lc++", 1081 | ); 1082 | PRODUCT_NAME = DevApp; 1083 | VERSIONING_SYSTEM = "apple-generic"; 1084 | HEADER_SEARCH_PATHS = ( 1085 | "$(inherited)", 1086 | "$(SRCROOT)/../../node_modules/@react-native-community/async-storage/ios", 1087 | ); 1088 | }; 1089 | name = Release; 1090 | }; 1091 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1092 | isa = XCBuildConfiguration; 1093 | buildSettings = { 1094 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1095 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1096 | CLANG_ANALYZER_NONNULL = YES; 1097 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1098 | CLANG_WARN_INFINITE_RECURSION = YES; 1099 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1100 | DEBUG_INFORMATION_FORMAT = dwarf; 1101 | ENABLE_TESTABILITY = YES; 1102 | GCC_NO_COMMON_BLOCKS = YES; 1103 | INFOPLIST_FILE = "DevApp-tvOS/Info.plist"; 1104 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1105 | OTHER_LDFLAGS = ( 1106 | "-ObjC", 1107 | "-lc++", 1108 | ); 1109 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.DevApp-tvOS"; 1110 | PRODUCT_NAME = "$(TARGET_NAME)"; 1111 | SDKROOT = appletvos; 1112 | TARGETED_DEVICE_FAMILY = 3; 1113 | TVOS_DEPLOYMENT_TARGET = 9.2; 1114 | LIBRARY_SEARCH_PATHS = ( 1115 | "$(inherited)", 1116 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1117 | ); 1118 | HEADER_SEARCH_PATHS = ( 1119 | "$(inherited)", 1120 | "$(SRCROOT)/../../node_modules/@react-native-community/async-storage/ios", 1121 | ); 1122 | }; 1123 | name = Debug; 1124 | }; 1125 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1126 | isa = XCBuildConfiguration; 1127 | buildSettings = { 1128 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1129 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1130 | CLANG_ANALYZER_NONNULL = YES; 1131 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1132 | CLANG_WARN_INFINITE_RECURSION = YES; 1133 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1134 | COPY_PHASE_STRIP = NO; 1135 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1136 | GCC_NO_COMMON_BLOCKS = YES; 1137 | INFOPLIST_FILE = "DevApp-tvOS/Info.plist"; 1138 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1139 | OTHER_LDFLAGS = ( 1140 | "-ObjC", 1141 | "-lc++", 1142 | ); 1143 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.DevApp-tvOS"; 1144 | PRODUCT_NAME = "$(TARGET_NAME)"; 1145 | SDKROOT = appletvos; 1146 | TARGETED_DEVICE_FAMILY = 3; 1147 | TVOS_DEPLOYMENT_TARGET = 9.2; 1148 | LIBRARY_SEARCH_PATHS = ( 1149 | "$(inherited)", 1150 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1151 | ); 1152 | HEADER_SEARCH_PATHS = ( 1153 | "$(inherited)", 1154 | "$(SRCROOT)/../../node_modules/@react-native-community/async-storage/ios", 1155 | ); 1156 | }; 1157 | name = Release; 1158 | }; 1159 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1160 | isa = XCBuildConfiguration; 1161 | buildSettings = { 1162 | BUNDLE_LOADER = "$(TEST_HOST)"; 1163 | CLANG_ANALYZER_NONNULL = YES; 1164 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1165 | CLANG_WARN_INFINITE_RECURSION = YES; 1166 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1167 | DEBUG_INFORMATION_FORMAT = dwarf; 1168 | ENABLE_TESTABILITY = YES; 1169 | GCC_NO_COMMON_BLOCKS = YES; 1170 | INFOPLIST_FILE = "DevApp-tvOSTests/Info.plist"; 1171 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1172 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.DevApp-tvOSTests"; 1173 | PRODUCT_NAME = "$(TARGET_NAME)"; 1174 | SDKROOT = appletvos; 1175 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DevApp-tvOS.app/DevApp-tvOS"; 1176 | TVOS_DEPLOYMENT_TARGET = 10.1; 1177 | LIBRARY_SEARCH_PATHS = ( 1178 | "$(inherited)", 1179 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1180 | ); 1181 | }; 1182 | name = Debug; 1183 | }; 1184 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1185 | isa = XCBuildConfiguration; 1186 | buildSettings = { 1187 | BUNDLE_LOADER = "$(TEST_HOST)"; 1188 | CLANG_ANALYZER_NONNULL = YES; 1189 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1190 | CLANG_WARN_INFINITE_RECURSION = YES; 1191 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1192 | COPY_PHASE_STRIP = NO; 1193 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1194 | GCC_NO_COMMON_BLOCKS = YES; 1195 | INFOPLIST_FILE = "DevApp-tvOSTests/Info.plist"; 1196 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1197 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.DevApp-tvOSTests"; 1198 | PRODUCT_NAME = "$(TARGET_NAME)"; 1199 | SDKROOT = appletvos; 1200 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DevApp-tvOS.app/DevApp-tvOS"; 1201 | TVOS_DEPLOYMENT_TARGET = 10.1; 1202 | LIBRARY_SEARCH_PATHS = ( 1203 | "$(inherited)", 1204 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1205 | ); 1206 | }; 1207 | name = Release; 1208 | }; 1209 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1210 | isa = XCBuildConfiguration; 1211 | buildSettings = { 1212 | ALWAYS_SEARCH_USER_PATHS = NO; 1213 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1214 | CLANG_CXX_LIBRARY = "libc++"; 1215 | CLANG_ENABLE_MODULES = YES; 1216 | CLANG_ENABLE_OBJC_ARC = YES; 1217 | CLANG_WARN_BOOL_CONVERSION = YES; 1218 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1219 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1220 | CLANG_WARN_EMPTY_BODY = YES; 1221 | CLANG_WARN_ENUM_CONVERSION = YES; 1222 | CLANG_WARN_INT_CONVERSION = YES; 1223 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1224 | CLANG_WARN_UNREACHABLE_CODE = YES; 1225 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1226 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1227 | COPY_PHASE_STRIP = NO; 1228 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1229 | GCC_C_LANGUAGE_STANDARD = gnu99; 1230 | GCC_DYNAMIC_NO_PIC = NO; 1231 | GCC_OPTIMIZATION_LEVEL = 0; 1232 | GCC_PREPROCESSOR_DEFINITIONS = ( 1233 | "DEBUG=1", 1234 | "$(inherited)", 1235 | ); 1236 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1237 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1238 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1239 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1240 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1241 | GCC_WARN_UNUSED_FUNCTION = YES; 1242 | GCC_WARN_UNUSED_VARIABLE = YES; 1243 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1244 | MTL_ENABLE_DEBUG_INFO = YES; 1245 | ONLY_ACTIVE_ARCH = YES; 1246 | SDKROOT = iphoneos; 1247 | }; 1248 | name = Debug; 1249 | }; 1250 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1251 | isa = XCBuildConfiguration; 1252 | buildSettings = { 1253 | ALWAYS_SEARCH_USER_PATHS = NO; 1254 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1255 | CLANG_CXX_LIBRARY = "libc++"; 1256 | CLANG_ENABLE_MODULES = YES; 1257 | CLANG_ENABLE_OBJC_ARC = YES; 1258 | CLANG_WARN_BOOL_CONVERSION = YES; 1259 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1260 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1261 | CLANG_WARN_EMPTY_BODY = YES; 1262 | CLANG_WARN_ENUM_CONVERSION = YES; 1263 | CLANG_WARN_INT_CONVERSION = YES; 1264 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1265 | CLANG_WARN_UNREACHABLE_CODE = YES; 1266 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1267 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1268 | COPY_PHASE_STRIP = YES; 1269 | ENABLE_NS_ASSERTIONS = NO; 1270 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1271 | GCC_C_LANGUAGE_STANDARD = gnu99; 1272 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1273 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1274 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1275 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1276 | GCC_WARN_UNUSED_FUNCTION = YES; 1277 | GCC_WARN_UNUSED_VARIABLE = YES; 1278 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1279 | MTL_ENABLE_DEBUG_INFO = NO; 1280 | SDKROOT = iphoneos; 1281 | VALIDATE_PRODUCT = YES; 1282 | }; 1283 | name = Release; 1284 | }; 1285 | /* End XCBuildConfiguration section */ 1286 | 1287 | /* Begin XCConfigurationList section */ 1288 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "DevAppTests" */ = { 1289 | isa = XCConfigurationList; 1290 | buildConfigurations = ( 1291 | 00E356F61AD99517003FC87E /* Debug */, 1292 | 00E356F71AD99517003FC87E /* Release */, 1293 | ); 1294 | defaultConfigurationIsVisible = 0; 1295 | defaultConfigurationName = Release; 1296 | }; 1297 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "DevApp" */ = { 1298 | isa = XCConfigurationList; 1299 | buildConfigurations = ( 1300 | 13B07F941A680F5B00A75B9A /* Debug */, 1301 | 13B07F951A680F5B00A75B9A /* Release */, 1302 | ); 1303 | defaultConfigurationIsVisible = 0; 1304 | defaultConfigurationName = Release; 1305 | }; 1306 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "DevApp-tvOS" */ = { 1307 | isa = XCConfigurationList; 1308 | buildConfigurations = ( 1309 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1310 | 2D02E4981E0B4A5E006451C7 /* Release */, 1311 | ); 1312 | defaultConfigurationIsVisible = 0; 1313 | defaultConfigurationName = Release; 1314 | }; 1315 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "DevApp-tvOSTests" */ = { 1316 | isa = XCConfigurationList; 1317 | buildConfigurations = ( 1318 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1319 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1320 | ); 1321 | defaultConfigurationIsVisible = 0; 1322 | defaultConfigurationName = Release; 1323 | }; 1324 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "DevApp" */ = { 1325 | isa = XCConfigurationList; 1326 | buildConfigurations = ( 1327 | 83CBBA201A601CBA00E9B192 /* Debug */, 1328 | 83CBBA211A601CBA00E9B192 /* Release */, 1329 | ); 1330 | defaultConfigurationIsVisible = 0; 1331 | defaultConfigurationName = Release; 1332 | }; 1333 | /* End XCConfigurationList section */ 1334 | }; 1335 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1336 | } 1337 | --------------------------------------------------------------------------------