├── .husky ├── .npmignore ├── pre-commit └── commit-msg ├── .npmignore ├── src ├── __tests__ │ └── index.test.tsx └── index.tsx ├── .gitattributes ├── tsconfig.build.json ├── example ├── app.json ├── ios │ ├── File.swift │ ├── IsDetoxExample │ │ ├── Images.xcassets │ │ │ ├── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── AppDelegate.h │ │ ├── main.m │ │ ├── AppDelegate.m │ │ ├── Info.plist │ │ └── LaunchScreen.storyboard │ ├── IsDetoxExample-Bridging-Header.h │ ├── IsDetoxExample.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── Podfile │ ├── IsDetoxExample.xcodeproj │ │ ├── xcshareddata │ │ │ └── xcschemes │ │ │ │ └── IsDetoxExample.xcscheme │ │ └── project.pbxproj │ └── Podfile.lock ├── android │ ├── app │ │ ├── debug.keystore │ │ ├── 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 │ │ │ │ │ └── xml │ │ │ │ │ │ └── network_security_config.xml │ │ │ │ ├── java │ │ │ │ │ └── com │ │ │ │ │ │ └── example │ │ │ │ │ │ └── reactnativeisdetox │ │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ │ └── MainApplication.java │ │ │ │ └── AndroidManifest.xml │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ └── androidTest │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── reactnativeisdetox │ │ │ │ └── DetoxTest.java │ │ ├── proguard-rules.pro │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ ├── gradle.properties │ ├── build.gradle │ ├── gradlew.bat │ └── gradlew ├── index.tsx ├── e2e │ ├── config.json │ ├── isDetox.e2e.js │ └── environment.js ├── __tests__ │ └── react-native-is-detox.test.js ├── babel.config.js ├── package.json ├── metro.config.js ├── src │ └── App.tsx └── .detoxrc.json ├── babel.config.js ├── ios ├── IsDetox.h ├── IsDetox.m └── IsDetox.xcodeproj │ └── project.pbxproj ├── .yarnrc ├── jestSetup.js ├── android ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── reactnativeisdetox │ │ ├── IsDetoxPackage.java │ │ └── IsDetoxModule.java ├── build.gradle ├── gradlew.bat └── gradlew ├── .editorconfig ├── react-native-is-detox.podspec ├── tsconfig.json ├── scripts └── bootstrap.js ├── .gitignore ├── LICENSE ├── README.md ├── package.json └── CONTRIBUTING.md /.husky/.npmignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | example 2 | -------------------------------------------------------------------------------- /src/__tests__/index.test.tsx: -------------------------------------------------------------------------------- 1 | it.todo('write a test'); 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | # specific for windows script files 3 | *.bat text eol=crlf -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "extends": "./tsconfig", 4 | "exclude": ["example"] 5 | } 6 | -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "IsDetoxExample", 3 | "displayName": "IsDetox Example" 4 | } 5 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | yarn lint && yarn typescript 5 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /example/ios/File.swift: -------------------------------------------------------------------------------- 1 | // 2 | // File.swift 3 | // IsDetoxExample 4 | // 5 | 6 | import Foundation 7 | -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | yarn commitlint -E HUSKY_GIT_PARAMS 5 | -------------------------------------------------------------------------------- /ios/IsDetox.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface IsDetox : NSObject 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /.yarnrc: -------------------------------------------------------------------------------- 1 | # Override Yarn command so we can automatically setup the repo on running `yarn` 2 | 3 | yarn-path "scripts/bootstrap.js" 4 | -------------------------------------------------------------------------------- /jestSetup.js: -------------------------------------------------------------------------------- 1 | jest.mock('react-native-is-detox', () => ({ 2 | isDetox: async () => false, 3 | isDetoxSync: () => false, 4 | })); 5 | -------------------------------------------------------------------------------- /example/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/example/android/app/debug.keystore -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | IsDetox Example 3 | 4 | -------------------------------------------------------------------------------- /example/ios/IsDetoxExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/ios/IsDetoxExample-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/index.tsx: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './src/App'; 3 | import { name as appName } from './app.json'; 4 | 5 | AppRegistry.registerComponent(appName, () => App); 6 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesperjohansson/react-native-is-detox/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /example/e2e/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxWorkers": 1, 3 | "testEnvironment": "./environment", 4 | "testRunner": "jest-circus/runner", 5 | "testTimeout": 120000, 6 | "testRegex": "\\.e2e\\.js$", 7 | "reporters": ["detox/runners/jest/streamlineReporter"], 8 | "verbose": true 9 | } 10 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /example/ios/IsDetoxExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/IsDetoxExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # editorconfig.org 4 | 5 | root = true 6 | 7 | [*] 8 | 9 | indent_style = space 10 | indent_size = 2 11 | 12 | end_of_line = lf 13 | charset = utf-8 14 | trim_trailing_whitespace = true 15 | insert_final_newline = true 16 | -------------------------------------------------------------------------------- /example/__tests__/react-native-is-detox.test.js: -------------------------------------------------------------------------------- 1 | import '../../jestSetup'; 2 | import { isDetox, isDetoxSync } from 'react-native-is-detox'; 3 | 4 | test('jest mocks', async () => { 5 | const asyncResult = await isDetox(); 6 | expect(asyncResult).toBe(false); 7 | 8 | const syncResult = isDetoxSync(); 9 | expect(syncResult).toBe(false); 10 | }); 11 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/xml/network_security_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10.0.2.2 5 | localhost 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'IsDetoxExample' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | 5 | include ':reactnativeisdetox' 6 | project(':reactnativeisdetox').projectDir = new File(rootProject.projectDir, '../../android') 7 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '10.0' 5 | 6 | target 'IsDetoxExample' do 7 | config = use_native_modules! 8 | 9 | use_react_native!(:path => config["reactNativePath"]) 10 | 11 | pod 'react-native-is-detox', :path => '../..' 12 | end 13 | -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/babel.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const pak = require('../package.json'); 3 | 4 | module.exports = { 5 | presets: ['module:metro-react-native-babel-preset'], 6 | plugins: [ 7 | [ 8 | 'module-resolver', 9 | { 10 | extensions: ['.tsx', '.ts', '.js', '.json'], 11 | alias: { 12 | [pak.name]: path.join(__dirname, '..', pak.source), 13 | }, 14 | }, 15 | ], 16 | ], 17 | }; 18 | -------------------------------------------------------------------------------- /example/ios/IsDetoxExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (nonatomic, strong) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /example/ios/IsDetoxExample/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/reactnativeisdetox/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.reactnativeisdetox; 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 "IsDetoxExample"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/e2e/isDetox.e2e.js: -------------------------------------------------------------------------------- 1 | describe('Example', () => { 2 | beforeAll(async () => { 3 | await device.launchApp(); 4 | }); 5 | 6 | beforeEach(async () => { 7 | await device.reloadReactNative(); 8 | }); 9 | 10 | it('async result should say its detox', async () => { 11 | await expect(element(by.id('result-async'))).toHaveText('true'); 12 | }); 13 | 14 | it('sync result should say its detox', async () => { 15 | await expect(element(by.id('result-sync'))).toHaveText('true'); 16 | }); 17 | }); 18 | -------------------------------------------------------------------------------- /ios/IsDetox.m: -------------------------------------------------------------------------------- 1 | #import "IsDetox.h" 2 | 3 | @implementation IsDetox 4 | 5 | RCT_EXPORT_MODULE() 6 | 7 | + (BOOL)requiresMainQueueSetup { 8 | return NO; 9 | } 10 | 11 | - (BOOL) _isDetox { 12 | NSArray *args = [[NSProcessInfo processInfo] arguments]; 13 | BOOL argsContainDetox = [args containsObject: @"-detoxServer"]; 14 | 15 | return argsContainDetox; 16 | } 17 | 18 | RCT_EXPORT_METHOD(isDetox: (RCTPromiseResolveBlock)resolve rejecter: (RCTPromiseRejectBlock)reject) { 19 | resolve(@(self._isDetox)); 20 | } 21 | 22 | RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(isDetoxSync) { 23 | return @(self._isDetox); 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /react-native-is-detox.podspec: -------------------------------------------------------------------------------- 1 | require "json" 2 | 3 | package = JSON.parse(File.read(File.join(__dir__, "package.json"))) 4 | 5 | Pod::Spec.new do |s| 6 | s.name = "react-native-is-detox" 7 | s.version = package["version"] 8 | s.summary = package["description"] 9 | s.homepage = package["homepage"] 10 | s.license = package["license"] 11 | s.authors = package["author"] 12 | 13 | s.platforms = { :ios => "10.0" } 14 | s.source = { :git => "https://github.com/jesperjohansson/react-native-is-detox.git", :tag => "#{s.version}" } 15 | 16 | s.source_files = "ios/**/*.{h,m,mm}" 17 | 18 | s.dependency "React-Core" 19 | end 20 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-is-detox-example", 3 | "description": "Example app for react-native-is-detox", 4 | "version": "0.0.1", 5 | "private": true, 6 | "scripts": { 7 | "android": "react-native run-android", 8 | "ios": "react-native run-ios", 9 | "start": "react-native start" 10 | }, 11 | "dependencies": { 12 | "react": "16.13.1", 13 | "react-native": "0.63.4" 14 | }, 15 | "devDependencies": { 16 | "@babel/core": "^7.12.10", 17 | "@babel/runtime": "^7.12.5", 18 | "babel-plugin-module-resolver": "^4.0.0", 19 | "detox": "^19.6.5", 20 | "jest": "^27.5.1", 21 | "metro-react-native-babel-preset": "^0.64.0" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/e2e/environment.js: -------------------------------------------------------------------------------- 1 | const { 2 | DetoxCircusEnvironment, 3 | SpecReporter, 4 | WorkerAssignReporter, 5 | } = require('detox/runners/jest-circus'); 6 | 7 | class CustomDetoxEnvironment extends DetoxCircusEnvironment { 8 | constructor(config, context) { 9 | super(config, context); 10 | 11 | // Can be safely removed, if you are content with the default value (=300000ms) 12 | this.initTimeout = 300000; 13 | 14 | // This takes care of generating status logs on a per-spec basis. By default, Jest only reports at file-level. 15 | // This is strictly optional. 16 | this.registerListeners({ 17 | SpecReporter, 18 | WorkerAssignReporter, 19 | }); 20 | } 21 | } 22 | 23 | module.exports = CustomDetoxEnvironment; 24 | -------------------------------------------------------------------------------- /example/ios/IsDetoxExample/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 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "./", 4 | "paths": { 5 | "react-native-is-detox": ["./src/index"] 6 | }, 7 | "allowUnreachableCode": false, 8 | "allowUnusedLabels": false, 9 | "esModuleInterop": true, 10 | "importsNotUsedAsValues": "error", 11 | "forceConsistentCasingInFileNames": true, 12 | "jsx": "react", 13 | "lib": ["esnext"], 14 | "module": "esnext", 15 | "moduleResolution": "node", 16 | "noFallthroughCasesInSwitch": true, 17 | "noImplicitReturns": true, 18 | "noImplicitUseStrict": false, 19 | "noStrictGenericChecks": false, 20 | "noUnusedLocals": true, 21 | "noUnusedParameters": true, 22 | "resolveJsonModule": true, 23 | "skipLibCheck": true, 24 | "strict": true, 25 | "target": "esnext" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /scripts/bootstrap.js: -------------------------------------------------------------------------------- 1 | const os = require('os'); 2 | const path = require('path'); 3 | const child_process = require('child_process'); 4 | 5 | const root = path.resolve(__dirname, '..'); 6 | const args = process.argv.slice(2); 7 | const options = { 8 | cwd: process.cwd(), 9 | env: process.env, 10 | stdio: 'inherit', 11 | encoding: 'utf-8', 12 | }; 13 | 14 | if (os.type() === 'Windows_NT') { 15 | options.shell = true 16 | } 17 | 18 | let result; 19 | 20 | if (process.cwd() !== root || args.length) { 21 | // We're not in the root of the project, or additional arguments were passed 22 | // In this case, forward the command to `yarn` 23 | result = child_process.spawnSync('yarn', args, options); 24 | } else { 25 | // If `yarn` is run without arguments, perform bootstrap 26 | result = child_process.spawnSync('yarn', ['bootstrap'], options); 27 | } 28 | 29 | process.exitCode = result.status; 30 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # XDE 6 | .expo/ 7 | 8 | # VSCode 9 | .vscode/ 10 | jsconfig.json 11 | 12 | # Xcode 13 | # 14 | build/ 15 | *.pbxuser 16 | !default.pbxuser 17 | *.mode1v3 18 | !default.mode1v3 19 | *.mode2v3 20 | !default.mode2v3 21 | *.perspectivev3 22 | !default.perspectivev3 23 | xcuserdata 24 | *.xccheckout 25 | *.moved-aside 26 | DerivedData 27 | *.hmap 28 | *.ipa 29 | *.xcuserstate 30 | project.xcworkspace 31 | 32 | # Android/IJ 33 | # 34 | .classpath 35 | .cxx 36 | .gradle 37 | .idea 38 | .project 39 | .settings 40 | local.properties 41 | android.iml 42 | 43 | # Cocoapods 44 | # 45 | example/ios/Pods 46 | 47 | # node.js 48 | # 49 | node_modules/ 50 | npm-debug.log 51 | yarn-debug.log 52 | yarn-error.log 53 | 54 | # BUCK 55 | buck-out/ 56 | \.buckd/ 57 | android/app/libs 58 | android/keystores/debug.keystore 59 | 60 | # Expo 61 | .expo/* 62 | 63 | # generated by bob 64 | lib/ 65 | -------------------------------------------------------------------------------- /android/src/main/java/com/reactnativeisdetox/IsDetoxPackage.java: -------------------------------------------------------------------------------- 1 | package com.reactnativeisdetox; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import com.facebook.react.ReactPackage; 6 | import com.facebook.react.bridge.NativeModule; 7 | import com.facebook.react.bridge.ReactApplicationContext; 8 | import com.facebook.react.uimanager.ViewManager; 9 | 10 | import java.util.ArrayList; 11 | import java.util.Collections; 12 | import java.util.List; 13 | 14 | public class IsDetoxPackage implements ReactPackage { 15 | @NonNull 16 | @Override 17 | public List createNativeModules(@NonNull ReactApplicationContext reactContext) { 18 | List modules = new ArrayList<>(); 19 | modules.add(new IsDetoxModule(reactContext)); 20 | return modules; 21 | } 22 | 23 | @NonNull 24 | @Override 25 | public List createViewManagers(@NonNull ReactApplicationContext reactContext) { 26 | return Collections.emptyList(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Jesper Johansson 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /example/metro.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const blacklist = require('metro-config/src/defaults/blacklist'); 3 | const escape = require('escape-string-regexp'); 4 | const pak = require('../package.json'); 5 | 6 | const root = path.resolve(__dirname, '..'); 7 | 8 | const modules = Object.keys({ 9 | ...pak.peerDependencies, 10 | }); 11 | 12 | module.exports = { 13 | projectRoot: __dirname, 14 | watchFolders: [root], 15 | 16 | // We need to make sure that only one version is loaded for peerDependencies 17 | // So we blacklist them at the root, and alias them to the versions in example's node_modules 18 | resolver: { 19 | blacklistRE: blacklist( 20 | modules.map( 21 | (m) => 22 | new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`) 23 | ) 24 | ), 25 | 26 | extraNodeModules: modules.reduce((acc, name) => { 27 | acc[name] = path.join(__dirname, 'node_modules', name); 28 | return acc; 29 | }, {}), 30 | }, 31 | 32 | transformer: { 33 | getTransformOptions: async () => ({ 34 | transform: { 35 | experimentalImportSupport: false, 36 | inlineRequires: true, 37 | }, 38 | }), 39 | }, 40 | }; 41 | -------------------------------------------------------------------------------- /example/src/App.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | import { StyleSheet, View, Text } from 'react-native'; 4 | import { isDetox, isDetoxSync } from 'react-native-is-detox'; 5 | 6 | export default function App() { 7 | const [result, setResult] = React.useState(); 8 | 9 | React.useEffect(() => { 10 | isDetox().then(String).then(setResult); 11 | }, []); 12 | 13 | return ( 14 | 15 | 16 | 17 | is Detox (async): 18 | {result} 19 | 20 | 21 | is Detox (sync): 22 | {String(isDetoxSync())} 23 | 24 | 25 | 26 | ); 27 | } 28 | 29 | const styles = StyleSheet.create({ 30 | container: { 31 | flex: 1, 32 | alignItems: 'center', 33 | justifyContent: 'center', 34 | }, 35 | bordered: { 36 | flexDirection: 'row', 37 | justifyContent: 'space-between', 38 | marginVertical: 5, 39 | borderWidth: 1, 40 | borderColor: 'black', 41 | padding: 5, 42 | }, 43 | }); 44 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 14 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /example/.detoxrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "testRunner": "jest", 3 | "runnerConfig": "e2e/config.json", 4 | "skipLegacyWorkersInjection": true, 5 | "apps": { 6 | "ios": { 7 | "type": "ios.app", 8 | "build": "xcodebuild -workspace ios/IsDetoxExample.xcworkspace -scheme IsDetoxExample -sdk iphonesimulator -derivedDataPath ios/build -configuration Debug", 9 | "binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/IsDetoxExample.app" 10 | }, 11 | "android": { 12 | "type": "android.apk", 13 | "binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk", 14 | "build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd .." 15 | } 16 | }, 17 | "devices": { 18 | "simulator": { 19 | "type": "ios.simulator", 20 | "device": { 21 | "type": "iPhone 12" 22 | } 23 | }, 24 | "emulator": { 25 | "type": "android.emulator", 26 | "device": { 27 | "avdName": "Pixel_API_30_AOSP" 28 | } 29 | } 30 | }, 31 | "configurations": { 32 | "ios": { 33 | "device": "simulator", 34 | "app": "ios" 35 | }, 36 | "android": { 37 | "device": "emulator", 38 | "app": "android" 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /example/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 | minSdkVersion = 23 6 | compileSdkVersion = 31 7 | targetSdkVersion = 30 8 | kotlinVersion = "1.4.10" 9 | } 10 | repositories { 11 | google() 12 | mavenCentral() 13 | } 14 | dependencies { 15 | classpath "com.android.tools.build:gradle:3.5.4" 16 | 17 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" 18 | 19 | // NOTE: Do not place your application dependencies here; they belong 20 | // in the individual module build.gradle files 21 | } 22 | } 23 | 24 | allprojects { 25 | repositories { 26 | mavenLocal() 27 | maven { 28 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 29 | url("$rootDir/../node_modules/react-native/android") 30 | } 31 | maven { 32 | // Android JSC is installed from npm 33 | url("$rootDir/../node_modules/jsc-android/dist") 34 | } 35 | 36 | google() 37 | mavenCentral() 38 | maven { url 'https://www.jitpack.io' } 39 | maven { url "$rootDir/../node_modules/detox/Detox-android" } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- 1 | import { NativeModules, Platform } from 'react-native'; 2 | 3 | const LINKING_ERROR = 4 | `The package 'react-native-is-detox' doesn't seem to be linked. Make sure: \n\n` + 5 | Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) + 6 | '- You rebuilt the app after installing the package\n' + 7 | '- You are not using Expo managed workflow\n'; 8 | 9 | const IsDetoxModule = NativeModules.IsDetox 10 | ? NativeModules.IsDetox 11 | : new Proxy( 12 | {}, 13 | { 14 | get() { 15 | throw new Error(LINKING_ERROR); 16 | }, 17 | } 18 | ); 19 | 20 | /** 21 | * @example Using Promise 22 | * isDetox().then(result => console.log('Was app launched by Detox?', result)); 23 | * @example Using async await 24 | * const result = await isDetox(); 25 | * console.log('Was app launched by Detox?', result); 26 | * @returns Promise with a boolean for whether or not the app was launched by Detox 27 | */ 28 | export function isDetox(): Promise { 29 | return IsDetoxModule.isDetox(); 30 | } 31 | 32 | /** 33 | * @example 34 | * const result = isDetoxSync(); 35 | * console.log('Was app launched by Detox?', result); 36 | * @returns Boolean for whether or not the app was launched by Detox 37 | */ 38 | export function isDetoxSync(): boolean { 39 | return IsDetoxModule.isDetoxSync(); 40 | } 41 | -------------------------------------------------------------------------------- /example/android/app/src/androidTest/java/com/example/reactnativeisdetox/DetoxTest.java: -------------------------------------------------------------------------------- 1 | package com.example.reactnativeisdetox; 2 | 3 | import com.wix.detox.Detox; 4 | import com.wix.detox.config.DetoxConfig; 5 | 6 | import org.junit.Rule; 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import androidx.test.ext.junit.runners.AndroidJUnit4; 11 | import androidx.test.filters.LargeTest; 12 | import androidx.test.rule.ActivityTestRule; 13 | 14 | @RunWith(AndroidJUnit4.class) 15 | @LargeTest 16 | public class DetoxTest { 17 | // Replace 'MainActivity' with the value of android:name entry in 18 | // in AndroidManifest.xml 19 | @Rule 20 | public ActivityTestRule mActivityRule = new ActivityTestRule<>(MainActivity.class, false, false); 21 | 22 | @Test 23 | public void runDetoxTests() { 24 | // This is optional - in case you've decided to integrate TestButler 25 | // See https://github.com/wix/Detox/blob/master/docs/Introduction.Android.md#8-test-butler-support-optional 26 | // TestButlerProbe.assertReadyIfInstalled(); 27 | 28 | DetoxConfig detoxConfig = new DetoxConfig(); 29 | detoxConfig.idlePolicyConfig.masterTimeoutSec = 90; 30 | detoxConfig.idlePolicyConfig.idleResourceTimeoutSec = 60; 31 | detoxConfig.rnContextLoadTimeoutSec = (com.example.reactnativeisdetox.BuildConfig.DEBUG ? 180 : 60); 32 | 33 | Detox.runTests(mActivityRule, detoxConfig); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | if (project == rootProject) { 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.3' 10 | } 11 | } 12 | } 13 | 14 | apply plugin: 'com.android.library' 15 | 16 | def safeExtGet(prop, fallback) { 17 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback 18 | } 19 | 20 | android { 21 | compileSdkVersion safeExtGet('IsDetox_compileSdkVersion', 33) 22 | defaultConfig { 23 | minSdkVersion safeExtGet('IsDetox_minSdkVersion', 23) 24 | targetSdkVersion safeExtGet('IsDetox_targetSdkVersion', 33) 25 | versionCode 1 26 | versionName "1.0" 27 | 28 | } 29 | 30 | buildTypes { 31 | release { 32 | minifyEnabled false 33 | } 34 | } 35 | lintOptions { 36 | disable 'GradleCompatible' 37 | } 38 | compileOptions { 39 | sourceCompatibility JavaVersion.VERSION_1_8 40 | targetCompatibility JavaVersion.VERSION_1_8 41 | } 42 | } 43 | 44 | repositories { 45 | mavenLocal() 46 | maven { 47 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 48 | url("$rootDir/../node_modules/react-native/android") 49 | } 50 | google() 51 | mavenCentral() 52 | } 53 | 54 | dependencies { 55 | //noinspection GradleDynamicVersion 56 | implementation "com.facebook.react:react-native:+" // From node_modules 57 | } 58 | -------------------------------------------------------------------------------- /example/ios/IsDetoxExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "AppDelegate.h" 9 | 10 | #import 11 | #import 12 | #import 13 | 14 | @implementation AppDelegate 15 | 16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | { 18 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 19 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 20 | moduleName:@"IsDetoxExample" 21 | initialProperties:nil]; 22 | 23 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 24 | 25 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 26 | UIViewController *rootViewController = [UIViewController new]; 27 | rootViewController.view = rootView; 28 | self.window.rootViewController = rootViewController; 29 | [self.window makeKeyAndVisible]; 30 | return YES; 31 | } 32 | 33 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 34 | { 35 | #if DEBUG 36 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 37 | #else 38 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 39 | #endif 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /android/src/main/java/com/reactnativeisdetox/IsDetoxModule.java: -------------------------------------------------------------------------------- 1 | package com.reactnativeisdetox; 2 | 3 | import android.os.Bundle; 4 | 5 | import androidx.annotation.NonNull; 6 | 7 | import com.facebook.react.bridge.Promise; 8 | import com.facebook.react.bridge.ReactApplicationContext; 9 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 10 | import com.facebook.react.bridge.ReactMethod; 11 | import com.facebook.react.module.annotations.ReactModule; 12 | 13 | import java.lang.reflect.Method; 14 | 15 | @ReactModule(name = IsDetoxModule.NAME) 16 | public class IsDetoxModule extends ReactContextBaseJavaModule { 17 | public static final String NAME = "IsDetox"; 18 | 19 | public IsDetoxModule(ReactApplicationContext reactContext) { 20 | super(reactContext); 21 | } 22 | 23 | @Override 24 | @NonNull 25 | public String getName() { 26 | return NAME; 27 | } 28 | 29 | private boolean _isDetox() { 30 | try { 31 | Class instrumentationRegistry = Class.forName("androidx.test.platform.app.InstrumentationRegistry"); 32 | Method getArguments = instrumentationRegistry.getMethod("getArguments"); 33 | Bundle args = (Bundle) getArguments.invoke(null); 34 | boolean argsContainDetox = args != null && args.getString("detoxServer") != null; 35 | 36 | return argsContainDetox; 37 | } catch (Exception e) { 38 | return false; 39 | } 40 | } 41 | 42 | @ReactMethod 43 | public void isDetox(Promise promise) { 44 | promise.resolve(this._isDetox()); 45 | } 46 | 47 | @ReactMethod(isBlockingSynchronousMethod = true) 48 | public boolean isDetoxSync() { 49 | return this._isDetox(); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | # react-native-is-detox 6 | 7 | Checks whether current app instance is launched by Detox or not 8 | 9 | ## Installation 10 | 11 | ```sh 12 | yarn add react-native-is-detox 13 | ``` 14 | 15 | ## Usage (async) 16 | 17 | ```js 18 | import { isDetox } from 'react-native-is-detox'; 19 | 20 | // ... 21 | 22 | const result = await isDetox(); 23 | 24 | console.log('Was app launched by Detox?', result); 25 | ``` 26 | 27 | ```js 28 | import { isDetox } from 'react-native-is-detox'; 29 | 30 | function App() { 31 | useEffect(() => { 32 | isDetox().then((result) => { 33 | console.log('Was app launched by Detox?', result); 34 | }); 35 | }, []); 36 | 37 | return ; 38 | } 39 | ``` 40 | 41 | ## Usage (sync) 42 | 43 | ```js 44 | import { isDetoxSync } from 'react-native-is-detox'; 45 | 46 | const result = isDetoxSync(); 47 | 48 | console.log('Was app launched by Detox?', result); 49 | ``` 50 | 51 | ```js 52 | import { isDetoxSync } from 'react-native-is-detox'; 53 | 54 | function App() { 55 | useEffect(() => { 56 | const result = isDetoxSync(); 57 | console.log('Was app launched by Detox?', result); 58 | }, []); 59 | 60 | return ; 61 | } 62 | ``` 63 | 64 | ## Mock module in Jest 65 | 66 | Import `react-native-is-detox/jestSetup` in your Jest setup file. 67 | 68 | ```js 69 | import 'react-native-is-detox/jestSetup'; 70 | ``` 71 | 72 | ## Credits 73 | 74 | Original solution by [Simon Buchan](https://stackoverflow.com/users/20135/simon-buchan) from [this comment](https://stackoverflow.com/a/50166137/6886817). 75 | 76 | ## License 77 | 78 | MIT 79 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/reactnativeisdetox/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.reactnativeisdetox; 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.react.ReactInstanceManager; 10 | import com.facebook.soloader.SoLoader; 11 | import java.lang.reflect.InvocationTargetException; 12 | import java.util.List; 13 | import com.reactnativeisdetox.IsDetoxPackage; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = 18 | new ReactNativeHost(this) { 19 | @Override 20 | public boolean getUseDeveloperSupport() { 21 | return BuildConfig.DEBUG; 22 | } 23 | 24 | @Override 25 | protected List getPackages() { 26 | @SuppressWarnings("UnnecessaryLocalVariable") 27 | List packages = new PackageList(this).getPackages(); 28 | // Packages that cannot be autolinked yet can be added manually here, for IsDetoxExample: 29 | // packages.add(new MyReactNativePackage()); 30 | packages.add(new IsDetoxPackage()); 31 | return packages; 32 | } 33 | 34 | @Override 35 | protected String getJSMainModuleName() { 36 | return "index"; 37 | } 38 | }; 39 | 40 | @Override 41 | public ReactNativeHost getReactNativeHost() { 42 | return mReactNativeHost; 43 | } 44 | 45 | @Override 46 | public void onCreate() { 47 | super.onCreate(); 48 | SoLoader.init(this, /* native exopackage */ false); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /example/ios/IsDetoxExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | IsDetox Example 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSAllowsArbitraryLoads 30 | 31 | NSExceptionDomains 32 | 33 | localhost 34 | 35 | NSExceptionAllowsInsecureHTTPLoads 36 | 37 | 38 | 39 | 40 | NSLocationWhenInUseUsageDescription 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /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 https://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 Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /example/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 Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto init 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto init 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :init 68 | @rem Get command-line arguments, handling Windows variants 69 | 70 | if not "%OS%" == "Windows_NT" goto win9xME_args 71 | 72 | :win9xME_args 73 | @rem Slurp the command line arguments. 74 | set CMD_LINE_ARGS= 75 | set _SKIP=2 76 | 77 | :win9xME_args_slurp 78 | if "x%~1" == "x" goto execute 79 | 80 | set CMD_LINE_ARGS=%* 81 | 82 | :execute 83 | @rem Setup the command line 84 | 85 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 86 | 87 | @rem Execute Gradle 88 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 89 | 90 | :end 91 | @rem End local scope for the variables with windows NT shell 92 | if "%ERRORLEVEL%"=="0" goto mainEnd 93 | 94 | :fail 95 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 96 | rem the _cmd.exe /c_ return code! 97 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 98 | exit /b 1 99 | 100 | :mainEnd 101 | if "%OS%"=="Windows_NT" endlocal 102 | 103 | :omega 104 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-is-detox", 3 | "version": "1.2.3", 4 | "description": "Checks whether current app instance is launched by Detox or not", 5 | "main": "lib/commonjs/index", 6 | "module": "lib/module/index", 7 | "types": "lib/typescript/index.d.ts", 8 | "react-native": "src/index", 9 | "source": "src/index", 10 | "files": [ 11 | "src", 12 | "lib", 13 | "android", 14 | "ios", 15 | "cpp", 16 | "react-native-is-detox.podspec", 17 | "jestSetup.js", 18 | "!lib/typescript/example", 19 | "!android/build", 20 | "!ios/build", 21 | "!**/__tests__", 22 | "!**/__fixtures__", 23 | "!**/__mocks__" 24 | ], 25 | "scripts": { 26 | "test": "jest", 27 | "typescript": "tsc --noEmit", 28 | "lint": "eslint \"**/*.{js,ts,tsx}\"", 29 | "prepare": "bob build", 30 | "release": "release-it", 31 | "example": "yarn --cwd example", 32 | "pods": "cd example && pod-install --quiet", 33 | "bootstrap": "yarn example && yarn && yarn pods" 34 | }, 35 | "keywords": [ 36 | "react-native", 37 | "ios", 38 | "android" 39 | ], 40 | "repository": "https://github.com/jesperjohansson/react-native-is-detox", 41 | "author": "Jesper Johansson (https://github.com/jesperjohansson)", 42 | "license": "MIT", 43 | "bugs": { 44 | "url": "https://github.com/jesperjohansson/react-native-is-detox/issues" 45 | }, 46 | "homepage": "https://github.com/jesperjohansson/react-native-is-detox#readme", 47 | "publishConfig": { 48 | "registry": "https://registry.npmjs.org/" 49 | }, 50 | "devDependencies": { 51 | "@commitlint/config-conventional": "^11.0.0", 52 | "@react-native-community/eslint-config": "^2.0.0", 53 | "@release-it/conventional-changelog": "^2.0.0", 54 | "@types/jest": "^26.0.0", 55 | "@types/react": "^16.9.19", 56 | "@types/react-native": "0.62.13", 57 | "commitlint": "^11.0.0", 58 | "eslint": "^7.2.0", 59 | "eslint-config-prettier": "^7.0.0", 60 | "eslint-plugin-prettier": "^3.1.3", 61 | "husky": "^6.0.0", 62 | "jest": "^26.0.1", 63 | "pod-install": "^0.1.0", 64 | "prettier": "^2.0.5", 65 | "react": "16.13.1", 66 | "react-native": "0.63.4", 67 | "react-native-builder-bob": "^0.18.0", 68 | "release-it": "^14.2.2", 69 | "typescript": "^4.1.3" 70 | }, 71 | "peerDependencies": { 72 | "react": "*", 73 | "react-native": "*" 74 | }, 75 | "jest": { 76 | "preset": "react-native", 77 | "modulePathIgnorePatterns": [ 78 | "/example/node_modules", 79 | "/lib/" 80 | ] 81 | }, 82 | "commitlint": { 83 | "extends": [ 84 | "@commitlint/config-conventional" 85 | ] 86 | }, 87 | "release-it": { 88 | "git": { 89 | "commitMessage": "chore: release ${version}", 90 | "tagName": "v${version}" 91 | }, 92 | "npm": { 93 | "publish": true 94 | }, 95 | "github": { 96 | "release": true 97 | }, 98 | "plugins": { 99 | "@release-it/conventional-changelog": { 100 | "preset": "angular" 101 | } 102 | } 103 | }, 104 | "eslintConfig": { 105 | "root": true, 106 | "extends": [ 107 | "@react-native-community", 108 | "prettier" 109 | ], 110 | "rules": { 111 | "prettier/prettier": [ 112 | "error", 113 | { 114 | "quoteProps": "consistent", 115 | "singleQuote": true, 116 | "tabWidth": 2, 117 | "trailingComma": "es5", 118 | "useTabs": false 119 | } 120 | ] 121 | } 122 | }, 123 | "eslintIgnore": [ 124 | "node_modules/", 125 | "lib/" 126 | ], 127 | "prettier": { 128 | "quoteProps": "consistent", 129 | "singleQuote": true, 130 | "tabWidth": 2, 131 | "trailingComma": "es5", 132 | "useTabs": false 133 | }, 134 | "react-native-builder-bob": { 135 | "source": "src", 136 | "output": "lib", 137 | "targets": [ 138 | "commonjs", 139 | "module", 140 | [ 141 | "typescript", 142 | { 143 | "project": "tsconfig.build.json" 144 | } 145 | ] 146 | ] 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /example/ios/IsDetoxExample.xcodeproj/xcshareddata/xcschemes/IsDetoxExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 81 | 83 | 89 | 90 | 91 | 92 | 94 | 95 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /example/ios/IsDetoxExample/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /example/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 | # https://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 or MSYS, switch paths to Windows format before running java 129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; 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=`expr $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 | exec "$JAVACMD" "$@" 184 | -------------------------------------------------------------------------------- /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 | # https://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 | 86 | # Determine the Java command to use to start the JVM. 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | if [ ! -x "$JAVACMD" ] ; then 95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 96 | 97 | Please set the JAVA_HOME variable in your environment to match the 98 | location of your Java installation." 99 | fi 100 | else 101 | JAVACMD="java" 102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 103 | 104 | Please set the JAVA_HOME variable in your environment to match the 105 | location of your Java installation." 106 | fi 107 | 108 | # Increase the maximum file descriptors if we can. 109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 110 | MAX_FD_LIMIT=`ulimit -H -n` 111 | if [ $? -eq 0 ] ; then 112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 113 | MAX_FD="$MAX_FD_LIMIT" 114 | fi 115 | ulimit -n $MAX_FD 116 | if [ $? -ne 0 ] ; then 117 | warn "Could not set maximum file descriptor limit: $MAX_FD" 118 | fi 119 | else 120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 121 | fi 122 | fi 123 | 124 | # For Darwin, add options to specify how the application appears in the dock 125 | if $darwin; then 126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 127 | fi 128 | 129 | # For Cygwin or MSYS, switch paths to Windows format before running java 130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 133 | 134 | JAVACMD=`cygpath --unix "$JAVACMD"` 135 | 136 | # We build the pattern for arguments to be converted via cygpath 137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 138 | SEP="" 139 | for dir in $ROOTDIRSRAW ; do 140 | ROOTDIRS="$ROOTDIRS$SEP$dir" 141 | SEP="|" 142 | done 143 | OURCYGPATTERN="(^($ROOTDIRS))" 144 | # Add a user-defined pattern to the cygpath arguments 145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 147 | fi 148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 149 | i=0 150 | for arg in "$@" ; do 151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 153 | 154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 156 | else 157 | eval `echo args$i`="\"$arg\"" 158 | fi 159 | i=`expr $i + 1` 160 | done 161 | case $i in 162 | 0) set -- ;; 163 | 1) set -- "$args0" ;; 164 | 2) set -- "$args0" "$args1" ;; 165 | 3) set -- "$args0" "$args1" "$args2" ;; 166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 172 | esac 173 | fi 174 | 175 | # Escape application args 176 | save () { 177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 178 | echo " " 179 | } 180 | APP_ARGS=`save "$@"` 181 | 182 | # Collect all arguments for the java command, following the shell quoting and substitution rules 183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 184 | 185 | exec "$JAVACMD" "$@" 186 | -------------------------------------------------------------------------------- /example/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://reactnative.dev/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 IsDetoxExample: 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 IsDetoxExample, 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 | enableHermes: false, // clean and rebuild if changing 80 | entryFile: "index.tsx", 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 IsDetoxExample, 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.example.reactnativeisdetox" 132 | minSdkVersion rootProject.ext.minSdkVersion 133 | targetSdkVersion rootProject.ext.targetSdkVersion 134 | versionCode 1 135 | versionName "1.0" 136 | testBuildType System.getProperty('testBuildType', 'debug') 137 | testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' 138 | 139 | ndkVersion "21.4.7075529" 140 | } 141 | splits { 142 | abi { 143 | reset() 144 | enable enableSeparateBuildPerCPUArchitecture 145 | universalApk false // If true, also generate a universal APK 146 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 147 | } 148 | } 149 | signingConfigs { 150 | debug { 151 | storeFile file('debug.keystore') 152 | storePassword 'android' 153 | keyAlias 'androiddebugkey' 154 | keyPassword 'android' 155 | } 156 | } 157 | buildTypes { 158 | debug { 159 | signingConfig signingConfigs.debug 160 | } 161 | release { 162 | // Caution! In production, you need to generate your own keystore file. 163 | // see https://reactnative.dev/docs/signed-apk-android. 164 | signingConfig signingConfigs.debug 165 | minifyEnabled enableProguardInReleaseBuilds 166 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 167 | proguardFile "${rootProject.projectDir}/../node_modules/detox/android/detox/proguard-rules-app.pro" 168 | } 169 | } 170 | // applicationVariants are e.g. debug, release 171 | applicationVariants.all { variant -> 172 | variant.outputs.each { output -> 173 | // For each separate APK per architecture, set a unique version code as described here: 174 | // https://developer.android.com/studio/build/configure-apk-splits.html 175 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 176 | def abi = output.getFilter(OutputFile.ABI) 177 | if (abi != null) { // null for the universal-debug, universal-release variants 178 | output.versionCodeOverride = 179 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 180 | } 181 | 182 | } 183 | } 184 | } 185 | 186 | dependencies { 187 | implementation fileTree(dir: "libs", include: ["*.jar"]) 188 | //noinspection GradleDynamicVersion 189 | implementation "com.facebook.react:react-native:+" // From node_modules 190 | 191 | //noinspection GradleDynamicVersion 192 | androidTestImplementation "com.wix:detox:+" 193 | 194 | implementation "androidx.appcompat:appcompat:1.1.0" 195 | 196 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 197 | 198 | if (enableHermes) { 199 | def hermesPath = "../../node_modules/hermes-engine/android/"; 200 | debugImplementation files(hermesPath + "hermes-debug.aar") 201 | releaseImplementation files(hermesPath + "hermes-release.aar") 202 | } else { 203 | implementation jscFlavor 204 | } 205 | 206 | implementation project(':reactnativeisdetox') 207 | } 208 | 209 | // Run this once to be able to run the application with BUCK 210 | // puts all compile dependencies into folder libs for BUCK to use 211 | task copyDownloadableDepsToLibs(type: Copy) { 212 | from configurations.compile 213 | into 'libs' 214 | } 215 | 216 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 217 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project. 4 | 5 | ## Development workflow 6 | 7 | To get started with the project, run `yarn` in the root directory to install the required dependencies for each package: 8 | 9 | ```sh 10 | yarn 11 | ``` 12 | 13 | > While it's possible to use [`npm`](https://github.com/npm/cli), the tooling is built around [`yarn`](https://classic.yarnpkg.com/), so you'll have an easier time if you use `yarn` for development. 14 | 15 | While developing, you can run the [example app](/example/) to test your changes. Any changes you make in your library's JavaScript code will be reflected in the example app without a rebuild. If you change any native code, then you'll need to rebuild the example app. 16 | 17 | To start the packager: 18 | 19 | ```sh 20 | yarn example start 21 | ``` 22 | 23 | To run the example app on Android: 24 | 25 | ```sh 26 | yarn example android 27 | ``` 28 | 29 | To run the example app on iOS: 30 | 31 | ```sh 32 | yarn example ios 33 | ``` 34 | 35 | Make sure your code passes TypeScript and ESLint. Run the following to verify: 36 | 37 | ```sh 38 | yarn typescript 39 | yarn lint 40 | ``` 41 | 42 | To fix formatting errors, run the following: 43 | 44 | ```sh 45 | yarn lint --fix 46 | ``` 47 | 48 | Remember to add tests for your change if possible. Run the unit tests by: 49 | 50 | ```sh 51 | yarn test 52 | ``` 53 | 54 | To edit the Objective-C files, open `example/ios/IsDetoxExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-is-detox`. 55 | 56 | To edit the Kotlin files, open `example/android` in Android studio and find the source files at `reactnativeisdetox` under `Android`. 57 | 58 | ### Commit message convention 59 | 60 | We follow the [conventional commits specification](https://www.conventionalcommits.org/en) for our commit messages: 61 | 62 | - `fix`: bug fixes, e.g. fix crash due to deprecated method. 63 | - `feat`: new features, e.g. add new method to the module. 64 | - `refactor`: code refactor, e.g. migrate from class components to hooks. 65 | - `docs`: changes into documentation, e.g. add usage example for the module.. 66 | - `test`: adding or updating tests, e.g. add integration tests using detox. 67 | - `chore`: tooling changes, e.g. change CI config. 68 | 69 | Our pre-commit hooks verify that your commit message matches this format when committing. 70 | 71 | ### Linting and tests 72 | 73 | [ESLint](https://eslint.org/), [Prettier](https://prettier.io/), [TypeScript](https://www.typescriptlang.org/) 74 | 75 | We use [TypeScript](https://www.typescriptlang.org/) for type checking, [ESLint](https://eslint.org/) with [Prettier](https://prettier.io/) for linting and formatting the code, and [Jest](https://jestjs.io/) for testing. 76 | 77 | Our pre-commit hooks verify that the linter and tests pass when committing. 78 | 79 | ### Publishing to npm 80 | 81 | We use [release-it](https://github.com/release-it/release-it) to make it easier to publish new versions. It handles common tasks like bumping version based on semver, creating tags and releases etc. 82 | 83 | To publish new versions, run the following: 84 | 85 | ```sh 86 | yarn release 87 | ``` 88 | 89 | ### Scripts 90 | 91 | The `package.json` file contains various scripts for common tasks: 92 | 93 | - `yarn bootstrap`: setup project by installing all dependencies and pods. 94 | - `yarn typescript`: type-check files with TypeScript. 95 | - `yarn lint`: lint files with ESLint. 96 | - `yarn test`: run unit tests with Jest. 97 | - `yarn example start`: start the Metro server for the example app. 98 | - `yarn example android`: run the example app on Android. 99 | - `yarn example ios`: run the example app on iOS. 100 | 101 | ### Sending a pull request 102 | 103 | > **Working on your first pull request?** You can learn how from this _free_ series: [How to Contribute to an Open Source Project on GitHub](https://app.egghead.io/playlists/how-to-contribute-to-an-open-source-project-on-github). 104 | 105 | When you're sending a pull request: 106 | 107 | - Prefer small pull requests focused on one change. 108 | - Verify that linters and tests are passing. 109 | - Review the documentation to make sure it looks good. 110 | - Follow the pull request template when opening a pull request. 111 | - For pull requests that change the API or implementation, discuss with maintainers first by opening an issue. 112 | 113 | ## Code of Conduct 114 | 115 | ### Our Pledge 116 | 117 | We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. 118 | 119 | We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. 120 | 121 | ### Our Standards 122 | 123 | Examples of behavior that contributes to a positive environment for our community include: 124 | 125 | - Demonstrating empathy and kindness toward other people 126 | - Being respectful of differing opinions, viewpoints, and experiences 127 | - Giving and gracefully accepting constructive feedback 128 | - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience 129 | - Focusing on what is best not just for us as individuals, but for the overall community 130 | 131 | Examples of unacceptable behavior include: 132 | 133 | - The use of sexualized language or imagery, and sexual attention or 134 | advances of any kind 135 | - Trolling, insulting or derogatory comments, and personal or political attacks 136 | - Public or private harassment 137 | - Publishing others' private information, such as a physical or email 138 | address, without their explicit permission 139 | - Other conduct which could reasonably be considered inappropriate in a 140 | professional setting 141 | 142 | ### Enforcement Responsibilities 143 | 144 | Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. 145 | 146 | Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. 147 | 148 | ### Scope 149 | 150 | This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. 151 | 152 | ### Enforcement 153 | 154 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [INSERT CONTACT METHOD]. All complaints will be reviewed and investigated promptly and fairly. 155 | 156 | All community leaders are obligated to respect the privacy and security of the reporter of any incident. 157 | 158 | ### Enforcement Guidelines 159 | 160 | Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: 161 | 162 | #### 1. Correction 163 | 164 | **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. 165 | 166 | **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. 167 | 168 | #### 2. Warning 169 | 170 | **Community Impact**: A violation through a single incident or series of actions. 171 | 172 | **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. 173 | 174 | #### 3. Temporary Ban 175 | 176 | **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. 177 | 178 | **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. 179 | 180 | #### 4. Permanent Ban 181 | 182 | **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. 183 | 184 | **Consequence**: A permanent ban from any sort of public interaction within the community. 185 | 186 | ### Attribution 187 | 188 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, 189 | available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 190 | 191 | Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). 192 | 193 | [homepage]: https://www.contributor-covenant.org 194 | 195 | For answers to common questions about this code of conduct, see the FAQ at 196 | https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. 197 | -------------------------------------------------------------------------------- /ios/IsDetox.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 11 | 5E555C0D2413F4C50049A1A2 /* IsDetox.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* IsDetox.m */; }; 12 | 13 | /* End PBXBuildFile section */ 14 | 15 | /* Begin PBXCopyFilesBuildPhase section */ 16 | 58B511D91A9E6C8500147676 /* CopyFiles */ = { 17 | isa = PBXCopyFilesBuildPhase; 18 | buildActionMask = 2147483647; 19 | dstPath = "include/$(PRODUCT_NAME)"; 20 | dstSubfolderSpec = 16; 21 | files = ( 22 | ); 23 | runOnlyForDeploymentPostprocessing = 0; 24 | }; 25 | /* End PBXCopyFilesBuildPhase section */ 26 | 27 | /* Begin PBXFileReference section */ 28 | 134814201AA4EA6300B7C361 /* libIsDetox.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libIsDetox.a; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | 30 | B3E7B5881CC2AC0600A0062D /* IsDetox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IsDetox.h; sourceTree = ""; }; 31 | B3E7B5891CC2AC0600A0062D /* IsDetox.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IsDetox.m; sourceTree = ""; }; 32 | 33 | /* End PBXFileReference section */ 34 | 35 | /* Begin PBXFrameworksBuildPhase section */ 36 | 58B511D81A9E6C8500147676 /* Frameworks */ = { 37 | isa = PBXFrameworksBuildPhase; 38 | buildActionMask = 2147483647; 39 | files = ( 40 | ); 41 | runOnlyForDeploymentPostprocessing = 0; 42 | }; 43 | /* End PBXFrameworksBuildPhase section */ 44 | 45 | /* Begin PBXGroup section */ 46 | 134814211AA4EA7D00B7C361 /* Products */ = { 47 | isa = PBXGroup; 48 | children = ( 49 | 134814201AA4EA6300B7C361 /* libIsDetox.a */, 50 | ); 51 | name = Products; 52 | sourceTree = ""; 53 | }; 54 | 58B511D21A9E6C8500147676 = { 55 | isa = PBXGroup; 56 | children = ( 57 | 58 | B3E7B5881CC2AC0600A0062D /* IsDetox.h */, 59 | B3E7B5891CC2AC0600A0062D /* IsDetox.m */, 60 | 61 | 134814211AA4EA7D00B7C361 /* Products */, 62 | ); 63 | sourceTree = ""; 64 | }; 65 | /* End PBXGroup section */ 66 | 67 | /* Begin PBXNativeTarget section */ 68 | 58B511DA1A9E6C8500147676 /* IsDetox */ = { 69 | isa = PBXNativeTarget; 70 | buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "IsDetox" */; 71 | buildPhases = ( 72 | 58B511D71A9E6C8500147676 /* Sources */, 73 | 58B511D81A9E6C8500147676 /* Frameworks */, 74 | 58B511D91A9E6C8500147676 /* CopyFiles */, 75 | ); 76 | buildRules = ( 77 | ); 78 | dependencies = ( 79 | ); 80 | name = IsDetox; 81 | productName = RCTDataManager; 82 | productReference = 134814201AA4EA6300B7C361 /* libIsDetox.a */; 83 | productType = "com.apple.product-type.library.static"; 84 | }; 85 | /* End PBXNativeTarget section */ 86 | 87 | /* Begin PBXProject section */ 88 | 58B511D31A9E6C8500147676 /* Project object */ = { 89 | isa = PBXProject; 90 | attributes = { 91 | LastUpgradeCheck = 0920; 92 | ORGANIZATIONNAME = Facebook; 93 | TargetAttributes = { 94 | 58B511DA1A9E6C8500147676 = { 95 | CreatedOnToolsVersion = 6.1.1; 96 | }; 97 | }; 98 | }; 99 | buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "IsDetox" */; 100 | compatibilityVersion = "Xcode 3.2"; 101 | developmentRegion = English; 102 | hasScannedForEncodings = 0; 103 | knownRegions = ( 104 | English, 105 | en, 106 | ); 107 | mainGroup = 58B511D21A9E6C8500147676; 108 | productRefGroup = 58B511D21A9E6C8500147676; 109 | projectDirPath = ""; 110 | projectRoot = ""; 111 | targets = ( 112 | 58B511DA1A9E6C8500147676 /* IsDetox */, 113 | ); 114 | }; 115 | /* End PBXProject section */ 116 | 117 | /* Begin PBXSourcesBuildPhase section */ 118 | 58B511D71A9E6C8500147676 /* Sources */ = { 119 | isa = PBXSourcesBuildPhase; 120 | buildActionMask = 2147483647; 121 | files = ( 122 | 123 | B3E7B58A1CC2AC0600A0062D /* IsDetox.m in Sources */, 124 | 125 | ); 126 | runOnlyForDeploymentPostprocessing = 0; 127 | }; 128 | /* End PBXSourcesBuildPhase section */ 129 | 130 | /* Begin XCBuildConfiguration section */ 131 | 58B511ED1A9E6C8500147676 /* Debug */ = { 132 | isa = XCBuildConfiguration; 133 | buildSettings = { 134 | ALWAYS_SEARCH_USER_PATHS = NO; 135 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 136 | CLANG_CXX_LIBRARY = "libc++"; 137 | CLANG_ENABLE_MODULES = YES; 138 | CLANG_ENABLE_OBJC_ARC = YES; 139 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 140 | CLANG_WARN_BOOL_CONVERSION = YES; 141 | CLANG_WARN_COMMA = YES; 142 | CLANG_WARN_CONSTANT_CONVERSION = YES; 143 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 144 | CLANG_WARN_EMPTY_BODY = YES; 145 | CLANG_WARN_ENUM_CONVERSION = YES; 146 | CLANG_WARN_INFINITE_RECURSION = YES; 147 | CLANG_WARN_INT_CONVERSION = YES; 148 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 149 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 150 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 151 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 152 | CLANG_WARN_STRICT_PROTOTYPES = YES; 153 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 154 | CLANG_WARN_UNREACHABLE_CODE = YES; 155 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 156 | COPY_PHASE_STRIP = NO; 157 | ENABLE_STRICT_OBJC_MSGSEND = YES; 158 | ENABLE_TESTABILITY = YES; 159 | GCC_C_LANGUAGE_STANDARD = gnu99; 160 | GCC_DYNAMIC_NO_PIC = NO; 161 | GCC_NO_COMMON_BLOCKS = YES; 162 | GCC_OPTIMIZATION_LEVEL = 0; 163 | GCC_PREPROCESSOR_DEFINITIONS = ( 164 | "DEBUG=1", 165 | "$(inherited)", 166 | ); 167 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 168 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 169 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 170 | GCC_WARN_UNDECLARED_SELECTOR = YES; 171 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 172 | GCC_WARN_UNUSED_FUNCTION = YES; 173 | GCC_WARN_UNUSED_VARIABLE = YES; 174 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 175 | MTL_ENABLE_DEBUG_INFO = YES; 176 | ONLY_ACTIVE_ARCH = YES; 177 | SDKROOT = iphoneos; 178 | }; 179 | name = Debug; 180 | }; 181 | 58B511EE1A9E6C8500147676 /* Release */ = { 182 | isa = XCBuildConfiguration; 183 | buildSettings = { 184 | ALWAYS_SEARCH_USER_PATHS = NO; 185 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 186 | CLANG_CXX_LIBRARY = "libc++"; 187 | CLANG_ENABLE_MODULES = YES; 188 | CLANG_ENABLE_OBJC_ARC = YES; 189 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 190 | CLANG_WARN_BOOL_CONVERSION = YES; 191 | CLANG_WARN_COMMA = YES; 192 | CLANG_WARN_CONSTANT_CONVERSION = YES; 193 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 194 | CLANG_WARN_EMPTY_BODY = YES; 195 | CLANG_WARN_ENUM_CONVERSION = YES; 196 | CLANG_WARN_INFINITE_RECURSION = YES; 197 | CLANG_WARN_INT_CONVERSION = YES; 198 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 199 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 200 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 201 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 202 | CLANG_WARN_STRICT_PROTOTYPES = YES; 203 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 204 | CLANG_WARN_UNREACHABLE_CODE = YES; 205 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 206 | COPY_PHASE_STRIP = YES; 207 | ENABLE_NS_ASSERTIONS = NO; 208 | ENABLE_STRICT_OBJC_MSGSEND = YES; 209 | GCC_C_LANGUAGE_STANDARD = gnu99; 210 | GCC_NO_COMMON_BLOCKS = YES; 211 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 212 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 213 | GCC_WARN_UNDECLARED_SELECTOR = YES; 214 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 215 | GCC_WARN_UNUSED_FUNCTION = YES; 216 | GCC_WARN_UNUSED_VARIABLE = YES; 217 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 218 | MTL_ENABLE_DEBUG_INFO = NO; 219 | SDKROOT = iphoneos; 220 | VALIDATE_PRODUCT = YES; 221 | }; 222 | name = Release; 223 | }; 224 | 58B511F01A9E6C8500147676 /* Debug */ = { 225 | isa = XCBuildConfiguration; 226 | buildSettings = { 227 | HEADER_SEARCH_PATHS = ( 228 | "$(inherited)", 229 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 230 | "$(SRCROOT)/../../../React/**", 231 | "$(SRCROOT)/../../react-native/React/**", 232 | ); 233 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 234 | OTHER_LDFLAGS = "-ObjC"; 235 | PRODUCT_NAME = IsDetox; 236 | SKIP_INSTALL = YES; 237 | 238 | }; 239 | name = Debug; 240 | }; 241 | 58B511F11A9E6C8500147676 /* Release */ = { 242 | isa = XCBuildConfiguration; 243 | buildSettings = { 244 | HEADER_SEARCH_PATHS = ( 245 | "$(inherited)", 246 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 247 | "$(SRCROOT)/../../../React/**", 248 | "$(SRCROOT)/../../react-native/React/**", 249 | ); 250 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 251 | OTHER_LDFLAGS = "-ObjC"; 252 | PRODUCT_NAME = IsDetox; 253 | SKIP_INSTALL = YES; 254 | 255 | }; 256 | name = Release; 257 | }; 258 | /* End XCBuildConfiguration section */ 259 | 260 | /* Begin XCConfigurationList section */ 261 | 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "IsDetox" */ = { 262 | isa = XCConfigurationList; 263 | buildConfigurations = ( 264 | 58B511ED1A9E6C8500147676 /* Debug */, 265 | 58B511EE1A9E6C8500147676 /* Release */, 266 | ); 267 | defaultConfigurationIsVisible = 0; 268 | defaultConfigurationName = Release; 269 | }; 270 | 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "IsDetox" */ = { 271 | isa = XCConfigurationList; 272 | buildConfigurations = ( 273 | 58B511F01A9E6C8500147676 /* Debug */, 274 | 58B511F11A9E6C8500147676 /* Release */, 275 | ); 276 | defaultConfigurationIsVisible = 0; 277 | defaultConfigurationName = Release; 278 | }; 279 | /* End XCConfigurationList section */ 280 | }; 281 | rootObject = 58B511D31A9E6C8500147676 /* Project object */; 282 | } 283 | -------------------------------------------------------------------------------- /example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - DoubleConversion (1.1.6) 4 | - FBLazyVector (0.63.4) 5 | - FBReactNativeSpec (0.63.4): 6 | - Folly (= 2020.01.13.00) 7 | - RCTRequired (= 0.63.4) 8 | - RCTTypeSafety (= 0.63.4) 9 | - React-Core (= 0.63.4) 10 | - React-jsi (= 0.63.4) 11 | - ReactCommon/turbomodule/core (= 0.63.4) 12 | - Folly (2020.01.13.00): 13 | - boost-for-react-native 14 | - DoubleConversion 15 | - Folly/Default (= 2020.01.13.00) 16 | - glog 17 | - Folly/Default (2020.01.13.00): 18 | - boost-for-react-native 19 | - DoubleConversion 20 | - glog 21 | - glog (0.3.5) 22 | - RCTRequired (0.63.4) 23 | - RCTTypeSafety (0.63.4): 24 | - FBLazyVector (= 0.63.4) 25 | - Folly (= 2020.01.13.00) 26 | - RCTRequired (= 0.63.4) 27 | - React-Core (= 0.63.4) 28 | - React (0.63.4): 29 | - React-Core (= 0.63.4) 30 | - React-Core/DevSupport (= 0.63.4) 31 | - React-Core/RCTWebSocket (= 0.63.4) 32 | - React-RCTActionSheet (= 0.63.4) 33 | - React-RCTAnimation (= 0.63.4) 34 | - React-RCTBlob (= 0.63.4) 35 | - React-RCTImage (= 0.63.4) 36 | - React-RCTLinking (= 0.63.4) 37 | - React-RCTNetwork (= 0.63.4) 38 | - React-RCTSettings (= 0.63.4) 39 | - React-RCTText (= 0.63.4) 40 | - React-RCTVibration (= 0.63.4) 41 | - React-callinvoker (0.63.4) 42 | - React-Core (0.63.4): 43 | - Folly (= 2020.01.13.00) 44 | - glog 45 | - React-Core/Default (= 0.63.4) 46 | - React-cxxreact (= 0.63.4) 47 | - React-jsi (= 0.63.4) 48 | - React-jsiexecutor (= 0.63.4) 49 | - Yoga 50 | - React-Core/CoreModulesHeaders (0.63.4): 51 | - Folly (= 2020.01.13.00) 52 | - glog 53 | - React-Core/Default 54 | - React-cxxreact (= 0.63.4) 55 | - React-jsi (= 0.63.4) 56 | - React-jsiexecutor (= 0.63.4) 57 | - Yoga 58 | - React-Core/Default (0.63.4): 59 | - Folly (= 2020.01.13.00) 60 | - glog 61 | - React-cxxreact (= 0.63.4) 62 | - React-jsi (= 0.63.4) 63 | - React-jsiexecutor (= 0.63.4) 64 | - Yoga 65 | - React-Core/DevSupport (0.63.4): 66 | - Folly (= 2020.01.13.00) 67 | - glog 68 | - React-Core/Default (= 0.63.4) 69 | - React-Core/RCTWebSocket (= 0.63.4) 70 | - React-cxxreact (= 0.63.4) 71 | - React-jsi (= 0.63.4) 72 | - React-jsiexecutor (= 0.63.4) 73 | - React-jsinspector (= 0.63.4) 74 | - Yoga 75 | - React-Core/RCTActionSheetHeaders (0.63.4): 76 | - Folly (= 2020.01.13.00) 77 | - glog 78 | - React-Core/Default 79 | - React-cxxreact (= 0.63.4) 80 | - React-jsi (= 0.63.4) 81 | - React-jsiexecutor (= 0.63.4) 82 | - Yoga 83 | - React-Core/RCTAnimationHeaders (0.63.4): 84 | - Folly (= 2020.01.13.00) 85 | - glog 86 | - React-Core/Default 87 | - React-cxxreact (= 0.63.4) 88 | - React-jsi (= 0.63.4) 89 | - React-jsiexecutor (= 0.63.4) 90 | - Yoga 91 | - React-Core/RCTBlobHeaders (0.63.4): 92 | - Folly (= 2020.01.13.00) 93 | - glog 94 | - React-Core/Default 95 | - React-cxxreact (= 0.63.4) 96 | - React-jsi (= 0.63.4) 97 | - React-jsiexecutor (= 0.63.4) 98 | - Yoga 99 | - React-Core/RCTImageHeaders (0.63.4): 100 | - Folly (= 2020.01.13.00) 101 | - glog 102 | - React-Core/Default 103 | - React-cxxreact (= 0.63.4) 104 | - React-jsi (= 0.63.4) 105 | - React-jsiexecutor (= 0.63.4) 106 | - Yoga 107 | - React-Core/RCTLinkingHeaders (0.63.4): 108 | - Folly (= 2020.01.13.00) 109 | - glog 110 | - React-Core/Default 111 | - React-cxxreact (= 0.63.4) 112 | - React-jsi (= 0.63.4) 113 | - React-jsiexecutor (= 0.63.4) 114 | - Yoga 115 | - React-Core/RCTNetworkHeaders (0.63.4): 116 | - Folly (= 2020.01.13.00) 117 | - glog 118 | - React-Core/Default 119 | - React-cxxreact (= 0.63.4) 120 | - React-jsi (= 0.63.4) 121 | - React-jsiexecutor (= 0.63.4) 122 | - Yoga 123 | - React-Core/RCTSettingsHeaders (0.63.4): 124 | - Folly (= 2020.01.13.00) 125 | - glog 126 | - React-Core/Default 127 | - React-cxxreact (= 0.63.4) 128 | - React-jsi (= 0.63.4) 129 | - React-jsiexecutor (= 0.63.4) 130 | - Yoga 131 | - React-Core/RCTTextHeaders (0.63.4): 132 | - Folly (= 2020.01.13.00) 133 | - glog 134 | - React-Core/Default 135 | - React-cxxreact (= 0.63.4) 136 | - React-jsi (= 0.63.4) 137 | - React-jsiexecutor (= 0.63.4) 138 | - Yoga 139 | - React-Core/RCTVibrationHeaders (0.63.4): 140 | - Folly (= 2020.01.13.00) 141 | - glog 142 | - React-Core/Default 143 | - React-cxxreact (= 0.63.4) 144 | - React-jsi (= 0.63.4) 145 | - React-jsiexecutor (= 0.63.4) 146 | - Yoga 147 | - React-Core/RCTWebSocket (0.63.4): 148 | - Folly (= 2020.01.13.00) 149 | - glog 150 | - React-Core/Default (= 0.63.4) 151 | - React-cxxreact (= 0.63.4) 152 | - React-jsi (= 0.63.4) 153 | - React-jsiexecutor (= 0.63.4) 154 | - Yoga 155 | - React-CoreModules (0.63.4): 156 | - FBReactNativeSpec (= 0.63.4) 157 | - Folly (= 2020.01.13.00) 158 | - RCTTypeSafety (= 0.63.4) 159 | - React-Core/CoreModulesHeaders (= 0.63.4) 160 | - React-jsi (= 0.63.4) 161 | - React-RCTImage (= 0.63.4) 162 | - ReactCommon/turbomodule/core (= 0.63.4) 163 | - React-cxxreact (0.63.4): 164 | - boost-for-react-native (= 1.63.0) 165 | - DoubleConversion 166 | - Folly (= 2020.01.13.00) 167 | - glog 168 | - React-callinvoker (= 0.63.4) 169 | - React-jsinspector (= 0.63.4) 170 | - React-jsi (0.63.4): 171 | - boost-for-react-native (= 1.63.0) 172 | - DoubleConversion 173 | - Folly (= 2020.01.13.00) 174 | - glog 175 | - React-jsi/Default (= 0.63.4) 176 | - React-jsi/Default (0.63.4): 177 | - boost-for-react-native (= 1.63.0) 178 | - DoubleConversion 179 | - Folly (= 2020.01.13.00) 180 | - glog 181 | - React-jsiexecutor (0.63.4): 182 | - DoubleConversion 183 | - Folly (= 2020.01.13.00) 184 | - glog 185 | - React-cxxreact (= 0.63.4) 186 | - React-jsi (= 0.63.4) 187 | - React-jsinspector (0.63.4) 188 | - react-native-is-detox (1.2.0): 189 | - React-Core 190 | - React-RCTActionSheet (0.63.4): 191 | - React-Core/RCTActionSheetHeaders (= 0.63.4) 192 | - React-RCTAnimation (0.63.4): 193 | - FBReactNativeSpec (= 0.63.4) 194 | - Folly (= 2020.01.13.00) 195 | - RCTTypeSafety (= 0.63.4) 196 | - React-Core/RCTAnimationHeaders (= 0.63.4) 197 | - React-jsi (= 0.63.4) 198 | - ReactCommon/turbomodule/core (= 0.63.4) 199 | - React-RCTBlob (0.63.4): 200 | - FBReactNativeSpec (= 0.63.4) 201 | - Folly (= 2020.01.13.00) 202 | - React-Core/RCTBlobHeaders (= 0.63.4) 203 | - React-Core/RCTWebSocket (= 0.63.4) 204 | - React-jsi (= 0.63.4) 205 | - React-RCTNetwork (= 0.63.4) 206 | - ReactCommon/turbomodule/core (= 0.63.4) 207 | - React-RCTImage (0.63.4): 208 | - FBReactNativeSpec (= 0.63.4) 209 | - Folly (= 2020.01.13.00) 210 | - RCTTypeSafety (= 0.63.4) 211 | - React-Core/RCTImageHeaders (= 0.63.4) 212 | - React-jsi (= 0.63.4) 213 | - React-RCTNetwork (= 0.63.4) 214 | - ReactCommon/turbomodule/core (= 0.63.4) 215 | - React-RCTLinking (0.63.4): 216 | - FBReactNativeSpec (= 0.63.4) 217 | - React-Core/RCTLinkingHeaders (= 0.63.4) 218 | - React-jsi (= 0.63.4) 219 | - ReactCommon/turbomodule/core (= 0.63.4) 220 | - React-RCTNetwork (0.63.4): 221 | - FBReactNativeSpec (= 0.63.4) 222 | - Folly (= 2020.01.13.00) 223 | - RCTTypeSafety (= 0.63.4) 224 | - React-Core/RCTNetworkHeaders (= 0.63.4) 225 | - React-jsi (= 0.63.4) 226 | - ReactCommon/turbomodule/core (= 0.63.4) 227 | - React-RCTSettings (0.63.4): 228 | - FBReactNativeSpec (= 0.63.4) 229 | - Folly (= 2020.01.13.00) 230 | - RCTTypeSafety (= 0.63.4) 231 | - React-Core/RCTSettingsHeaders (= 0.63.4) 232 | - React-jsi (= 0.63.4) 233 | - ReactCommon/turbomodule/core (= 0.63.4) 234 | - React-RCTText (0.63.4): 235 | - React-Core/RCTTextHeaders (= 0.63.4) 236 | - React-RCTVibration (0.63.4): 237 | - FBReactNativeSpec (= 0.63.4) 238 | - Folly (= 2020.01.13.00) 239 | - React-Core/RCTVibrationHeaders (= 0.63.4) 240 | - React-jsi (= 0.63.4) 241 | - ReactCommon/turbomodule/core (= 0.63.4) 242 | - ReactCommon/turbomodule/core (0.63.4): 243 | - DoubleConversion 244 | - Folly (= 2020.01.13.00) 245 | - glog 246 | - React-callinvoker (= 0.63.4) 247 | - React-Core (= 0.63.4) 248 | - React-cxxreact (= 0.63.4) 249 | - React-jsi (= 0.63.4) 250 | - Yoga (1.14.0) 251 | 252 | DEPENDENCIES: 253 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 254 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 255 | - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`) 256 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) 257 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 258 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 259 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 260 | - React (from `../node_modules/react-native/`) 261 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 262 | - React-Core (from `../node_modules/react-native/`) 263 | - React-Core/DevSupport (from `../node_modules/react-native/`) 264 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 265 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 266 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 267 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 268 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 269 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 270 | - react-native-is-detox (from `../..`) 271 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 272 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 273 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 274 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 275 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 276 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 277 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 278 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 279 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 280 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 281 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 282 | 283 | SPEC REPOS: 284 | trunk: 285 | - boost-for-react-native 286 | 287 | EXTERNAL SOURCES: 288 | DoubleConversion: 289 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 290 | FBLazyVector: 291 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 292 | FBReactNativeSpec: 293 | :path: "../node_modules/react-native/Libraries/FBReactNativeSpec" 294 | Folly: 295 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" 296 | glog: 297 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 298 | RCTRequired: 299 | :path: "../node_modules/react-native/Libraries/RCTRequired" 300 | RCTTypeSafety: 301 | :path: "../node_modules/react-native/Libraries/TypeSafety" 302 | React: 303 | :path: "../node_modules/react-native/" 304 | React-callinvoker: 305 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 306 | React-Core: 307 | :path: "../node_modules/react-native/" 308 | React-CoreModules: 309 | :path: "../node_modules/react-native/React/CoreModules" 310 | React-cxxreact: 311 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 312 | React-jsi: 313 | :path: "../node_modules/react-native/ReactCommon/jsi" 314 | React-jsiexecutor: 315 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 316 | React-jsinspector: 317 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 318 | react-native-is-detox: 319 | :path: "../.." 320 | React-RCTActionSheet: 321 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 322 | React-RCTAnimation: 323 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 324 | React-RCTBlob: 325 | :path: "../node_modules/react-native/Libraries/Blob" 326 | React-RCTImage: 327 | :path: "../node_modules/react-native/Libraries/Image" 328 | React-RCTLinking: 329 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 330 | React-RCTNetwork: 331 | :path: "../node_modules/react-native/Libraries/Network" 332 | React-RCTSettings: 333 | :path: "../node_modules/react-native/Libraries/Settings" 334 | React-RCTText: 335 | :path: "../node_modules/react-native/Libraries/Text" 336 | React-RCTVibration: 337 | :path: "../node_modules/react-native/Libraries/Vibration" 338 | ReactCommon: 339 | :path: "../node_modules/react-native/ReactCommon" 340 | Yoga: 341 | :path: "../node_modules/react-native/ReactCommon/yoga" 342 | 343 | SPEC CHECKSUMS: 344 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 345 | DoubleConversion: cde416483dac037923206447da6e1454df403714 346 | FBLazyVector: 3bb422f41b18121b71783a905c10e58606f7dc3e 347 | FBReactNativeSpec: f2c97f2529dd79c083355182cc158c9f98f4bd6e 348 | Folly: b73c3869541e86821df3c387eb0af5f65addfab4 349 | glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3 350 | RCTRequired: 082f10cd3f905d6c124597fd1c14f6f2655ff65e 351 | RCTTypeSafety: 8c9c544ecbf20337d069e4ae7fd9a377aadf504b 352 | React: b0a957a2c44da4113b0c4c9853d8387f8e64e615 353 | React-callinvoker: c3f44dd3cb195b6aa46621fff95ded79d59043fe 354 | React-Core: d3b2a1ac9a2c13c3bcde712d9281fc1c8a5b315b 355 | React-CoreModules: 0581ff36cb797da0943d424f69e7098e43e9be60 356 | React-cxxreact: c1480d4fda5720086c90df537ee7d285d4c57ac3 357 | React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31 358 | React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949 359 | React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a 360 | react-native-is-detox: b632c28f542e859c1adb0e3aa240a30a82d40654 361 | React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336 362 | React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b 363 | React-RCTBlob: a97d378b527740cc667e03ebfa183a75231ab0f0 364 | React-RCTImage: c1b1f2d3f43a4a528c8946d6092384b5c880d2f0 365 | React-RCTLinking: 35ae4ab9dc0410d1fcbdce4d7623194a27214fb2 366 | React-RCTNetwork: 29ec2696f8d8cfff7331fac83d3e893c95ef43ae 367 | React-RCTSettings: 60f0691bba2074ef394f95d4c2265ec284e0a46a 368 | React-RCTText: 5c51df3f08cb9dedc6e790161195d12bac06101c 369 | React-RCTVibration: ae4f914cfe8de7d4de95ae1ea6cc8f6315d73d9d 370 | ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b 371 | Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 372 | 373 | PODFILE CHECKSUM: 6ded1c7a4aee3a30a04cb27d93c9b958156527c4 374 | 375 | COCOAPODS: 1.12.0 376 | -------------------------------------------------------------------------------- /example/ios/IsDetoxExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* IsDetoxExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* IsDetoxExampleTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 15 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 16 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 17 | 2DCD954D1E0B4F2C00145EB5 /* IsDetoxExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* IsDetoxExampleTests.m */; }; 18 | 4C39C56BAD484C67AA576FFA /* libPods-IsDetoxExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CA3E69C5B9553B26FBA2DF04 /* libPods-IsDetoxExample.a */; }; 19 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 28 | remoteInfo = IsDetoxExample; 29 | }; 30 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 35 | remoteInfo = "IsDetoxExample-tvOS"; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 41 | 00E356EE1AD99517003FC87E /* IsDetoxExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = IsDetoxExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | 00E356F21AD99517003FC87E /* IsDetoxExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = IsDetoxExampleTests.m; sourceTree = ""; }; 44 | 13B07F961A680F5B00A75B9A /* IsDetoxExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IsDetoxExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = IsDetoxExample/AppDelegate.h; sourceTree = ""; }; 46 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = IsDetoxExample/AppDelegate.m; sourceTree = ""; }; 47 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = IsDetoxExample/Images.xcassets; sourceTree = ""; }; 48 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = IsDetoxExample/Info.plist; sourceTree = ""; }; 49 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = IsDetoxExample/main.m; sourceTree = ""; }; 50 | 2D02E47B1E0B4A5D006451C7 /* IsDetoxExample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "IsDetoxExample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 2D02E4901E0B4A5D006451C7 /* IsDetoxExample-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "IsDetoxExample-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 47F7ED3B7971BE374F7B8635 /* Pods-IsDetoxExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IsDetoxExample.debug.xcconfig"; path = "Target Support Files/Pods-IsDetoxExample/Pods-IsDetoxExample.debug.xcconfig"; sourceTree = ""; }; 53 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = IsDetoxExample/LaunchScreen.storyboard; sourceTree = ""; }; 54 | CA3E69C5B9553B26FBA2DF04 /* libPods-IsDetoxExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-IsDetoxExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | E00ACF0FDA8BF921659E2F9A /* Pods-IsDetoxExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-IsDetoxExample.release.xcconfig"; path = "Target Support Files/Pods-IsDetoxExample/Pods-IsDetoxExample.release.xcconfig"; sourceTree = ""; }; 56 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 57 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 69 | isa = PBXFrameworksBuildPhase; 70 | buildActionMask = 2147483647; 71 | files = ( 72 | 4C39C56BAD484C67AA576FFA /* libPods-IsDetoxExample.a in Frameworks */, 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | ); 81 | runOnlyForDeploymentPostprocessing = 0; 82 | }; 83 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 84 | isa = PBXFrameworksBuildPhase; 85 | buildActionMask = 2147483647; 86 | files = ( 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | /* End PBXFrameworksBuildPhase section */ 91 | 92 | /* Begin PBXGroup section */ 93 | 00E356EF1AD99517003FC87E /* IsDetoxExampleTests */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 00E356F21AD99517003FC87E /* IsDetoxExampleTests.m */, 97 | 00E356F01AD99517003FC87E /* Supporting Files */, 98 | ); 99 | path = IsDetoxExampleTests; 100 | sourceTree = ""; 101 | }; 102 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 00E356F11AD99517003FC87E /* Info.plist */, 106 | ); 107 | name = "Supporting Files"; 108 | sourceTree = ""; 109 | }; 110 | 13B07FAE1A68108700A75B9A /* IsDetoxExample */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 114 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 115 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 116 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 117 | 13B07FB61A68108700A75B9A /* Info.plist */, 118 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 119 | 13B07FB71A68108700A75B9A /* main.m */, 120 | ); 121 | name = IsDetoxExample; 122 | sourceTree = ""; 123 | }; 124 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 128 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 129 | CA3E69C5B9553B26FBA2DF04 /* libPods-IsDetoxExample.a */, 130 | ); 131 | name = Frameworks; 132 | sourceTree = ""; 133 | }; 134 | 6B9684456A2045ADE5A6E47E /* Pods */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 47F7ED3B7971BE374F7B8635 /* Pods-IsDetoxExample.debug.xcconfig */, 138 | E00ACF0FDA8BF921659E2F9A /* Pods-IsDetoxExample.release.xcconfig */, 139 | ); 140 | name = Pods; 141 | path = Pods; 142 | sourceTree = ""; 143 | }; 144 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | ); 148 | name = Libraries; 149 | sourceTree = ""; 150 | }; 151 | 83CBB9F61A601CBA00E9B192 = { 152 | isa = PBXGroup; 153 | children = ( 154 | 13B07FAE1A68108700A75B9A /* IsDetoxExample */, 155 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 156 | 00E356EF1AD99517003FC87E /* IsDetoxExampleTests */, 157 | 83CBBA001A601CBA00E9B192 /* Products */, 158 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 159 | 6B9684456A2045ADE5A6E47E /* Pods */, 160 | ); 161 | indentWidth = 2; 162 | sourceTree = ""; 163 | tabWidth = 2; 164 | usesTabs = 0; 165 | }; 166 | 83CBBA001A601CBA00E9B192 /* Products */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | 13B07F961A680F5B00A75B9A /* IsDetoxExample.app */, 170 | 00E356EE1AD99517003FC87E /* IsDetoxExampleTests.xctest */, 171 | 2D02E47B1E0B4A5D006451C7 /* IsDetoxExample-tvOS.app */, 172 | 2D02E4901E0B4A5D006451C7 /* IsDetoxExample-tvOSTests.xctest */, 173 | ); 174 | name = Products; 175 | sourceTree = ""; 176 | }; 177 | /* End PBXGroup section */ 178 | 179 | /* Begin PBXNativeTarget section */ 180 | 00E356ED1AD99517003FC87E /* IsDetoxExampleTests */ = { 181 | isa = PBXNativeTarget; 182 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "IsDetoxExampleTests" */; 183 | buildPhases = ( 184 | 00E356EA1AD99517003FC87E /* Sources */, 185 | 00E356EB1AD99517003FC87E /* Frameworks */, 186 | 00E356EC1AD99517003FC87E /* Resources */, 187 | ); 188 | buildRules = ( 189 | ); 190 | dependencies = ( 191 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 192 | ); 193 | name = IsDetoxExampleTests; 194 | productName = IsDetoxExampleTests; 195 | productReference = 00E356EE1AD99517003FC87E /* IsDetoxExampleTests.xctest */; 196 | productType = "com.apple.product-type.bundle.unit-test"; 197 | }; 198 | 13B07F861A680F5B00A75B9A /* IsDetoxExample */ = { 199 | isa = PBXNativeTarget; 200 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "IsDetoxExample" */; 201 | buildPhases = ( 202 | 4F0A6FC082772762E3E4C96C /* [CP] Check Pods Manifest.lock */, 203 | FD10A7F022414F080027D42C /* Start Packager */, 204 | 13B07F871A680F5B00A75B9A /* Sources */, 205 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 206 | 13B07F8E1A680F5B00A75B9A /* Resources */, 207 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 208 | C1D60D28B925C94BD88E79D7 /* [CP] Copy Pods Resources */, 209 | ); 210 | buildRules = ( 211 | ); 212 | dependencies = ( 213 | ); 214 | name = IsDetoxExample; 215 | productName = IsDetoxExample; 216 | productReference = 13B07F961A680F5B00A75B9A /* IsDetoxExample.app */; 217 | productType = "com.apple.product-type.application"; 218 | }; 219 | 2D02E47A1E0B4A5D006451C7 /* IsDetoxExample-tvOS */ = { 220 | isa = PBXNativeTarget; 221 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "IsDetoxExample-tvOS" */; 222 | buildPhases = ( 223 | FD10A7F122414F3F0027D42C /* Start Packager */, 224 | 2D02E4771E0B4A5D006451C7 /* Sources */, 225 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 226 | 2D02E4791E0B4A5D006451C7 /* Resources */, 227 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 228 | ); 229 | buildRules = ( 230 | ); 231 | dependencies = ( 232 | ); 233 | name = "IsDetoxExample-tvOS"; 234 | productName = "IsDetoxExample-tvOS"; 235 | productReference = 2D02E47B1E0B4A5D006451C7 /* IsDetoxExample-tvOS.app */; 236 | productType = "com.apple.product-type.application"; 237 | }; 238 | 2D02E48F1E0B4A5D006451C7 /* IsDetoxExample-tvOSTests */ = { 239 | isa = PBXNativeTarget; 240 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "IsDetoxExample-tvOSTests" */; 241 | buildPhases = ( 242 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 243 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 244 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 245 | ); 246 | buildRules = ( 247 | ); 248 | dependencies = ( 249 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 250 | ); 251 | name = "IsDetoxExample-tvOSTests"; 252 | productName = "IsDetoxExample-tvOSTests"; 253 | productReference = 2D02E4901E0B4A5D006451C7 /* IsDetoxExample-tvOSTests.xctest */; 254 | productType = "com.apple.product-type.bundle.unit-test"; 255 | }; 256 | /* End PBXNativeTarget section */ 257 | 258 | /* Begin PBXProject section */ 259 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 260 | isa = PBXProject; 261 | attributes = { 262 | LastUpgradeCheck = 1130; 263 | TargetAttributes = { 264 | 00E356ED1AD99517003FC87E = { 265 | CreatedOnToolsVersion = 6.2; 266 | TestTargetID = 13B07F861A680F5B00A75B9A; 267 | }; 268 | 13B07F861A680F5B00A75B9A = { 269 | LastSwiftMigration = 1120; 270 | }; 271 | 2D02E47A1E0B4A5D006451C7 = { 272 | CreatedOnToolsVersion = 8.2.1; 273 | ProvisioningStyle = Automatic; 274 | }; 275 | 2D02E48F1E0B4A5D006451C7 = { 276 | CreatedOnToolsVersion = 8.2.1; 277 | ProvisioningStyle = Automatic; 278 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 279 | }; 280 | }; 281 | }; 282 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "IsDetoxExample" */; 283 | compatibilityVersion = "Xcode 3.2"; 284 | developmentRegion = en; 285 | hasScannedForEncodings = 0; 286 | knownRegions = ( 287 | en, 288 | Base, 289 | ); 290 | mainGroup = 83CBB9F61A601CBA00E9B192; 291 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 292 | projectDirPath = ""; 293 | projectRoot = ""; 294 | targets = ( 295 | 13B07F861A680F5B00A75B9A /* IsDetoxExample */, 296 | 00E356ED1AD99517003FC87E /* IsDetoxExampleTests */, 297 | 2D02E47A1E0B4A5D006451C7 /* IsDetoxExample-tvOS */, 298 | 2D02E48F1E0B4A5D006451C7 /* IsDetoxExample-tvOSTests */, 299 | ); 300 | }; 301 | /* End PBXProject section */ 302 | 303 | /* Begin PBXResourcesBuildPhase section */ 304 | 00E356EC1AD99517003FC87E /* Resources */ = { 305 | isa = PBXResourcesBuildPhase; 306 | buildActionMask = 2147483647; 307 | files = ( 308 | ); 309 | runOnlyForDeploymentPostprocessing = 0; 310 | }; 311 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 312 | isa = PBXResourcesBuildPhase; 313 | buildActionMask = 2147483647; 314 | files = ( 315 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 316 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 317 | ); 318 | runOnlyForDeploymentPostprocessing = 0; 319 | }; 320 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 321 | isa = PBXResourcesBuildPhase; 322 | buildActionMask = 2147483647; 323 | files = ( 324 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 325 | ); 326 | runOnlyForDeploymentPostprocessing = 0; 327 | }; 328 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 329 | isa = PBXResourcesBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | ); 333 | runOnlyForDeploymentPostprocessing = 0; 334 | }; 335 | /* End PBXResourcesBuildPhase section */ 336 | 337 | /* Begin PBXShellScriptBuildPhase section */ 338 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 339 | isa = PBXShellScriptBuildPhase; 340 | buildActionMask = 2147483647; 341 | files = ( 342 | ); 343 | inputPaths = ( 344 | ); 345 | name = "Bundle React Native code and images"; 346 | outputPaths = ( 347 | ); 348 | runOnlyForDeploymentPostprocessing = 0; 349 | shellPath = /bin/sh; 350 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 351 | }; 352 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 353 | isa = PBXShellScriptBuildPhase; 354 | buildActionMask = 2147483647; 355 | files = ( 356 | ); 357 | inputPaths = ( 358 | ); 359 | name = "Bundle React Native Code And Images"; 360 | outputPaths = ( 361 | ); 362 | runOnlyForDeploymentPostprocessing = 0; 363 | shellPath = /bin/sh; 364 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 365 | }; 366 | 4F0A6FC082772762E3E4C96C /* [CP] Check Pods Manifest.lock */ = { 367 | isa = PBXShellScriptBuildPhase; 368 | buildActionMask = 2147483647; 369 | files = ( 370 | ); 371 | inputFileListPaths = ( 372 | ); 373 | inputPaths = ( 374 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 375 | "${PODS_ROOT}/Manifest.lock", 376 | ); 377 | name = "[CP] Check Pods Manifest.lock"; 378 | outputFileListPaths = ( 379 | ); 380 | outputPaths = ( 381 | "$(DERIVED_FILE_DIR)/Pods-IsDetoxExample-checkManifestLockResult.txt", 382 | ); 383 | runOnlyForDeploymentPostprocessing = 0; 384 | shellPath = /bin/sh; 385 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 386 | showEnvVarsInLog = 0; 387 | }; 388 | C1D60D28B925C94BD88E79D7 /* [CP] Copy Pods Resources */ = { 389 | isa = PBXShellScriptBuildPhase; 390 | buildActionMask = 2147483647; 391 | files = ( 392 | ); 393 | inputPaths = ( 394 | "${PODS_ROOT}/Target Support Files/Pods-IsDetoxExample/Pods-IsDetoxExample-resources.sh", 395 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", 396 | ); 397 | name = "[CP] Copy Pods Resources"; 398 | outputPaths = ( 399 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 400 | ); 401 | runOnlyForDeploymentPostprocessing = 0; 402 | shellPath = /bin/sh; 403 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-IsDetoxExample/Pods-IsDetoxExample-resources.sh\"\n"; 404 | showEnvVarsInLog = 0; 405 | }; 406 | FD10A7F022414F080027D42C /* Start Packager */ = { 407 | isa = PBXShellScriptBuildPhase; 408 | buildActionMask = 2147483647; 409 | files = ( 410 | ); 411 | inputFileListPaths = ( 412 | ); 413 | inputPaths = ( 414 | ); 415 | name = "Start Packager"; 416 | outputFileListPaths = ( 417 | ); 418 | outputPaths = ( 419 | ); 420 | runOnlyForDeploymentPostprocessing = 0; 421 | shellPath = /bin/sh; 422 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 423 | showEnvVarsInLog = 0; 424 | }; 425 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 426 | isa = PBXShellScriptBuildPhase; 427 | buildActionMask = 2147483647; 428 | files = ( 429 | ); 430 | inputFileListPaths = ( 431 | ); 432 | inputPaths = ( 433 | ); 434 | name = "Start Packager"; 435 | outputFileListPaths = ( 436 | ); 437 | outputPaths = ( 438 | ); 439 | runOnlyForDeploymentPostprocessing = 0; 440 | shellPath = /bin/sh; 441 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 442 | showEnvVarsInLog = 0; 443 | }; 444 | /* End PBXShellScriptBuildPhase section */ 445 | 446 | /* Begin PBXSourcesBuildPhase section */ 447 | 00E356EA1AD99517003FC87E /* Sources */ = { 448 | isa = PBXSourcesBuildPhase; 449 | buildActionMask = 2147483647; 450 | files = ( 451 | 00E356F31AD99517003FC87E /* IsDetoxExampleTests.m in Sources */, 452 | ); 453 | runOnlyForDeploymentPostprocessing = 0; 454 | }; 455 | 13B07F871A680F5B00A75B9A /* Sources */ = { 456 | isa = PBXSourcesBuildPhase; 457 | buildActionMask = 2147483647; 458 | files = ( 459 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 460 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 461 | ); 462 | runOnlyForDeploymentPostprocessing = 0; 463 | }; 464 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 465 | isa = PBXSourcesBuildPhase; 466 | buildActionMask = 2147483647; 467 | files = ( 468 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 469 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 470 | ); 471 | runOnlyForDeploymentPostprocessing = 0; 472 | }; 473 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 474 | isa = PBXSourcesBuildPhase; 475 | buildActionMask = 2147483647; 476 | files = ( 477 | 2DCD954D1E0B4F2C00145EB5 /* IsDetoxExampleTests.m in Sources */, 478 | ); 479 | runOnlyForDeploymentPostprocessing = 0; 480 | }; 481 | /* End PBXSourcesBuildPhase section */ 482 | 483 | /* Begin PBXTargetDependency section */ 484 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 485 | isa = PBXTargetDependency; 486 | target = 13B07F861A680F5B00A75B9A /* IsDetoxExample */; 487 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 488 | }; 489 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 490 | isa = PBXTargetDependency; 491 | target = 2D02E47A1E0B4A5D006451C7 /* IsDetoxExample-tvOS */; 492 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 493 | }; 494 | /* End PBXTargetDependency section */ 495 | 496 | /* Begin XCBuildConfiguration section */ 497 | 00E356F61AD99517003FC87E /* Debug */ = { 498 | isa = XCBuildConfiguration; 499 | buildSettings = { 500 | BUNDLE_LOADER = "$(TEST_HOST)"; 501 | GCC_PREPROCESSOR_DEFINITIONS = ( 502 | "DEBUG=1", 503 | "$(inherited)", 504 | ); 505 | INFOPLIST_FILE = IsDetoxExampleTests/Info.plist; 506 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 508 | OTHER_LDFLAGS = ( 509 | "-ObjC", 510 | "-lc++", 511 | "$(inherited)", 512 | ); 513 | PRODUCT_BUNDLE_IDENTIFIER = com.example.reactnativeisdetox; 514 | PRODUCT_NAME = "$(TARGET_NAME)"; 515 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IsDetoxExample.app/IsDetoxExample"; 516 | }; 517 | name = Debug; 518 | }; 519 | 00E356F71AD99517003FC87E /* Release */ = { 520 | isa = XCBuildConfiguration; 521 | buildSettings = { 522 | BUNDLE_LOADER = "$(TEST_HOST)"; 523 | COPY_PHASE_STRIP = NO; 524 | INFOPLIST_FILE = IsDetoxExampleTests/Info.plist; 525 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 526 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 527 | OTHER_LDFLAGS = ( 528 | "-ObjC", 529 | "-lc++", 530 | "$(inherited)", 531 | ); 532 | PRODUCT_BUNDLE_IDENTIFIER = com.example.reactnativeisdetox; 533 | PRODUCT_NAME = "$(TARGET_NAME)"; 534 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IsDetoxExample.app/IsDetoxExample"; 535 | }; 536 | name = Release; 537 | }; 538 | 13B07F941A680F5B00A75B9A /* Debug */ = { 539 | isa = XCBuildConfiguration; 540 | baseConfigurationReference = 47F7ED3B7971BE374F7B8635 /* Pods-IsDetoxExample.debug.xcconfig */; 541 | buildSettings = { 542 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 543 | CLANG_ENABLE_MODULES = YES; 544 | CURRENT_PROJECT_VERSION = 1; 545 | ENABLE_BITCODE = NO; 546 | INFOPLIST_FILE = IsDetoxExample/Info.plist; 547 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 548 | OTHER_LDFLAGS = ( 549 | "$(inherited)", 550 | "-ObjC", 551 | "-lc++", 552 | ); 553 | PRODUCT_BUNDLE_IDENTIFIER = com.example.reactnativeisdetox; 554 | PRODUCT_NAME = IsDetoxExample; 555 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 556 | SWIFT_VERSION = 5.0; 557 | VERSIONING_SYSTEM = "apple-generic"; 558 | }; 559 | name = Debug; 560 | }; 561 | 13B07F951A680F5B00A75B9A /* Release */ = { 562 | isa = XCBuildConfiguration; 563 | baseConfigurationReference = E00ACF0FDA8BF921659E2F9A /* Pods-IsDetoxExample.release.xcconfig */; 564 | buildSettings = { 565 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 566 | CLANG_ENABLE_MODULES = YES; 567 | CURRENT_PROJECT_VERSION = 1; 568 | INFOPLIST_FILE = IsDetoxExample/Info.plist; 569 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 570 | OTHER_LDFLAGS = ( 571 | "$(inherited)", 572 | "-ObjC", 573 | "-lc++", 574 | ); 575 | PRODUCT_BUNDLE_IDENTIFIER = com.example.reactnativeisdetox; 576 | PRODUCT_NAME = IsDetoxExample; 577 | SWIFT_VERSION = 5.0; 578 | VERSIONING_SYSTEM = "apple-generic"; 579 | }; 580 | name = Release; 581 | }; 582 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 583 | isa = XCBuildConfiguration; 584 | buildSettings = { 585 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 586 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 587 | CLANG_ANALYZER_NONNULL = YES; 588 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 589 | CLANG_WARN_INFINITE_RECURSION = YES; 590 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 591 | DEBUG_INFORMATION_FORMAT = dwarf; 592 | ENABLE_TESTABILITY = YES; 593 | GCC_NO_COMMON_BLOCKS = YES; 594 | INFOPLIST_FILE = "IsDetoxExample-tvOS/Info.plist"; 595 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 596 | OTHER_LDFLAGS = ( 597 | "$(inherited)", 598 | "-ObjC", 599 | "-lc++", 600 | ); 601 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.IsDetoxExample-tvOS"; 602 | PRODUCT_NAME = "$(TARGET_NAME)"; 603 | SDKROOT = appletvos; 604 | TARGETED_DEVICE_FAMILY = 3; 605 | TVOS_DEPLOYMENT_TARGET = 10.0; 606 | }; 607 | name = Debug; 608 | }; 609 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 610 | isa = XCBuildConfiguration; 611 | buildSettings = { 612 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 613 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 614 | CLANG_ANALYZER_NONNULL = YES; 615 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 616 | CLANG_WARN_INFINITE_RECURSION = YES; 617 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 618 | COPY_PHASE_STRIP = NO; 619 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 620 | GCC_NO_COMMON_BLOCKS = YES; 621 | INFOPLIST_FILE = "IsDetoxExample-tvOS/Info.plist"; 622 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 623 | OTHER_LDFLAGS = ( 624 | "$(inherited)", 625 | "-ObjC", 626 | "-lc++", 627 | ); 628 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.IsDetoxExample-tvOS"; 629 | PRODUCT_NAME = "$(TARGET_NAME)"; 630 | SDKROOT = appletvos; 631 | TARGETED_DEVICE_FAMILY = 3; 632 | TVOS_DEPLOYMENT_TARGET = 10.0; 633 | }; 634 | name = Release; 635 | }; 636 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 637 | isa = XCBuildConfiguration; 638 | buildSettings = { 639 | BUNDLE_LOADER = "$(TEST_HOST)"; 640 | CLANG_ANALYZER_NONNULL = YES; 641 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 642 | CLANG_WARN_INFINITE_RECURSION = YES; 643 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 644 | DEBUG_INFORMATION_FORMAT = dwarf; 645 | ENABLE_TESTABILITY = YES; 646 | GCC_NO_COMMON_BLOCKS = YES; 647 | INFOPLIST_FILE = "IsDetoxExample-tvOSTests/Info.plist"; 648 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 649 | OTHER_LDFLAGS = ( 650 | "$(inherited)", 651 | "-ObjC", 652 | "-lc++", 653 | ); 654 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.IsDetoxExample-tvOSTests"; 655 | PRODUCT_NAME = "$(TARGET_NAME)"; 656 | SDKROOT = appletvos; 657 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IsDetoxExample-tvOS.app/IsDetoxExample-tvOS"; 658 | TVOS_DEPLOYMENT_TARGET = 10.1; 659 | }; 660 | name = Debug; 661 | }; 662 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 663 | isa = XCBuildConfiguration; 664 | buildSettings = { 665 | BUNDLE_LOADER = "$(TEST_HOST)"; 666 | CLANG_ANALYZER_NONNULL = YES; 667 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 668 | CLANG_WARN_INFINITE_RECURSION = YES; 669 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 670 | COPY_PHASE_STRIP = NO; 671 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 672 | GCC_NO_COMMON_BLOCKS = YES; 673 | INFOPLIST_FILE = "IsDetoxExample-tvOSTests/Info.plist"; 674 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 675 | OTHER_LDFLAGS = ( 676 | "$(inherited)", 677 | "-ObjC", 678 | "-lc++", 679 | ); 680 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.IsDetoxExample-tvOSTests"; 681 | PRODUCT_NAME = "$(TARGET_NAME)"; 682 | SDKROOT = appletvos; 683 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IsDetoxExample-tvOS.app/IsDetoxExample-tvOS"; 684 | TVOS_DEPLOYMENT_TARGET = 10.1; 685 | }; 686 | name = Release; 687 | }; 688 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 689 | isa = XCBuildConfiguration; 690 | buildSettings = { 691 | ALWAYS_SEARCH_USER_PATHS = NO; 692 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 693 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 694 | CLANG_CXX_LIBRARY = "libc++"; 695 | CLANG_ENABLE_MODULES = YES; 696 | CLANG_ENABLE_OBJC_ARC = YES; 697 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 698 | CLANG_WARN_BOOL_CONVERSION = YES; 699 | CLANG_WARN_COMMA = YES; 700 | CLANG_WARN_CONSTANT_CONVERSION = YES; 701 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 702 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 703 | CLANG_WARN_EMPTY_BODY = YES; 704 | CLANG_WARN_ENUM_CONVERSION = YES; 705 | CLANG_WARN_INFINITE_RECURSION = YES; 706 | CLANG_WARN_INT_CONVERSION = YES; 707 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 708 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 709 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 710 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 711 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 712 | CLANG_WARN_STRICT_PROTOTYPES = YES; 713 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 714 | CLANG_WARN_UNREACHABLE_CODE = YES; 715 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 716 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 717 | COPY_PHASE_STRIP = NO; 718 | ENABLE_STRICT_OBJC_MSGSEND = YES; 719 | ENABLE_TESTABILITY = YES; 720 | GCC_C_LANGUAGE_STANDARD = gnu99; 721 | GCC_DYNAMIC_NO_PIC = NO; 722 | GCC_NO_COMMON_BLOCKS = YES; 723 | GCC_OPTIMIZATION_LEVEL = 0; 724 | GCC_PREPROCESSOR_DEFINITIONS = ( 725 | "DEBUG=1", 726 | "$(inherited)", 727 | ); 728 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 729 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 730 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 731 | GCC_WARN_UNDECLARED_SELECTOR = YES; 732 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 733 | GCC_WARN_UNUSED_FUNCTION = YES; 734 | GCC_WARN_UNUSED_VARIABLE = YES; 735 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 736 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 737 | LIBRARY_SEARCH_PATHS = ( 738 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 739 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 740 | "\"$(inherited)\"", 741 | ); 742 | MTL_ENABLE_DEBUG_INFO = YES; 743 | ONLY_ACTIVE_ARCH = YES; 744 | SDKROOT = iphoneos; 745 | }; 746 | name = Debug; 747 | }; 748 | 83CBBA211A601CBA00E9B192 /* Release */ = { 749 | isa = XCBuildConfiguration; 750 | buildSettings = { 751 | ALWAYS_SEARCH_USER_PATHS = NO; 752 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 753 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 754 | CLANG_CXX_LIBRARY = "libc++"; 755 | CLANG_ENABLE_MODULES = YES; 756 | CLANG_ENABLE_OBJC_ARC = YES; 757 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 758 | CLANG_WARN_BOOL_CONVERSION = YES; 759 | CLANG_WARN_COMMA = YES; 760 | CLANG_WARN_CONSTANT_CONVERSION = YES; 761 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 762 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 763 | CLANG_WARN_EMPTY_BODY = YES; 764 | CLANG_WARN_ENUM_CONVERSION = YES; 765 | CLANG_WARN_INFINITE_RECURSION = YES; 766 | CLANG_WARN_INT_CONVERSION = YES; 767 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 768 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 769 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 770 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 771 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 772 | CLANG_WARN_STRICT_PROTOTYPES = YES; 773 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 774 | CLANG_WARN_UNREACHABLE_CODE = YES; 775 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 776 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 777 | COPY_PHASE_STRIP = YES; 778 | ENABLE_NS_ASSERTIONS = NO; 779 | ENABLE_STRICT_OBJC_MSGSEND = YES; 780 | GCC_C_LANGUAGE_STANDARD = gnu99; 781 | GCC_NO_COMMON_BLOCKS = YES; 782 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 783 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 784 | GCC_WARN_UNDECLARED_SELECTOR = YES; 785 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 786 | GCC_WARN_UNUSED_FUNCTION = YES; 787 | GCC_WARN_UNUSED_VARIABLE = YES; 788 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 789 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 790 | LIBRARY_SEARCH_PATHS = ( 791 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 792 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 793 | "\"$(inherited)\"", 794 | ); 795 | MTL_ENABLE_DEBUG_INFO = NO; 796 | SDKROOT = iphoneos; 797 | VALIDATE_PRODUCT = YES; 798 | }; 799 | name = Release; 800 | }; 801 | /* End XCBuildConfiguration section */ 802 | 803 | /* Begin XCConfigurationList section */ 804 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "IsDetoxExampleTests" */ = { 805 | isa = XCConfigurationList; 806 | buildConfigurations = ( 807 | 00E356F61AD99517003FC87E /* Debug */, 808 | 00E356F71AD99517003FC87E /* Release */, 809 | ); 810 | defaultConfigurationIsVisible = 0; 811 | defaultConfigurationName = Release; 812 | }; 813 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "IsDetoxExample" */ = { 814 | isa = XCConfigurationList; 815 | buildConfigurations = ( 816 | 13B07F941A680F5B00A75B9A /* Debug */, 817 | 13B07F951A680F5B00A75B9A /* Release */, 818 | ); 819 | defaultConfigurationIsVisible = 0; 820 | defaultConfigurationName = Release; 821 | }; 822 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "IsDetoxExample-tvOS" */ = { 823 | isa = XCConfigurationList; 824 | buildConfigurations = ( 825 | 2D02E4971E0B4A5E006451C7 /* Debug */, 826 | 2D02E4981E0B4A5E006451C7 /* Release */, 827 | ); 828 | defaultConfigurationIsVisible = 0; 829 | defaultConfigurationName = Release; 830 | }; 831 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "IsDetoxExample-tvOSTests" */ = { 832 | isa = XCConfigurationList; 833 | buildConfigurations = ( 834 | 2D02E4991E0B4A5E006451C7 /* Debug */, 835 | 2D02E49A1E0B4A5E006451C7 /* Release */, 836 | ); 837 | defaultConfigurationIsVisible = 0; 838 | defaultConfigurationName = Release; 839 | }; 840 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "IsDetoxExample" */ = { 841 | isa = XCConfigurationList; 842 | buildConfigurations = ( 843 | 83CBBA201A601CBA00E9B192 /* Debug */, 844 | 83CBBA211A601CBA00E9B192 /* Release */, 845 | ); 846 | defaultConfigurationIsVisible = 0; 847 | defaultConfigurationName = Release; 848 | }; 849 | /* End XCConfigurationList section */ 850 | }; 851 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 852 | } 853 | --------------------------------------------------------------------------------