;
8 | };
9 |
10 | type Provider = {
11 | component: React.ComponentType
;
12 | props: P;
13 | children: React.ComponentType[];
14 | }
15 |
16 | export function init(): void;
17 | export function expect(value: T): jest.Matchers & Detox.Expect> & {notToHaveBeenCalled(): Promise};
18 | export function kompotRequire(pathToComponent: string): { [key: string]: TestComponent };
19 |
20 | declare global {
21 | namespace kompot {
22 | function spy(id: string, getReturnValue?: (args: any[]) => any, stringifyArgs?: (args: any[]) => string[]): () => any;
23 | function spyOn(obj: object, methodName: string, spyId: string, stringifyArgs?: (args: any[]) => string[]): void;
24 | function mockFetchUrl(url: string, mockGenerator: (url?: string) => Response): void;
25 | function useMocks(getMocks: () => {[key: string]: () => Promise}): void;
26 | function registerProviders(provider: Provider
): void;
27 |
28 | const savedComponentRef: React.RefObject | null;
29 | const componentProps: {[key: string]: any};
30 | }
31 |
32 | function spy(spyId: string): any;
33 | }
34 |
--------------------------------------------------------------------------------
/KompotExample/ChuckNorrisJokesPresenter.js:
--------------------------------------------------------------------------------
1 |
2 | import React from 'react';
3 | import {Text,View, TouchableOpacity} from 'react-native';
4 | import {fetchJoke} from './fetchJokeService';
5 |
6 | export class ChuckNorrisJokesPresenter extends React.Component {
7 | constructor(){
8 | super();
9 | this.state = {
10 | joke: ''
11 | }
12 | }
13 | componentWillMount(){
14 | fetchJoke().then(joke => this.setState({joke}))
15 | }
16 |
17 | onNavigationEvent(event){
18 | //sometime we have methods on our component that are being triggered from outside of the component.
19 | //we can simulate the triggers of those method in the tests by using "withTriggers" when mounting the componnent.
20 | alert(event);
21 | }
22 |
23 | getJokeText(){
24 | let text = '{ ... }';
25 | if(this.state.joke){
26 | text = this.state.joke;
27 | if(this.props.replaceWith){
28 | text = this.state.joke.replace(/Chuck Norris/g, this.props.replaceWith);
29 | }
30 | text = `"${text}"`
31 | }
32 | return text;
33 | }
34 | render() {
35 | return (
36 |
37 | this.props.onPress && this.props.onPress()}>
38 | {this.getJokeText()}
39 |
40 |
41 | );
42 | }
43 | }
44 |
45 |
--------------------------------------------------------------------------------
/KompotExample/android/app/BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12 |
13 | lib_deps = []
14 |
15 | create_aar_targets(glob(["libs/*.aar"]))
16 |
17 | create_jar_targets(glob(["libs/*.jar"]))
18 |
19 | android_library(
20 | name = "all-libs",
21 | exported_deps = lib_deps,
22 | )
23 |
24 | android_library(
25 | name = "app-code",
26 | srcs = glob([
27 | "src/main/java/**/*.java",
28 | ]),
29 | deps = [
30 | ":all-libs",
31 | ":build_config",
32 | ":res",
33 | ],
34 | )
35 |
36 | android_build_config(
37 | name = "build_config",
38 | package = "com.kompotexample",
39 | )
40 |
41 | android_resource(
42 | name = "res",
43 | package = "com.kompotexample",
44 | res = "src/main/res",
45 | )
46 |
47 | android_binary(
48 | name = "app",
49 | keystore = "//android/keystores:debug",
50 | manifest = "src/main/AndroidManifest.xml",
51 | package_type = "debug",
52 | deps = [
53 | ":app-code",
54 | ],
55 | )
56 |
--------------------------------------------------------------------------------
/KompotExample/ios/KompotExample/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:@"KompotExample"
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 |
--------------------------------------------------------------------------------
/KompotExample/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "kompot-example",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "start-kompot": "kompot start",
8 | "detox-build": "detox build -c ios.sim.debug",
9 | "basic-tests": "kompot build -n KompotExample -l kompotGlobalMocks.js && detox test -c ios.sim.debug -s KompotTests",
10 | "custom-root-test": "kompot build -n KompotExample -i kompotCustomRoot && detox test -c ios.sim.debug -s CustomRootTest",
11 | "test": "npm run detox-build && npm run test-all",
12 | "test-all": "kompot start & npm run basic-tests && npm run custom-root-test"
13 | },
14 | "dependencies": {
15 | "react": "16.8.3",
16 | "react-native": "0.59.8"
17 | },
18 | "devDependencies": {
19 | "@babel/core": "7.4.5",
20 | "@babel/runtime": "7.4.5",
21 | "babel-jest": "24.8.0",
22 | "jest": "24.8.0",
23 | "metro-react-native-babel-preset": "0.54.1",
24 | "react-test-renderer": "16.8.3",
25 | "detox": "^8.1.1",
26 | "kompot": "wix/kompot#master",
27 | "mocha": "^5.2.0"
28 | },
29 | "jest": {
30 | "preset": "react-native"
31 | },
32 | "detox": {
33 | "configurations": {
34 | "ios.sim.debug": {
35 | "binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/KompotExample.app",
36 | "build": "xcodebuild -project /Users/niryo/git/Kompot/KompotExample/ios/KompotExample.xcodeproj -scheme KompotExample -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build/",
37 | "type": "ios.simulator",
38 | "name": "iPhone X"
39 | }
40 | },
41 | "test-runner": "mocha"
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/server/server.js:
--------------------------------------------------------------------------------
1 | const ArgumentParser = require('argparse').ArgumentParser;
2 | const parser = new ArgumentParser();
3 | parser.addArgument(['-s', '--silent'], {
4 | help: `Suppress logs.`,
5 | action: 'storeTrue',
6 | });
7 | const args = parser.parseArgs();
8 |
9 | const express = require('express');
10 | const bodyParser = require('body-parser')
11 |
12 | const app = express();
13 | const data = {};
14 | const spies = {}
15 |
16 | app.use( bodyParser.json() );
17 | app.post('/setComponentToTest', (req, res) => {
18 | log('setting component',req.body);
19 | data[req.body.testKey] = {
20 | componentName: req.body.componentName,
21 | globals: req.body.globals,
22 | triggers: req.body.triggers,
23 | props: req.body.props,
24 | }
25 | spies[req.body.testKey] = {};
26 | res.send();
27 | })
28 |
29 | app.get('/getComponentToTest', (req, res) => {
30 | log('getComponentToTest: ', data[req.query.testKey]);
31 | res.send(data[req.query.testKey]);
32 | })
33 |
34 |
35 | app.post('/:testKey/notifySpy', (req, res) => {
36 | const spyId = req.body.id;
37 | log('Setting spy', req.params.testKey, req.body);
38 | if(!spies[req.params.testKey][spyId]) {
39 | spies[req.params.testKey][spyId] = [];
40 | }
41 | spies[req.params.testKey][spyId].push(req.body.stringArgs);
42 | res.send();
43 | })
44 |
45 | app.get('/:testKey/getSpy', (req, res) => {
46 | log('get spy:',req.params.testKey, req.query.spyId, spies[req.params.testKey][req.query.spyId]);
47 | res.send(spies[req.params.testKey][req.query.spyId]);
48 | })
49 |
50 | app.get('/', (req, res) => {
51 | res.send('Kompot server is running');
52 | })
53 |
54 | app.listen(2600, () => console.log(`Kompot server listening on port 2600`));
55 |
56 | function log(...params){
57 | if(!args.silent) {
58 | console.log(...params);
59 | }
60 | }
--------------------------------------------------------------------------------
/KompotExample/ios/KompotExample-tvOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UIViewControllerBasedStatusBarAppearance
38 |
39 | NSLocationWhenInUseUsageDescription
40 |
41 | NSAppTransportSecurity
42 |
43 |
44 | NSExceptionDomains
45 |
46 | localhost
47 |
48 | NSExceptionAllowsInsecureHTTPLoads
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/docs/gettingStarted.md:
--------------------------------------------------------------------------------
1 | # Getting Started
2 |
3 | #### 1. install Kompot:
4 | `npm install --save-dev kompot`
5 |
6 | #### 2. install Detox:
7 | Follow [Getting Started With Detox](https://github.com/wix/detox/blob/master/docs/Introduction.GettingStarted.md) and choose `mocha` as the test runner (`jest` doesn't work well yet).
8 |
9 | #### 4. create an example component:
10 | If you follow detox's instructions correctly, you should have an 'init.js' file with a 'beforeAll' function. In the 'beforeAll' function, you should add a call to 'kompot.init()':
11 | ```js
12 | const detox = require('detox');
13 | const {init} = require('kompot');
14 |
15 | beforeAll(async () => {
16 | await detox.init(config);
17 | init(); //<== add this
18 | });
19 |
20 | ```
21 |
22 | #### 5. create an example component:
23 | for example: `App.js`:
24 |
25 | ```js
26 | import React from 'react';
27 | import {Text} from 'react-native';
28 |
29 | export class App extends React.Component {
30 | render() {
31 | return Hello world;
32 | }
33 | }
34 | ```
35 |
36 | #### 6. add your first test:
37 | create a file called `FirstTest.kompot.spec.js`:
38 |
39 | ```js
40 | const Kompot = require('kompot');
41 | const component = Kompot.kompotRequire('App').App;
42 |
43 | describe('Our first test', () => {
44 | it('should mount the component', async () => {
45 | await component.mount();
46 | await expect(element(by.id('hello'))).toBeVisible();
47 | });
48 | });
49 | ```
50 |
51 | #### 7. add the following scripts to your `package.json`:
52 |
53 | ```json
54 | "scripts":{
55 | "start-kompot": "kompot start",
56 | "test": "kompot build -n && detox test -c ",
57 | }
58 | ```
59 |
60 | Replace `` with the name of your app as you give to `AppRegistry.registerComponent()`, and replace `` with your real configuration name as it appears in your package.json under `detox`.
61 |
62 | #### 8. run:
63 | `npm run start-kompot && npm run test`
64 |
--------------------------------------------------------------------------------
/KompotExample/ios/KompotExample/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | KompotExample
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 | NSLocationWhenInUseUsageDescription
28 |
29 | UILaunchStoryboardName
30 | LaunchScreen
31 | UIRequiredDeviceCapabilities
32 |
33 | armv7
34 |
35 | UISupportedInterfaceOrientations
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationLandscapeLeft
39 | UIInterfaceOrientationLandscapeRight
40 |
41 | UIViewControllerBasedStatusBarAppearance
42 |
43 | NSLocationWhenInUseUsageDescription
44 |
45 | NSAppTransportSecurity
46 |
47 |
48 | NSAllowsArbitraryLoads
49 |
50 | NSExceptionDomains
51 |
52 | localhost
53 |
54 | NSExceptionAllowsInsecureHTTPLoads
55 |
56 |
57 |
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/KompotExample/ios/KompotExampleTests/KompotExampleTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | #define TIMEOUT_SECONDS 600
15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
16 |
17 | @interface KompotExampleTests : XCTestCase
18 |
19 | @end
20 |
21 | @implementation KompotExampleTests
22 |
23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
24 | {
25 | if (test(view)) {
26 | return YES;
27 | }
28 | for (UIView *subview in [view subviews]) {
29 | if ([self findSubviewInView:subview matching:test]) {
30 | return YES;
31 | }
32 | }
33 | return NO;
34 | }
35 |
36 | - (void)testRendersWelcomeScreen
37 | {
38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
40 | BOOL foundElement = NO;
41 |
42 | __block NSString *redboxError = nil;
43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
44 | if (level >= RCTLogLevelError) {
45 | redboxError = message;
46 | }
47 | });
48 |
49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
52 |
53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
55 | return YES;
56 | }
57 | return NO;
58 | }];
59 | }
60 |
61 | RCTSetLogFunction(RCTDefaultLogFunction);
62 |
63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
65 | }
66 |
67 |
68 | @end
69 |
--------------------------------------------------------------------------------
/src/kompot.js:
--------------------------------------------------------------------------------
1 | const {init, setTestIdForSpies, expect} = require('./initKompotTestSuite');
2 | const testKey = Math.floor(Math.random() * 1000000).toString();
3 | let isTestKeyAlreadyInjectedToClient = false;
4 | setTestIdForSpies(testKey);
5 | module.exports = {
6 | init,
7 | kompotRequire: function (pathToComponent) {
8 | const fetch = require('node-fetch');
9 | const path = require('path');
10 | const fileName = path.basename(pathToComponent, '.js');
11 | const {serialize} = require('./Serialize');
12 | let globals = [];
13 | let triggers = [];
14 | let props = {};
15 |
16 | const testComponentBuilder = {
17 | withMocks: function (globalsToAdd) {
18 | globals = globals.concat(globalsToAdd);
19 | return this;
20 | },
21 | withTriggers: function (triggersToAdd) {
22 | triggers = triggers.concat(triggersToAdd);
23 | return this;
24 | },
25 | withProps: function (propsToAdd) {
26 | Object.assign(props, propsToAdd);
27 | return this;
28 | },
29 | mount: async function () {
30 | const body = {
31 | testKey,
32 | componentName: fileName,
33 | globals: globals.map((mock) => mock.name),
34 | triggers,
35 | props: serialize(props)
36 | }
37 |
38 | await fetch(`http://localhost:2600/setComponentToTest`, {
39 | method: 'POST',
40 | headers: {"Content-Type": "application/json"},
41 | body: JSON.stringify(body)
42 | });
43 |
44 | await device.reloadReactNative();
45 | if(!isTestKeyAlreadyInjectedToClient) {
46 | isTestKeyAlreadyInjectedToClient = true;
47 | await element(by.id("testKeyInput")).replaceText(testKey);
48 | await element(by.id("submitTestKey")).tap();
49 | }
50 | globals = [];
51 | props = {};
52 | }
53 | };
54 |
55 | const handler = {
56 | get: (target, prop) => {
57 | if (testComponentBuilder.hasOwnProperty(prop)) {
58 | return testComponentBuilder[prop];
59 | } else {
60 | return testComponentBuilder;
61 | }
62 | }
63 | }
64 | return new Proxy(testComponentBuilder, handler);
65 | },
66 |
67 | expect
68 | };
69 |
--------------------------------------------------------------------------------
/KompotExample/KompotTests/ChuckNorrisJokesPresenter.kompot.spec.js:
--------------------------------------------------------------------------------
1 |
2 | const Kompot = require('kompot');
3 | const component = Kompot.kompotRequire('../ChuckNorrisJokesPresenter').ChuckNorrisJokesPresenter;
4 | const Mocks = require('./mocks');
5 |
6 | describe('ChuckNorrisJokesPresenter', () => {
7 | beforeEach(()=> {
8 | component.withMocks([Mocks.mockJokeService])
9 | })
10 | it('Sanity check', async () => {
11 | await component.mount();
12 | await expect(element(by.id('chuckNorisJoke'))).toBeVisible();
13 | });
14 |
15 | it('Mocking a required module', async () => {
16 | await component.mount();
17 | await expect(element(by.id('chuckNorisJoke'))).toHaveText('"A mocked joke fetched from the joke service!"');
18 | })
19 |
20 | it('Using triggers', async () => {
21 | await component.withTriggers([Mocks.triggerNavigationEvent]).mount();
22 | await element(by.id('triggerNavigationEvent')).tap();
23 | await expect(element(by.text('some event!'))).toBeVisible();
24 | })
25 |
26 | it('Using a specific mock for test', async () => {
27 | await component.withMocks([Mocks.mockLameJoke]).mount();
28 | await expect(element(by.id('chuckNorisJoke'))).toHaveText('"This is a lame Chuck Norris joke"');
29 | })
30 |
31 | it('Passing basic prop', async () => {
32 | await component
33 | .withProps({replaceWith: 'Kompot'})
34 | .withMocks([Mocks.mockLameJoke])
35 | .mount();
36 | await expect(element(by.id('chuckNorisJoke'))).toHaveText('"This is a lame Kompot joke"');
37 | })
38 |
39 | it('Passing a function as a prop', async () => {
40 | await component
41 | .withProps({onPress: () => alert('onPress clicked!')})
42 | .mount();
43 | await element(by.id('clickable')).tap();
44 | await expect(element(by.text('onPress clicked!'))).toBeVisible();
45 | })
46 |
47 | it('Chaining order does not matter', async () => {
48 | await component
49 | .withProps({onPress: () => alert('onPress clicked!')})
50 | .withMocks([Mocks.mockLameJoke])
51 | .withProps({replaceWith: 'Kompot'})
52 | .mount();
53 | await element(by.id('clickable')).tap();
54 | await expect(element(by.text('onPress clicked!'))).toBeVisible();
55 | await expect(element(by.id('chuckNorisJoke'))).toHaveText('"This is a lame Kompot joke"');
56 | })
57 | });
--------------------------------------------------------------------------------
/KompotExample/KompotTests/App.kompot.spec.js:
--------------------------------------------------------------------------------
1 |
2 | const Kompot = require('kompot');
3 | const component = Kompot.kompotRequire('../App').App;
4 | const Mocks = require('./mocks');
5 |
6 | describe('App', () => {
7 | it('Using global mocks file to mock a component across app (--load option) ', async () => {
8 | await device.reloadReactNative(); //todo: try to remove this line
9 | await component.mount();
10 | await expect(element(by.id('mockedHeader'))).toBeVisible();
11 | await expect(element(by.text('Mocked Header with prop: Nir'))).toBeVisible();
12 | });
13 |
14 | it('mocking a prop that is a class', async () => {
15 | await component.withMocks([Mocks.mockClassProp]).mount();
16 | await expect(element(by.id('jokeClass'))).toBeVisible();
17 | await expect(element(by.text('a foo walks into a bar'))).toBeVisible();
18 | });
19 |
20 | it('should allow mocking fetch url', async() => {
21 | await component.withMocks([Mocks.mockFetchUrl]).mount();
22 | await expect(element(by.id('chuckNorisJoke'))).toHaveText('"success mocking url!"');
23 | });
24 |
25 | describe('Spies', () => {
26 | it('toHaveBeenCalled', async () => {
27 | await component.withMocks([Mocks.spyDoSomething]).mount();
28 | await element(by.id('doSomething')).tap();
29 | await expect(spy('doSomething')).toHaveBeenCalled();
30 | });
31 | it('notToHaveBeenCalled', async () => {
32 | await component.withMocks([Mocks.spyDoSomething]).mount();
33 | await expect(spy('doSomething')).notToHaveBeenCalled();
34 | await expect(spy('doSomething2')).notToHaveBeenCalled();
35 | });
36 | it('toHaveBeenCalledWith', async () => {
37 | await component.withMocks([Mocks.spyDoSomething]).mount();
38 | await element(by.id('doSomething')).tap();
39 | await expect(spy('doSomething')).toHaveBeenCalledWith('a', 10, {test: 'bla'});
40 | });
41 |
42 | it('toHaveBeenNthCalledWith', async () => {
43 | await component.withMocks([Mocks.spyDoSomething]).mount();
44 | await element(by.id('doSomething')).tap();
45 | await element(by.id('doSomethingAgain')).tap();
46 | await expect(spy('doSomething')).toHaveBeenNthCalledWith(1, 'again');
47 | });
48 |
49 | it('should allow spying on a method', async() => {
50 | await component.withMocks([Mocks.mockJokeService, Mocks.spyOnLameJoke]).mount();
51 | await expect(spy('JokeService.fetchJoke')).toHaveBeenCalled();
52 | });
53 | });
54 | });
--------------------------------------------------------------------------------
/KompotExample/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/KompotExample/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 |
16 | ; Ignore polyfills
17 | .*/Libraries/polyfills/.*
18 |
19 | ; Ignore metro
20 | .*/node_modules/metro/.*
21 |
22 | [include]
23 |
24 | [libs]
25 | node_modules/react-native/Libraries/react-native/react-native-interface.js
26 | node_modules/react-native/flow/
27 |
28 | [options]
29 | emoji=true
30 |
31 | esproposal.optional_chaining=enable
32 | esproposal.nullish_coalescing=enable
33 |
34 | module.system=haste
35 | module.system.haste.use_name_reducers=true
36 | # get basename
37 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
38 | # strip .js or .js.flow suffix
39 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
40 | # strip .ios suffix
41 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
42 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
43 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
44 | module.system.haste.paths.blacklist=.*/__tests__/.*
45 | module.system.haste.paths.blacklist=.*/__mocks__/.*
46 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.*
47 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.*
48 |
49 | munge_underscores=true
50 |
51 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
52 |
53 | module.file_ext=.js
54 | module.file_ext=.jsx
55 | module.file_ext=.json
56 | module.file_ext=.native.js
57 |
58 | suppress_type=$FlowIssue
59 | suppress_type=$FlowFixMe
60 | suppress_type=$FlowFixMeProps
61 | suppress_type=$FlowFixMeState
62 |
63 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
64 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
65 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
66 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
67 |
68 | [version]
69 | ^0.92.0
70 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | *.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://docs.fastlane.tools/best-practices/source-control/
50 |
51 | */fastlane/report.xml
52 | */fastlane/Preview.html
53 | # Xcode
54 | !**/*.xcodeproj
55 | !**/*.pbxproj
56 | !**/*.xcworkspacedata
57 | !**/*.xcsettings
58 | !**/*.xcscheme
59 | *.pbxuser
60 | !default.pbxuser
61 | *.mode1v3
62 | !default.mode1v3
63 | *.mode2v3
64 | !default.mode2v3
65 | *.perspectivev3
66 | !default.perspectivev3
67 | xcuserdata
68 | *.xccheckout
69 | *.moved-aside
70 | DerivedData
71 | *.hmap
72 | *.ipa
73 | *.xcuserstate
74 | project.xcworkspace
75 |
76 | # Gradle
77 | /build/
78 | /RNTester/android/app/build/
79 | /RNTester/android/app/gradle/
80 | /RNTester/android/app/gradlew
81 | /RNTester/android/app/gradlew.bat
82 | /ReactAndroid/build/
83 |
84 | # Buck
85 | .buckd
86 | buck-out
87 | /ReactAndroid/src/main/jni/prebuilt/lib/armeabi-v7a/
88 | /ReactAndroid/src/main/jni/prebuilt/lib/x86/
89 | /ReactAndroid/src/main/gen
90 |
91 | # Watchman
92 | .watchmanconfig
93 |
94 | # Android
95 | .idea
96 | .gradle
97 | local.properties
98 | *.iml
99 | /android/
100 |
101 | # Node
102 | node_modules
103 | *.log
104 | .nvm
105 | /bots/node_modules/
106 |
107 | # TODO: Check in yarn.lock in open source. Right now we need to keep it out
108 | # from the GitHub repo as importing it might conflict with internal workspaces
109 | yarn.lock
110 | package-lock.json
111 |
112 | # OS X
113 | .DS_Store
114 |
115 | # Test generated files
116 | /ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
117 | *.js.meta
118 |
119 | /coverage
120 | /third-party
121 |
122 | # Root dir shouldn't have Xcode project
123 | /*.xcodeproj
124 |
125 | # ReactCommon subdir shouldn't have Xcode project
126 | /ReactCommon/**/*.xcodeproj
127 |
128 | */fastlane/screenshots
129 |
130 | # Bundle artifact
131 | *.jsbundle
132 |
133 | temp/main.bundle.js
134 | temp/main.bundle.js.meta
135 | package-lock.json
136 | .idea
137 |
--------------------------------------------------------------------------------
/src/initKompotTestSuite.js:
--------------------------------------------------------------------------------
1 | const fetch = require('node-fetch');
2 | const {isEqual} = require('lodash');
3 | let testKey;
4 | async function fetchSpyCalls(id) {
5 | const response = await fetch(`http://localhost:2600/${testKey}/getSpy?spyId=${id}`);
6 | const text = await response.text();
7 | if (text) {
8 | return JSON.parse(text);
9 | }
10 | }
11 |
12 | class SpyRequest {
13 | constructor(id) {
14 | this.id = id;
15 | }
16 | async calls() {
17 | return await fetchSpyCalls(this.id);
18 | }
19 | }
20 |
21 | global.spy = (id) => {
22 | return new SpyRequest(id);
23 | };
24 |
25 | let originalExpect;
26 |
27 | function kompotExpect(...value) {
28 | if (value[0] instanceof SpyRequest) {
29 | return spyHandlers(value[0]);
30 | } else {
31 | return originalExpect(...value);
32 | }
33 | }
34 |
35 | function spyHandlers(spy) {
36 | return {
37 | async toHaveBeenCalled() {
38 | const calls = await spy.calls();
39 | if (calls === undefined) {
40 | throw Error(`Expected spy with id "${spy.id}" to have been called, but it was not called`);
41 | }
42 | },
43 | async notToHaveBeenCalled() {
44 | const calls = await spy.calls();
45 | if (calls !== undefined) {
46 | throw Error(`Expected spy with id "${spy.id}" not to have been called, but it was called`);
47 | }
48 | },
49 | async toHaveBeenCalledWith(...args) {
50 | const calls = await spy.calls();
51 | let foundCallWithMatchedArgs;
52 | if (calls) {
53 | calls.forEach((call, index) => {
54 | try {
55 | const parsedCall = JSON.parse(call);
56 | if (isEqual(parsedCall, args)) {
57 | foundCallWithMatchedArgs = true;
58 | }
59 | } catch (e) {
60 | console.log(e);
61 | }
62 | });
63 | if (!foundCallWithMatchedArgs) {
64 | throw Error(`Expected spy with id "${spy.id}" to have been called with:\n\n ${JSON.stringify(args)}\n But it was called with:\n${calls}`);
65 | }
66 | } else {
67 | throw Error(`Expected spy with id "${spy.id}" to have been called with:\n\n ${JSON.stringify(args)}\n But it was never called`);
68 | }
69 | },
70 |
71 | async toHaveBeenNthCalledWith(callNum, ...args) {
72 | const calls = await spy.calls();
73 | if(calls.length <= callNum) {
74 | throw Error(`Expected spy with id "${spy.id}" to be called ${callNum} times, but it was called only ${calls.length} times`);
75 | }
76 | if (calls) {
77 | let parsedCall;
78 | try{
79 | parsedCall = JSON.parse(calls[callNum]);
80 | } catch(e) {
81 | console.log(e);
82 | }
83 |
84 | if (!isEqual(parsedCall, args)) {
85 | throw Error(`Expected spy with id "${spy.id}" call number ${callNum} to be:\n\n ${JSON.stringify(args)}\n But it was:\n${JSON.stringify(parsedCall)}`);
86 | }
87 | }
88 | }
89 | }
90 | }
91 |
92 | module.exports = {
93 | setTestIdForSpies: (id) => testKey = id,
94 | init: () => {
95 | originalExpect = global.expect;
96 | global.expect = kompotExpect;
97 | },
98 | expect: kompotExpect
99 | }
--------------------------------------------------------------------------------
/KompotExample/ios/KompotExample/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/src/scripts/kompot-cli.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | const ArgumentParser = require('argparse').ArgumentParser;
4 | const fs = require('fs');
5 | const Path = require('path');
6 | let spawn = require('child_process').spawn;
7 | let execSync = require('child_process').execSync;
8 |
9 | const parser = new ArgumentParser();
10 | parser.addArgument('command', {
11 | nargs: '*',
12 | //todo: uncomment after deprecation of -srk:
13 | //choices: ['start', 'build']
14 | });
15 |
16 | parser.addArgument(['-e', '--entry-point'], {
17 | help: `The path to the entry-point. Defaults to index.js`,
18 | });
19 |
20 | parser.addArgument(['-s', '--start'], {
21 | help: `Launch react-native's packager.`,
22 | action: 'storeTrue',
23 | });
24 |
25 | parser.addArgument(['-k', '--kill'], {
26 | help: `Kill server and packager if needed.`,
27 | action: 'storeTrue'
28 | });
29 |
30 | parser.addArgument(['-r', '--run-server'], {
31 | help: `Start the Kompot server on port 2600`,
32 | action: 'storeTrue'
33 | });
34 |
35 | parser.addArgument(['-n', '--name'], {
36 | help: `App name`,
37 | metavar: 'appName'
38 | });
39 |
40 | parser.addArgument(['-b', '--build'], {
41 | help: `Scan the project for *.kompot.spec.js and process them. app name should be the same name that you pass to AppRegistry.registerComponent()`,
42 | metavar: 'appName'
43 | });
44 |
45 | parser.addArgument(['-t', '--app-type'], {
46 | help: `Application type.`,
47 | choices: ['react-native-navigation']
48 | });
49 |
50 | parser.addArgument(['--silent'], {
51 | help: `No logs`,
52 | action: 'storeTrue'
53 | });
54 |
55 | parser.addArgument(['-i', '--init-root'], {
56 | help: `A path to an initialization file, for custom initialization of the root component.`,
57 | metavar: 'filePath'
58 | });
59 |
60 | parser.addArgument(['-l', '--load'], {
61 | help: `A path to a file that will be loaded before the mounting of the component. Put all global mocks in this file`,
62 | metavar: 'filePath',
63 | defaultValue: 'kompot-setup.js'
64 | });
65 |
66 | const COMMANDS = {START: 'start', BUILD: 'build'};
67 | const args = parser.parseArgs();
68 | const command = args.command[0];
69 | if (args.app_type && args.init_root) {
70 | throw new Error(`Cannot use '--init-root' option along with '--app-type'.`)
71 | }
72 |
73 | if(args.entry_point) {
74 | const fileName = Path.basename(args.entry_point);
75 | const dirName = Path.dirname(args.entry_point);
76 | const kompotIndex = Path.resolve(`${__dirname}/../index.js`);
77 | execSync(`mkdir -p ${__dirname}/../${dirName}`, (e, stdout, stderr) => {
78 | if (e instanceof Error) {
79 | console.error(e);
80 | throw e;
81 | }
82 | console.log('stdout ', stdout);
83 | console.log('stderr ', stderr);
84 | });
85 | fs.writeFile(`${__dirname}/../${dirName}/${fileName}`, `require('${kompotIndex}');`, function(err) {
86 | if(err) {
87 | return console.log(err);
88 | }
89 | });
90 | }
91 |
92 | const build = command === COMMANDS.BUILD;
93 | if (args.build || build) {
94 | const command = [`${__dirname}/generateIndex.js`, '-n', args.build || args.name];
95 | if (args.app_type) {
96 | command.push('-t');
97 | command.push(args.app_type);
98 | }
99 | if (args.init_root) {
100 | command.push('-i');
101 | command.push(args.init_root);
102 | }
103 |
104 | if (args.load && fs.existsSync(Path.resolve(args.load))) {
105 | command.push('-l');
106 | command.push(args.load);
107 | }
108 |
109 | spawn('node', command, { stdio: 'inherit' });
110 | }
111 |
112 | const start = command === COMMANDS.START;
113 |
114 | //todo: remove separate command and use only start:
115 | if (args.kill || start) {
116 | execSync(`lsof -ti tcp:8081 | xargs kill; lsof -ti tcp:2600 | xargs kill`, (e, stdout, stderr) => {
117 | if (e instanceof Error) {
118 | console.error(e);
119 | throw e;
120 | }
121 | console.log('stdout ', stdout);
122 | console.log('stderr ', stderr);
123 | });
124 | }
125 |
126 | if (args.start || start) {
127 | spawn('node', [`${__dirname}/start.js`], { stdio: 'inherit' });
128 | }
129 |
130 | if (args.run_server || start) {
131 | const command = [`${__dirname}/../server/server.js`];
132 | if(args.silent) {
133 | command.push('-s');
134 | }
135 | spawn('node', command, { stdio: 'inherit' });
136 | }
--------------------------------------------------------------------------------
/src/scripts/generateIndex.js:
--------------------------------------------------------------------------------
1 | const _ = require('lodash');
2 | const execSync = require('child_process').execSync;
3 | const Path = require('path');
4 | const fs = require('fs');
5 | const Templates = require('../rootComponentTemplates');
6 | const ArgumentParser = require('argparse').ArgumentParser;
7 | const babylon = require('babylon');
8 | const traverse = require('babel-traverse').default;
9 |
10 | const KOMPOT_FILE_EXTENTION = '.kompot.spec.js';
11 | const OUTPUT_PATH = `${__dirname}/../generatedRequireKompotSpecs.js`;
12 | const parser = new ArgumentParser();
13 |
14 | parser.addArgument(['-n', '--name'], {
15 | help: `App name`
16 | });
17 |
18 | parser.addArgument(['-i', '--init'], {
19 | help: `Path to initialization file`
20 | });
21 |
22 | parser.addArgument(['-t', '--app-type'], {
23 | help: `Application type.`,
24 | choices: ['react-native-navigation']
25 | });
26 |
27 | parser.addArgument(['-l', '--load'], {
28 | help: `A path to a file that will be loaded before the mounting of the component. Put all global mocks in this file`,
29 | metavar: 'filePath'
30 | });
31 |
32 | const args = parser.parseArgs();
33 | filePathList = getAllFilesWithKompotExtension();
34 |
35 | console.log('Found kompot specs:');
36 | console.log(filePathList.join('\n'));
37 | console.log('\n');
38 |
39 | const requireStatements = filePathList
40 | .map(filePath => {
41 | const dataFromFile = extractDataFromFile(filePath);
42 | const fileName = Path.basename(dataFromFile.requirePath);
43 | return `if(global['${fileName}']){
44 | await global.kompotCodeInjector();
45 | currentComponent = require('${dataFromFile.requirePath}')${dataFromFile.requireMember? `.${dataFromFile.requireMember}`: ''};
46 | if(!currentComponent) {
47 | throw new Error('Component is undefined: Please check your kompotRequire statement in ${filePath}');
48 | }
49 | }`;
50 | }).join('\n');
51 |
52 |
53 | let registerRootComponent;
54 | if (args.app_type === 'react-native-navigation') {
55 | registerRootComponent = Templates.getNavigationTemplate(args.name);
56 | } else if (args.init) {
57 | registerRootComponent = `require('${Path.resolve(args.init)}');`;
58 | } else {
59 | registerRootComponent = Templates.getDefaultTemplate(args.name);
60 | }
61 |
62 | let loadMocksFile = '';
63 | if(args.load){
64 | loadMocksFile = `require('${Path.resolve(args.load)}');`
65 | }
66 | const requireStatementsFunction = `
67 | export default async function(){
68 | let currentComponent;
69 | ${requireStatements}
70 | global.KompotApp(currentComponent);
71 | }`;
72 | output = [loadMocksFile, registerRootComponent, requireStatementsFunction].join('\n');
73 |
74 | fs.writeFile(OUTPUT_PATH, output, function (err) {
75 | if (err) {
76 | return console.log(err);
77 | }
78 | console.log(`Successfuly created: ${OUTPUT_PATH}`);
79 | });
80 |
81 | function extractDataFromFile(filePath) {
82 | const content = fs.readFileSync(filePath, 'utf-8');
83 | const ast = babylon.parse(content, {sourceType: 'module'});
84 | let kompotRequireAbsolutePath;
85 | let kompotRequireMember;
86 | traverse(ast, {
87 | CallExpression: ({node}) => {
88 | const methodName = _.get(node, 'callee.property.name');
89 | const calleeName = _.get(node, 'callee.name');
90 | if(methodName === 'kompotRequire') {
91 | const kompotRequireRelativePath = node.arguments[0].extra.rawValue;
92 | kompotRequireAbsolutePath = Path.resolve(Path.dirname(filePath),kompotRequireRelativePath);
93 | }
94 | },
95 | MemberExpression: ({node}) => {
96 | const methodName = _.get(node, 'object.callee.property.name');
97 | if(methodName === 'kompotRequire') {
98 | kompotRequireMember = node.property.name;
99 | }
100 | }
101 | });
102 |
103 | if(kompotRequireAbsolutePath){
104 | console.log('Found kompot require statement:', kompotRequireAbsolutePath, ' in file: ', filePath);
105 | return {requirePath: kompotRequireAbsolutePath, requireMember: kompotRequireMember};
106 | } else {
107 | throw new Error('Cannot find kompot require statement')
108 | }
109 | }
110 |
111 | function getAllFilesWithKompotExtension() {
112 | const allFilesWithKompotExtention = execSync(`find . -not \\( -path ./node_modules -prune \\) -not \\( -path ./.idea -prune \\) -type f -name '*.kompot.*.js' -or -name '*.kompot.*.ts'`).toString();
113 | const filePathList = allFilesWithKompotExtention.split('\n').filter(path => path !== '');
114 | return filePathList;
115 | }
116 |
--------------------------------------------------------------------------------
/KompotExample/ios/KompotExample.xcodeproj/xcshareddata/xcschemes/KompotExample.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/KompotExample/ios/KompotExample.xcodeproj/xcshareddata/xcschemes/KompotExample-tvOS.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | /* Basic Options */
4 | // "incremental": true, /* Enable incremental compilation */
5 | "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
6 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
7 | // "lib": [], /* Specify library files to be included in the compilation. */
8 | // "allowJs": true, /* Allow javascript files to be compiled. */
9 | // "checkJs": true, /* Report errors in .js files. */
10 | // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
11 | // "declaration": true, /* Generates corresponding '.d.ts' file. */
12 | // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
13 | // "sourceMap": true, /* Generates corresponding '.map' file. */
14 | // "outFile": "./", /* Concatenate and emit output to single file. */
15 | // "outDir": "./", /* Redirect output structure to the directory. */
16 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
17 | // "composite": true, /* Enable project compilation */
18 | // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
19 | // "removeComments": true, /* Do not emit comments to output. */
20 | // "noEmit": true, /* Do not emit outputs. */
21 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */
22 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
23 | // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
24 |
25 | /* Strict Type-Checking Options */
26 | "strict": true, /* Enable all strict type-checking options. */
27 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28 | // "strictNullChecks": true, /* Enable strict null checks. */
29 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */
30 | // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
31 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
32 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
33 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
34 |
35 | /* Additional Checks */
36 | // "noUnusedLocals": true, /* Report errors on unused locals. */
37 | // "noUnusedParameters": true, /* Report errors on unused parameters. */
38 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
39 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
40 |
41 | /* Module Resolution Options */
42 | // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
43 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
44 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
45 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
46 | // "typeRoots": [], /* List of folders to include type definitions from. */
47 | // "types": [], /* Type declaration files to be included in compilation. */
48 | // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
49 | "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
50 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
51 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
52 |
53 | /* Source Map Options */
54 | // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
55 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
56 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
57 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
58 |
59 | /* Experimental Options */
60 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
61 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
62 |
63 | /* Advanced Options */
64 | "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/KompotExample/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/docs/api.md:
--------------------------------------------------------------------------------
1 | # API
2 |
3 | ## KompotRequire(pathToComponent)
4 | You should use this method in order to require your component.
5 |
6 | ```js
7 | const component = Kompot.kompotRequire('../App').App;
8 | ```
9 |
10 | When you require a component, you get a `component` object with the following methods:
11 |
12 | ### withProps(object)
13 | An object with the props you want to supply to the component. If you pass a function as a prop, be careful not to reference any variable outside of the function scope! Props can
14 | only be primitives or functions. If you need to pass a complex prop like es6 class, you need to use Mocks and the global `componentProps` value.
15 |
16 | ### withMocks([mockFunctions])
17 | An array of mock functions. See the `Mocks` and `Triggers` section for more details.
18 |
19 | ### withTriggers([triggerFunctions])
20 |
21 | An array of trigger functions. See the `Mocks` and `Triggers` section for more details.
22 | ### async mount()
23 | mount the component for the current test.
24 |
25 | ### Example
26 |
27 | ```js
28 | const Mocks = require('./mocks');
29 |
30 | it('should do something', async () => {
31 | await component
32 | .withProps({someProp: 'hello', onPress: () => console.log('hello!')})
33 | .withMocks([Mocks.someMock1, Mocks.someMock2])
34 | .withTriggers([Mocks.someTrigger])
35 | .mount();
36 | });
37 | ```
38 |
39 | ## Mocks
40 | In order to mock things and define triggers, you need to specify a mock file (or files) in your kompot-setup file:
41 |
42 | ```js
43 | global.kompot.useMocks(() => require('./path/to/mockFile.js'));
44 | ```
45 |
46 | The mock file looks like this:
47 | ```js
48 | module.exports = {
49 | mockLameJoke: () => {
50 | const JokeService = require('../fetchJokeService');
51 | JokeService.fetchJoke = async () => {
52 | return Promise.resolve('This is a lame Chuck Norris joke')
53 | }
54 | },
55 | triggerNavigationEvent:() => {
56 | global.savedComponentRef.onNavigationEvent('some event!');
57 | }
58 | }
59 | ```
60 |
61 | Then, you should mount your component with mocks:
62 |
63 | ```js
64 | const Mocks = require('./mocks');
65 |
66 | it('should do something', async () => {
67 | await component.withMocks([Mocks.mockLameJoke]).mount();
68 | });
69 | ```
70 |
71 | ## Triggers
72 | Sometimes you need to trigger functions during the tests, for example, if your react component has some method called `scrollTo` and you want to test it, you can do it using triggers. Triggers should be defined just like mocks. If you need to interact with your component, you can use the `savedComponentRef` global.
73 |
74 | Inside your mock file add:
75 | ```js
76 | module.exports = {
77 | someTrigger: () => {
78 | global.savedComponentRef.scrollTo('bottom');
79 | }
80 | }
81 | ```
82 |
83 | And use the trigger in your spec file like this:
84 | ```js
85 | const Mocks = require('./mocks');
86 | it('should do something', async () => {
87 | await component.withTriggers([Mocks.someTrigger]).mount();
88 | await element(by.id('someTrigger')).tap();
89 | });
90 | ```
91 |
92 | ## Kompot Globals
93 | Kompot will define a kompot global object with props and methods that you can use inside your mock files and your setup file like this:
94 | ```js
95 | module.exports = {
96 | triggerNavigationEvent:() => {
97 | global.kompot.savedComponentRef.onNavigationEvent('some event!');
98 | }
99 | }
100 | ```
101 |
102 | ### componentProps
103 | The props object that will be passed to the component. This object will be merged with all the props you supply to `component.withProps()`. You can use this object to pass to your component some complex props, like es6 classes.
104 |
105 | ### savedComponentRef
106 |
107 | A ref to the mounted component.
108 |
109 | ### useMocks(mockGeneratorFunction)
110 |
111 | Use this function inside your kompot-setup file in order to require your mock files.
112 |
113 |
114 | ### registerProvider({component, props})
115 |
116 | Use this function inside your mocks or kompot-setup, in order to provide a store (or any other provider) to your component.
117 |
118 | ```js
119 | import { Provider } from 'react-redux';
120 | import configureStore from './store/configureStore';
121 | const store = configureStore({});
122 | global.kompot.registerProvider({ component: Provider, props: { store } });
123 | ```
124 |
125 | ### mockFetchUrl(url: string, getResponse: func )
126 | An helper function to easily mock fetch url request.
127 | `url` url to mock.
128 | `getResponse` a function that will be used to get the response for the mocked url.
129 |
130 | Usage example:
131 |
132 | ```js
133 | global.kompot.mockFetchUrl('https://hello.com/world', (url, options) => {
134 | return new Response('yey!');
135 | });
136 | ```
137 |
138 | ### spy(spyId: string, getReturnValue?: func ) : kompotSpy
139 | Returns a kompot spy.
140 | `spyId` should be a unique id that will identify the spy later in the `expect` call.
141 | `getReturnValue` is an optional function to use when you want to mock a return value based on the args.
142 |
143 | For more information see the spies section below.
144 |
145 | ### spyOn(target: object, methodName: string, spyId: string)
146 | Attach a spy to a specific method on the target.
147 | `target`: any object.
148 | `methodName`: any method on the target.
149 | `spyId` should be a unique id that will identify the spy later in the `expect` call.
150 |
151 |
152 | Usage:
153 | ```js
154 | global.kompot.spyOn(global, 'fetch', 'global.fetch');
155 | ```
156 |
157 | ## Spies
158 |
159 | If you want to spy on a function to see if it has been called, you can mock it using a kompot spy.
160 | First, create a mock function that will mock your function to use the spy:
161 |
162 | ```js
163 | module.exports = {
164 | mockSomeFunctionToUseSpy: () => {
165 | const Module = require('./MyModule');
166 | Module.someFunction = kompot.spy('someFunction'); //we give the spy a special id that we will use in the spec
167 | }
168 | }
169 | ```
170 |
171 | Then, check the spy in your spec file:
172 | ```js
173 | const Mocks = require('./mocks');
174 |
175 | it('should do something', async () => {
176 | await component.withMocks([Mocks.mockSomeFunctionToUseSpy]).mount();
177 | await expect(spy('someFunction')).toHaveBeenCalled();
178 | });
179 | ```
180 |
181 | ### The spy matchers
182 | #### toHaveBeenCalled()
183 | Check that the function has been called
184 | #### notToHaveBeenCalled()
185 | Check that the function has not been called
186 | #### toHaveBeenCalledWith(arg1,arg2, ...)
187 | Check that the function has been called with specific args
188 | #### toHaveBeenNthCalledWith(callNum, arg1, arg2, ...)
189 | Check the nth call of the function
--------------------------------------------------------------------------------
/KompotExample/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 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
37 | * // for example: to disable dev mode in the staging build type (if configured)
38 | * devDisabledInStaging: true,
39 | * // The configuration property can be in the following formats
40 | * // 'devDisabledIn${productFlavor}${buildType}'
41 | * // 'devDisabledIn${buildType}'
42 | *
43 | * // the root of your project, i.e. where "package.json" lives
44 | * root: "../../",
45 | *
46 | * // where to put the JS bundle asset in debug mode
47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
48 | *
49 | * // where to put the JS bundle asset in release mode
50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
51 | *
52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
53 | * // require('./image.png')), in debug mode
54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
55 | *
56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
57 | * // require('./image.png')), in release mode
58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
59 | *
60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
64 | * // for example, you might want to remove it from here.
65 | * inputExcludes: ["android/**", "ios/**"],
66 | *
67 | * // override which node gets called and with what additional arguments
68 | * nodeExecutableAndArgs: ["node"],
69 | *
70 | * // supply additional arguments to the packager
71 | * extraPackagerArgs: []
72 | * ]
73 | */
74 |
75 | project.ext.react = [
76 | entryFile: "index.js"
77 | ]
78 |
79 | apply from: "../../node_modules/react-native/react.gradle"
80 |
81 | /**
82 | * Set this to true to create two separate APKs instead of one:
83 | * - An APK that only works on ARM devices
84 | * - An APK that only works on x86 devices
85 | * The advantage is the size of the APK is reduced by about 4MB.
86 | * Upload all the APKs to the Play Store and people will download
87 | * the correct one based on the CPU architecture of their device.
88 | */
89 | def enableSeparateBuildPerCPUArchitecture = false
90 |
91 | /**
92 | * Run Proguard to shrink the Java bytecode in release builds.
93 | */
94 | def enableProguardInReleaseBuilds = false
95 |
96 | android {
97 | compileSdkVersion rootProject.ext.compileSdkVersion
98 |
99 | compileOptions {
100 | sourceCompatibility JavaVersion.VERSION_1_8
101 | targetCompatibility JavaVersion.VERSION_1_8
102 | }
103 |
104 | defaultConfig {
105 | applicationId "com.kompotexample"
106 | minSdkVersion rootProject.ext.minSdkVersion
107 | targetSdkVersion rootProject.ext.targetSdkVersion
108 | versionCode 1
109 | versionName "1.0"
110 | }
111 | splits {
112 | abi {
113 | reset()
114 | enable enableSeparateBuildPerCPUArchitecture
115 | universalApk false // If true, also generate a universal APK
116 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
117 | }
118 | }
119 | buildTypes {
120 | release {
121 | minifyEnabled enableProguardInReleaseBuilds
122 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
123 | }
124 | }
125 | // applicationVariants are e.g. debug, release
126 | applicationVariants.all { variant ->
127 | variant.outputs.each { output ->
128 | // For each separate APK per architecture, set a unique version code as described here:
129 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
130 | def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4]
131 | def abi = output.getFilter(OutputFile.ABI)
132 | if (abi != null) { // null for the universal-debug, universal-release variants
133 | output.versionCodeOverride =
134 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
135 | }
136 | }
137 | }
138 | }
139 |
140 | dependencies {
141 | implementation fileTree(dir: "libs", include: ["*.jar"])
142 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
143 | implementation "com.facebook.react:react-native:+" // From node_modules
144 | }
145 |
146 | // Run this once to be able to run the application with BUCK
147 | // puts all compile dependencies into folder libs for BUCK to use
148 | task copyDownloadableDepsToLibs(type: Copy) {
149 | from configurations.compile
150 | into 'libs'
151 | }
152 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import ReactNative, {Text, View, Dimensions, SafeAreaView, TouchableWithoutFeedback, TextInput} from 'react-native';
2 | import React from 'react';
3 | import {deSerialize} from './Serialize';
4 | import hoistNonReactStatics from 'hoist-non-react-statics';
5 | import AsyncStorage from '@react-native-community/async-storage';
6 | import UrlPattern from 'url-pattern';
7 |
8 | const TEST_KEY_STORAGE = 'TEST_KEY_STORAGE';
9 | const originalFetch = fetch;
10 | const providers = [];
11 | const mockedUrlsPatterns = [];
12 | let globalFetchHandler;
13 | let testKey;
14 | const renderTriggers = (triggers) => {
15 | const onTriggerPressed = (trigger) => global.triggers[trigger] && global.triggers[trigger]();
16 | return (
17 |
18 | {triggers.map(trigger => {
19 | return (
20 | onTriggerPressed(trigger)} />
25 | );
26 | })}
27 |
28 | );
29 | }
30 |
31 | const getWrappedComponent = (Component, props, triggers) => {
32 | let TestedComponent = (
33 |
34 | {renderTriggers(triggers)}
35 | global.savedComponentRef = ref} {...props} />
36 | );
37 | providers.forEach(provider => {
38 | TestedComponent = {TestedComponent};
39 | });
40 | return TestedComponent;
41 | }
42 |
43 | class Container extends React.Component {
44 | constructor() {
45 | super();
46 | this.state = {
47 | TestedComponent: undefined,
48 | testKey: ''
49 | }
50 | }
51 | componentDidMount() {
52 | AsyncStorage.getItem(TEST_KEY_STORAGE).then(storedKey => {
53 | if (storedKey) {
54 | testKey = storedKey;
55 | run();
56 | }
57 | });
58 |
59 | global.onComponentToTestReady((TestedComponent, props, triggers) => {
60 | if (global.isReactNativeNavigationProject) {
61 | const Wrapper = (wrapperProps) => {
62 | return getWrappedComponent(TestedComponent, {...wrapperProps, ...props}, triggers);
63 | }
64 | hoistNonReactStatics(Wrapper, TestedComponent);
65 | global.registerComponentAsRoot('kompotComponent', Wrapper, {...props});
66 | } else {
67 | this.setState({TestedComponent: getWrappedComponent(TestedComponent, props, triggers)});
68 | }
69 | });
70 | }
71 |
72 | onReceiveTestKey = () => {
73 | testKey = this.state.testKey;
74 | AsyncStorage.setItem(TEST_KEY_STORAGE, testKey);
75 | run();
76 | }
77 | renderLoader() {
78 | return (
79 |
86 | this.setState({testKey: text})} value={this.state.testKey} />
87 |
88 |
89 | Initializing kompot...
90 |
91 |
92 | );
93 | }
94 |
95 | renderComponent() {
96 | return (
97 |
98 | {this.state.TestedComponent}
99 | );
100 | }
101 |
102 | render() {
103 | return this.state.TestedComponent ? this.renderComponent() : this.renderLoader();
104 | }
105 | }
106 |
107 | let onComponentToTestReadyListener;
108 | let requireGlobalMocks = [];
109 | global.componentProps = {};
110 | global.onComponentToTestReady = function (listener) {
111 | onComponentToTestReadyListener = listener;
112 | }
113 | global.setComponentToTest = function (ComponentToTest) {
114 | onComponentToTestReadyListener(ComponentToTest, global.componentProps, Object.keys(global.triggers));
115 | }
116 | global.fetch = mockedFetch;
117 | global.KompotApp = global.setComponentToTest;
118 | global.React = React;
119 | global.ReactNative = ReactNative;
120 | global.KompotContainer = Container;
121 | global.kompotCodeInjector = kompotCodeInjector;
122 | global.savedComponentRef = null;
123 | global.triggers = {};
124 | global.useMocks = getMocks => requireGlobalMocks.push(getMocks);
125 | global.kompot = {
126 | mockFetchUrl,
127 | spy: kompotSpy,
128 | spyOn,
129 | useMocks: global.useMocks,
130 | savedComponentRef: global.savedComponentRef,
131 | componentProps: global.componentProps,
132 | registerProvider: (provider) => providers.push(provider),
133 | };
134 | const requireComponentSpecFile = require('./generatedRequireKompotSpecs').default;
135 | console.log(requireComponentSpecFile); //a hack to solve require problem- the required code is not running until we use it. this log is just for faking usage.
136 | async function run() {
137 | try {
138 | const response = await originalFetch(`http://localhost:2600/getComponentToTest?testKey=${testKey}`, {method: 'GET', headers: {"Content-Type": "application/json"}});
139 | const info = await response.json();
140 | global[info.componentName] = true;
141 | global.componentProps = deSerialize(info.props);
142 | info.globals.forEach(key => global[key] = true);
143 | info.triggers.forEach(key => global.triggers[key] = true);
144 | requireComponentSpecFile();
145 | } catch (e) {
146 | console.error('Fail to run kompot: ', e);
147 | }
148 | }
149 |
150 |
151 | async function notifySpyTriggered(body) {
152 | if(testKey) {
153 | try {
154 | await originalFetch(`http://localhost:2600/${testKey}/notifySpy`, {method: 'POST', body, headers: {"Content-Type": "application/json"}});
155 | } catch (e) {
156 | console.log('Cannot set spy: ', e.message);
157 | }
158 | }
159 | }
160 |
161 | async function kompotCodeInjector() {
162 | try {
163 | const mocks = requireGlobalMocks.map(getMocks => getMocks());
164 | const injectorObject = Object.assign({}, ...mocks);
165 | injectorObject.default && injectorObject.default();
166 | for (let key in injectorObject) {
167 | if (key !== 'default' && global[key]) {
168 | await injectorObject[key]();
169 | }
170 | if (global.triggers[key]) {
171 | global.triggers[key] = injectorObject[key];
172 | }
173 | }
174 | } catch (e) {
175 | console.error('Failed to apply mocks:', e);
176 | }
177 | }
178 |
179 | function kompotSpy(id, getReturnValue, stringifyArgs) {
180 | return (...args) => {
181 | let stringArgs = stringifyArgs && stringifyArgs(...args) || JSON.stringify(args);
182 | notifySpyTriggered(JSON.stringify({id, stringArgs}));
183 | if (getReturnValue) {
184 | return getReturnValue(...args);
185 | }
186 | }
187 | }
188 |
189 | function spyOn(object, methodName, spyId, stringifyArgs) {
190 | const originalFunc = object[methodName];
191 | const spy = kompotSpy(spyId, undefined, stringifyArgs);
192 |
193 | object[methodName] = (...args) => {
194 | spy(...args);
195 | return originalFunc(...args);
196 | }
197 | }
198 | const fetchSpy = kompotSpy('fetch');
199 |
200 | async function mockedFetch(url, options) {
201 | const matchedMock = mockedUrlsPatterns.find((mock) => {
202 | const [basePart, query] = url.split('?');
203 | return mock.pattern.match(basePart) !== null;
204 | });
205 | if (matchedMock) {
206 | fetchSpy(url, options);
207 | return matchedMock.handler(url, options);
208 | }
209 | if (globalFetchHandler) {
210 | fetchSpy(url, options);
211 | return globalFetchHandler(url, options)
212 | }
213 | return originalFetch(url, options);
214 | }
215 |
216 | function mockFetchUrl(url, handler) {
217 | const escapedUrl = url.replace('https://', 'https\\://').replace('http://', 'http\\://');
218 | if (url === '*') {
219 | globalFetchHandler = handler;
220 | } else {
221 | mockedUrlsPatterns.push({pattern: new UrlPattern(escapedUrl), handler});
222 | }
223 | }
--------------------------------------------------------------------------------
/KompotExample/ios/KompotExample.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15 | 00E356F31AD99517003FC87E /* KompotExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* KompotExampleTests.m */; };
16 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
17 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
18 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
19 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
20 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
21 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
22 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
23 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
24 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
25 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
26 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
27 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
28 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
29 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
30 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; };
31 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; };
32 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; };
33 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; };
34 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; };
35 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; };
36 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; };
37 | 2DCD954D1E0B4F2C00145EB5 /* KompotExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* KompotExampleTests.m */; };
38 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; };
39 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
40 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; };
41 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; };
42 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; };
43 | /* End PBXBuildFile section */
44 |
45 | /* Begin PBXContainerItemProxy section */
46 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
47 | isa = PBXContainerItemProxy;
48 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
49 | proxyType = 2;
50 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
51 | remoteInfo = RCTActionSheet;
52 | };
53 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
54 | isa = PBXContainerItemProxy;
55 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
56 | proxyType = 2;
57 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
58 | remoteInfo = RCTGeolocation;
59 | };
60 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
61 | isa = PBXContainerItemProxy;
62 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
63 | proxyType = 2;
64 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
65 | remoteInfo = RCTImage;
66 | };
67 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
68 | isa = PBXContainerItemProxy;
69 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
70 | proxyType = 2;
71 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
72 | remoteInfo = RCTNetwork;
73 | };
74 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
75 | isa = PBXContainerItemProxy;
76 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
77 | proxyType = 2;
78 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
79 | remoteInfo = RCTVibration;
80 | };
81 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
82 | isa = PBXContainerItemProxy;
83 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
84 | proxyType = 1;
85 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
86 | remoteInfo = KompotExample;
87 | };
88 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
89 | isa = PBXContainerItemProxy;
90 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
91 | proxyType = 2;
92 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
93 | remoteInfo = RCTSettings;
94 | };
95 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
96 | isa = PBXContainerItemProxy;
97 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
98 | proxyType = 2;
99 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
100 | remoteInfo = RCTWebSocket;
101 | };
102 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
103 | isa = PBXContainerItemProxy;
104 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
105 | proxyType = 2;
106 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
107 | remoteInfo = React;
108 | };
109 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = {
110 | isa = PBXContainerItemProxy;
111 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
112 | proxyType = 1;
113 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7;
114 | remoteInfo = "KompotExample-tvOS";
115 | };
116 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
117 | isa = PBXContainerItemProxy;
118 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
119 | proxyType = 2;
120 | remoteGlobalIDString = ADD01A681E09402E00F6D226;
121 | remoteInfo = "RCTBlob-tvOS";
122 | };
123 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
124 | isa = PBXContainerItemProxy;
125 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
126 | proxyType = 2;
127 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32;
128 | remoteInfo = fishhook;
129 | };
130 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
131 | isa = PBXContainerItemProxy;
132 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
133 | proxyType = 2;
134 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32;
135 | remoteInfo = "fishhook-tvOS";
136 | };
137 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = {
138 | isa = PBXContainerItemProxy;
139 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
140 | proxyType = 2;
141 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5;
142 | remoteInfo = jsinspector;
143 | };
144 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = {
145 | isa = PBXContainerItemProxy;
146 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
147 | proxyType = 2;
148 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5;
149 | remoteInfo = "jsinspector-tvOS";
150 | };
151 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = {
152 | isa = PBXContainerItemProxy;
153 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
154 | proxyType = 2;
155 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7;
156 | remoteInfo = "third-party";
157 | };
158 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = {
159 | isa = PBXContainerItemProxy;
160 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
161 | proxyType = 2;
162 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8;
163 | remoteInfo = "third-party-tvOS";
164 | };
165 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = {
166 | isa = PBXContainerItemProxy;
167 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
168 | proxyType = 2;
169 | remoteGlobalIDString = 139D7E881E25C6D100323FB7;
170 | remoteInfo = "double-conversion";
171 | };
172 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = {
173 | isa = PBXContainerItemProxy;
174 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
175 | proxyType = 2;
176 | remoteGlobalIDString = 3D383D621EBD27B9005632C8;
177 | remoteInfo = "double-conversion-tvOS";
178 | };
179 | 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */ = {
180 | isa = PBXContainerItemProxy;
181 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
182 | proxyType = 2;
183 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04;
184 | remoteInfo = privatedata;
185 | };
186 | 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */ = {
187 | isa = PBXContainerItemProxy;
188 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
189 | proxyType = 2;
190 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04;
191 | remoteInfo = "privatedata-tvOS";
192 | };
193 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = {
194 | isa = PBXContainerItemProxy;
195 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
196 | proxyType = 2;
197 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
198 | remoteInfo = "RCTImage-tvOS";
199 | };
200 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = {
201 | isa = PBXContainerItemProxy;
202 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
203 | proxyType = 2;
204 | remoteGlobalIDString = 2D2A28471D9B043800D4039D;
205 | remoteInfo = "RCTLinking-tvOS";
206 | };
207 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
208 | isa = PBXContainerItemProxy;
209 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
210 | proxyType = 2;
211 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
212 | remoteInfo = "RCTNetwork-tvOS";
213 | };
214 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
215 | isa = PBXContainerItemProxy;
216 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
217 | proxyType = 2;
218 | remoteGlobalIDString = 2D2A28611D9B046600D4039D;
219 | remoteInfo = "RCTSettings-tvOS";
220 | };
221 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = {
222 | isa = PBXContainerItemProxy;
223 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
224 | proxyType = 2;
225 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
226 | remoteInfo = "RCTText-tvOS";
227 | };
228 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = {
229 | isa = PBXContainerItemProxy;
230 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
231 | proxyType = 2;
232 | remoteGlobalIDString = 2D2A28881D9B049200D4039D;
233 | remoteInfo = "RCTWebSocket-tvOS";
234 | };
235 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = {
236 | isa = PBXContainerItemProxy;
237 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
238 | proxyType = 2;
239 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
240 | remoteInfo = "React-tvOS";
241 | };
242 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = {
243 | isa = PBXContainerItemProxy;
244 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
245 | proxyType = 2;
246 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
247 | remoteInfo = yoga;
248 | };
249 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = {
250 | isa = PBXContainerItemProxy;
251 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
252 | proxyType = 2;
253 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
254 | remoteInfo = "yoga-tvOS";
255 | };
256 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = {
257 | isa = PBXContainerItemProxy;
258 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
259 | proxyType = 2;
260 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
261 | remoteInfo = cxxreact;
262 | };
263 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
264 | isa = PBXContainerItemProxy;
265 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
266 | proxyType = 2;
267 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
268 | remoteInfo = "cxxreact-tvOS";
269 | };
270 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
271 | isa = PBXContainerItemProxy;
272 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
273 | proxyType = 2;
274 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4;
275 | remoteInfo = jschelpers;
276 | };
277 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
278 | isa = PBXContainerItemProxy;
279 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
280 | proxyType = 2;
281 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4;
282 | remoteInfo = "jschelpers-tvOS";
283 | };
284 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
285 | isa = PBXContainerItemProxy;
286 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
287 | proxyType = 2;
288 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
289 | remoteInfo = RCTAnimation;
290 | };
291 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
292 | isa = PBXContainerItemProxy;
293 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
294 | proxyType = 2;
295 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
296 | remoteInfo = "RCTAnimation-tvOS";
297 | };
298 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
299 | isa = PBXContainerItemProxy;
300 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
301 | proxyType = 2;
302 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
303 | remoteInfo = RCTLinking;
304 | };
305 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
306 | isa = PBXContainerItemProxy;
307 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
308 | proxyType = 2;
309 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
310 | remoteInfo = RCTText;
311 | };
312 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = {
313 | isa = PBXContainerItemProxy;
314 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
315 | proxyType = 2;
316 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814;
317 | remoteInfo = RCTBlob;
318 | };
319 | /* End PBXContainerItemProxy section */
320 |
321 | /* Begin PBXFileReference section */
322 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
323 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
324 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
325 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
326 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
327 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
328 | 00E356EE1AD99517003FC87E /* KompotExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = KompotExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
329 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
330 | 00E356F21AD99517003FC87E /* KompotExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KompotExampleTests.m; sourceTree = ""; };
331 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
332 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
333 | 13B07F961A680F5B00A75B9A /* KompotExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = KompotExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
334 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = KompotExample/AppDelegate.h; sourceTree = ""; };
335 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = KompotExample/AppDelegate.m; sourceTree = ""; };
336 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
337 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = KompotExample/Images.xcassets; sourceTree = ""; };
338 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = KompotExample/Info.plist; sourceTree = ""; };
339 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = KompotExample/main.m; sourceTree = ""; };
340 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
341 | 2D02E47B1E0B4A5D006451C7 /* KompotExample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "KompotExample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
342 | 2D02E4901E0B4A5D006451C7 /* KompotExample-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "KompotExample-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
343 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; };
344 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; };
345 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
346 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
347 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; };
348 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
349 | 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; };
350 | /* End PBXFileReference section */
351 |
352 | /* Begin PBXFrameworksBuildPhase section */
353 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
354 | isa = PBXFrameworksBuildPhase;
355 | buildActionMask = 2147483647;
356 | files = (
357 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */,
358 | );
359 | runOnlyForDeploymentPostprocessing = 0;
360 | };
361 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
362 | isa = PBXFrameworksBuildPhase;
363 | buildActionMask = 2147483647;
364 | files = (
365 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */,
366 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */,
367 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */,
368 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
369 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
370 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
371 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
372 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
373 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
374 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
375 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
376 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
377 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
378 | );
379 | runOnlyForDeploymentPostprocessing = 0;
380 | };
381 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = {
382 | isa = PBXFrameworksBuildPhase;
383 | buildActionMask = 2147483647;
384 | files = (
385 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */,
386 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */,
387 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */,
388 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */,
389 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */,
390 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */,
391 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */,
392 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */,
393 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */,
394 | );
395 | runOnlyForDeploymentPostprocessing = 0;
396 | };
397 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = {
398 | isa = PBXFrameworksBuildPhase;
399 | buildActionMask = 2147483647;
400 | files = (
401 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */,
402 | );
403 | runOnlyForDeploymentPostprocessing = 0;
404 | };
405 | /* End PBXFrameworksBuildPhase section */
406 |
407 | /* Begin PBXGroup section */
408 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
409 | isa = PBXGroup;
410 | children = (
411 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
412 | );
413 | name = Products;
414 | sourceTree = "";
415 | };
416 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
417 | isa = PBXGroup;
418 | children = (
419 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
420 | );
421 | name = Products;
422 | sourceTree = "";
423 | };
424 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
425 | isa = PBXGroup;
426 | children = (
427 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
428 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */,
429 | );
430 | name = Products;
431 | sourceTree = "";
432 | };
433 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
434 | isa = PBXGroup;
435 | children = (
436 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
437 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */,
438 | );
439 | name = Products;
440 | sourceTree = "";
441 | };
442 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
443 | isa = PBXGroup;
444 | children = (
445 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
446 | );
447 | name = Products;
448 | sourceTree = "";
449 | };
450 | 00E356EF1AD99517003FC87E /* KompotExampleTests */ = {
451 | isa = PBXGroup;
452 | children = (
453 | 00E356F21AD99517003FC87E /* KompotExampleTests.m */,
454 | 00E356F01AD99517003FC87E /* Supporting Files */,
455 | );
456 | path = KompotExampleTests;
457 | sourceTree = "";
458 | };
459 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
460 | isa = PBXGroup;
461 | children = (
462 | 00E356F11AD99517003FC87E /* Info.plist */,
463 | );
464 | name = "Supporting Files";
465 | sourceTree = "";
466 | };
467 | 139105B71AF99BAD00B5F7CC /* Products */ = {
468 | isa = PBXGroup;
469 | children = (
470 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
471 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */,
472 | );
473 | name = Products;
474 | sourceTree = "";
475 | };
476 | 139FDEE71B06529A00C62182 /* Products */ = {
477 | isa = PBXGroup;
478 | children = (
479 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
480 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */,
481 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */,
482 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */,
483 | );
484 | name = Products;
485 | sourceTree = "";
486 | };
487 | 13B07FAE1A68108700A75B9A /* KompotExample */ = {
488 | isa = PBXGroup;
489 | children = (
490 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
491 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
492 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
493 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
494 | 13B07FB61A68108700A75B9A /* Info.plist */,
495 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
496 | 13B07FB71A68108700A75B9A /* main.m */,
497 | );
498 | name = KompotExample;
499 | sourceTree = "";
500 | };
501 | 146834001AC3E56700842450 /* Products */ = {
502 | isa = PBXGroup;
503 | children = (
504 | 146834041AC3E56700842450 /* libReact.a */,
505 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */,
506 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */,
507 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */,
508 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */,
509 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */,
510 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */,
511 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */,
512 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */,
513 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */,
514 | 2DF0FFE32056DD460020B375 /* libthird-party.a */,
515 | 2DF0FFE52056DD460020B375 /* libthird-party.a */,
516 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */,
517 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */,
518 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */,
519 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */,
520 | );
521 | name = Products;
522 | sourceTree = "";
523 | };
524 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
525 | isa = PBXGroup;
526 | children = (
527 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
528 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
529 | 2D16E6891FA4F8E400B85C8A /* libReact.a */,
530 | );
531 | name = Frameworks;
532 | sourceTree = "";
533 | };
534 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
535 | isa = PBXGroup;
536 | children = (
537 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
538 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */,
539 | );
540 | name = Products;
541 | sourceTree = "";
542 | };
543 | 78C398B11ACF4ADC00677621 /* Products */ = {
544 | isa = PBXGroup;
545 | children = (
546 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
547 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */,
548 | );
549 | name = Products;
550 | sourceTree = "";
551 | };
552 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
553 | isa = PBXGroup;
554 | children = (
555 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
556 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
557 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
558 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */,
559 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
560 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
561 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
562 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
563 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
564 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
565 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
566 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
567 | );
568 | name = Libraries;
569 | sourceTree = "";
570 | };
571 | 832341B11AAA6A8300B99B32 /* Products */ = {
572 | isa = PBXGroup;
573 | children = (
574 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
575 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */,
576 | );
577 | name = Products;
578 | sourceTree = "";
579 | };
580 | 83CBB9F61A601CBA00E9B192 = {
581 | isa = PBXGroup;
582 | children = (
583 | 13B07FAE1A68108700A75B9A /* KompotExample */,
584 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
585 | 00E356EF1AD99517003FC87E /* KompotExampleTests */,
586 | 83CBBA001A601CBA00E9B192 /* Products */,
587 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
588 | );
589 | indentWidth = 2;
590 | sourceTree = "";
591 | tabWidth = 2;
592 | usesTabs = 0;
593 | };
594 | 83CBBA001A601CBA00E9B192 /* Products */ = {
595 | isa = PBXGroup;
596 | children = (
597 | 13B07F961A680F5B00A75B9A /* KompotExample.app */,
598 | 00E356EE1AD99517003FC87E /* KompotExampleTests.xctest */,
599 | 2D02E47B1E0B4A5D006451C7 /* KompotExample-tvOS.app */,
600 | 2D02E4901E0B4A5D006451C7 /* KompotExample-tvOSTests.xctest */,
601 | );
602 | name = Products;
603 | sourceTree = "";
604 | };
605 | ADBDB9201DFEBF0600ED6528 /* Products */ = {
606 | isa = PBXGroup;
607 | children = (
608 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */,
609 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */,
610 | );
611 | name = Products;
612 | sourceTree = "";
613 | };
614 | /* End PBXGroup section */
615 |
616 | /* Begin PBXNativeTarget section */
617 | 00E356ED1AD99517003FC87E /* KompotExampleTests */ = {
618 | isa = PBXNativeTarget;
619 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "KompotExampleTests" */;
620 | buildPhases = (
621 | 00E356EA1AD99517003FC87E /* Sources */,
622 | 00E356EB1AD99517003FC87E /* Frameworks */,
623 | 00E356EC1AD99517003FC87E /* Resources */,
624 | );
625 | buildRules = (
626 | );
627 | dependencies = (
628 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
629 | );
630 | name = KompotExampleTests;
631 | productName = KompotExampleTests;
632 | productReference = 00E356EE1AD99517003FC87E /* KompotExampleTests.xctest */;
633 | productType = "com.apple.product-type.bundle.unit-test";
634 | };
635 | 13B07F861A680F5B00A75B9A /* KompotExample */ = {
636 | isa = PBXNativeTarget;
637 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "KompotExample" */;
638 | buildPhases = (
639 | 13B07F871A680F5B00A75B9A /* Sources */,
640 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
641 | 13B07F8E1A680F5B00A75B9A /* Resources */,
642 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
643 | );
644 | buildRules = (
645 | );
646 | dependencies = (
647 | );
648 | name = KompotExample;
649 | productName = "Hello World";
650 | productReference = 13B07F961A680F5B00A75B9A /* KompotExample.app */;
651 | productType = "com.apple.product-type.application";
652 | };
653 | 2D02E47A1E0B4A5D006451C7 /* KompotExample-tvOS */ = {
654 | isa = PBXNativeTarget;
655 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "KompotExample-tvOS" */;
656 | buildPhases = (
657 | 2D02E4771E0B4A5D006451C7 /* Sources */,
658 | 2D02E4781E0B4A5D006451C7 /* Frameworks */,
659 | 2D02E4791E0B4A5D006451C7 /* Resources */,
660 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */,
661 | );
662 | buildRules = (
663 | );
664 | dependencies = (
665 | );
666 | name = "KompotExample-tvOS";
667 | productName = "KompotExample-tvOS";
668 | productReference = 2D02E47B1E0B4A5D006451C7 /* KompotExample-tvOS.app */;
669 | productType = "com.apple.product-type.application";
670 | };
671 | 2D02E48F1E0B4A5D006451C7 /* KompotExample-tvOSTests */ = {
672 | isa = PBXNativeTarget;
673 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "KompotExample-tvOSTests" */;
674 | buildPhases = (
675 | 2D02E48C1E0B4A5D006451C7 /* Sources */,
676 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */,
677 | 2D02E48E1E0B4A5D006451C7 /* Resources */,
678 | );
679 | buildRules = (
680 | );
681 | dependencies = (
682 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */,
683 | );
684 | name = "KompotExample-tvOSTests";
685 | productName = "KompotExample-tvOSTests";
686 | productReference = 2D02E4901E0B4A5D006451C7 /* KompotExample-tvOSTests.xctest */;
687 | productType = "com.apple.product-type.bundle.unit-test";
688 | };
689 | /* End PBXNativeTarget section */
690 |
691 | /* Begin PBXProject section */
692 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
693 | isa = PBXProject;
694 | attributes = {
695 | LastUpgradeCheck = 0940;
696 | ORGANIZATIONNAME = Facebook;
697 | TargetAttributes = {
698 | 00E356ED1AD99517003FC87E = {
699 | CreatedOnToolsVersion = 6.2;
700 | TestTargetID = 13B07F861A680F5B00A75B9A;
701 | };
702 | 2D02E47A1E0B4A5D006451C7 = {
703 | CreatedOnToolsVersion = 8.2.1;
704 | ProvisioningStyle = Automatic;
705 | };
706 | 2D02E48F1E0B4A5D006451C7 = {
707 | CreatedOnToolsVersion = 8.2.1;
708 | ProvisioningStyle = Automatic;
709 | TestTargetID = 2D02E47A1E0B4A5D006451C7;
710 | };
711 | };
712 | };
713 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "KompotExample" */;
714 | compatibilityVersion = "Xcode 3.2";
715 | developmentRegion = English;
716 | hasScannedForEncodings = 0;
717 | knownRegions = (
718 | en,
719 | Base,
720 | );
721 | mainGroup = 83CBB9F61A601CBA00E9B192;
722 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
723 | projectDirPath = "";
724 | projectReferences = (
725 | {
726 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
727 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
728 | },
729 | {
730 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
731 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
732 | },
733 | {
734 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */;
735 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
736 | },
737 | {
738 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
739 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
740 | },
741 | {
742 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
743 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
744 | },
745 | {
746 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
747 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
748 | },
749 | {
750 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
751 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
752 | },
753 | {
754 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
755 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
756 | },
757 | {
758 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
759 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
760 | },
761 | {
762 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
763 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
764 | },
765 | {
766 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
767 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
768 | },
769 | {
770 | ProductGroup = 146834001AC3E56700842450 /* Products */;
771 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
772 | },
773 | );
774 | projectRoot = "";
775 | targets = (
776 | 13B07F861A680F5B00A75B9A /* KompotExample */,
777 | 00E356ED1AD99517003FC87E /* KompotExampleTests */,
778 | 2D02E47A1E0B4A5D006451C7 /* KompotExample-tvOS */,
779 | 2D02E48F1E0B4A5D006451C7 /* KompotExample-tvOSTests */,
780 | );
781 | };
782 | /* End PBXProject section */
783 |
784 | /* Begin PBXReferenceProxy section */
785 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
786 | isa = PBXReferenceProxy;
787 | fileType = archive.ar;
788 | path = libRCTActionSheet.a;
789 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
790 | sourceTree = BUILT_PRODUCTS_DIR;
791 | };
792 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
793 | isa = PBXReferenceProxy;
794 | fileType = archive.ar;
795 | path = libRCTGeolocation.a;
796 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
797 | sourceTree = BUILT_PRODUCTS_DIR;
798 | };
799 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
800 | isa = PBXReferenceProxy;
801 | fileType = archive.ar;
802 | path = libRCTImage.a;
803 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
804 | sourceTree = BUILT_PRODUCTS_DIR;
805 | };
806 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
807 | isa = PBXReferenceProxy;
808 | fileType = archive.ar;
809 | path = libRCTNetwork.a;
810 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
811 | sourceTree = BUILT_PRODUCTS_DIR;
812 | };
813 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
814 | isa = PBXReferenceProxy;
815 | fileType = archive.ar;
816 | path = libRCTVibration.a;
817 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
818 | sourceTree = BUILT_PRODUCTS_DIR;
819 | };
820 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
821 | isa = PBXReferenceProxy;
822 | fileType = archive.ar;
823 | path = libRCTSettings.a;
824 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
825 | sourceTree = BUILT_PRODUCTS_DIR;
826 | };
827 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
828 | isa = PBXReferenceProxy;
829 | fileType = archive.ar;
830 | path = libRCTWebSocket.a;
831 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
832 | sourceTree = BUILT_PRODUCTS_DIR;
833 | };
834 | 146834041AC3E56700842450 /* libReact.a */ = {
835 | isa = PBXReferenceProxy;
836 | fileType = archive.ar;
837 | path = libReact.a;
838 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
839 | sourceTree = BUILT_PRODUCTS_DIR;
840 | };
841 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = {
842 | isa = PBXReferenceProxy;
843 | fileType = archive.ar;
844 | path = "libRCTBlob-tvOS.a";
845 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */;
846 | sourceTree = BUILT_PRODUCTS_DIR;
847 | };
848 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = {
849 | isa = PBXReferenceProxy;
850 | fileType = archive.ar;
851 | path = libfishhook.a;
852 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */;
853 | sourceTree = BUILT_PRODUCTS_DIR;
854 | };
855 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = {
856 | isa = PBXReferenceProxy;
857 | fileType = archive.ar;
858 | path = "libfishhook-tvOS.a";
859 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */;
860 | sourceTree = BUILT_PRODUCTS_DIR;
861 | };
862 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = {
863 | isa = PBXReferenceProxy;
864 | fileType = archive.ar;
865 | path = libjsinspector.a;
866 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */;
867 | sourceTree = BUILT_PRODUCTS_DIR;
868 | };
869 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = {
870 | isa = PBXReferenceProxy;
871 | fileType = archive.ar;
872 | path = "libjsinspector-tvOS.a";
873 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */;
874 | sourceTree = BUILT_PRODUCTS_DIR;
875 | };
876 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = {
877 | isa = PBXReferenceProxy;
878 | fileType = archive.ar;
879 | path = "libthird-party.a";
880 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */;
881 | sourceTree = BUILT_PRODUCTS_DIR;
882 | };
883 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = {
884 | isa = PBXReferenceProxy;
885 | fileType = archive.ar;
886 | path = "libthird-party.a";
887 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */;
888 | sourceTree = BUILT_PRODUCTS_DIR;
889 | };
890 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = {
891 | isa = PBXReferenceProxy;
892 | fileType = archive.ar;
893 | path = "libdouble-conversion.a";
894 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */;
895 | sourceTree = BUILT_PRODUCTS_DIR;
896 | };
897 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = {
898 | isa = PBXReferenceProxy;
899 | fileType = archive.ar;
900 | path = "libdouble-conversion.a";
901 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */;
902 | sourceTree = BUILT_PRODUCTS_DIR;
903 | };
904 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */ = {
905 | isa = PBXReferenceProxy;
906 | fileType = archive.ar;
907 | path = libprivatedata.a;
908 | remoteRef = 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */;
909 | sourceTree = BUILT_PRODUCTS_DIR;
910 | };
911 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */ = {
912 | isa = PBXReferenceProxy;
913 | fileType = archive.ar;
914 | path = "libprivatedata-tvOS.a";
915 | remoteRef = 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */;
916 | sourceTree = BUILT_PRODUCTS_DIR;
917 | };
918 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = {
919 | isa = PBXReferenceProxy;
920 | fileType = archive.ar;
921 | path = "libRCTImage-tvOS.a";
922 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */;
923 | sourceTree = BUILT_PRODUCTS_DIR;
924 | };
925 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = {
926 | isa = PBXReferenceProxy;
927 | fileType = archive.ar;
928 | path = "libRCTLinking-tvOS.a";
929 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */;
930 | sourceTree = BUILT_PRODUCTS_DIR;
931 | };
932 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = {
933 | isa = PBXReferenceProxy;
934 | fileType = archive.ar;
935 | path = "libRCTNetwork-tvOS.a";
936 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */;
937 | sourceTree = BUILT_PRODUCTS_DIR;
938 | };
939 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = {
940 | isa = PBXReferenceProxy;
941 | fileType = archive.ar;
942 | path = "libRCTSettings-tvOS.a";
943 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */;
944 | sourceTree = BUILT_PRODUCTS_DIR;
945 | };
946 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = {
947 | isa = PBXReferenceProxy;
948 | fileType = archive.ar;
949 | path = "libRCTText-tvOS.a";
950 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */;
951 | sourceTree = BUILT_PRODUCTS_DIR;
952 | };
953 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = {
954 | isa = PBXReferenceProxy;
955 | fileType = archive.ar;
956 | path = "libRCTWebSocket-tvOS.a";
957 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */;
958 | sourceTree = BUILT_PRODUCTS_DIR;
959 | };
960 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = {
961 | isa = PBXReferenceProxy;
962 | fileType = archive.ar;
963 | path = libReact.a;
964 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */;
965 | sourceTree = BUILT_PRODUCTS_DIR;
966 | };
967 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = {
968 | isa = PBXReferenceProxy;
969 | fileType = archive.ar;
970 | path = libyoga.a;
971 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */;
972 | sourceTree = BUILT_PRODUCTS_DIR;
973 | };
974 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = {
975 | isa = PBXReferenceProxy;
976 | fileType = archive.ar;
977 | path = libyoga.a;
978 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */;
979 | sourceTree = BUILT_PRODUCTS_DIR;
980 | };
981 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = {
982 | isa = PBXReferenceProxy;
983 | fileType = archive.ar;
984 | path = libcxxreact.a;
985 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */;
986 | sourceTree = BUILT_PRODUCTS_DIR;
987 | };
988 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = {
989 | isa = PBXReferenceProxy;
990 | fileType = archive.ar;
991 | path = libcxxreact.a;
992 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */;
993 | sourceTree = BUILT_PRODUCTS_DIR;
994 | };
995 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = {
996 | isa = PBXReferenceProxy;
997 | fileType = archive.ar;
998 | path = libjschelpers.a;
999 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */;
1000 | sourceTree = BUILT_PRODUCTS_DIR;
1001 | };
1002 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = {
1003 | isa = PBXReferenceProxy;
1004 | fileType = archive.ar;
1005 | path = libjschelpers.a;
1006 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */;
1007 | sourceTree = BUILT_PRODUCTS_DIR;
1008 | };
1009 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
1010 | isa = PBXReferenceProxy;
1011 | fileType = archive.ar;
1012 | path = libRCTAnimation.a;
1013 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
1014 | sourceTree = BUILT_PRODUCTS_DIR;
1015 | };
1016 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
1017 | isa = PBXReferenceProxy;
1018 | fileType = archive.ar;
1019 | path = libRCTAnimation.a;
1020 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
1021 | sourceTree = BUILT_PRODUCTS_DIR;
1022 | };
1023 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
1024 | isa = PBXReferenceProxy;
1025 | fileType = archive.ar;
1026 | path = libRCTLinking.a;
1027 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
1028 | sourceTree = BUILT_PRODUCTS_DIR;
1029 | };
1030 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
1031 | isa = PBXReferenceProxy;
1032 | fileType = archive.ar;
1033 | path = libRCTText.a;
1034 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
1035 | sourceTree = BUILT_PRODUCTS_DIR;
1036 | };
1037 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = {
1038 | isa = PBXReferenceProxy;
1039 | fileType = archive.ar;
1040 | path = libRCTBlob.a;
1041 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */;
1042 | sourceTree = BUILT_PRODUCTS_DIR;
1043 | };
1044 | /* End PBXReferenceProxy section */
1045 |
1046 | /* Begin PBXResourcesBuildPhase section */
1047 | 00E356EC1AD99517003FC87E /* Resources */ = {
1048 | isa = PBXResourcesBuildPhase;
1049 | buildActionMask = 2147483647;
1050 | files = (
1051 | );
1052 | runOnlyForDeploymentPostprocessing = 0;
1053 | };
1054 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
1055 | isa = PBXResourcesBuildPhase;
1056 | buildActionMask = 2147483647;
1057 | files = (
1058 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
1059 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
1060 | );
1061 | runOnlyForDeploymentPostprocessing = 0;
1062 | };
1063 | 2D02E4791E0B4A5D006451C7 /* Resources */ = {
1064 | isa = PBXResourcesBuildPhase;
1065 | buildActionMask = 2147483647;
1066 | files = (
1067 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */,
1068 | );
1069 | runOnlyForDeploymentPostprocessing = 0;
1070 | };
1071 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = {
1072 | isa = PBXResourcesBuildPhase;
1073 | buildActionMask = 2147483647;
1074 | files = (
1075 | );
1076 | runOnlyForDeploymentPostprocessing = 0;
1077 | };
1078 | /* End PBXResourcesBuildPhase section */
1079 |
1080 | /* Begin PBXShellScriptBuildPhase section */
1081 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
1082 | isa = PBXShellScriptBuildPhase;
1083 | buildActionMask = 2147483647;
1084 | files = (
1085 | );
1086 | inputPaths = (
1087 | );
1088 | name = "Bundle React Native code and images";
1089 | outputPaths = (
1090 | );
1091 | runOnlyForDeploymentPostprocessing = 0;
1092 | shellPath = /bin/sh;
1093 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1094 | };
1095 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = {
1096 | isa = PBXShellScriptBuildPhase;
1097 | buildActionMask = 2147483647;
1098 | files = (
1099 | );
1100 | inputPaths = (
1101 | );
1102 | name = "Bundle React Native Code And Images";
1103 | outputPaths = (
1104 | );
1105 | runOnlyForDeploymentPostprocessing = 0;
1106 | shellPath = /bin/sh;
1107 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1108 | };
1109 | /* End PBXShellScriptBuildPhase section */
1110 |
1111 | /* Begin PBXSourcesBuildPhase section */
1112 | 00E356EA1AD99517003FC87E /* Sources */ = {
1113 | isa = PBXSourcesBuildPhase;
1114 | buildActionMask = 2147483647;
1115 | files = (
1116 | 00E356F31AD99517003FC87E /* KompotExampleTests.m in Sources */,
1117 | );
1118 | runOnlyForDeploymentPostprocessing = 0;
1119 | };
1120 | 13B07F871A680F5B00A75B9A /* Sources */ = {
1121 | isa = PBXSourcesBuildPhase;
1122 | buildActionMask = 2147483647;
1123 | files = (
1124 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
1125 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
1126 | );
1127 | runOnlyForDeploymentPostprocessing = 0;
1128 | };
1129 | 2D02E4771E0B4A5D006451C7 /* Sources */ = {
1130 | isa = PBXSourcesBuildPhase;
1131 | buildActionMask = 2147483647;
1132 | files = (
1133 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */,
1134 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */,
1135 | );
1136 | runOnlyForDeploymentPostprocessing = 0;
1137 | };
1138 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = {
1139 | isa = PBXSourcesBuildPhase;
1140 | buildActionMask = 2147483647;
1141 | files = (
1142 | 2DCD954D1E0B4F2C00145EB5 /* KompotExampleTests.m in Sources */,
1143 | );
1144 | runOnlyForDeploymentPostprocessing = 0;
1145 | };
1146 | /* End PBXSourcesBuildPhase section */
1147 |
1148 | /* Begin PBXTargetDependency section */
1149 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
1150 | isa = PBXTargetDependency;
1151 | target = 13B07F861A680F5B00A75B9A /* KompotExample */;
1152 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
1153 | };
1154 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = {
1155 | isa = PBXTargetDependency;
1156 | target = 2D02E47A1E0B4A5D006451C7 /* KompotExample-tvOS */;
1157 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */;
1158 | };
1159 | /* End PBXTargetDependency section */
1160 |
1161 | /* Begin PBXVariantGroup section */
1162 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
1163 | isa = PBXVariantGroup;
1164 | children = (
1165 | 13B07FB21A68108700A75B9A /* Base */,
1166 | );
1167 | name = LaunchScreen.xib;
1168 | path = KompotExample;
1169 | sourceTree = "";
1170 | };
1171 | /* End PBXVariantGroup section */
1172 |
1173 | /* Begin XCBuildConfiguration section */
1174 | 00E356F61AD99517003FC87E /* Debug */ = {
1175 | isa = XCBuildConfiguration;
1176 | buildSettings = {
1177 | BUNDLE_LOADER = "$(TEST_HOST)";
1178 | GCC_PREPROCESSOR_DEFINITIONS = (
1179 | "DEBUG=1",
1180 | "$(inherited)",
1181 | );
1182 | INFOPLIST_FILE = KompotExampleTests/Info.plist;
1183 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1184 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1185 | OTHER_LDFLAGS = (
1186 | "-ObjC",
1187 | "-lc++",
1188 | );
1189 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1190 | PRODUCT_NAME = "$(TARGET_NAME)";
1191 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/KompotExample.app/KompotExample";
1192 | };
1193 | name = Debug;
1194 | };
1195 | 00E356F71AD99517003FC87E /* Release */ = {
1196 | isa = XCBuildConfiguration;
1197 | buildSettings = {
1198 | BUNDLE_LOADER = "$(TEST_HOST)";
1199 | COPY_PHASE_STRIP = NO;
1200 | INFOPLIST_FILE = KompotExampleTests/Info.plist;
1201 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1202 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1203 | OTHER_LDFLAGS = (
1204 | "-ObjC",
1205 | "-lc++",
1206 | );
1207 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1208 | PRODUCT_NAME = "$(TARGET_NAME)";
1209 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/KompotExample.app/KompotExample";
1210 | };
1211 | name = Release;
1212 | };
1213 | 13B07F941A680F5B00A75B9A /* Debug */ = {
1214 | isa = XCBuildConfiguration;
1215 | buildSettings = {
1216 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1217 | CURRENT_PROJECT_VERSION = 1;
1218 | DEAD_CODE_STRIPPING = NO;
1219 | INFOPLIST_FILE = KompotExample/Info.plist;
1220 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1221 | OTHER_LDFLAGS = (
1222 | "$(inherited)",
1223 | "-ObjC",
1224 | "-lc++",
1225 | );
1226 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1227 | PRODUCT_NAME = KompotExample;
1228 | VERSIONING_SYSTEM = "apple-generic";
1229 | };
1230 | name = Debug;
1231 | };
1232 | 13B07F951A680F5B00A75B9A /* Release */ = {
1233 | isa = XCBuildConfiguration;
1234 | buildSettings = {
1235 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1236 | CURRENT_PROJECT_VERSION = 1;
1237 | INFOPLIST_FILE = KompotExample/Info.plist;
1238 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1239 | OTHER_LDFLAGS = (
1240 | "$(inherited)",
1241 | "-ObjC",
1242 | "-lc++",
1243 | );
1244 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1245 | PRODUCT_NAME = KompotExample;
1246 | VERSIONING_SYSTEM = "apple-generic";
1247 | };
1248 | name = Release;
1249 | };
1250 | 2D02E4971E0B4A5E006451C7 /* Debug */ = {
1251 | isa = XCBuildConfiguration;
1252 | buildSettings = {
1253 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1254 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1255 | CLANG_ANALYZER_NONNULL = YES;
1256 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1257 | CLANG_WARN_INFINITE_RECURSION = YES;
1258 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1259 | DEBUG_INFORMATION_FORMAT = dwarf;
1260 | ENABLE_TESTABILITY = YES;
1261 | GCC_NO_COMMON_BLOCKS = YES;
1262 | INFOPLIST_FILE = "KompotExample-tvOS/Info.plist";
1263 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1264 | OTHER_LDFLAGS = (
1265 | "-ObjC",
1266 | "-lc++",
1267 | );
1268 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.KompotExample-tvOS";
1269 | PRODUCT_NAME = "$(TARGET_NAME)";
1270 | SDKROOT = appletvos;
1271 | TARGETED_DEVICE_FAMILY = 3;
1272 | TVOS_DEPLOYMENT_TARGET = 9.2;
1273 | };
1274 | name = Debug;
1275 | };
1276 | 2D02E4981E0B4A5E006451C7 /* Release */ = {
1277 | isa = XCBuildConfiguration;
1278 | buildSettings = {
1279 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1280 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1281 | CLANG_ANALYZER_NONNULL = YES;
1282 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1283 | CLANG_WARN_INFINITE_RECURSION = YES;
1284 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1285 | COPY_PHASE_STRIP = NO;
1286 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1287 | GCC_NO_COMMON_BLOCKS = YES;
1288 | INFOPLIST_FILE = "KompotExample-tvOS/Info.plist";
1289 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1290 | OTHER_LDFLAGS = (
1291 | "-ObjC",
1292 | "-lc++",
1293 | );
1294 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.KompotExample-tvOS";
1295 | PRODUCT_NAME = "$(TARGET_NAME)";
1296 | SDKROOT = appletvos;
1297 | TARGETED_DEVICE_FAMILY = 3;
1298 | TVOS_DEPLOYMENT_TARGET = 9.2;
1299 | };
1300 | name = Release;
1301 | };
1302 | 2D02E4991E0B4A5E006451C7 /* Debug */ = {
1303 | isa = XCBuildConfiguration;
1304 | buildSettings = {
1305 | BUNDLE_LOADER = "$(TEST_HOST)";
1306 | CLANG_ANALYZER_NONNULL = YES;
1307 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1308 | CLANG_WARN_INFINITE_RECURSION = YES;
1309 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1310 | DEBUG_INFORMATION_FORMAT = dwarf;
1311 | ENABLE_TESTABILITY = YES;
1312 | GCC_NO_COMMON_BLOCKS = YES;
1313 | INFOPLIST_FILE = "KompotExample-tvOSTests/Info.plist";
1314 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1315 | OTHER_LDFLAGS = (
1316 | "-ObjC",
1317 | "-lc++",
1318 | );
1319 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.KompotExample-tvOSTests";
1320 | PRODUCT_NAME = "$(TARGET_NAME)";
1321 | SDKROOT = appletvos;
1322 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/KompotExample-tvOS.app/KompotExample-tvOS";
1323 | TVOS_DEPLOYMENT_TARGET = 10.1;
1324 | };
1325 | name = Debug;
1326 | };
1327 | 2D02E49A1E0B4A5E006451C7 /* Release */ = {
1328 | isa = XCBuildConfiguration;
1329 | buildSettings = {
1330 | BUNDLE_LOADER = "$(TEST_HOST)";
1331 | CLANG_ANALYZER_NONNULL = YES;
1332 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1333 | CLANG_WARN_INFINITE_RECURSION = YES;
1334 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1335 | COPY_PHASE_STRIP = NO;
1336 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1337 | GCC_NO_COMMON_BLOCKS = YES;
1338 | INFOPLIST_FILE = "KompotExample-tvOSTests/Info.plist";
1339 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1340 | OTHER_LDFLAGS = (
1341 | "-ObjC",
1342 | "-lc++",
1343 | );
1344 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.KompotExample-tvOSTests";
1345 | PRODUCT_NAME = "$(TARGET_NAME)";
1346 | SDKROOT = appletvos;
1347 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/KompotExample-tvOS.app/KompotExample-tvOS";
1348 | TVOS_DEPLOYMENT_TARGET = 10.1;
1349 | };
1350 | name = Release;
1351 | };
1352 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
1353 | isa = XCBuildConfiguration;
1354 | buildSettings = {
1355 | ALWAYS_SEARCH_USER_PATHS = NO;
1356 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1357 | CLANG_CXX_LIBRARY = "libc++";
1358 | CLANG_ENABLE_MODULES = YES;
1359 | CLANG_ENABLE_OBJC_ARC = YES;
1360 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
1361 | CLANG_WARN_BOOL_CONVERSION = YES;
1362 | CLANG_WARN_COMMA = YES;
1363 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1364 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
1365 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1366 | CLANG_WARN_EMPTY_BODY = YES;
1367 | CLANG_WARN_ENUM_CONVERSION = YES;
1368 | CLANG_WARN_INFINITE_RECURSION = YES;
1369 | CLANG_WARN_INT_CONVERSION = YES;
1370 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1371 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
1372 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
1373 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1374 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
1375 | CLANG_WARN_STRICT_PROTOTYPES = YES;
1376 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1377 | CLANG_WARN_UNREACHABLE_CODE = YES;
1378 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1379 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1380 | COPY_PHASE_STRIP = NO;
1381 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1382 | ENABLE_TESTABILITY = YES;
1383 | GCC_C_LANGUAGE_STANDARD = gnu99;
1384 | GCC_DYNAMIC_NO_PIC = NO;
1385 | GCC_NO_COMMON_BLOCKS = YES;
1386 | GCC_OPTIMIZATION_LEVEL = 0;
1387 | GCC_PREPROCESSOR_DEFINITIONS = (
1388 | "DEBUG=1",
1389 | "$(inherited)",
1390 | );
1391 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
1392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1394 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1396 | GCC_WARN_UNUSED_FUNCTION = YES;
1397 | GCC_WARN_UNUSED_VARIABLE = YES;
1398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1399 | MTL_ENABLE_DEBUG_INFO = YES;
1400 | ONLY_ACTIVE_ARCH = YES;
1401 | SDKROOT = iphoneos;
1402 | };
1403 | name = Debug;
1404 | };
1405 | 83CBBA211A601CBA00E9B192 /* Release */ = {
1406 | isa = XCBuildConfiguration;
1407 | buildSettings = {
1408 | ALWAYS_SEARCH_USER_PATHS = NO;
1409 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1410 | CLANG_CXX_LIBRARY = "libc++";
1411 | CLANG_ENABLE_MODULES = YES;
1412 | CLANG_ENABLE_OBJC_ARC = YES;
1413 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
1414 | CLANG_WARN_BOOL_CONVERSION = YES;
1415 | CLANG_WARN_COMMA = YES;
1416 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1417 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
1418 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1419 | CLANG_WARN_EMPTY_BODY = YES;
1420 | CLANG_WARN_ENUM_CONVERSION = YES;
1421 | CLANG_WARN_INFINITE_RECURSION = YES;
1422 | CLANG_WARN_INT_CONVERSION = YES;
1423 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1424 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
1425 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
1426 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1427 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
1428 | CLANG_WARN_STRICT_PROTOTYPES = YES;
1429 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1430 | CLANG_WARN_UNREACHABLE_CODE = YES;
1431 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1432 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1433 | COPY_PHASE_STRIP = YES;
1434 | ENABLE_NS_ASSERTIONS = NO;
1435 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1436 | GCC_C_LANGUAGE_STANDARD = gnu99;
1437 | GCC_NO_COMMON_BLOCKS = YES;
1438 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1439 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1440 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1441 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1442 | GCC_WARN_UNUSED_FUNCTION = YES;
1443 | GCC_WARN_UNUSED_VARIABLE = YES;
1444 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1445 | MTL_ENABLE_DEBUG_INFO = NO;
1446 | SDKROOT = iphoneos;
1447 | VALIDATE_PRODUCT = YES;
1448 | };
1449 | name = Release;
1450 | };
1451 | /* End XCBuildConfiguration section */
1452 |
1453 | /* Begin XCConfigurationList section */
1454 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "KompotExampleTests" */ = {
1455 | isa = XCConfigurationList;
1456 | buildConfigurations = (
1457 | 00E356F61AD99517003FC87E /* Debug */,
1458 | 00E356F71AD99517003FC87E /* Release */,
1459 | );
1460 | defaultConfigurationIsVisible = 0;
1461 | defaultConfigurationName = Release;
1462 | };
1463 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "KompotExample" */ = {
1464 | isa = XCConfigurationList;
1465 | buildConfigurations = (
1466 | 13B07F941A680F5B00A75B9A /* Debug */,
1467 | 13B07F951A680F5B00A75B9A /* Release */,
1468 | );
1469 | defaultConfigurationIsVisible = 0;
1470 | defaultConfigurationName = Release;
1471 | };
1472 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "KompotExample-tvOS" */ = {
1473 | isa = XCConfigurationList;
1474 | buildConfigurations = (
1475 | 2D02E4971E0B4A5E006451C7 /* Debug */,
1476 | 2D02E4981E0B4A5E006451C7 /* Release */,
1477 | );
1478 | defaultConfigurationIsVisible = 0;
1479 | defaultConfigurationName = Release;
1480 | };
1481 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "KompotExample-tvOSTests" */ = {
1482 | isa = XCConfigurationList;
1483 | buildConfigurations = (
1484 | 2D02E4991E0B4A5E006451C7 /* Debug */,
1485 | 2D02E49A1E0B4A5E006451C7 /* Release */,
1486 | );
1487 | defaultConfigurationIsVisible = 0;
1488 | defaultConfigurationName = Release;
1489 | };
1490 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "KompotExample" */ = {
1491 | isa = XCConfigurationList;
1492 | buildConfigurations = (
1493 | 83CBBA201A601CBA00E9B192 /* Debug */,
1494 | 83CBBA211A601CBA00E9B192 /* Release */,
1495 | );
1496 | defaultConfigurationIsVisible = 0;
1497 | defaultConfigurationName = Release;
1498 | };
1499 | /* End XCConfigurationList section */
1500 | };
1501 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
1502 | }
1503 |
--------------------------------------------------------------------------------