├── .gitignore ├── BrainJSReactNativeExampleApp ├── .watchmanconfig ├── .gitattributes ├── .babelrc ├── app.json ├── .buckconfig ├── android │ ├── app │ │ ├── src │ │ │ └── main │ │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ └── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── brainjsreactnativeexampleapp │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ └── MainApplication.java │ │ │ │ └── AndroidManifest.xml │ │ ├── proguard-rules.pro │ │ ├── BUCK │ │ └── build.gradle │ ├── keystores │ │ ├── debug.keystore.properties │ │ └── BUCK │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ ├── gradle.properties │ ├── build.gradle │ ├── gradlew.bat │ └── gradlew ├── ios │ ├── BrainJSReactNativeExampleApp │ │ ├── Images.xcassets │ │ │ ├── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── AppDelegate.h │ │ ├── main.m │ │ ├── AppDelegate.m │ │ ├── Info.plist │ │ └── Base.lproj │ │ │ └── LaunchScreen.xib │ ├── BrainJSReactNativeExampleAppTests │ │ ├── Info.plist │ │ └── BrainJSReactNativeExampleAppTests.m │ ├── BrainJSReactNativeExampleApp-tvOSTests │ │ └── Info.plist │ ├── BrainJSReactNativeExampleApp-tvOS │ │ └── Info.plist │ └── BrainJSReactNativeExampleApp.xcodeproj │ │ ├── xcshareddata │ │ └── xcschemes │ │ │ ├── BrainJSReactNativeExampleApp.xcscheme │ │ │ └── BrainJSReactNativeExampleApp-tvOS.xcscheme │ │ └── project.pbxproj ├── index.js ├── __tests__ │ ├── App.js │ ├── header.js │ ├── textresult.js │ └── classify-service.js ├── Components │ ├── header.js │ └── textresult.js ├── package.json ├── Services │ ├── classify-service.js │ └── trained-model.json ├── .gitignore ├── .flowconfig └── App.js ├── example.png ├── package.json ├── yarn.lock ├── LICENSE ├── README.md ├── trained-model.json └── index.js /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | .vscode -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrainJS/BrainJSReactNative/HEAD/example.png -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["module:metro-react-native-babel-preset"] 3 | } 4 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "BrainJSReactNativeExampleApp", 3 | "displayName": "BrainJSReactNativeExampleApp" 4 | } -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BrainJSReactNativeExampleApp 3 | 4 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleApp/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './App'; 3 | 4 | AppRegistry.registerComponent('BrainJSReactNativeExampleApp', () => App); 5 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrainJS/BrainJSReactNative/HEAD/BrainJSReactNativeExampleApp/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrainJS/BrainJSReactNative/HEAD/BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrainJS/BrainJSReactNative/HEAD/BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrainJS/BrainJSReactNative/HEAD/BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrainJS/BrainJSReactNative/HEAD/BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrainJS/BrainJSReactNative/HEAD/BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrainJS/BrainJSReactNative/HEAD/BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrainJS/BrainJSReactNative/HEAD/BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrainJS/BrainJSReactNative/HEAD/BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrainJS/BrainJSReactNative/HEAD/BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BrainJS/BrainJSReactNative/HEAD/BrainJSReactNativeExampleApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'BrainJSReactNativeExampleApp' 2 | include ':react-native-fs' 3 | project(':react-native-fs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fs/android') 4 | 5 | include ':app' 6 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip 6 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/__tests__/App.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import App from '../App'; 4 | 5 | import renderer from 'react-test-renderer'; 6 | 7 | it('renders correctly', () => { 8 | const tree = renderer.create( 9 | 10 | ); 11 | }); 12 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/__tests__/header.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Header from '../Components/header.js'; 4 | 5 | import renderer from 'react-test-renderer'; 6 | 7 | it('renders correctly', () => { 8 | const tree = renderer.create( 9 |
10 | ); 11 | }); 12 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/__tests__/textresult.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import TextResult from '../Components/textresult.js'; 4 | 5 | import renderer from 'react-test-renderer'; 6 | 7 | it('renders correctly', () => { 8 | const tree = renderer.create( 9 | 10 | ); 11 | }); 12 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "brainjsreactnative", 3 | "version": "1.1.0", 4 | "description": "React Native implentation of Brain.js", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "Justin Middler - 2018", 10 | "license": "MIT", 11 | "dependencies": { 12 | "brain.js": "^1.1.2" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleApp/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property (nonatomic, strong) UIWindow *window; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleApp/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/java/com/brainjsreactnativeexampleapp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.brainjsreactnativeexampleapp; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "BrainJSReactNativeExampleApp"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/__tests__/classify-service.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import classify from '../Services/classify-service.js' 4 | import diff from 'jest-diff' 5 | 6 | it('returns null on null input value', () => { 7 | let results = classify.classifyLyrics(null) 8 | expect(results).toBe(null) 9 | }); 10 | 11 | it('returns NaN value for incorrect lyrics', () => { 12 | let results = classify.classifyLyrics("Dummy lyrics that don't exist in trained modal.") 13 | 14 | expect(isNaN(results.LeeKernaghan)).toBe(isNaN(results.LeeKernaghan)) 15 | expect(isNaN(results.ACDC)).toBe(isNaN(results.ACDC)) 16 | }) -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/Components/header.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | Platform, 4 | StyleSheet, 5 | Text, 6 | View 7 | } from 'react-native'; 8 | 9 | export class Header extends Component { 10 | render() { 11 | return( 12 | 13 | brain.js 🤖 - React Native Example 14 | 15 | ) 16 | } 17 | } 18 | 19 | const styleSheet = StyleSheet.create({ 20 | header: { 21 | backgroundColor: "#F3DF4A", 22 | padding:"10%", 23 | flex:1, 24 | fontWeight:"bold", 25 | fontSize:16, 26 | textAlign:"center" 27 | } 28 | }) 29 | 30 | export default Header; -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "BrainJSReactNativeExampleApp", 3 | "version": "1.0.0", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "brain.js": "^1.1.2", 11 | "module": "^1.2.5", 12 | "react": "16.6.1", 13 | "react-native": "0.57.7", 14 | "react-native-fs": "^2.9.11" 15 | }, 16 | "devDependencies": { 17 | "babel-jest": "22.4.3", 18 | "babel-preset-react-native": "4.0.0", 19 | "jest": "22.4.3", 20 | "react-native-fix-xcode-10": "rhdeck/react-native-fix-xcode-10", 21 | "react-test-renderer": "^16.3.0-alpha.1" 22 | }, 23 | "jest": { 24 | "preset": "react-native" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/Services/classify-service.js: -------------------------------------------------------------------------------- 1 | const brain = require('brain.js') 2 | const json = require('./trained-model') 3 | 4 | export default classify = { 5 | 6 | classifyLyrics(inputText) { 7 | 8 | if(inputText == undefined || inputText == null) { 9 | return null; 10 | } 11 | 12 | //credit - Daniel Simmons - https://itnext.io/you-can-build-a-neural-network-in-javascript-even-if-you-dont-really-understand-neural-networks-e63e12713a3 13 | 14 | let trainedNet; 15 | 16 | var net = new brain.NeuralNetwork({ 17 | activation: 'sigmoid', 18 | hiddenLayers: [2], 19 | learningRate: 0.1 20 | }) 21 | 22 | net.fromJSON( 23 | json 24 | ); 25 | 26 | function encode(arg) { 27 | return arg.split('').map(x => (x.charCodeAt(0) / 256)); 28 | } 29 | let results = net.run(encode(inputText)); 30 | return results 31 | } 32 | } -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleApp/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/Components/textresult.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | Platform, 4 | StyleSheet, 5 | Text, 6 | View 7 | } from 'react-native'; 8 | 9 | export class TextResult extends Component { 10 | 11 | constructor(props) { 12 | super(props) 13 | } 14 | 15 | render() { 16 | return( 17 | 18 | {this.props.resultText} 19 | 20 | ) 21 | } 22 | } 23 | 24 | const styles = StyleSheet.create({ 25 | textResult:{ 26 | fontSize:16, 27 | fontWeight:"bold", 28 | textAlign:"center", 29 | paddingTop:10, 30 | paddingBottom:10 31 | } 32 | }) 33 | 34 | export default TextResult -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | acorn@^5.1.1: 6 | version "5.7.3" 7 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279" 8 | 9 | brain.js@^1.1.2: 10 | version "1.6.0" 11 | resolved "https://registry.yarnpkg.com/brain.js/-/brain.js-1.6.0.tgz#a3b40daeb7a76c6c6538d7985ec1773246ebf8d4" 12 | dependencies: 13 | gpu.js "^1.10.4" 14 | thaw.js "^2.0.0" 15 | 16 | gpu.js@^1.10.4: 17 | version "1.10.4" 18 | resolved "https://registry.yarnpkg.com/gpu.js/-/gpu.js-1.10.4.tgz#f0290dc08d40a9de7329b91f1523703cdd0a64c7" 19 | dependencies: 20 | acorn "^5.1.1" 21 | 22 | thaw.js@^2.0.0: 23 | version "2.0.0" 24 | resolved "https://registry.yarnpkg.com/thaw.js/-/thaw.js-2.0.0.tgz#452bc5d7ee2ce1b6f92037b05b506cbd656291d0" 25 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleAppTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleApp-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 brain.js 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "27.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 27 8 | targetSdkVersion = 26 9 | supportLibVersion = "27.1.1" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath 'com.android.tools.build:gradle:3.1.4' 17 | 18 | // NOTE: Do not place your application dependencies here; they belong 19 | // in the individual module build.gradle files 20 | } 21 | } 22 | 23 | allprojects { 24 | repositories { 25 | mavenLocal() 26 | google() 27 | jcenter() 28 | maven { 29 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 30 | url "$rootDir/../node_modules/react-native/android" 31 | } 32 | } 33 | } 34 | 35 | 36 | task wrapper(type: Wrapper) { 37 | gradleVersion = '4.4' 38 | distributionUrl = distributionUrl.replace("bin", "all") 39 | } 40 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/android/app/src/main/java/com/brainjsreactnativeexampleapp/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.brainjsreactnativeexampleapp; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.rnfs.RNFSPackage; 7 | import com.facebook.react.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.shell.MainReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | 12 | import java.util.Arrays; 13 | import java.util.List; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage(), 27 | new RNFSPackage() 28 | ); 29 | } 30 | 31 | @Override 32 | protected String getJSMainModuleName() { 33 | return "index"; 34 | } 35 | }; 36 | 37 | @Override 38 | public ReactNativeHost getReactNativeHost() { 39 | return mReactNativeHost; 40 | } 41 | 42 | @Override 43 | public void onCreate() { 44 | super.onCreate(); 45 | SoLoader.init(this, /* native exopackage */ false); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleApp/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 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 | 13 | @implementation AppDelegate 14 | 15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 16 | { 17 | NSURL *jsCodeLocation; 18 | 19 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 20 | 21 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 22 | moduleName:@"BrainJSReactNativeExampleApp" 23 | initialProperties:nil 24 | launchOptions:launchOptions]; 25 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 26 | 27 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 28 | UIViewController *rootViewController = [UIViewController new]; 29 | rootViewController.view = rootView; 30 | self.window.rootViewController = rootViewController; 31 | [self.window makeKeyAndVisible]; 32 | return YES; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # brain.js React Native Examples 2 | 3 | In this project, you will find an trained-model.json file as well as, a index.js file. You may use the index.js file to train new models, currently this example, is trained on 10 different Lee Kernaghan songs, and 10 different ACDC songs. The example demonstrates how a muti-layer Neural Network, is able to classify the artist, by analysing song lyrics. 4 | 5 | example 6 | 7 | # Files 8 | 9 | - index.js 10 | - trained-model.json 11 | 12 | # BrainJSReactNativeExampleApp 13 | 14 | In the above mentioned directory, you will find a working react native example app, the takes in song lyrics, and classifies them accordantly. 15 | 16 | # Setting up a new React Native project to work with brain.js 17 | 18 | 1. npm install in the main directory 19 | 2. npm install in the BrainJSReactNativeExample directory 20 | 3. navigate to the package install in your node modules folder, navigate to train-stream.js file under brain.js --> dist and remove the require statement for stream, it should look like this: 21 | 22 | var _stream = require('stream'); 23 | 24 | (don't worry about removing this, this is a dependant library for the training aspect of brain.js, but we won't be training on the user's phone, so this is not needed.) 25 | 26 | Also, remove the following line at the bottom of file, below the return statement: 27 | 28 | (_stream.Writable); 29 | 30 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleApp-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 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/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 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] 15 | lib_deps.append(':' + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.brainjsreactnativeexampleapp", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.brainjsreactnativeexampleapp", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleApp/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | BrainJSReactNativeExampleApp 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 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleAppTests/BrainJSReactNativeExampleAppTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 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 BrainJSReactNativeExampleAppTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation BrainJSReactNativeExampleAppTests 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 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/.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 | node_modules/react-native/flow-github/ 28 | 29 | [options] 30 | emoji=true 31 | 32 | esproposal.optional_chaining=enable 33 | esproposal.nullish_coalescing=enable 34 | 35 | module.system=haste 36 | module.system.haste.use_name_reducers=true 37 | # get basename 38 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' 39 | # strip .js or .js.flow suffix 40 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' 41 | # strip .ios suffix 42 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' 43 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' 44 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' 45 | module.system.haste.paths.blacklist=.*/__tests__/.* 46 | module.system.haste.paths.blacklist=.*/__mocks__/.* 47 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.* 48 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* 49 | 50 | munge_underscores=true 51 | 52 | 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' 53 | 54 | module.file_ext=.js 55 | module.file_ext=.jsx 56 | module.file_ext=.json 57 | module.file_ext=.native.js 58 | 59 | suppress_type=$FlowIssue 60 | suppress_type=$FlowFixMe 61 | suppress_type=$FlowFixMeProps 62 | suppress_type=$FlowFixMeState 63 | 64 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 65 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 66 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 67 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 68 | 69 | [version] 70 | ^0.78.0 71 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/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 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | Platform, 4 | StyleSheet, 5 | Text, 6 | View, 7 | TextInput, 8 | TouchableOpacity 9 | } from 'react-native'; 10 | import classify from './Services/classify-service.js' 11 | import Header from './Components/header.js' 12 | import TextResult from './Components/textresult.js' 13 | 14 | export default class App extends Component { 15 | 16 | constructor(props) { 17 | super(props) 18 | 19 | this.state = { 20 | LeeKernaghanResult:"", 21 | ACDCResult:"", 22 | LeeKernaghanResultColor:"lightgreen", 23 | ACDCResultColor:"red", 24 | resultShow:0 25 | } 26 | } 27 | 28 | ClassifyText = () => { 29 | 30 | let leekernaghanScore = classify.classifyLyrics(this.state.lyrics).LeeKernaghan 31 | let acdcScore = classify.classifyLyrics(this.state.lyrics).ACDC 32 | 33 | console.log(typeof(leekernaghanScore)) 34 | 35 | if(isNaN(leekernaghanScore) || isNaN(acdcScore)) { 36 | this.setState({ 37 | LeeKernaghanResult:"Unable to determine confidence level.", 38 | ACDCResult:"Unable to determine confidence level.", 39 | resultShow:100 40 | }) 41 | return; 42 | } 43 | if(Number(acdcScore) > Number(leekernaghanScore)) { 44 | this.setState({ 45 | LeeKernaghanResultColor:'red', 46 | ACDCResultColor:'lightgreen' 47 | }) 48 | } else { 49 | this.setState({ 50 | LeeKernaghanResultColor:'lightgreen', 51 | ACDCResultColor:'red' 52 | }) 53 | } 54 | 55 | this.setState({ 56 | LeeKernaghanResult:classify.classifyLyrics(this.state.lyrics).LeeKernaghan, 57 | ACDCResult:classify.classifyLyrics(this.state.lyrics).ACDC, 58 | resultShow:100 59 | }) 60 | } 61 | 62 | render() { 63 | return ( 64 | 65 |
66 | Input Lyrics: 67 | this.setState({lyrics})} 70 | multiline = {true} 71 | /> 72 | this.ClassifyText()} 75 | underlayColor='#F3DF4A'> 76 | Classify 77 | 78 | 79 | 80 | 81 | 82 | 83 | ); 84 | } 85 | } 86 | 87 | const styles = StyleSheet.create({ 88 | inputLyricsTextLable: { 89 | fontWeight:"bold", 90 | fontSize:16, 91 | textAlign:"center", 92 | marginTop:"35%", 93 | marginBottom:"5%" 94 | }, 95 | classifyBtnStyle: { 96 | marginRight:40, 97 | marginLeft:40, 98 | marginBottom:50, 99 | marginTop:10, 100 | paddingTop:10, 101 | paddingBottom:10, 102 | backgroundColor:'#F3DF4A', 103 | borderRadius:10, 104 | borderWidth: 1, 105 | borderColor: '#fff' 106 | }, 107 | classifyTextStyle: { 108 | fontSize:16, 109 | fontWeight:"bold", 110 | textAlign:"center" 111 | } 112 | }); 113 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleApp/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 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleApp.xcodeproj/xcshareddata/xcschemes/BrainJSReactNativeExampleApp.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 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleApp.xcodeproj/xcshareddata/xcschemes/BrainJSReactNativeExampleApp-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 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/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 | -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/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 | buildToolsVersion rootProject.ext.buildToolsVersion 99 | 100 | defaultConfig { 101 | applicationId "com.brainjsreactnativeexampleapp" 102 | minSdkVersion rootProject.ext.minSdkVersion 103 | targetSdkVersion rootProject.ext.targetSdkVersion 104 | versionCode 1 105 | versionName "1.0" 106 | ndk { 107 | abiFilters "armeabi-v7a", "x86" 108 | } 109 | } 110 | splits { 111 | abi { 112 | reset() 113 | enable enableSeparateBuildPerCPUArchitecture 114 | universalApk false // If true, also generate a universal APK 115 | include "armeabi-v7a", "x86" 116 | } 117 | } 118 | buildTypes { 119 | release { 120 | minifyEnabled enableProguardInReleaseBuilds 121 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 122 | } 123 | } 124 | // applicationVariants are e.g. debug, release 125 | applicationVariants.all { variant -> 126 | variant.outputs.each { output -> 127 | // For each separate APK per architecture, set a unique version code as described here: 128 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 129 | def versionCodes = ["armeabi-v7a":1, "x86":2] 130 | def abi = output.getFilter(OutputFile.ABI) 131 | if (abi != null) { // null for the universal-debug, universal-release variants 132 | output.versionCodeOverride = 133 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 134 | } 135 | } 136 | } 137 | } 138 | 139 | dependencies { 140 | <<<<<<< ours 141 | compile project(':react-native-fs') 142 | compile fileTree(dir: "libs", include: ["*.jar"]) 143 | compile "com.android.support:appcompat-v7:23.0.1" 144 | compile "com.facebook.react:react-native:+" // From node_modules 145 | ======= 146 | implementation fileTree(dir: "libs", include: ["*.jar"]) 147 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" 148 | implementation "com.facebook.react:react-native:+" // From node_modules 149 | >>>>>>> theirs 150 | } 151 | 152 | // Run this once to be able to run the application with BUCK 153 | // puts all compile dependencies into folder libs for BUCK to use 154 | task copyDownloadableDepsToLibs(type: Copy) { 155 | from configurations.compile 156 | into 'libs' 157 | } 158 | -------------------------------------------------------------------------------- /trained-model.json: -------------------------------------------------------------------------------- 1 | {"sizes":[128,2,2],"layers":[{"0":{},"1":{},"2":{},"3":{},"4":{},"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{},"23":{},"24":{},"25":{},"26":{},"27":{},"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{},"38":{},"39":{},"40":{},"41":{},"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{},"50":{},"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{},"58":{},"59":{},"60":{},"61":{},"62":{},"63":{},"64":{},"65":{},"66":{},"67":{},"68":{},"69":{},"70":{},"71":{},"72":{},"73":{},"74":{},"75":{},"76":{},"77":{},"78":{},"79":{},"80":{},"81":{},"82":{},"83":{},"84":{},"85":{},"86":{},"87":{},"88":{},"89":{},"90":{},"91":{},"92":{},"93":{},"94":{},"95":{},"96":{},"97":{},"98":{},"99":{},"100":{},"101":{},"102":{},"103":{},"104":{},"105":{},"106":{},"107":{},"108":{},"109":{},"110":{},"111":{},"112":{},"113":{},"114":{},"115":{},"116":{},"117":{},"118":{},"119":{},"120":{},"121":{},"122":{},"123":{},"124":{},"125":{},"126":{},"127":{}},{"0":{"bias":-0.28148362040519714,"weights":{"0":0.036937862634658813,"1":0.18222884833812714,"2":0.7309066653251648,"3":0.49160483479499817,"4":-0.5559438467025757,"5":-0.5973740220069885,"6":0.48528996109962463,"7":-0.5760040283203125,"8":0.15258614718914032,"9":-0.5852088928222656,"10":0.3845518231391907,"11":-0.3491799235343933,"12":0.08316940069198608,"13":-0.34480899572372437,"14":-0.644193172454834,"15":0.14706145226955414,"16":0.2297254204750061,"17":0.39315590262413025,"18":-0.4871632754802704,"19":-0.5533908009529114,"20":0.05314049869775772,"21":-0.5179372429847717,"22":-0.9280021786689758,"23":-0.07371095567941666,"24":-0.5743036270141602,"25":0.3554086685180664,"26":-0.5424438118934631,"27":0.1169728934764862,"28":0.33647629618644714,"29":-0.6836775541305542,"30":0.13583239912986755,"31":-0.8025898337364197,"32":-0.10789133608341217,"33":-0.11893875896930695,"34":-0.13256743550300598,"35":0.8877681493759155,"36":1.4356558322906494,"37":1.889509677886963,"38":0.983818531036377,"39":0.8121741414070129,"40":1.4469881057739258,"41":0.6826395392417908,"42":0.8320733904838562,"43":-0.05671755596995354,"44":-0.5072218179702759,"45":-0.8445789813995361,"46":-0.8379156589508057,"47":0.8070706725120544,"48":-0.37958788871765137,"49":0.320944607257843,"50":-0.4736121892929077,"51":-0.1680983453989029,"52":-0.5713739395141602,"53":-0.11055713891983032,"54":0.08241155743598938,"55":0.22396746277809143,"56":0.1399054378271103,"57":-0.9315372109413147,"58":-0.25943440198898315,"59":-0.17938321828842163,"60":0.8222255706787109,"61":-0.49666979908943176,"62":-0.3720160722732544,"63":0.18575124442577362,"64":-0.022158430889248848,"65":-0.16592943668365479,"66":0.5770924091339111,"67":0.45575493574142456,"68":-0.5892717242240906,"69":-0.1523859053850174,"70":-0.16246238350868225,"71":0.20844832062721252,"72":-0.2136213630437851,"73":0.153020977973938,"74":-0.08346564322710037,"75":0.47943899035453796,"76":-0.2288874387741089,"77":0.2172168493270874,"78":0.7146068811416626,"79":-0.3734821677207947,"80":0.19378554821014404,"81":1.1299268007278442,"82":-0.27885136008262634,"83":0.47365784645080566,"84":0.8814099431037903,"85":0.5496079921722412,"86":0.8155873417854309,"87":-0.016848472878336906,"88":0.4390151798725128,"89":-0.11313873529434204,"90":-0.17416031658649445,"91":0.4231741428375244,"92":-0.025656813755631447,"93":0.11713723093271255,"94":-0.48880285024642944,"95":-0.2870616018772125,"96":-0.5619757175445557,"97":-0.09919250756502151,"98":-0.5613528490066528,"99":0.03896789252758026,"100":1.2941094636917114,"101":-0.1641259491443634,"102":0.20389163494110107,"103":-0.29247111082077026,"104":-1.10527765750885,"105":-0.7639122605323792,"106":-0.2835024297237396,"107":-0.3875943422317505,"108":0.646550714969635,"109":0.36229389905929565,"110":0.21935464441776276,"111":0.42487290501594543,"112":1.3258894681930542,"113":0.6390309929847717,"114":0.8679033517837524,"115":0.531962513923645,"116":0.5718980431556702,"117":-0.5754119157791138,"118":-0.38459980487823486,"119":0.2178208976984024,"120":0.016698792576789856,"121":-0.508391797542572,"122":-0.2867525815963745,"123":0.16846120357513428,"124":0.6386380791664124,"125":-0.621825098991394,"126":-0.7554929852485657,"127":-1.102302074432373}},"1":{"bias":-0.033805303275585175,"weights":{"0":0.04991816729307175,"1":0.1632000207901001,"2":0.35315608978271484,"3":0.14731574058532715,"4":-0.6044971346855164,"5":-0.3748462498188019,"6":0.045973289757966995,"7":-0.3393093943595886,"8":0.16710670292377472,"9":-0.35418835282325745,"10":0.17405004799365997,"11":-0.3358473777770996,"12":0.20071658492088318,"13":-0.11890295147895813,"14":-0.3081445097923279,"15":0.35605165362358093,"16":0.38146376609802246,"17":0.12410253286361694,"18":-0.2416120171546936,"19":-0.534307062625885,"20":0.36717844009399414,"21":-0.21507036685943604,"22":-0.6360167264938354,"23":-0.22905346751213074,"24":-0.30228832364082336,"25":0.25459685921669006,"26":-0.14671002328395844,"27":-0.13407613337039948,"28":0.0696864128112793,"29":-0.4347259998321533,"30":0.23641762137413025,"31":-0.38182565569877625,"32":-0.06286673247814178,"33":-0.1738964319229126,"34":-0.15143823623657227,"35":0.5969495177268982,"36":0.8317095637321472,"37":1.0921412706375122,"38":0.8231159448623657,"39":0.4366931915283203,"40":0.8703376650810242,"41":0.38400328159332275,"42":0.6967756152153015,"43":0.059382010251283646,"44":-0.35260942578315735,"45":-0.3341926038265228,"46":-0.5227197408676147,"47":0.3978938162326813,"48":-0.4604746997356415,"49":0.4501049518585205,"50":-0.24893267452716827,"51":-0.29644155502319336,"52":-0.120613232254982,"53":0.08601179718971252,"54":0.05008135735988617,"55":0.13585051894187927,"56":-0.020126240327954292,"57":-0.6016332507133484,"58":-0.06953352689743042,"59":-0.12329818308353424,"60":0.29283788800239563,"61":-0.20626603066921234,"62":-0.0723239853978157,"63":0.048262208700180054,"64":-0.22013913094997406,"65":-0.313029944896698,"66":0.1567477136850357,"67":0.34620535373687744,"68":-0.3695380687713623,"69":0.17819368839263916,"70":-0.04549967497587204,"71":0.3471251130104065,"72":-0.023420248180627823,"73":-0.11277452856302261,"74":-0.0935572162270546,"75":0.2060902714729309,"76":-0.36875030398368835,"77":0.019505467265844345,"78":0.6064526438713074,"79":-0.45861107110977173,"80":0.2984919250011444,"81":0.4912125766277313,"82":-0.2842206656932831,"83":0.3632553517818451,"84":0.7514832615852356,"85":0.32403531670570374,"86":0.46933743357658386,"87":-0.16864793002605438,"88":0.09904853999614716,"89":-0.0802607461810112,"90":-0.09586764872074127,"91":0.11653418093919754,"92":-0.21017251908779144,"93":0.12517422437667847,"94":-0.19181618094444275,"95":-0.10080953687429428,"96":-0.48649972677230835,"97":-0.19762344658374786,"98":-0.18073958158493042,"99":0.0011417403584346175,"100":0.7572488188743591,"101":-0.16595672070980072,"102":0.2824294865131378,"103":-0.40494778752326965,"104":-0.5351976156234741,"105":-0.5976487994194031,"106":-0.2796769440174103,"107":-0.10271371901035309,"108":0.6216902136802673,"109":0.03458533063530922,"110":0.20306754112243652,"111":0.23657181859016418,"112":0.5630539655685425,"113":0.3274742364883423,"114":0.28078165650367737,"115":0.532224178314209,"116":0.4478221833705902,"117":-0.36018800735473633,"118":-0.025552991777658463,"119":0.3745820224285126,"120":-0.1452966183423996,"121":-0.32301416993141174,"122":-0.4034287929534912,"123":0.007903468795120716,"124":0.32941657304763794,"125":-0.45009365677833557,"126":-0.5504645109176636,"127":-0.4940376281738281}}},{"ACDC":{"bias":3.400303363800049,"weights":{"0":-5.444997310638428,"1":-2.5368616580963135}},"LeeKernaghan":{"bias":-3.398380756378174,"weights":{"0":5.522157669067383,"1":2.449432611465454}}}],"outputLookup":true,"inputLookup":false,"activation":"sigmoid","trainOpts":{"iterations":20000,"errorThresh":0.001,"log":true,"logPeriod":1,"learningRate":0.1,"momentum":0.1,"callbackPeriod":10}} -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/Services/trained-model.json: -------------------------------------------------------------------------------- 1 | {"sizes":[128,2,2],"layers":[{"0":{},"1":{},"2":{},"3":{},"4":{},"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{},"23":{},"24":{},"25":{},"26":{},"27":{},"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{},"38":{},"39":{},"40":{},"41":{},"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{},"50":{},"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{},"58":{},"59":{},"60":{},"61":{},"62":{},"63":{},"64":{},"65":{},"66":{},"67":{},"68":{},"69":{},"70":{},"71":{},"72":{},"73":{},"74":{},"75":{},"76":{},"77":{},"78":{},"79":{},"80":{},"81":{},"82":{},"83":{},"84":{},"85":{},"86":{},"87":{},"88":{},"89":{},"90":{},"91":{},"92":{},"93":{},"94":{},"95":{},"96":{},"97":{},"98":{},"99":{},"100":{},"101":{},"102":{},"103":{},"104":{},"105":{},"106":{},"107":{},"108":{},"109":{},"110":{},"111":{},"112":{},"113":{},"114":{},"115":{},"116":{},"117":{},"118":{},"119":{},"120":{},"121":{},"122":{},"123":{},"124":{},"125":{},"126":{},"127":{}},{"0":{"bias":-0.28148362040519714,"weights":{"0":0.036937862634658813,"1":0.18222884833812714,"2":0.7309066653251648,"3":0.49160483479499817,"4":-0.5559438467025757,"5":-0.5973740220069885,"6":0.48528996109962463,"7":-0.5760040283203125,"8":0.15258614718914032,"9":-0.5852088928222656,"10":0.3845518231391907,"11":-0.3491799235343933,"12":0.08316940069198608,"13":-0.34480899572372437,"14":-0.644193172454834,"15":0.14706145226955414,"16":0.2297254204750061,"17":0.39315590262413025,"18":-0.4871632754802704,"19":-0.5533908009529114,"20":0.05314049869775772,"21":-0.5179372429847717,"22":-0.9280021786689758,"23":-0.07371095567941666,"24":-0.5743036270141602,"25":0.3554086685180664,"26":-0.5424438118934631,"27":0.1169728934764862,"28":0.33647629618644714,"29":-0.6836775541305542,"30":0.13583239912986755,"31":-0.8025898337364197,"32":-0.10789133608341217,"33":-0.11893875896930695,"34":-0.13256743550300598,"35":0.8877681493759155,"36":1.4356558322906494,"37":1.889509677886963,"38":0.983818531036377,"39":0.8121741414070129,"40":1.4469881057739258,"41":0.6826395392417908,"42":0.8320733904838562,"43":-0.05671755596995354,"44":-0.5072218179702759,"45":-0.8445789813995361,"46":-0.8379156589508057,"47":0.8070706725120544,"48":-0.37958788871765137,"49":0.320944607257843,"50":-0.4736121892929077,"51":-0.1680983453989029,"52":-0.5713739395141602,"53":-0.11055713891983032,"54":0.08241155743598938,"55":0.22396746277809143,"56":0.1399054378271103,"57":-0.9315372109413147,"58":-0.25943440198898315,"59":-0.17938321828842163,"60":0.8222255706787109,"61":-0.49666979908943176,"62":-0.3720160722732544,"63":0.18575124442577362,"64":-0.022158430889248848,"65":-0.16592943668365479,"66":0.5770924091339111,"67":0.45575493574142456,"68":-0.5892717242240906,"69":-0.1523859053850174,"70":-0.16246238350868225,"71":0.20844832062721252,"72":-0.2136213630437851,"73":0.153020977973938,"74":-0.08346564322710037,"75":0.47943899035453796,"76":-0.2288874387741089,"77":0.2172168493270874,"78":0.7146068811416626,"79":-0.3734821677207947,"80":0.19378554821014404,"81":1.1299268007278442,"82":-0.27885136008262634,"83":0.47365784645080566,"84":0.8814099431037903,"85":0.5496079921722412,"86":0.8155873417854309,"87":-0.016848472878336906,"88":0.4390151798725128,"89":-0.11313873529434204,"90":-0.17416031658649445,"91":0.4231741428375244,"92":-0.025656813755631447,"93":0.11713723093271255,"94":-0.48880285024642944,"95":-0.2870616018772125,"96":-0.5619757175445557,"97":-0.09919250756502151,"98":-0.5613528490066528,"99":0.03896789252758026,"100":1.2941094636917114,"101":-0.1641259491443634,"102":0.20389163494110107,"103":-0.29247111082077026,"104":-1.10527765750885,"105":-0.7639122605323792,"106":-0.2835024297237396,"107":-0.3875943422317505,"108":0.646550714969635,"109":0.36229389905929565,"110":0.21935464441776276,"111":0.42487290501594543,"112":1.3258894681930542,"113":0.6390309929847717,"114":0.8679033517837524,"115":0.531962513923645,"116":0.5718980431556702,"117":-0.5754119157791138,"118":-0.38459980487823486,"119":0.2178208976984024,"120":0.016698792576789856,"121":-0.508391797542572,"122":-0.2867525815963745,"123":0.16846120357513428,"124":0.6386380791664124,"125":-0.621825098991394,"126":-0.7554929852485657,"127":-1.102302074432373}},"1":{"bias":-0.033805303275585175,"weights":{"0":0.04991816729307175,"1":0.1632000207901001,"2":0.35315608978271484,"3":0.14731574058532715,"4":-0.6044971346855164,"5":-0.3748462498188019,"6":0.045973289757966995,"7":-0.3393093943595886,"8":0.16710670292377472,"9":-0.35418835282325745,"10":0.17405004799365997,"11":-0.3358473777770996,"12":0.20071658492088318,"13":-0.11890295147895813,"14":-0.3081445097923279,"15":0.35605165362358093,"16":0.38146376609802246,"17":0.12410253286361694,"18":-0.2416120171546936,"19":-0.534307062625885,"20":0.36717844009399414,"21":-0.21507036685943604,"22":-0.6360167264938354,"23":-0.22905346751213074,"24":-0.30228832364082336,"25":0.25459685921669006,"26":-0.14671002328395844,"27":-0.13407613337039948,"28":0.0696864128112793,"29":-0.4347259998321533,"30":0.23641762137413025,"31":-0.38182565569877625,"32":-0.06286673247814178,"33":-0.1738964319229126,"34":-0.15143823623657227,"35":0.5969495177268982,"36":0.8317095637321472,"37":1.0921412706375122,"38":0.8231159448623657,"39":0.4366931915283203,"40":0.8703376650810242,"41":0.38400328159332275,"42":0.6967756152153015,"43":0.059382010251283646,"44":-0.35260942578315735,"45":-0.3341926038265228,"46":-0.5227197408676147,"47":0.3978938162326813,"48":-0.4604746997356415,"49":0.4501049518585205,"50":-0.24893267452716827,"51":-0.29644155502319336,"52":-0.120613232254982,"53":0.08601179718971252,"54":0.05008135735988617,"55":0.13585051894187927,"56":-0.020126240327954292,"57":-0.6016332507133484,"58":-0.06953352689743042,"59":-0.12329818308353424,"60":0.29283788800239563,"61":-0.20626603066921234,"62":-0.0723239853978157,"63":0.048262208700180054,"64":-0.22013913094997406,"65":-0.313029944896698,"66":0.1567477136850357,"67":0.34620535373687744,"68":-0.3695380687713623,"69":0.17819368839263916,"70":-0.04549967497587204,"71":0.3471251130104065,"72":-0.023420248180627823,"73":-0.11277452856302261,"74":-0.0935572162270546,"75":0.2060902714729309,"76":-0.36875030398368835,"77":0.019505467265844345,"78":0.6064526438713074,"79":-0.45861107110977173,"80":0.2984919250011444,"81":0.4912125766277313,"82":-0.2842206656932831,"83":0.3632553517818451,"84":0.7514832615852356,"85":0.32403531670570374,"86":0.46933743357658386,"87":-0.16864793002605438,"88":0.09904853999614716,"89":-0.0802607461810112,"90":-0.09586764872074127,"91":0.11653418093919754,"92":-0.21017251908779144,"93":0.12517422437667847,"94":-0.19181618094444275,"95":-0.10080953687429428,"96":-0.48649972677230835,"97":-0.19762344658374786,"98":-0.18073958158493042,"99":0.0011417403584346175,"100":0.7572488188743591,"101":-0.16595672070980072,"102":0.2824294865131378,"103":-0.40494778752326965,"104":-0.5351976156234741,"105":-0.5976487994194031,"106":-0.2796769440174103,"107":-0.10271371901035309,"108":0.6216902136802673,"109":0.03458533063530922,"110":0.20306754112243652,"111":0.23657181859016418,"112":0.5630539655685425,"113":0.3274742364883423,"114":0.28078165650367737,"115":0.532224178314209,"116":0.4478221833705902,"117":-0.36018800735473633,"118":-0.025552991777658463,"119":0.3745820224285126,"120":-0.1452966183423996,"121":-0.32301416993141174,"122":-0.4034287929534912,"123":0.007903468795120716,"124":0.32941657304763794,"125":-0.45009365677833557,"126":-0.5504645109176636,"127":-0.4940376281738281}}},{"ACDC":{"bias":3.400303363800049,"weights":{"0":-5.444997310638428,"1":-2.5368616580963135}},"LeeKernaghan":{"bias":-3.398380756378174,"weights":{"0":5.522157669067383,"1":2.449432611465454}}}],"outputLookup":true,"inputLookup":false,"activation":"sigmoid","trainOpts":{"iterations":20000,"errorThresh":0.001,"log":true,"logPeriod":1,"learningRate":0.1,"momentum":0.1,"callbackPeriod":10}} -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const brain = require('brain.js'); 2 | const fs = require('fs'); 3 | 4 | var net = new brain.NeuralNetwork({ 5 | activation: 'sigmoid', 6 | hiddenLayers: [2], 7 | learningRate: 0.1 8 | }); 9 | net.fromJSON( 10 | JSON.parse( 11 | fs.readFileSync("trained-model.json").toString() 12 | ) 13 | ) 14 | 15 | const trainingData = [ 16 | { 17 | input: `Up in the morning and out to school 18 | The teacher is teaching the golden rule 19 | American history and practical maths`, 20 | output: { ACDC: 1 } 21 | },{ 22 | input: `I'm dirty, mean, and mighty unclean 23 | I'm a wanted man 24 | Public enemy number one 25 | Understand? 26 | So lock up your daughter 27 | Lock up your wife 28 | Lock up your back door 29 | And run for your life 30 | The man is back in town 31 | So don't you mess me 'round 32 | 'Cause I'm T.N.T. I'm dynamite 33 | (T.N.T.) and I'll win the fight 34 | (T.N.T.) I'm a power load 35 | (T.N.T.) watch me explode`, 36 | output: { ACDC: 1 } 37 | },{ 38 | input: `My Daddy was workin' nine to five 39 | When my Momma was havin' me 40 | By the time I was half alive 41 | They knew what I was gonna be 42 | But I left school and grew my hair 43 | They didn't understand 44 | They wanted me to be respected as 45 | A doctor or a lawyer man 46 | (But I had other plans) 47 | Gonna be a rock 'n' roll singer 48 | Gonna be a rock 'n' roll star 49 | Gonna be a rock 'n' roll singer 50 | I'm gonna be a rock 'n' roll, 51 | A rock 'n' roll star`, 52 | output: { ACDC: 1 } 53 | },{ 54 | input: `Ridin' down the highway 55 | Goin' to a show 56 | Stop in all the byways 57 | Playin' rock 'n' roll 58 | Gettin' robbed 59 | Gettin' stoned 60 | Gettin' beat up 61 | Broken boned 62 | Gettin' had 63 | Gettin' took 64 | I tell you folks 65 | It's harder than it looks 66 | It's a long way to the top if you wanna rock 'n' roll 67 | It's a long way to the top if you wanna rock 'n' roll 68 | If you think it's easy doin' one night stands 69 | Try playin' in a rock roll band 70 | It's a long way to the top if you wanna rock 'n' roll`, 71 | output: { ACDC: 1 } 72 | },{ 73 | input: `There was nothin? going on in this old town 74 | Just one street and the shop's shut down 75 | The sun has come the grass is dry 76 | You came kicking up dust as you rolled by 77 | With tangled hair and spirit free 78 | Something stirred inside of me 79 | You rock you rock a country world 80 | And you roll me in your loving ways 81 | And you shook you shook the stoney ground 82 | Go girl 83 | You rock my world`, 84 | output: { LeeKernaghan: 1 } 85 | },{ 86 | input: `Billy was a drover 87 | He lived out on the three chain road 88 | Fell in love with Mary and they married 89 | She made his shack a home 90 | He drove them off to Queensland 91 | And it hurt to have to leave her on her own 92 | But she promised she'd be waiting 93 | When he brought the cattle home 94 | There's a lonesome wind blowing down 95 | The three chain road tonight 96 | It's sending out a warning as she moans 97 | Billy don't go riding down 98 | The three chain road tonight 99 | The wind is crying Billy please don't go`, 100 | output: { LeeKernaghan: 1 } 101 | },{ 102 | input: `its a plume of dust down an old dirt road 103 | and hanging off the rails at the rodeo 104 | a back verandah with creaking boards 105 | and the dark range of a thunderstorm 106 | its the stockmans bar at an old bush pub 107 | and chasing mickey's though the scrub 108 | its planting seeds and praying for rain 109 | and the red dust runing through your veins 110 | its the way it is, its the way it goes 111 | when my wheels hit the gravel road it feels like home 112 | its the way of life, its the life i live 113 | and im right where i want to be 114 | thats the way it is 115 | `, 116 | output: { LeeKernaghan: 1 } 117 | },{ 118 | input: `Works a 12 hour day from sun up til sun down 119 | he's doing what he can to make the wheels go round 120 | in a shed down the track he knows how to bend his back 121 | he's the soul of the earth he's got a heart of gold 122 | he's a member of the out back club 123 | he don't back down and he dont give up 124 | he's living in the land he loves 125 | born and raised he's a member of the outback club 126 | she rides the boundry fences with the blokes 127 | she's a match for any man alive when she works the mob 128 | before the job is done theres another just begun 129 | a kinda woman any man'd be proud of`, 130 | output: { LeeKernaghan: 1 } 131 | },{ 132 | input: `Well life in the scrub is kinda laid back 133 | aint much a young ringer like me cant hack 134 | got a four wheel drive and a red dust track 135 | thank god I'm a country boy 136 | Well working on the land never bothered me 137 | im a strong hard lad from a big country 138 | way out here is where I ever want to be 139 | thank god I'm a country boy 140 | Spend all week long working in the sun 141 | when i get a little time im going to have some fun 142 | im a laid back beer-drinking Australian 143 | thank god I'm a country boy`, 144 | output: {LeeKernaghan: 1 } 145 | },{ 146 | input: `He'd Brycreamed his hair and straightened his tie 147 | When he walked out the dorr he'd kiss his mother goodbye 148 | He's got the keys to his father's FJ 149 | He's taking out Jenny it's their first date 150 | He knocks on her door and he can hear his heart pound 151 | Her father appears and looks him up and down 152 | He said 'Jen won't be long so you'd better come in' 153 | And he waits on the couch, flowers in his hand`, 154 | output: { LeeKernaghan: 1 } 155 | },{ 156 | input: `The black soil plains 157 | The line scorched and grey 158 | The stock is lean and rough 159 | It's another long and breathless day 160 | And the rain wont come 161 | And you just keep 162 | Holding on to hope 163 | Your spirit's bent and broke 164 | And all that's left is pride 165 | To work this restless land 166 | Takes the kind of man 167 | Who'll give it one more try 168 | Backing your faith and trust 169 | In a handful of dust`, 170 | output: { LeeKernaghan: 1 } 171 | },{ 172 | input: `Boys from the bush 173 | Been shearing sheep, we been mustering stock 174 | We been culling out roos, we been spraying the crops 175 | We've been droving cattle up an old stock route 176 | Now its Saturday night, we pile in the ute 177 | We're the boys from the bush and we're back in town 178 | Well the dogs in the back and the foot goes down 179 | We're life members of the outback club 180 | We're the boys from the bush come in from the scrub 181 | Been out in the heat, we been loading the trucks 182 | Been fixing fences, we been choking on dust 183 | We curse the raaaaaaain we curse the drought 184 | Now its Saturday night and we're all in the shout`, 185 | output: { LeeKernaghan: 1 } 186 | },{ 187 | input: `These hands can turn timber 188 | Into good stockyard rails 189 | This back knows the burden of toil 190 | Between fixing up fences 191 | And falling behind 192 | Well I reckon 193 | I've been through it all 194 | Never knew I had feelings like this 195 | So much can change with a kiss 196 | And it's just me and you 197 | And the Goondiwindi Moon 198 | All at once the world is standing still 199 | With the moonlight in your hair 200 | And the softness of your skin 201 | Taking me somewhere I've never been 202 | Goondiwindi Moon 203 | `, 204 | output: { LeeKernaghan: 1 } 205 | },{ 206 | input: `From the Gulf down to Rocky 207 | And Isa in the west 208 | It's an unforgiving country 209 | It brings out the best 210 | We'll all join together 211 | And then we'll sing the pride? 212 | When from out of Northern Queensland 213 | The cowboys ride... 214 | Com'on the Cowboys "Com' On" 215 | Com'on the cowboys "Com' On" 216 | Raising the banner "Com' On" 217 | Of the blue and the grey 218 | Com'on the cowboys, "Com' On" 219 | We'll give them hell boys "Com'On" 220 | Play for the glory "come On" 221 | Of the blue and the grey`, 222 | output: { LeeKernaghan: 1 } 223 | } 224 | ] 225 | 226 | //credit - Daniel Simmons - https://itnext.io/you-can-build-a-neural-network-in-javascript-even-if-you-dont-really-understand-neural-networks-e63e12713a3 227 | let trainedNet; 228 | 229 | function encode(arg) { 230 | return arg.split('').map(x => (x.charCodeAt(0) / 256)); 231 | } 232 | 233 | function processTrainingData(data) { 234 | return data.map(d => { 235 | return { 236 | input: encode(d.input), 237 | output: d.output 238 | } 239 | }) 240 | } 241 | 242 | // net.train(processTrainingData(trainingData),{ 243 | // logPeriod:1, 244 | // log:true, 245 | // errorThresh: 0.001 246 | // }); 247 | 248 | let results = net.run(encode(`From the Gulf down to Rocky 249 | And Isa in the west 250 | It's an unforgiving country 251 | It brings out the best 252 | We'll all join together 253 | And then we'll sing the pride?`)); 254 | 255 | console.log(results) 256 | 257 | //Write trained model to disk 258 | 259 | var json = net.toJSON() 260 | fs.writeFileSync("trained-model.json", JSON.stringify(json)); -------------------------------------------------------------------------------- /BrainJSReactNativeExampleApp/ios/BrainJSReactNativeExampleApp.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 /* BrainJSReactNativeExampleAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* BrainJSReactNativeExampleAppTests.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 /* BrainJSReactNativeExampleAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* BrainJSReactNativeExampleAppTests.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 | CC53D4EF4A52481E8C0E0750 /* libRNFS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2CB4B0C036E9463D9BDA5994 /* libRNFS.a */; }; 42 | /* End PBXBuildFile section */ 43 | 44 | /* Begin PBXContainerItemProxy section */ 45 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 46 | isa = PBXContainerItemProxy; 47 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 48 | proxyType = 2; 49 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 50 | remoteInfo = RCTActionSheet; 51 | }; 52 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 53 | isa = PBXContainerItemProxy; 54 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 55 | proxyType = 2; 56 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 57 | remoteInfo = RCTGeolocation; 58 | }; 59 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 60 | isa = PBXContainerItemProxy; 61 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 62 | proxyType = 2; 63 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 64 | remoteInfo = RCTImage; 65 | }; 66 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 67 | isa = PBXContainerItemProxy; 68 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 69 | proxyType = 2; 70 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 71 | remoteInfo = RCTNetwork; 72 | }; 73 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 74 | isa = PBXContainerItemProxy; 75 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 76 | proxyType = 2; 77 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 78 | remoteInfo = RCTVibration; 79 | }; 80 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 81 | isa = PBXContainerItemProxy; 82 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 83 | proxyType = 1; 84 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 85 | remoteInfo = BrainJSReactNativeExampleApp; 86 | }; 87 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 88 | isa = PBXContainerItemProxy; 89 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 90 | proxyType = 2; 91 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 92 | remoteInfo = RCTSettings; 93 | }; 94 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 95 | isa = PBXContainerItemProxy; 96 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 97 | proxyType = 2; 98 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 99 | remoteInfo = RCTWebSocket; 100 | }; 101 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 102 | isa = PBXContainerItemProxy; 103 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 104 | proxyType = 2; 105 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 106 | remoteInfo = React; 107 | }; 108 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 109 | isa = PBXContainerItemProxy; 110 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 111 | proxyType = 1; 112 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 113 | remoteInfo = "BrainJSReactNativeExampleApp-tvOS"; 114 | }; 115 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 116 | isa = PBXContainerItemProxy; 117 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 118 | proxyType = 2; 119 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 120 | remoteInfo = "RCTBlob-tvOS"; 121 | }; 122 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 123 | isa = PBXContainerItemProxy; 124 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 125 | proxyType = 2; 126 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 127 | remoteInfo = fishhook; 128 | }; 129 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 130 | isa = PBXContainerItemProxy; 131 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 132 | proxyType = 2; 133 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 134 | remoteInfo = "fishhook-tvOS"; 135 | }; 136 | 381468F421BB316700E633DE /* PBXContainerItemProxy */ = { 137 | isa = PBXContainerItemProxy; 138 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 139 | proxyType = 2; 140 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 141 | remoteInfo = jsinspector; 142 | }; 143 | 381468F621BB316700E633DE /* PBXContainerItemProxy */ = { 144 | isa = PBXContainerItemProxy; 145 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 146 | proxyType = 2; 147 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 148 | remoteInfo = "jsinspector-tvOS"; 149 | }; 150 | 381468F821BB316700E633DE /* PBXContainerItemProxy */ = { 151 | isa = PBXContainerItemProxy; 152 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 153 | proxyType = 2; 154 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 155 | remoteInfo = "third-party"; 156 | }; 157 | 381468FA21BB316700E633DE /* PBXContainerItemProxy */ = { 158 | isa = PBXContainerItemProxy; 159 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 160 | proxyType = 2; 161 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 162 | remoteInfo = "third-party-tvOS"; 163 | }; 164 | 381468FC21BB316700E633DE /* PBXContainerItemProxy */ = { 165 | isa = PBXContainerItemProxy; 166 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 167 | proxyType = 2; 168 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 169 | remoteInfo = "double-conversion"; 170 | }; 171 | 381468FE21BB316700E633DE /* PBXContainerItemProxy */ = { 172 | isa = PBXContainerItemProxy; 173 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 174 | proxyType = 2; 175 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 176 | remoteInfo = "double-conversion-tvOS"; 177 | }; 178 | 3814690021BB316700E633DE /* PBXContainerItemProxy */ = { 179 | isa = PBXContainerItemProxy; 180 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 181 | proxyType = 2; 182 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; 183 | remoteInfo = privatedata; 184 | }; 185 | 3814690221BB316700E633DE /* PBXContainerItemProxy */ = { 186 | isa = PBXContainerItemProxy; 187 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 188 | proxyType = 2; 189 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; 190 | remoteInfo = "privatedata-tvOS"; 191 | }; 192 | 3814690621BB316700E633DE /* PBXContainerItemProxy */ = { 193 | isa = PBXContainerItemProxy; 194 | containerPortal = CACA83ECE9804DA8BD626259 /* RNFS.xcodeproj */; 195 | proxyType = 2; 196 | remoteGlobalIDString = F12AFB9B1ADAF8F800E0535D; 197 | remoteInfo = RNFS; 198 | }; 199 | 3814690821BB316700E633DE /* PBXContainerItemProxy */ = { 200 | isa = PBXContainerItemProxy; 201 | containerPortal = CACA83ECE9804DA8BD626259 /* RNFS.xcodeproj */; 202 | proxyType = 2; 203 | remoteGlobalIDString = 6456441F1EB8DA9100672408; 204 | remoteInfo = "RNFS-tvOS"; 205 | }; 206 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 207 | isa = PBXContainerItemProxy; 208 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 209 | proxyType = 2; 210 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 211 | remoteInfo = "RCTImage-tvOS"; 212 | }; 213 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 214 | isa = PBXContainerItemProxy; 215 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 216 | proxyType = 2; 217 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 218 | remoteInfo = "RCTLinking-tvOS"; 219 | }; 220 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 221 | isa = PBXContainerItemProxy; 222 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 223 | proxyType = 2; 224 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 225 | remoteInfo = "RCTNetwork-tvOS"; 226 | }; 227 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 228 | isa = PBXContainerItemProxy; 229 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 230 | proxyType = 2; 231 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 232 | remoteInfo = "RCTSettings-tvOS"; 233 | }; 234 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 235 | isa = PBXContainerItemProxy; 236 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 237 | proxyType = 2; 238 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 239 | remoteInfo = "RCTText-tvOS"; 240 | }; 241 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 242 | isa = PBXContainerItemProxy; 243 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 244 | proxyType = 2; 245 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 246 | remoteInfo = "RCTWebSocket-tvOS"; 247 | }; 248 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 249 | isa = PBXContainerItemProxy; 250 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 251 | proxyType = 2; 252 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 253 | remoteInfo = "React-tvOS"; 254 | }; 255 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 256 | isa = PBXContainerItemProxy; 257 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 258 | proxyType = 2; 259 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 260 | remoteInfo = yoga; 261 | }; 262 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 263 | isa = PBXContainerItemProxy; 264 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 265 | proxyType = 2; 266 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 267 | remoteInfo = "yoga-tvOS"; 268 | }; 269 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 270 | isa = PBXContainerItemProxy; 271 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 272 | proxyType = 2; 273 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 274 | remoteInfo = cxxreact; 275 | }; 276 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 277 | isa = PBXContainerItemProxy; 278 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 279 | proxyType = 2; 280 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 281 | remoteInfo = "cxxreact-tvOS"; 282 | }; 283 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 284 | isa = PBXContainerItemProxy; 285 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 286 | proxyType = 2; 287 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 288 | remoteInfo = jschelpers; 289 | }; 290 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 291 | isa = PBXContainerItemProxy; 292 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 293 | proxyType = 2; 294 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 295 | remoteInfo = "jschelpers-tvOS"; 296 | }; 297 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 298 | isa = PBXContainerItemProxy; 299 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 300 | proxyType = 2; 301 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 302 | remoteInfo = RCTAnimation; 303 | }; 304 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 305 | isa = PBXContainerItemProxy; 306 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 307 | proxyType = 2; 308 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 309 | remoteInfo = "RCTAnimation-tvOS"; 310 | }; 311 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 312 | isa = PBXContainerItemProxy; 313 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 314 | proxyType = 2; 315 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 316 | remoteInfo = RCTLinking; 317 | }; 318 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 319 | isa = PBXContainerItemProxy; 320 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 321 | proxyType = 2; 322 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 323 | remoteInfo = RCTText; 324 | }; 325 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 326 | isa = PBXContainerItemProxy; 327 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 328 | proxyType = 2; 329 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 330 | remoteInfo = RCTBlob; 331 | }; 332 | /* End PBXContainerItemProxy section */ 333 | 334 | /* Begin PBXFileReference section */ 335 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 336 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 337 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 338 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 339 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 340 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 341 | 00E356EE1AD99517003FC87E /* BrainJSReactNativeExampleAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BrainJSReactNativeExampleAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 342 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 343 | 00E356F21AD99517003FC87E /* BrainJSReactNativeExampleAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BrainJSReactNativeExampleAppTests.m; sourceTree = ""; }; 344 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 345 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 346 | 13B07F961A680F5B00A75B9A /* BrainJSReactNativeExampleApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BrainJSReactNativeExampleApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 347 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = BrainJSReactNativeExampleApp/AppDelegate.h; sourceTree = ""; }; 348 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = BrainJSReactNativeExampleApp/AppDelegate.m; sourceTree = ""; }; 349 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 350 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = BrainJSReactNativeExampleApp/Images.xcassets; sourceTree = ""; }; 351 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = BrainJSReactNativeExampleApp/Info.plist; sourceTree = ""; }; 352 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = BrainJSReactNativeExampleApp/main.m; sourceTree = ""; }; 353 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 354 | 2CB4B0C036E9463D9BDA5994 /* libRNFS.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNFS.a; sourceTree = ""; }; 355 | 2D02E47B1E0B4A5D006451C7 /* BrainJSReactNativeExampleApp-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "BrainJSReactNativeExampleApp-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 356 | 2D02E4901E0B4A5D006451C7 /* BrainJSReactNativeExampleApp-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "BrainJSReactNativeExampleApp-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 357 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 358 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 359 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 360 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 361 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 362 | CACA83ECE9804DA8BD626259 /* RNFS.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNFS.xcodeproj; path = "../node_modules/react-native-fs/RNFS.xcodeproj"; sourceTree = ""; }; 363 | /* End PBXFileReference section */ 364 | 365 | /* Begin PBXFrameworksBuildPhase section */ 366 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 367 | isa = PBXFrameworksBuildPhase; 368 | buildActionMask = 2147483647; 369 | files = ( 370 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | }; 374 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 375 | isa = PBXFrameworksBuildPhase; 376 | buildActionMask = 2147483647; 377 | files = ( 378 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 379 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */, 380 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 381 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 382 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 383 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 384 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 385 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 386 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 387 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 388 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 389 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 390 | CC53D4EF4A52481E8C0E0750 /* libRNFS.a in Frameworks */, 391 | ); 392 | runOnlyForDeploymentPostprocessing = 0; 393 | }; 394 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 395 | isa = PBXFrameworksBuildPhase; 396 | buildActionMask = 2147483647; 397 | files = ( 398 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */, 399 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 400 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 401 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 402 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 403 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 404 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 405 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 406 | ); 407 | runOnlyForDeploymentPostprocessing = 0; 408 | }; 409 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 410 | isa = PBXFrameworksBuildPhase; 411 | buildActionMask = 2147483647; 412 | files = ( 413 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */, 414 | ); 415 | runOnlyForDeploymentPostprocessing = 0; 416 | }; 417 | /* End PBXFrameworksBuildPhase section */ 418 | 419 | /* Begin PBXGroup section */ 420 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 421 | isa = PBXGroup; 422 | children = ( 423 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 424 | ); 425 | name = Products; 426 | sourceTree = ""; 427 | }; 428 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 429 | isa = PBXGroup; 430 | children = ( 431 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 432 | ); 433 | name = Products; 434 | sourceTree = ""; 435 | }; 436 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 437 | isa = PBXGroup; 438 | children = ( 439 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 440 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 441 | ); 442 | name = Products; 443 | sourceTree = ""; 444 | }; 445 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 446 | isa = PBXGroup; 447 | children = ( 448 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 449 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 450 | ); 451 | name = Products; 452 | sourceTree = ""; 453 | }; 454 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 455 | isa = PBXGroup; 456 | children = ( 457 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 458 | ); 459 | name = Products; 460 | sourceTree = ""; 461 | }; 462 | 00E356EF1AD99517003FC87E /* BrainJSReactNativeExampleAppTests */ = { 463 | isa = PBXGroup; 464 | children = ( 465 | 00E356F21AD99517003FC87E /* BrainJSReactNativeExampleAppTests.m */, 466 | 00E356F01AD99517003FC87E /* Supporting Files */, 467 | ); 468 | path = BrainJSReactNativeExampleAppTests; 469 | sourceTree = ""; 470 | }; 471 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 472 | isa = PBXGroup; 473 | children = ( 474 | 00E356F11AD99517003FC87E /* Info.plist */, 475 | ); 476 | name = "Supporting Files"; 477 | sourceTree = ""; 478 | }; 479 | 139105B71AF99BAD00B5F7CC /* Products */ = { 480 | isa = PBXGroup; 481 | children = ( 482 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 483 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 484 | ); 485 | name = Products; 486 | sourceTree = ""; 487 | }; 488 | 139FDEE71B06529A00C62182 /* Products */ = { 489 | isa = PBXGroup; 490 | children = ( 491 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 492 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 493 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */, 494 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */, 495 | ); 496 | name = Products; 497 | sourceTree = ""; 498 | }; 499 | 13B07FAE1A68108700A75B9A /* BrainJSReactNativeExampleApp */ = { 500 | isa = PBXGroup; 501 | children = ( 502 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 503 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 504 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 505 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 506 | 13B07FB61A68108700A75B9A /* Info.plist */, 507 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 508 | 13B07FB71A68108700A75B9A /* main.m */, 509 | ); 510 | name = BrainJSReactNativeExampleApp; 511 | sourceTree = ""; 512 | }; 513 | 146834001AC3E56700842450 /* Products */ = { 514 | isa = PBXGroup; 515 | children = ( 516 | 146834041AC3E56700842450 /* libReact.a */, 517 | 3DAD3EA31DF850E9000B6D8A /* libReact-tvOS.a */, 518 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 519 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 520 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 521 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 522 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 523 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 524 | 381468F521BB316700E633DE /* libjsinspector.a */, 525 | 381468F721BB316700E633DE /* libjsinspector-tvOS.a */, 526 | 381468F921BB316700E633DE /* libthird-party.a */, 527 | 381468FB21BB316700E633DE /* libthird-party.a */, 528 | 381468FD21BB316700E633DE /* libdouble-conversion.a */, 529 | 381468FF21BB316700E633DE /* libdouble-conversion.a */, 530 | 3814690121BB316700E633DE /* libprivatedata.a */, 531 | 3814690321BB316700E633DE /* libprivatedata-tvOS.a */, 532 | ); 533 | name = Products; 534 | sourceTree = ""; 535 | }; 536 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 537 | isa = PBXGroup; 538 | children = ( 539 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 540 | ); 541 | name = Frameworks; 542 | sourceTree = ""; 543 | }; 544 | 381468CC21BB316600E633DE /* Recovered References */ = { 545 | isa = PBXGroup; 546 | children = ( 547 | 2CB4B0C036E9463D9BDA5994 /* libRNFS.a */, 548 | ); 549 | name = "Recovered References"; 550 | sourceTree = ""; 551 | }; 552 | 381468CD21BB316700E633DE /* Products */ = { 553 | isa = PBXGroup; 554 | children = ( 555 | 3814690721BB316700E633DE /* libRNFS.a */, 556 | 3814690921BB316700E633DE /* libRNFS.a */, 557 | ); 558 | name = Products; 559 | sourceTree = ""; 560 | }; 561 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 562 | isa = PBXGroup; 563 | children = ( 564 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 565 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 566 | ); 567 | name = Products; 568 | sourceTree = ""; 569 | }; 570 | 78C398B11ACF4ADC00677621 /* Products */ = { 571 | isa = PBXGroup; 572 | children = ( 573 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 574 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 575 | ); 576 | name = Products; 577 | sourceTree = ""; 578 | }; 579 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 580 | isa = PBXGroup; 581 | children = ( 582 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 583 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 584 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 585 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 586 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 587 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 588 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 589 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 590 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 591 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 592 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 593 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 594 | CACA83ECE9804DA8BD626259 /* RNFS.xcodeproj */, 595 | ); 596 | name = Libraries; 597 | sourceTree = ""; 598 | }; 599 | 832341B11AAA6A8300B99B32 /* Products */ = { 600 | isa = PBXGroup; 601 | children = ( 602 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 603 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 604 | ); 605 | name = Products; 606 | sourceTree = ""; 607 | }; 608 | 83CBB9F61A601CBA00E9B192 = { 609 | isa = PBXGroup; 610 | children = ( 611 | 13B07FAE1A68108700A75B9A /* BrainJSReactNativeExampleApp */, 612 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 613 | 00E356EF1AD99517003FC87E /* BrainJSReactNativeExampleAppTests */, 614 | 83CBBA001A601CBA00E9B192 /* Products */, 615 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 616 | 381468CC21BB316600E633DE /* Recovered References */, 617 | ); 618 | indentWidth = 2; 619 | sourceTree = ""; 620 | tabWidth = 2; 621 | usesTabs = 0; 622 | }; 623 | 83CBBA001A601CBA00E9B192 /* Products */ = { 624 | isa = PBXGroup; 625 | children = ( 626 | 13B07F961A680F5B00A75B9A /* BrainJSReactNativeExampleApp.app */, 627 | 00E356EE1AD99517003FC87E /* BrainJSReactNativeExampleAppTests.xctest */, 628 | 2D02E47B1E0B4A5D006451C7 /* BrainJSReactNativeExampleApp-tvOS.app */, 629 | 2D02E4901E0B4A5D006451C7 /* BrainJSReactNativeExampleApp-tvOSTests.xctest */, 630 | ); 631 | name = Products; 632 | sourceTree = ""; 633 | }; 634 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 635 | isa = PBXGroup; 636 | children = ( 637 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 638 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */, 639 | ); 640 | name = Products; 641 | sourceTree = ""; 642 | }; 643 | /* End PBXGroup section */ 644 | 645 | /* Begin PBXNativeTarget section */ 646 | 00E356ED1AD99517003FC87E /* BrainJSReactNativeExampleAppTests */ = { 647 | isa = PBXNativeTarget; 648 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "BrainJSReactNativeExampleAppTests" */; 649 | buildPhases = ( 650 | 00E356EA1AD99517003FC87E /* Sources */, 651 | 00E356EB1AD99517003FC87E /* Frameworks */, 652 | 00E356EC1AD99517003FC87E /* Resources */, 653 | ); 654 | buildRules = ( 655 | ); 656 | dependencies = ( 657 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 658 | ); 659 | name = BrainJSReactNativeExampleAppTests; 660 | productName = BrainJSReactNativeExampleAppTests; 661 | productReference = 00E356EE1AD99517003FC87E /* BrainJSReactNativeExampleAppTests.xctest */; 662 | productType = "com.apple.product-type.bundle.unit-test"; 663 | }; 664 | 13B07F861A680F5B00A75B9A /* BrainJSReactNativeExampleApp */ = { 665 | isa = PBXNativeTarget; 666 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "BrainJSReactNativeExampleApp" */; 667 | buildPhases = ( 668 | 13B07F871A680F5B00A75B9A /* Sources */, 669 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 670 | 13B07F8E1A680F5B00A75B9A /* Resources */, 671 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 672 | ); 673 | buildRules = ( 674 | ); 675 | dependencies = ( 676 | ); 677 | name = BrainJSReactNativeExampleApp; 678 | productName = "Hello World"; 679 | productReference = 13B07F961A680F5B00A75B9A /* BrainJSReactNativeExampleApp.app */; 680 | productType = "com.apple.product-type.application"; 681 | }; 682 | 2D02E47A1E0B4A5D006451C7 /* BrainJSReactNativeExampleApp-tvOS */ = { 683 | isa = PBXNativeTarget; 684 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "BrainJSReactNativeExampleApp-tvOS" */; 685 | buildPhases = ( 686 | 2D02E4771E0B4A5D006451C7 /* Sources */, 687 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 688 | 2D02E4791E0B4A5D006451C7 /* Resources */, 689 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 690 | ); 691 | buildRules = ( 692 | ); 693 | dependencies = ( 694 | ); 695 | name = "BrainJSReactNativeExampleApp-tvOS"; 696 | productName = "BrainJSReactNativeExampleApp-tvOS"; 697 | productReference = 2D02E47B1E0B4A5D006451C7 /* BrainJSReactNativeExampleApp-tvOS.app */; 698 | productType = "com.apple.product-type.application"; 699 | }; 700 | 2D02E48F1E0B4A5D006451C7 /* BrainJSReactNativeExampleApp-tvOSTests */ = { 701 | isa = PBXNativeTarget; 702 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "BrainJSReactNativeExampleApp-tvOSTests" */; 703 | buildPhases = ( 704 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 705 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 706 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 707 | ); 708 | buildRules = ( 709 | ); 710 | dependencies = ( 711 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 712 | ); 713 | name = "BrainJSReactNativeExampleApp-tvOSTests"; 714 | productName = "BrainJSReactNativeExampleApp-tvOSTests"; 715 | productReference = 2D02E4901E0B4A5D006451C7 /* BrainJSReactNativeExampleApp-tvOSTests.xctest */; 716 | productType = "com.apple.product-type.bundle.unit-test"; 717 | }; 718 | /* End PBXNativeTarget section */ 719 | 720 | /* Begin PBXProject section */ 721 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 722 | isa = PBXProject; 723 | attributes = { 724 | LastUpgradeCheck = 610; 725 | ORGANIZATIONNAME = Facebook; 726 | TargetAttributes = { 727 | 00E356ED1AD99517003FC87E = { 728 | CreatedOnToolsVersion = 6.2; 729 | TestTargetID = 13B07F861A680F5B00A75B9A; 730 | }; 731 | 2D02E47A1E0B4A5D006451C7 = { 732 | CreatedOnToolsVersion = 8.2.1; 733 | ProvisioningStyle = Automatic; 734 | }; 735 | 2D02E48F1E0B4A5D006451C7 = { 736 | CreatedOnToolsVersion = 8.2.1; 737 | ProvisioningStyle = Automatic; 738 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 739 | }; 740 | }; 741 | }; 742 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "BrainJSReactNativeExampleApp" */; 743 | compatibilityVersion = "Xcode 3.2"; 744 | developmentRegion = English; 745 | hasScannedForEncodings = 0; 746 | knownRegions = ( 747 | en, 748 | Base, 749 | ); 750 | mainGroup = 83CBB9F61A601CBA00E9B192; 751 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 752 | projectDirPath = ""; 753 | projectReferences = ( 754 | { 755 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 756 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 757 | }, 758 | { 759 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 760 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 761 | }, 762 | { 763 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 764 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 765 | }, 766 | { 767 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 768 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 769 | }, 770 | { 771 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 772 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 773 | }, 774 | { 775 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 776 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 777 | }, 778 | { 779 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 780 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 781 | }, 782 | { 783 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 784 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 785 | }, 786 | { 787 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 788 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 789 | }, 790 | { 791 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 792 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 793 | }, 794 | { 795 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 796 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 797 | }, 798 | { 799 | ProductGroup = 146834001AC3E56700842450 /* Products */; 800 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 801 | }, 802 | { 803 | ProductGroup = 381468CD21BB316700E633DE /* Products */; 804 | ProjectRef = CACA83ECE9804DA8BD626259 /* RNFS.xcodeproj */; 805 | }, 806 | ); 807 | projectRoot = ""; 808 | targets = ( 809 | 13B07F861A680F5B00A75B9A /* BrainJSReactNativeExampleApp */, 810 | 00E356ED1AD99517003FC87E /* BrainJSReactNativeExampleAppTests */, 811 | 2D02E47A1E0B4A5D006451C7 /* BrainJSReactNativeExampleApp-tvOS */, 812 | 2D02E48F1E0B4A5D006451C7 /* BrainJSReactNativeExampleApp-tvOSTests */, 813 | ); 814 | }; 815 | /* End PBXProject section */ 816 | 817 | /* Begin PBXReferenceProxy section */ 818 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 819 | isa = PBXReferenceProxy; 820 | fileType = archive.ar; 821 | path = libRCTActionSheet.a; 822 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 823 | sourceTree = BUILT_PRODUCTS_DIR; 824 | }; 825 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 826 | isa = PBXReferenceProxy; 827 | fileType = archive.ar; 828 | path = libRCTGeolocation.a; 829 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 830 | sourceTree = BUILT_PRODUCTS_DIR; 831 | }; 832 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 833 | isa = PBXReferenceProxy; 834 | fileType = archive.ar; 835 | path = libRCTImage.a; 836 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 837 | sourceTree = BUILT_PRODUCTS_DIR; 838 | }; 839 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 840 | isa = PBXReferenceProxy; 841 | fileType = archive.ar; 842 | path = libRCTNetwork.a; 843 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 844 | sourceTree = BUILT_PRODUCTS_DIR; 845 | }; 846 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 847 | isa = PBXReferenceProxy; 848 | fileType = archive.ar; 849 | path = libRCTVibration.a; 850 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 851 | sourceTree = BUILT_PRODUCTS_DIR; 852 | }; 853 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 854 | isa = PBXReferenceProxy; 855 | fileType = archive.ar; 856 | path = libRCTSettings.a; 857 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 858 | sourceTree = BUILT_PRODUCTS_DIR; 859 | }; 860 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 861 | isa = PBXReferenceProxy; 862 | fileType = archive.ar; 863 | path = libRCTWebSocket.a; 864 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 865 | sourceTree = BUILT_PRODUCTS_DIR; 866 | }; 867 | 146834041AC3E56700842450 /* libReact.a */ = { 868 | isa = PBXReferenceProxy; 869 | fileType = archive.ar; 870 | path = libReact.a; 871 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 872 | sourceTree = BUILT_PRODUCTS_DIR; 873 | }; 874 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = { 875 | isa = PBXReferenceProxy; 876 | fileType = archive.ar; 877 | path = "libRCTBlob-tvOS.a"; 878 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */; 879 | sourceTree = BUILT_PRODUCTS_DIR; 880 | }; 881 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = { 882 | isa = PBXReferenceProxy; 883 | fileType = archive.ar; 884 | path = libfishhook.a; 885 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */; 886 | sourceTree = BUILT_PRODUCTS_DIR; 887 | }; 888 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = { 889 | isa = PBXReferenceProxy; 890 | fileType = archive.ar; 891 | path = "libfishhook-tvOS.a"; 892 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */; 893 | sourceTree = BUILT_PRODUCTS_DIR; 894 | }; 895 | 381468F521BB316700E633DE /* libjsinspector.a */ = { 896 | isa = PBXReferenceProxy; 897 | fileType = archive.ar; 898 | path = libjsinspector.a; 899 | remoteRef = 381468F421BB316700E633DE /* PBXContainerItemProxy */; 900 | sourceTree = BUILT_PRODUCTS_DIR; 901 | }; 902 | 381468F721BB316700E633DE /* libjsinspector-tvOS.a */ = { 903 | isa = PBXReferenceProxy; 904 | fileType = archive.ar; 905 | path = "libjsinspector-tvOS.a"; 906 | remoteRef = 381468F621BB316700E633DE /* PBXContainerItemProxy */; 907 | sourceTree = BUILT_PRODUCTS_DIR; 908 | }; 909 | 381468F921BB316700E633DE /* libthird-party.a */ = { 910 | isa = PBXReferenceProxy; 911 | fileType = archive.ar; 912 | path = "libthird-party.a"; 913 | remoteRef = 381468F821BB316700E633DE /* PBXContainerItemProxy */; 914 | sourceTree = BUILT_PRODUCTS_DIR; 915 | }; 916 | 381468FB21BB316700E633DE /* libthird-party.a */ = { 917 | isa = PBXReferenceProxy; 918 | fileType = archive.ar; 919 | path = "libthird-party.a"; 920 | remoteRef = 381468FA21BB316700E633DE /* PBXContainerItemProxy */; 921 | sourceTree = BUILT_PRODUCTS_DIR; 922 | }; 923 | 381468FD21BB316700E633DE /* libdouble-conversion.a */ = { 924 | isa = PBXReferenceProxy; 925 | fileType = archive.ar; 926 | path = "libdouble-conversion.a"; 927 | remoteRef = 381468FC21BB316700E633DE /* PBXContainerItemProxy */; 928 | sourceTree = BUILT_PRODUCTS_DIR; 929 | }; 930 | 381468FF21BB316700E633DE /* libdouble-conversion.a */ = { 931 | isa = PBXReferenceProxy; 932 | fileType = archive.ar; 933 | path = "libdouble-conversion.a"; 934 | remoteRef = 381468FE21BB316700E633DE /* PBXContainerItemProxy */; 935 | sourceTree = BUILT_PRODUCTS_DIR; 936 | }; 937 | 3814690121BB316700E633DE /* libprivatedata.a */ = { 938 | isa = PBXReferenceProxy; 939 | fileType = archive.ar; 940 | path = libprivatedata.a; 941 | remoteRef = 3814690021BB316700E633DE /* PBXContainerItemProxy */; 942 | sourceTree = BUILT_PRODUCTS_DIR; 943 | }; 944 | 3814690321BB316700E633DE /* libprivatedata-tvOS.a */ = { 945 | isa = PBXReferenceProxy; 946 | fileType = archive.ar; 947 | path = "libprivatedata-tvOS.a"; 948 | remoteRef = 3814690221BB316700E633DE /* PBXContainerItemProxy */; 949 | sourceTree = BUILT_PRODUCTS_DIR; 950 | }; 951 | 3814690721BB316700E633DE /* libRNFS.a */ = { 952 | isa = PBXReferenceProxy; 953 | fileType = archive.ar; 954 | path = libRNFS.a; 955 | remoteRef = 3814690621BB316700E633DE /* PBXContainerItemProxy */; 956 | sourceTree = BUILT_PRODUCTS_DIR; 957 | }; 958 | 3814690921BB316700E633DE /* libRNFS.a */ = { 959 | isa = PBXReferenceProxy; 960 | fileType = archive.ar; 961 | path = libRNFS.a; 962 | remoteRef = 3814690821BB316700E633DE /* PBXContainerItemProxy */; 963 | sourceTree = BUILT_PRODUCTS_DIR; 964 | }; 965 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 966 | isa = PBXReferenceProxy; 967 | fileType = archive.ar; 968 | path = "libRCTImage-tvOS.a"; 969 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 970 | sourceTree = BUILT_PRODUCTS_DIR; 971 | }; 972 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 973 | isa = PBXReferenceProxy; 974 | fileType = archive.ar; 975 | path = "libRCTLinking-tvOS.a"; 976 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 977 | sourceTree = BUILT_PRODUCTS_DIR; 978 | }; 979 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 980 | isa = PBXReferenceProxy; 981 | fileType = archive.ar; 982 | path = "libRCTNetwork-tvOS.a"; 983 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 984 | sourceTree = BUILT_PRODUCTS_DIR; 985 | }; 986 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 987 | isa = PBXReferenceProxy; 988 | fileType = archive.ar; 989 | path = "libRCTSettings-tvOS.a"; 990 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 991 | sourceTree = BUILT_PRODUCTS_DIR; 992 | }; 993 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 994 | isa = PBXReferenceProxy; 995 | fileType = archive.ar; 996 | path = "libRCTText-tvOS.a"; 997 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 998 | sourceTree = BUILT_PRODUCTS_DIR; 999 | }; 1000 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 1001 | isa = PBXReferenceProxy; 1002 | fileType = archive.ar; 1003 | path = "libRCTWebSocket-tvOS.a"; 1004 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 1005 | sourceTree = BUILT_PRODUCTS_DIR; 1006 | }; 1007 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 1008 | isa = PBXReferenceProxy; 1009 | fileType = archive.ar; 1010 | path = libReact.a; 1011 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 1012 | sourceTree = BUILT_PRODUCTS_DIR; 1013 | }; 1014 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 1015 | isa = PBXReferenceProxy; 1016 | fileType = archive.ar; 1017 | path = libyoga.a; 1018 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 1019 | sourceTree = BUILT_PRODUCTS_DIR; 1020 | }; 1021 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 1022 | isa = PBXReferenceProxy; 1023 | fileType = archive.ar; 1024 | path = libyoga.a; 1025 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 1026 | sourceTree = BUILT_PRODUCTS_DIR; 1027 | }; 1028 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 1029 | isa = PBXReferenceProxy; 1030 | fileType = archive.ar; 1031 | path = libcxxreact.a; 1032 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 1033 | sourceTree = BUILT_PRODUCTS_DIR; 1034 | }; 1035 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 1036 | isa = PBXReferenceProxy; 1037 | fileType = archive.ar; 1038 | path = libcxxreact.a; 1039 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 1040 | sourceTree = BUILT_PRODUCTS_DIR; 1041 | }; 1042 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 1043 | isa = PBXReferenceProxy; 1044 | fileType = archive.ar; 1045 | path = libjschelpers.a; 1046 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 1047 | sourceTree = BUILT_PRODUCTS_DIR; 1048 | }; 1049 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 1050 | isa = PBXReferenceProxy; 1051 | fileType = archive.ar; 1052 | path = libjschelpers.a; 1053 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 1054 | sourceTree = BUILT_PRODUCTS_DIR; 1055 | }; 1056 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1057 | isa = PBXReferenceProxy; 1058 | fileType = archive.ar; 1059 | path = libRCTAnimation.a; 1060 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1061 | sourceTree = BUILT_PRODUCTS_DIR; 1062 | }; 1063 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1064 | isa = PBXReferenceProxy; 1065 | fileType = archive.ar; 1066 | path = libRCTAnimation.a; 1067 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1068 | sourceTree = BUILT_PRODUCTS_DIR; 1069 | }; 1070 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 1071 | isa = PBXReferenceProxy; 1072 | fileType = archive.ar; 1073 | path = libRCTLinking.a; 1074 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 1075 | sourceTree = BUILT_PRODUCTS_DIR; 1076 | }; 1077 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 1078 | isa = PBXReferenceProxy; 1079 | fileType = archive.ar; 1080 | path = libRCTText.a; 1081 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 1082 | sourceTree = BUILT_PRODUCTS_DIR; 1083 | }; 1084 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 1085 | isa = PBXReferenceProxy; 1086 | fileType = archive.ar; 1087 | path = libRCTBlob.a; 1088 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 1089 | sourceTree = BUILT_PRODUCTS_DIR; 1090 | }; 1091 | /* End PBXReferenceProxy section */ 1092 | 1093 | /* Begin PBXResourcesBuildPhase section */ 1094 | 00E356EC1AD99517003FC87E /* Resources */ = { 1095 | isa = PBXResourcesBuildPhase; 1096 | buildActionMask = 2147483647; 1097 | files = ( 1098 | ); 1099 | runOnlyForDeploymentPostprocessing = 0; 1100 | }; 1101 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1102 | isa = PBXResourcesBuildPhase; 1103 | buildActionMask = 2147483647; 1104 | files = ( 1105 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1106 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1107 | ); 1108 | runOnlyForDeploymentPostprocessing = 0; 1109 | }; 1110 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1111 | isa = PBXResourcesBuildPhase; 1112 | buildActionMask = 2147483647; 1113 | files = ( 1114 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1115 | ); 1116 | runOnlyForDeploymentPostprocessing = 0; 1117 | }; 1118 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1119 | isa = PBXResourcesBuildPhase; 1120 | buildActionMask = 2147483647; 1121 | files = ( 1122 | ); 1123 | runOnlyForDeploymentPostprocessing = 0; 1124 | }; 1125 | /* End PBXResourcesBuildPhase section */ 1126 | 1127 | /* Begin PBXShellScriptBuildPhase section */ 1128 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1129 | isa = PBXShellScriptBuildPhase; 1130 | buildActionMask = 2147483647; 1131 | files = ( 1132 | ); 1133 | inputPaths = ( 1134 | ); 1135 | name = "Bundle React Native code and images"; 1136 | outputPaths = ( 1137 | ); 1138 | runOnlyForDeploymentPostprocessing = 0; 1139 | shellPath = /bin/sh; 1140 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1141 | }; 1142 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1143 | isa = PBXShellScriptBuildPhase; 1144 | buildActionMask = 2147483647; 1145 | files = ( 1146 | ); 1147 | inputPaths = ( 1148 | ); 1149 | name = "Bundle React Native Code And Images"; 1150 | outputPaths = ( 1151 | ); 1152 | runOnlyForDeploymentPostprocessing = 0; 1153 | shellPath = /bin/sh; 1154 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1155 | }; 1156 | /* End PBXShellScriptBuildPhase section */ 1157 | 1158 | /* Begin PBXSourcesBuildPhase section */ 1159 | 00E356EA1AD99517003FC87E /* Sources */ = { 1160 | isa = PBXSourcesBuildPhase; 1161 | buildActionMask = 2147483647; 1162 | files = ( 1163 | 00E356F31AD99517003FC87E /* BrainJSReactNativeExampleAppTests.m in Sources */, 1164 | ); 1165 | runOnlyForDeploymentPostprocessing = 0; 1166 | }; 1167 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1168 | isa = PBXSourcesBuildPhase; 1169 | buildActionMask = 2147483647; 1170 | files = ( 1171 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1172 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1173 | ); 1174 | runOnlyForDeploymentPostprocessing = 0; 1175 | }; 1176 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1177 | isa = PBXSourcesBuildPhase; 1178 | buildActionMask = 2147483647; 1179 | files = ( 1180 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1181 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1182 | ); 1183 | runOnlyForDeploymentPostprocessing = 0; 1184 | }; 1185 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1186 | isa = PBXSourcesBuildPhase; 1187 | buildActionMask = 2147483647; 1188 | files = ( 1189 | 2DCD954D1E0B4F2C00145EB5 /* BrainJSReactNativeExampleAppTests.m in Sources */, 1190 | ); 1191 | runOnlyForDeploymentPostprocessing = 0; 1192 | }; 1193 | /* End PBXSourcesBuildPhase section */ 1194 | 1195 | /* Begin PBXTargetDependency section */ 1196 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1197 | isa = PBXTargetDependency; 1198 | target = 13B07F861A680F5B00A75B9A /* BrainJSReactNativeExampleApp */; 1199 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1200 | }; 1201 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1202 | isa = PBXTargetDependency; 1203 | target = 2D02E47A1E0B4A5D006451C7 /* BrainJSReactNativeExampleApp-tvOS */; 1204 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1205 | }; 1206 | /* End PBXTargetDependency section */ 1207 | 1208 | /* Begin PBXVariantGroup section */ 1209 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1210 | isa = PBXVariantGroup; 1211 | children = ( 1212 | 13B07FB21A68108700A75B9A /* Base */, 1213 | ); 1214 | name = LaunchScreen.xib; 1215 | path = BrainJSReactNativeExampleApp; 1216 | sourceTree = ""; 1217 | }; 1218 | /* End PBXVariantGroup section */ 1219 | 1220 | /* Begin XCBuildConfiguration section */ 1221 | 00E356F61AD99517003FC87E /* Debug */ = { 1222 | isa = XCBuildConfiguration; 1223 | buildSettings = { 1224 | BUNDLE_LOADER = "$(TEST_HOST)"; 1225 | GCC_PREPROCESSOR_DEFINITIONS = ( 1226 | "DEBUG=1", 1227 | "$(inherited)", 1228 | ); 1229 | HEADER_SEARCH_PATHS = ( 1230 | "$(inherited)", 1231 | "$(SRCROOT)/../node_modules/react-native-fs/**", 1232 | ); 1233 | INFOPLIST_FILE = BrainJSReactNativeExampleAppTests/Info.plist; 1234 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1235 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1236 | LIBRARY_SEARCH_PATHS = ( 1237 | "$(inherited)", 1238 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1239 | ); 1240 | OTHER_LDFLAGS = ( 1241 | "-ObjC", 1242 | "-lc++", 1243 | ); 1244 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1245 | PRODUCT_NAME = "$(TARGET_NAME)"; 1246 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BrainJSReactNativeExampleApp.app/BrainJSReactNativeExampleApp"; 1247 | }; 1248 | name = Debug; 1249 | }; 1250 | 00E356F71AD99517003FC87E /* Release */ = { 1251 | isa = XCBuildConfiguration; 1252 | buildSettings = { 1253 | BUNDLE_LOADER = "$(TEST_HOST)"; 1254 | COPY_PHASE_STRIP = NO; 1255 | HEADER_SEARCH_PATHS = ( 1256 | "$(inherited)", 1257 | "$(SRCROOT)/../node_modules/react-native-fs/**", 1258 | ); 1259 | INFOPLIST_FILE = BrainJSReactNativeExampleAppTests/Info.plist; 1260 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1261 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1262 | LIBRARY_SEARCH_PATHS = ( 1263 | "$(inherited)", 1264 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1265 | ); 1266 | OTHER_LDFLAGS = ( 1267 | "-ObjC", 1268 | "-lc++", 1269 | ); 1270 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1271 | PRODUCT_NAME = "$(TARGET_NAME)"; 1272 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BrainJSReactNativeExampleApp.app/BrainJSReactNativeExampleApp"; 1273 | }; 1274 | name = Release; 1275 | }; 1276 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1277 | isa = XCBuildConfiguration; 1278 | buildSettings = { 1279 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1280 | CURRENT_PROJECT_VERSION = 1; 1281 | DEAD_CODE_STRIPPING = NO; 1282 | HEADER_SEARCH_PATHS = ( 1283 | "$(inherited)", 1284 | "$(SRCROOT)/../node_modules/react-native-fs/**", 1285 | ); 1286 | INFOPLIST_FILE = BrainJSReactNativeExampleApp/Info.plist; 1287 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1288 | OTHER_LDFLAGS = ( 1289 | "$(inherited)", 1290 | "-ObjC", 1291 | "-lc++", 1292 | ); 1293 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1294 | PRODUCT_NAME = BrainJSReactNativeExampleApp; 1295 | VERSIONING_SYSTEM = "apple-generic"; 1296 | }; 1297 | name = Debug; 1298 | }; 1299 | 13B07F951A680F5B00A75B9A /* Release */ = { 1300 | isa = XCBuildConfiguration; 1301 | buildSettings = { 1302 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1303 | CURRENT_PROJECT_VERSION = 1; 1304 | HEADER_SEARCH_PATHS = ( 1305 | "$(inherited)", 1306 | "$(SRCROOT)/../node_modules/react-native-fs/**", 1307 | ); 1308 | INFOPLIST_FILE = BrainJSReactNativeExampleApp/Info.plist; 1309 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1310 | OTHER_LDFLAGS = ( 1311 | "$(inherited)", 1312 | "-ObjC", 1313 | "-lc++", 1314 | ); 1315 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1316 | PRODUCT_NAME = BrainJSReactNativeExampleApp; 1317 | VERSIONING_SYSTEM = "apple-generic"; 1318 | }; 1319 | name = Release; 1320 | }; 1321 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1322 | isa = XCBuildConfiguration; 1323 | buildSettings = { 1324 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1325 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1326 | CLANG_ANALYZER_NONNULL = YES; 1327 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1328 | CLANG_WARN_INFINITE_RECURSION = YES; 1329 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1330 | DEBUG_INFORMATION_FORMAT = dwarf; 1331 | ENABLE_TESTABILITY = YES; 1332 | GCC_NO_COMMON_BLOCKS = YES; 1333 | HEADER_SEARCH_PATHS = ( 1334 | "$(inherited)", 1335 | "$(SRCROOT)/../node_modules/react-native-fs/**", 1336 | ); 1337 | INFOPLIST_FILE = "BrainJSReactNativeExampleApp-tvOS/Info.plist"; 1338 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1339 | LIBRARY_SEARCH_PATHS = ( 1340 | "$(inherited)", 1341 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1342 | ); 1343 | OTHER_LDFLAGS = ( 1344 | "-ObjC", 1345 | "-lc++", 1346 | ); 1347 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.BrainJSReactNativeExampleApp-tvOS"; 1348 | PRODUCT_NAME = "$(TARGET_NAME)"; 1349 | SDKROOT = appletvos; 1350 | TARGETED_DEVICE_FAMILY = 3; 1351 | TVOS_DEPLOYMENT_TARGET = 9.2; 1352 | }; 1353 | name = Debug; 1354 | }; 1355 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1356 | isa = XCBuildConfiguration; 1357 | buildSettings = { 1358 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1359 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1360 | CLANG_ANALYZER_NONNULL = YES; 1361 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1362 | CLANG_WARN_INFINITE_RECURSION = YES; 1363 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1364 | COPY_PHASE_STRIP = NO; 1365 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1366 | GCC_NO_COMMON_BLOCKS = YES; 1367 | HEADER_SEARCH_PATHS = ( 1368 | "$(inherited)", 1369 | "$(SRCROOT)/../node_modules/react-native-fs/**", 1370 | ); 1371 | INFOPLIST_FILE = "BrainJSReactNativeExampleApp-tvOS/Info.plist"; 1372 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1373 | LIBRARY_SEARCH_PATHS = ( 1374 | "$(inherited)", 1375 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1376 | ); 1377 | OTHER_LDFLAGS = ( 1378 | "-ObjC", 1379 | "-lc++", 1380 | ); 1381 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.BrainJSReactNativeExampleApp-tvOS"; 1382 | PRODUCT_NAME = "$(TARGET_NAME)"; 1383 | SDKROOT = appletvos; 1384 | TARGETED_DEVICE_FAMILY = 3; 1385 | TVOS_DEPLOYMENT_TARGET = 9.2; 1386 | }; 1387 | name = Release; 1388 | }; 1389 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1390 | isa = XCBuildConfiguration; 1391 | buildSettings = { 1392 | BUNDLE_LOADER = "$(TEST_HOST)"; 1393 | CLANG_ANALYZER_NONNULL = YES; 1394 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1395 | CLANG_WARN_INFINITE_RECURSION = YES; 1396 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1397 | DEBUG_INFORMATION_FORMAT = dwarf; 1398 | ENABLE_TESTABILITY = YES; 1399 | GCC_NO_COMMON_BLOCKS = YES; 1400 | INFOPLIST_FILE = "BrainJSReactNativeExampleApp-tvOSTests/Info.plist"; 1401 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1402 | LIBRARY_SEARCH_PATHS = ( 1403 | "$(inherited)", 1404 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1405 | ); 1406 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.BrainJSReactNativeExampleApp-tvOSTests"; 1407 | PRODUCT_NAME = "$(TARGET_NAME)"; 1408 | SDKROOT = appletvos; 1409 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BrainJSReactNativeExampleApp-tvOS.app/BrainJSReactNativeExampleApp-tvOS"; 1410 | TVOS_DEPLOYMENT_TARGET = 10.1; 1411 | }; 1412 | name = Debug; 1413 | }; 1414 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1415 | isa = XCBuildConfiguration; 1416 | buildSettings = { 1417 | BUNDLE_LOADER = "$(TEST_HOST)"; 1418 | CLANG_ANALYZER_NONNULL = YES; 1419 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1420 | CLANG_WARN_INFINITE_RECURSION = YES; 1421 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1422 | COPY_PHASE_STRIP = NO; 1423 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1424 | GCC_NO_COMMON_BLOCKS = YES; 1425 | INFOPLIST_FILE = "BrainJSReactNativeExampleApp-tvOSTests/Info.plist"; 1426 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1427 | LIBRARY_SEARCH_PATHS = ( 1428 | "$(inherited)", 1429 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1430 | ); 1431 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.BrainJSReactNativeExampleApp-tvOSTests"; 1432 | PRODUCT_NAME = "$(TARGET_NAME)"; 1433 | SDKROOT = appletvos; 1434 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BrainJSReactNativeExampleApp-tvOS.app/BrainJSReactNativeExampleApp-tvOS"; 1435 | TVOS_DEPLOYMENT_TARGET = 10.1; 1436 | }; 1437 | name = Release; 1438 | }; 1439 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1440 | isa = XCBuildConfiguration; 1441 | buildSettings = { 1442 | ALWAYS_SEARCH_USER_PATHS = NO; 1443 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1444 | CLANG_CXX_LIBRARY = "libc++"; 1445 | CLANG_ENABLE_MODULES = YES; 1446 | CLANG_ENABLE_OBJC_ARC = YES; 1447 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1448 | CLANG_WARN_BOOL_CONVERSION = YES; 1449 | CLANG_WARN_COMMA = YES; 1450 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1451 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1452 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1453 | CLANG_WARN_EMPTY_BODY = YES; 1454 | CLANG_WARN_ENUM_CONVERSION = YES; 1455 | CLANG_WARN_INFINITE_RECURSION = YES; 1456 | CLANG_WARN_INT_CONVERSION = YES; 1457 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1458 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1459 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1460 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1461 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1462 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1463 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1464 | CLANG_WARN_UNREACHABLE_CODE = YES; 1465 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1466 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1467 | COPY_PHASE_STRIP = NO; 1468 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1469 | ENABLE_TESTABILITY = YES; 1470 | GCC_C_LANGUAGE_STANDARD = gnu99; 1471 | GCC_DYNAMIC_NO_PIC = NO; 1472 | GCC_NO_COMMON_BLOCKS = YES; 1473 | GCC_OPTIMIZATION_LEVEL = 0; 1474 | GCC_PREPROCESSOR_DEFINITIONS = ( 1475 | "DEBUG=1", 1476 | "$(inherited)", 1477 | ); 1478 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1479 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1480 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1481 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1482 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1483 | GCC_WARN_UNUSED_FUNCTION = YES; 1484 | GCC_WARN_UNUSED_VARIABLE = YES; 1485 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1486 | MTL_ENABLE_DEBUG_INFO = YES; 1487 | ONLY_ACTIVE_ARCH = YES; 1488 | SDKROOT = iphoneos; 1489 | }; 1490 | name = Debug; 1491 | }; 1492 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1493 | isa = XCBuildConfiguration; 1494 | buildSettings = { 1495 | ALWAYS_SEARCH_USER_PATHS = NO; 1496 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1497 | CLANG_CXX_LIBRARY = "libc++"; 1498 | CLANG_ENABLE_MODULES = YES; 1499 | CLANG_ENABLE_OBJC_ARC = YES; 1500 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1501 | CLANG_WARN_BOOL_CONVERSION = YES; 1502 | CLANG_WARN_COMMA = YES; 1503 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1504 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1505 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1506 | CLANG_WARN_EMPTY_BODY = YES; 1507 | CLANG_WARN_ENUM_CONVERSION = YES; 1508 | CLANG_WARN_INFINITE_RECURSION = YES; 1509 | CLANG_WARN_INT_CONVERSION = YES; 1510 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1511 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1512 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1513 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1514 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1515 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1516 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1517 | CLANG_WARN_UNREACHABLE_CODE = YES; 1518 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1519 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1520 | COPY_PHASE_STRIP = YES; 1521 | ENABLE_NS_ASSERTIONS = NO; 1522 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1523 | GCC_C_LANGUAGE_STANDARD = gnu99; 1524 | GCC_NO_COMMON_BLOCKS = YES; 1525 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1526 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1527 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1528 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1529 | GCC_WARN_UNUSED_FUNCTION = YES; 1530 | GCC_WARN_UNUSED_VARIABLE = YES; 1531 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1532 | MTL_ENABLE_DEBUG_INFO = NO; 1533 | SDKROOT = iphoneos; 1534 | VALIDATE_PRODUCT = YES; 1535 | }; 1536 | name = Release; 1537 | }; 1538 | /* End XCBuildConfiguration section */ 1539 | 1540 | /* Begin XCConfigurationList section */ 1541 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "BrainJSReactNativeExampleAppTests" */ = { 1542 | isa = XCConfigurationList; 1543 | buildConfigurations = ( 1544 | 00E356F61AD99517003FC87E /* Debug */, 1545 | 00E356F71AD99517003FC87E /* Release */, 1546 | ); 1547 | defaultConfigurationIsVisible = 0; 1548 | defaultConfigurationName = Release; 1549 | }; 1550 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "BrainJSReactNativeExampleApp" */ = { 1551 | isa = XCConfigurationList; 1552 | buildConfigurations = ( 1553 | 13B07F941A680F5B00A75B9A /* Debug */, 1554 | 13B07F951A680F5B00A75B9A /* Release */, 1555 | ); 1556 | defaultConfigurationIsVisible = 0; 1557 | defaultConfigurationName = Release; 1558 | }; 1559 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "BrainJSReactNativeExampleApp-tvOS" */ = { 1560 | isa = XCConfigurationList; 1561 | buildConfigurations = ( 1562 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1563 | 2D02E4981E0B4A5E006451C7 /* Release */, 1564 | ); 1565 | defaultConfigurationIsVisible = 0; 1566 | defaultConfigurationName = Release; 1567 | }; 1568 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "BrainJSReactNativeExampleApp-tvOSTests" */ = { 1569 | isa = XCConfigurationList; 1570 | buildConfigurations = ( 1571 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1572 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1573 | ); 1574 | defaultConfigurationIsVisible = 0; 1575 | defaultConfigurationName = Release; 1576 | }; 1577 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "BrainJSReactNativeExampleApp" */ = { 1578 | isa = XCConfigurationList; 1579 | buildConfigurations = ( 1580 | 83CBBA201A601CBA00E9B192 /* Debug */, 1581 | 83CBBA211A601CBA00E9B192 /* Release */, 1582 | ); 1583 | defaultConfigurationIsVisible = 0; 1584 | defaultConfigurationName = Release; 1585 | }; 1586 | /* End XCConfigurationList section */ 1587 | }; 1588 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1589 | } 1590 | --------------------------------------------------------------------------------