├── .babelrc ├── .flowconfig ├── .gitignore ├── .watchmanconfig ├── App.js ├── App.test.js ├── README.md ├── android ├── ReactNativeWebRTCSample.iml ├── app │ ├── BUCK │ ├── app.iml │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── reactnativewebrtcsample │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties ├── local.properties └── settings.gradle ├── app.json ├── index.js ├── ios ├── ReactNativeWebRTCSample-tvOS │ └── Info.plist ├── ReactNativeWebRTCSample-tvOSTests │ └── Info.plist ├── ReactNativeWebRTCSample.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── ReactNativeWebRTCSample-tvOS.xcscheme │ │ └── ReactNativeWebRTCSample.xcscheme ├── ReactNativeWebRTCSample │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── ReactNativeWebRTCSampleTests │ ├── Info.plist │ └── ReactNativeWebRTCSampleTests.m ├── package.json ├── webrtc.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "babel-preset-react-native-stage-0/decorator-support" 4 | ], 5 | "env": { 6 | "development": { 7 | "plugins": [ 8 | "transform-react-jsx-source" 9 | ] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore templates for 'react-native init' 6 | /node_modules/react-native/local-cli/templates/.* 7 | 8 | ; Ignore RN jest 9 | /node_modules/react-native/jest/.* 10 | 11 | ; Ignore RNTester 12 | /node_modules/react-native/RNTester/.* 13 | 14 | ; Ignore the website subdir 15 | /node_modules/react-native/website/.* 16 | 17 | ; Ignore the Dangerfile 18 | /node_modules/react-native/danger/dangerfile.js 19 | 20 | ; Ignore Fbemitter 21 | /node_modules/fbemitter/.* 22 | 23 | ; Ignore "BUCK" generated dirs 24 | /node_modules/react-native/\.buckd/ 25 | 26 | ; Ignore unexpected extra "@providesModule" 27 | .*/node_modules/.*/node_modules/fbjs/.* 28 | 29 | ; Ignore polyfills 30 | /node_modules/react-native/Libraries/polyfills/.* 31 | 32 | ; Ignore various node_modules 33 | /node_modules/react-native-gesture-handler/.* 34 | /node_modules/expo/.* 35 | /node_modules/react-navigation/.* 36 | /node_modules/xdl/.* 37 | /node_modules/reqwest/.* 38 | /node_modules/metro-bundler/.* 39 | 40 | [include] 41 | 42 | [libs] 43 | node_modules/react-native/Libraries/react-native/react-native-interface.js 44 | node_modules/react-native/flow/ 45 | node_modules/expo/flow/ 46 | 47 | [options] 48 | emoji=true 49 | 50 | module.system=haste 51 | 52 | module.file_ext=.js 53 | module.file_ext=.jsx 54 | module.file_ext=.json 55 | module.file_ext=.ios.js 56 | 57 | munge_underscores=true 58 | 59 | 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' 60 | 61 | suppress_type=$FlowIssue 62 | suppress_type=$FlowFixMe 63 | suppress_type=$FlowFixMeProps 64 | suppress_type=$FlowFixMeState 65 | suppress_type=$FixMe 66 | 67 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\) 68 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+ 69 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 70 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 71 | 72 | unsafe.enable_getters_and_setters=true 73 | 74 | [version] 75 | ^0.56.0 76 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # expo 4 | .expo/ 5 | 6 | # dependencies 7 | /node_modules 8 | 9 | # misc 10 | .env.local 11 | .env.development.local 12 | .env.test.local 13 | .env.production.local 14 | 15 | npm-debug.log* 16 | yarn-debug.log* 17 | yarn-error.log* 18 | android/.gradle 19 | android/app/build 20 | android/build 21 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import SocketIO from 'socket.io-client' 3 | import WebSocketClient from 'reconnecting-websocket' 4 | import WebRTCLib from 'react-native-webrtc' 5 | import UUID from 'react-native-device-uuid' 6 | 7 | const { 8 | RTCPeerConnection, 9 | RTCIceCandidate, 10 | RTCSessionDescription, 11 | RTCView, 12 | MediaStream, 13 | MediaStreamTrack, 14 | getUserMedia, 15 | } = WebRTCLib; 16 | import { StyleSheet, Text, View, TouchableOpacity, Dimensions } from 'react-native'; 17 | 18 | const dimensions = Dimensions.get('window') 19 | 20 | const HOST = process.env.HOST || 'ws://172.20.1.150:8000' 21 | const isFront = true // Use Front camera? 22 | const DEFAULT_ICE = { 23 | // we need to fork react-native-webrtc for relay-only to work. 24 | // iceTransportPolicy: "relay", 25 | iceServers: [ 26 | // { 27 | // urls: 'turn:s2.xirsys.com:80?transport=tcp', 28 | // username: '8a63bcac-e16a-11e7-a86e-a62bc0457e71', 29 | // credential: '8a63bdd8-e16a-11e7-b7e2-48f12b7ac2d8' 30 | // }, 31 | { 32 | urls: 'turn:turn.msgsafe.io:443?transport=tcp', 33 | username: 'a9a2b514', 34 | credential: '00163e7826d6' 35 | }, 36 | /* Native libraries DO NOT fail over correctly. 37 | { 38 | urls: 'turn:turn.msgsafe.io:443', 39 | username: 'a9a2b514', 40 | credential: '00163e7826d6' 41 | } 42 | */ 43 | ] 44 | } 45 | 46 | export default class App extends React.Component { 47 | 48 | constructor(props) { 49 | super(props) 50 | this.handleConnect = this.handleConnect.bind(this) 51 | this.on_ICE_Connection_State_Change = this.on_ICE_Connection_State_Change.bind(this) 52 | this.on_Add_Stream = this.on_Add_Stream.bind(this) 53 | this.on_ICE_Candiate = this.on_ICE_Candiate.bind(this) 54 | this.sendMessage = this.sendMessage.bind(this) 55 | this.on_Offer_Received = this.on_Offer_Received.bind(this) 56 | this.on_Answer_Received = this.on_Answer_Received.bind(this) 57 | this.setupWebRTC = this.setupWebRTC.bind(this) 58 | this.handleAnswer = this.handleAnswer.bind(this) 59 | this.on_Remote_ICE_Candidate = this.on_Remote_ICE_Candidate.bind(this) 60 | 61 | this.state = { 62 | connected: false, 63 | ice_connection_state: '', 64 | pendingCandidates: [] 65 | } 66 | } 67 | 68 | render() { 69 | return ( 70 | 71 | 72 | 73 | 74 | { this.state.localStreamURL && 75 | 76 | } 77 | 78 | 79 | 80 | 81 | { this.state.remoteStreamURL && 82 | 83 | } 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | Connect 92 | 93 | 94 | { // Offer received and offer not answered 95 | (this.state.offer_received && !this.state.offer_answered) && 96 | 97 | 98 | Answer 99 | 100 | 101 | } 102 | 103 | 104 | ); 105 | } 106 | 107 | async setupWebRTC() { 108 | const self = this 109 | const peer = new WebRTCLib.RTCPeerConnection(DEFAULT_ICE) 110 | peer.oniceconnectionstatechange = this.on_ICE_Connection_State_Change 111 | peer.onaddstream = this.on_Add_Stream 112 | peer.onicecandidate = this.on_ICE_Candiate 113 | 114 | console.info('localStream:', this.localStream) 115 | peer.addStream(this.localStream) 116 | this.peer = peer 117 | } 118 | 119 | async handleConnect(e) { 120 | await this.setupWebRTC() 121 | const { peer } = this 122 | 123 | try { 124 | // Create Offer 125 | const offer = await peer.createOffer() 126 | console.info('Offer Created:', offer) 127 | self.offer = offer 128 | console.info('offer:', offer) 129 | 130 | await peer.setLocalDescription(offer) 131 | console.info('localDescription set!') 132 | 133 | // TODO: should send localDescription or offer 134 | // For now send localDescription 135 | 136 | 137 | } catch (e) { 138 | console.error('Failed to setup local offer') 139 | console.error(e.message) 140 | return 141 | } 142 | } 143 | 144 | on_ICE_Connection_State_Change(e) { 145 | console.info('ICE Connection State Changed:', e.target.iceConnectionState) 146 | this.setState({ 147 | ice_connection_state: e.target.iceConnectionState 148 | }) 149 | 150 | switch (e.target.iceConnectionState) { 151 | case 'closed': 152 | case 'disconnected': 153 | case 'failed': 154 | if (this.peer) { 155 | this.peer.close() 156 | this.setState({ 157 | remoteStreamURL: null 158 | }) 159 | this.remoteStream = null 160 | } 161 | break 162 | } 163 | } 164 | 165 | on_ICE_Candiate(e) { 166 | const { candidate } = e 167 | console.info('ICE Candidate Found:', candidate) 168 | 169 | if (candidate) { 170 | let pendingRemoteIceCandidates = this.state.pendingCandidates 171 | if (Array.isArray(pendingRemoteIceCandidates)) { 172 | this.setState({ 173 | pendingCandidates: [...pendingRemoteIceCandidates, candidate] 174 | }) 175 | } else { 176 | this.setState({ 177 | pendingCandidates: [candidate] 178 | }) 179 | } 180 | } else { // Candidate gathering complete 181 | if (this.state.pendingCandidates.length > 1) { 182 | this.sendMessage({ 183 | type: this.state.offer_received ? 'answer' : 'offer', 184 | payload: { 185 | description: this.peer.localDescription, 186 | candidates: this.state.pendingCandidates 187 | } 188 | }) 189 | } else { 190 | console.error('Failed to send an offer/answer: No candidates') 191 | debugger 192 | } 193 | } 194 | } 195 | 196 | async on_Remote_ICE_Candidate(data) { 197 | if (data.payload) { 198 | if (this.peer) { 199 | await this.peer.addIceCandidate(new RTCIceCandidate(data.payload)) 200 | } else { 201 | console.error('Peer is not ready') 202 | } 203 | } else { 204 | console.info('Remote ICE Candidates Gathered!') 205 | } 206 | } 207 | 208 | on_Add_Stream(e) { 209 | console.info('Remote Stream Added:', e.stream) 210 | this.setState({ 211 | remoteStreamURL: e.stream.toURL() 212 | }) 213 | this.remoteStream = e.stream 214 | } 215 | 216 | on_Offer_Received(data) { 217 | debugger 218 | this.setState({ 219 | offer_received: true, 220 | offer_answered: false, 221 | offer: data 222 | }) 223 | } 224 | 225 | async on_Answer_Received(data) { 226 | const { payload } = data 227 | await this.peer.setRemoteDescription(new WebRTCLib.RTCSessionDescription(payload.description)) 228 | payload.candidates.forEach(c => this.peer.addIceCandidate(new RTCIceCandidate(c))) 229 | this.setState({ 230 | answer_recevied: true 231 | }) 232 | } 233 | 234 | async handleAnswer() { 235 | const { payload } = this.state.offer 236 | await this.setupWebRTC() 237 | 238 | const { peer } = this 239 | 240 | await peer.setRemoteDescription(new WebRTCLib.RTCSessionDescription(payload.description)) 241 | 242 | if (Array.isArray(payload.candidates)) { 243 | payload.candidates.forEach((c) => peer.addIceCandidate(new RTCIceCandidate(c))) 244 | } 245 | const answer = await peer.createAnswer() 246 | await peer.setLocalDescription(answer) 247 | this.setState({ 248 | offer_answered: true 249 | }) 250 | } 251 | 252 | sendMessage(msgObj) { 253 | const { ws } = this 254 | if (ws && ws.readyState === 1) { 255 | ws.send(JSON.stringify(msgObj)) 256 | } else { 257 | const e = { 258 | code: 'websocket_error', 259 | message: 'WebSocket state:' + ws.readyState 260 | } 261 | throw e 262 | } 263 | } 264 | 265 | componentWillUnmount() { 266 | if (this.peer) { 267 | this.peer.close() 268 | } 269 | } 270 | 271 | componentDidMount() { 272 | 273 | // Setup Socket 274 | const ws = new WebSocketClient(HOST); 275 | const self = this 276 | self.ws = ws 277 | 278 | ws.onopen = () => { 279 | console.info('Socket Connected!') 280 | self.setState({ 281 | connected: true 282 | }) 283 | }; 284 | 285 | ws.onmessage = e => { 286 | self.setState({ 287 | connected: true 288 | }) 289 | let msg = {} 290 | const { data } = e 291 | try { msg = JSON.parse(data)} catch(e) { 292 | console.error('Invalid message:', data) 293 | } 294 | console.info('New Message:', data) 295 | // a message was received 296 | if (msg) { 297 | if (msg.type === 'offer') { 298 | this.on_Offer_Received(msg) 299 | } else if (msg.type === 'answer') { 300 | this.on_Answer_Received(msg) 301 | } else { 302 | console.error('Unknown message:', msg) 303 | } 304 | } 305 | }; 306 | 307 | ws.onerror = e => { 308 | // an error occurred 309 | console.info(e.message); 310 | self.setState({ 311 | connected: false 312 | }) 313 | }; 314 | 315 | ws.onclose = e => { 316 | // connection closed 317 | console.log(e.code, e.reason); 318 | self.setState({ 319 | connected: false 320 | }) 321 | }; 322 | 323 | // Setup Camera & Audio 324 | MediaStreamTrack 325 | .getSources() 326 | .then(sourceInfos => { 327 | let videoSourceId; 328 | for (let i = 0; i < sourceInfos.length; i++) { 329 | const sourceInfo = sourceInfos[i]; 330 | if(sourceInfo.kind == "video" && sourceInfo.facing == (isFront ? "front" : "back")) { 331 | videoSourceId = sourceInfo.id; 332 | } 333 | } 334 | return getUserMedia({ 335 | audio: true, 336 | video: { 337 | mandatory: { 338 | minWidth: 500, // Provide your own width, height and frame rate here 339 | minHeight: 300, 340 | minFrameRate: 30 341 | }, 342 | facingMode: (isFront ? "user" : "environment"), 343 | optional: (videoSourceId ? [{sourceId: videoSourceId}] : []) 344 | } 345 | }); 346 | }) 347 | .then(stream => { 348 | self.setState({ 349 | localStreamURL: stream.toURL() 350 | }) 351 | self.localStream = stream 352 | }) 353 | .catch(e => { 354 | console.error('Failed to setup stream:', e.message) 355 | }) 356 | } 357 | } 358 | 359 | const styles = StyleSheet.create({ 360 | container: { 361 | flex: 1, 362 | backgroundColor: '#fff', 363 | alignItems: 'center', 364 | justifyContent: 'flex-start' 365 | }, 366 | bottomView: { 367 | height: 20, 368 | flex: 1, 369 | bottom: 80, 370 | position: 'absolute', 371 | alignItems: 'center' 372 | }, 373 | connect: { 374 | fontSize: 30 375 | }, 376 | video: { 377 | flex: 1, 378 | flexDirection: 'row', 379 | position: 'relative', 380 | backgroundColor: '#eee', 381 | alignSelf: 'stretch' 382 | }, 383 | onlineCircle: { 384 | width: 20, 385 | height: 20, 386 | borderRadius: 10, 387 | backgroundColor: '#1e1', 388 | position: 'absolute', 389 | top: 10, 390 | left: 10 391 | }, 392 | offlineCircle: { 393 | width: 20, 394 | height: 20, 395 | borderRadius: 10, 396 | backgroundColor: '#333' 397 | }, 398 | callerVideo: { 399 | flex: 0.5, 400 | backgroundColor: '#faa', 401 | alignItems: 'center', 402 | justifyContent: 'center', 403 | flexDirection: 'column' 404 | }, 405 | calleeVideo: { 406 | flex: 0.5, 407 | backgroundColor: '#aaf', 408 | alignItems: 'center', 409 | justifyContent: 'center', 410 | flexDirection: 'column' 411 | }, 412 | videoWidget: { 413 | position: 'relative', 414 | flex: 0.5, 415 | backgroundColor: '#fff', 416 | width: dimensions.width / 2, 417 | borderWidth: 1, 418 | borderColor: '#eee' 419 | }, 420 | rtcView: { 421 | flex: 1, 422 | width: dimensions.width / 2, 423 | backgroundColor: '#f00', 424 | position: 'relative' 425 | } 426 | }); 427 | -------------------------------------------------------------------------------- /App.test.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import App from './App'; 3 | 4 | import renderer from 'react-test-renderer'; 5 | 6 | it('renders without crashing', () => { 7 | const rendered = renderer.create().toJSON(); 8 | expect(rendered).toBeTruthy(); 9 | }); 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React Native App](https://github.com/react-community/create-react-native-app). 2 | 3 | Below you'll find information about performing common tasks. The most recent version of this guide is available [here](https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md). 4 | 5 | ## Table of Contents 6 | 7 | * [Updating to New Releases](#updating-to-new-releases) 8 | * [Available Scripts](#available-scripts) 9 | * [npm start](#npm-start) 10 | * [npm test](#npm-test) 11 | * [npm run ios](#npm-run-ios) 12 | * [npm run android](#npm-run-android) 13 | * [npm run eject](#npm-run-eject) 14 | * [Writing and Running Tests](#writing-and-running-tests) 15 | * [Environment Variables](#environment-variables) 16 | * [Configuring Packager IP Address](#configuring-packager-ip-address) 17 | * [Adding Flow](#adding-flow) 18 | * [Customizing App Display Name and Icon](#customizing-app-display-name-and-icon) 19 | * [Sharing and Deployment](#sharing-and-deployment) 20 | * [Publishing to Expo's React Native Community](#publishing-to-expos-react-native-community) 21 | * [Building an Expo "standalone" app](#building-an-expo-standalone-app) 22 | * [Ejecting from Create React Native App](#ejecting-from-create-react-native-app) 23 | * [Build Dependencies (Xcode & Android Studio)](#build-dependencies-xcode-android-studio) 24 | * [Should I Use ExpoKit?](#should-i-use-expokit) 25 | * [Troubleshooting](#troubleshooting) 26 | * [Networking](#networking) 27 | * [iOS Simulator won't open](#ios-simulator-wont-open) 28 | * [QR Code does not scan](#qr-code-does-not-scan) 29 | 30 | ## Updating to New Releases 31 | 32 | You should only need to update the global installation of `create-react-native-app` very rarely, ideally never. 33 | 34 | Updating the `react-native-scripts` dependency of your app should be as simple as bumping the version number in `package.json` and reinstalling your project's dependencies. 35 | 36 | Upgrading to a new version of React Native requires updating the `react-native`, `react`, and `expo` package versions, and setting the correct `sdkVersion` in `app.json`. See the [versioning guide](https://github.com/react-community/create-react-native-app/blob/master/VERSIONS.md) for up-to-date information about package version compatibility. 37 | 38 | ## Available Scripts 39 | 40 | If Yarn was installed when the project was initialized, then dependencies will have been installed via Yarn, and you should probably use it to run these commands as well. Unlike dependency installation, command running syntax is identical for Yarn and NPM at the time of this writing. 41 | 42 | ### `npm start` 43 | 44 | Runs your app in development mode. 45 | 46 | Open it in the [Expo app](https://expo.io) on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal. 47 | 48 | Sometimes you may need to reset or clear the React Native packager's cache. To do so, you can pass the `--reset-cache` flag to the start script: 49 | 50 | ``` 51 | npm start -- --reset-cache 52 | # or 53 | yarn start -- --reset-cache 54 | ``` 55 | 56 | #### `npm test` 57 | 58 | Runs the [jest](https://github.com/facebook/jest) test runner on your tests. 59 | 60 | #### `npm run ios` 61 | 62 | Like `npm start`, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed. 63 | 64 | #### `npm run android` 65 | 66 | Like `npm start`, but also attempts to open your app on a connected Android device or emulator. Requires an installation of Android build tools (see [React Native docs](https://facebook.github.io/react-native/docs/getting-started.html) for detailed setup). We also recommend installing Genymotion as your Android emulator. Once you've finished setting up the native build environment, there are two options for making the right copy of `adb` available to Create React Native App: 67 | 68 | ##### Using Android Studio's `adb` 69 | 70 | 1. Make sure that you can run adb from your terminal. 71 | 2. Open Genymotion and navigate to `Settings -> ADB`. Select “Use custom Android SDK tools” and update with your [Android SDK directory](https://stackoverflow.com/questions/25176594/android-sdk-location). 72 | 73 | ##### Using Genymotion's `adb` 74 | 75 | 1. Find Genymotion’s copy of adb. On macOS for example, this is normally `/Applications/Genymotion.app/Contents/MacOS/tools/`. 76 | 2. Add the Genymotion tools directory to your path (instructions for [Mac](http://osxdaily.com/2014/08/14/add-new-path-to-path-command-line/), [Linux](http://www.computerhope.com/issues/ch001647.htm), and [Windows](https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/)). 77 | 3. Make sure that you can run adb from your terminal. 78 | 79 | #### `npm run eject` 80 | 81 | This will start the process of "ejecting" from Create React Native App's build scripts. You'll be asked a couple of questions about how you'd like to build your project. 82 | 83 | **Warning:** Running eject is a permanent action (aside from whatever version control system you use). An ejected app will require you to have an [Xcode and/or Android Studio environment](https://facebook.github.io/react-native/docs/getting-started.html) set up. 84 | 85 | ## Customizing App Display Name and Icon 86 | 87 | You can edit `app.json` to include [configuration keys](https://docs.expo.io/versions/latest/guides/configuration.html) under the `expo` key. 88 | 89 | To change your app's display name, set the `expo.name` key in `app.json` to an appropriate string. 90 | 91 | To set an app icon, set the `expo.icon` key in `app.json` to be either a local path or a URL. It's recommended that you use a 512x512 png file with transparency. 92 | 93 | ## Writing and Running Tests 94 | 95 | This project is set up to use [jest](https://facebook.github.io/jest/) for tests. You can configure whatever testing strategy you like, but jest works out of the box. Create test files in directories called `__tests__` or with the `.test` extension to have the files loaded by jest. See the [the template project](https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/App.test.js) for an example test. The [jest documentation](https://facebook.github.io/jest/docs/en/getting-started.html) is also a wonderful resource, as is the [React Native testing tutorial](https://facebook.github.io/jest/docs/en/tutorial-react-native.html). 96 | 97 | ## Environment Variables 98 | 99 | You can configure some of Create React Native App's behavior using environment variables. 100 | 101 | ### Configuring Packager IP Address 102 | 103 | When starting your project, you'll see something like this for your project URL: 104 | 105 | ``` 106 | exp://192.168.0.2:19000 107 | ``` 108 | 109 | The "manifest" at that URL tells the Expo app how to retrieve and load your app's JavaScript bundle, so even if you load it in the app via a URL like `exp://localhost:19000`, the Expo client app will still try to retrieve your app at the IP address that the start script provides. 110 | 111 | In some cases, this is less than ideal. This might be the case if you need to run your project inside of a virtual machine and you have to access the packager via a different IP address than the one which prints by default. In order to override the IP address or hostname that is detected by Create React Native App, you can specify your own hostname via the `REACT_NATIVE_PACKAGER_HOSTNAME` environment variable: 112 | 113 | Mac and Linux: 114 | 115 | ``` 116 | REACT_NATIVE_PACKAGER_HOSTNAME='my-custom-ip-address-or-hostname' npm start 117 | ``` 118 | 119 | Windows: 120 | ``` 121 | set REACT_NATIVE_PACKAGER_HOSTNAME='my-custom-ip-address-or-hostname' 122 | npm start 123 | ``` 124 | 125 | The above example would cause the development server to listen on `exp://my-custom-ip-address-or-hostname:19000`. 126 | 127 | ## Adding Flow 128 | 129 | Flow is a static type checker that helps you write code with fewer bugs. Check out this [introduction to using static types in JavaScript](https://medium.com/@preethikasireddy/why-use-static-types-in-javascript-part-1-8382da1e0adb) if you are new to this concept. 130 | 131 | React Native works with [Flow](http://flowtype.org/) out of the box, as long as your Flow version matches the one used in the version of React Native. 132 | 133 | To add a local dependency to the correct Flow version to a Create React Native App project, follow these steps: 134 | 135 | 1. Find the Flow `[version]` at the bottom of the included [.flowconfig](.flowconfig) 136 | 2. Run `npm install --save-dev flow-bin@x.y.z` (or `yarn add --dev flow-bin@x.y.z`), where `x.y.z` is the .flowconfig version number. 137 | 3. Add `"flow": "flow"` to the `scripts` section of your `package.json`. 138 | 4. Add `// @flow` to any files you want to type check (for example, to `App.js`). 139 | 140 | Now you can run `npm run flow` (or `yarn flow`) to check the files for type errors. 141 | You can optionally use a [plugin for your IDE or editor](https://flow.org/en/docs/editors/) for a better integrated experience. 142 | 143 | To learn more about Flow, check out [its documentation](https://flow.org/). 144 | 145 | ## Sharing and Deployment 146 | 147 | Create React Native App does a lot of work to make app setup and development simple and straightforward, but it's very difficult to do the same for deploying to Apple's App Store or Google's Play Store without relying on a hosted service. 148 | 149 | ### Publishing to Expo's React Native Community 150 | 151 | Expo provides free hosting for the JS-only apps created by CRNA, allowing you to share your app through the Expo client app. This requires registration for an Expo account. 152 | 153 | Install the `exp` command-line tool, and run the publish command: 154 | 155 | ``` 156 | $ npm i -g exp 157 | $ exp publish 158 | ``` 159 | 160 | ### Building an Expo "standalone" app 161 | 162 | You can also use a service like [Expo's standalone builds](https://docs.expo.io/versions/latest/guides/building-standalone-apps.html) if you want to get an IPA/APK for distribution without having to build the native code yourself. 163 | 164 | ### Ejecting from Create React Native App 165 | 166 | If you want to build and deploy your app yourself, you'll need to eject from CRNA and use Xcode and Android Studio. 167 | 168 | This is usually as simple as running `npm run eject` in your project, which will walk you through the process. Make sure to install `react-native-cli` and follow the [native code getting started guide for React Native](https://facebook.github.io/react-native/docs/getting-started.html). 169 | 170 | #### Should I Use ExpoKit? 171 | 172 | If you have made use of Expo APIs while working on your project, then those API calls will stop working if you eject to a regular React Native project. If you want to continue using those APIs, you can eject to "React Native + ExpoKit" which will still allow you to build your own native code and continue using the Expo APIs. See the [ejecting guide](https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md) for more details about this option. 173 | 174 | ## Troubleshooting 175 | 176 | ### Networking 177 | 178 | If you're unable to load your app on your phone due to a network timeout or a refused connection, a good first step is to verify that your phone and computer are on the same network and that they can reach each other. Create React Native App needs access to ports 19000 and 19001 so ensure that your network and firewall settings allow access from your device to your computer on both of these ports. 179 | 180 | Try opening a web browser on your phone and opening the URL that the packager script prints, replacing `exp://` with `http://`. So, for example, if underneath the QR code in your terminal you see: 181 | 182 | ``` 183 | exp://192.168.0.1:19000 184 | ``` 185 | 186 | Try opening Safari or Chrome on your phone and loading 187 | 188 | ``` 189 | http://192.168.0.1:19000 190 | ``` 191 | 192 | and 193 | 194 | ``` 195 | http://192.168.0.1:19001 196 | ``` 197 | 198 | If this works, but you're still unable to load your app by scanning the QR code, please open an issue on the [Create React Native App repository](https://github.com/react-community/create-react-native-app) with details about these steps and any other error messages you may have received. 199 | 200 | If you're not able to load the `http` URL in your phone's web browser, try using the tethering/mobile hotspot feature on your phone (beware of data usage, though), connecting your computer to that WiFi network, and restarting the packager. 201 | 202 | ### iOS Simulator won't open 203 | 204 | If you're on a Mac, there are a few errors that users sometimes see when attempting to `npm run ios`: 205 | 206 | * "non-zero exit code: 107" 207 | * "You may need to install Xcode" but it is already installed 208 | * and others 209 | 210 | There are a few steps you may want to take to troubleshoot these kinds of errors: 211 | 212 | 1. Make sure Xcode is installed and open it to accept the license agreement if it prompts you. You can install it from the Mac App Store. 213 | 2. Open Xcode's Preferences, the Locations tab, and make sure that the `Command Line Tools` menu option is set to something. Sometimes when the CLI tools are first installed by Homebrew this option is left blank, which can prevent Apple utilities from finding the simulator. Make sure to re-run `npm/yarn run ios` after doing so. 214 | 3. If that doesn't work, open the Simulator, and under the app menu select `Reset Contents and Settings...`. After that has finished, quit the Simulator, and re-run `npm/yarn run ios`. 215 | 216 | ### QR Code does not scan 217 | 218 | If you're not able to scan the QR code, make sure your phone's camera is focusing correctly, and also make sure that the contrast on the two colors in your terminal is high enough. For example, WebStorm's default themes may [not have enough contrast](https://github.com/react-community/create-react-native-app/issues/49) for terminal QR codes to be scannable with the system barcode scanners that the Expo app uses. 219 | 220 | If this causes problems for you, you may want to try changing your terminal's color theme to have more contrast, or running Create React Native App from a different terminal. You can also manually enter the URL printed by the packager script in the Expo app's search bar to load it manually. 221 | -------------------------------------------------------------------------------- /android/ReactNativeWebRTCSample.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /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.reactnativewebrtcsample", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.reactnativewebrtcsample", 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 | -------------------------------------------------------------------------------- /android/app/app.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 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 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | -------------------------------------------------------------------------------- /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 23 98 | buildToolsVersion '26.0.2' 99 | 100 | defaultConfig { 101 | applicationId "com.reactnativewebrtcsample" 102 | minSdkVersion 16 103 | targetSdkVersion 22 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 | compile project(':react-native-webrtc') 141 | compile fileTree(dir: "libs", include: ["*.jar"]) 142 | compile "com.android.support:appcompat-v7:23.0.1" 143 | compile "com.facebook.react:react-native:+" // From node_modules 144 | } 145 | 146 | // Run this once to be able to run the application with BUCK 147 | // puts all compile dependencies into folder libs for BUCK to use 148 | task copyDownloadableDepsToLibs(type: Copy) { 149 | from configurations.compile 150 | into 'libs' 151 | } 152 | -------------------------------------------------------------------------------- /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 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout. 54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details. 55 | -dontwarn android.text.StaticLayout 56 | 57 | # okhttp 58 | 59 | -keepattributes Signature 60 | -keepattributes *Annotation* 61 | -keep class okhttp3.** { *; } 62 | -keep interface okhttp3.** { *; } 63 | -dontwarn okhttp3.** 64 | 65 | # okio 66 | 67 | -keep class sun.misc.Unsafe { *; } 68 | -dontwarn java.nio.file.* 69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 70 | -dontwarn okio.** 71 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 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 | 35 | 36 | 42 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativewebrtcsample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativewebrtcsample; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.oney.WebRTCModule.WebRTCModulePackage; 5 | 6 | public class MainActivity extends ReactActivity { 7 | 8 | /** 9 | * Returns the name of the main component registered from JavaScript. 10 | * This is used to schedule rendering of the component. 11 | */ 12 | @Override 13 | protected String getMainComponentName() { 14 | return "ReactNativeWebRTCSample"; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/reactnativewebrtcsample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.reactnativewebrtcsample; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.facebook.react.ReactNativeHost; 7 | import com.facebook.react.ReactPackage; 8 | import com.facebook.react.shell.MainReactPackage; 9 | import com.facebook.soloader.SoLoader; 10 | import com.oney.WebRTCModule.WebRTCModulePackage; 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 WebRTCModulePackage() 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 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinwitkamp/react-native-webrtc-sample/30b1602b70f30ea3167c6f6a4211d6b815a9cc2c/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinwitkamp/react-native-webrtc-sample/30b1602b70f30ea3167c6f6a4211d6b815a9cc2c/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinwitkamp/react-native-webrtc-sample/30b1602b70f30ea3167c6f6a4211d6b815a9cc2c/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinwitkamp/react-native-webrtc-sample/30b1602b70f30ea3167c6f6a4211d6b815a9cc2c/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | react-native-webrtc-sample 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.0.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/colinwitkamp/react-native-webrtc-sample/30b1602b70f30ea3167c6f6a4211d6b815a9cc2c/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Dec 16 13:28:26 SAMT 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 7 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 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 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /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 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 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 Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/local.properties: -------------------------------------------------------------------------------- 1 | ## This file is automatically generated by Android Studio. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | # 7 | # Location of the SDK. This is only used by Gradle. 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | #Sat Dec 16 13:18:34 SAMT 2017 11 | ndk.dir=/Volumes/MACDATA/tools/AndroidSDK/ndk-bundle 12 | sdk.dir=/Volumes/MACDATA/tools/AndroidSDK 13 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ReactNativeWebRTCSample' 2 | 3 | include ':app' 4 | include ':react-native-webrtc' 5 | project(':react-native-webrtc').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webrtc/android') 6 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "expo": { 3 | "sdkVersion": "23.0.0" 4 | }, 5 | "name": "ReactNativeWebRTCSample", 6 | "displayName": "react-native-webrtc-sample" 7 | } -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './App'; 3 | AppRegistry.registerComponent('ReactNativeWebRTCSample', () => App); 4 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSample-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 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSample-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | /* Begin PBXBuildFile section */ 9 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 10 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 11 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 12 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 13 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 14 | 00E356F31AD99517003FC87E /* ReactNativeWebRTCSampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeWebRTCSampleTests.m */; }; 15 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 19 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 20 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 21 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 22 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 23 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 25 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 26 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 27 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */; }; 28 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 29 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 30 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 31 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 32 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 33 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 34 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 35 | 2DCD954D1E0B4F2C00145EB5 /* ReactNativeWebRTCSampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeWebRTCSampleTests.m */; }; 36 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 37 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 38 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 39 | 9FE19B6F1B5C4648AF2D4B7E /* libRCTWebRTC.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 330E532CD169495A9DB32065 /* libRCTWebRTC.a */; }; 40 | /* End PBXBuildFile section */ 41 | 42 | /* Begin PBXContainerItemProxy section */ 43 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 46 | proxyType = 2; 47 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 48 | remoteInfo = RCTActionSheet; 49 | }; 50 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 51 | isa = PBXContainerItemProxy; 52 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 53 | proxyType = 2; 54 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 55 | remoteInfo = RCTGeolocation; 56 | }; 57 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 58 | isa = PBXContainerItemProxy; 59 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 60 | proxyType = 2; 61 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 62 | remoteInfo = RCTImage; 63 | }; 64 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 65 | isa = PBXContainerItemProxy; 66 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 67 | proxyType = 2; 68 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 69 | remoteInfo = RCTNetwork; 70 | }; 71 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 72 | isa = PBXContainerItemProxy; 73 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 74 | proxyType = 2; 75 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 76 | remoteInfo = RCTVibration; 77 | }; 78 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 79 | isa = PBXContainerItemProxy; 80 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 81 | proxyType = 1; 82 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 83 | remoteInfo = ReactNativeWebRTCSample; 84 | }; 85 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 86 | isa = PBXContainerItemProxy; 87 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 88 | proxyType = 2; 89 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 90 | remoteInfo = RCTSettings; 91 | }; 92 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 93 | isa = PBXContainerItemProxy; 94 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 95 | proxyType = 2; 96 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 97 | remoteInfo = RCTWebSocket; 98 | }; 99 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 100 | isa = PBXContainerItemProxy; 101 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 102 | proxyType = 2; 103 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 104 | remoteInfo = React; 105 | }; 106 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 107 | isa = PBXContainerItemProxy; 108 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 109 | proxyType = 1; 110 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 111 | remoteInfo = "ReactNativeWebRTCSample-tvOS"; 112 | }; 113 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 114 | isa = PBXContainerItemProxy; 115 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 116 | proxyType = 2; 117 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 118 | remoteInfo = "RCTImage-tvOS"; 119 | }; 120 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 121 | isa = PBXContainerItemProxy; 122 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 123 | proxyType = 2; 124 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 125 | remoteInfo = "RCTLinking-tvOS"; 126 | }; 127 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 128 | isa = PBXContainerItemProxy; 129 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 130 | proxyType = 2; 131 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 132 | remoteInfo = "RCTNetwork-tvOS"; 133 | }; 134 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 135 | isa = PBXContainerItemProxy; 136 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 137 | proxyType = 2; 138 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 139 | remoteInfo = "RCTSettings-tvOS"; 140 | }; 141 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 142 | isa = PBXContainerItemProxy; 143 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 144 | proxyType = 2; 145 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 146 | remoteInfo = "RCTText-tvOS"; 147 | }; 148 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 149 | isa = PBXContainerItemProxy; 150 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 151 | proxyType = 2; 152 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 153 | remoteInfo = "RCTWebSocket-tvOS"; 154 | }; 155 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 156 | isa = PBXContainerItemProxy; 157 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 158 | proxyType = 2; 159 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 160 | remoteInfo = "React-tvOS"; 161 | }; 162 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 163 | isa = PBXContainerItemProxy; 164 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 165 | proxyType = 2; 166 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 167 | remoteInfo = yoga; 168 | }; 169 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 170 | isa = PBXContainerItemProxy; 171 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 172 | proxyType = 2; 173 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 174 | remoteInfo = "yoga-tvOS"; 175 | }; 176 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 177 | isa = PBXContainerItemProxy; 178 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 179 | proxyType = 2; 180 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 181 | remoteInfo = cxxreact; 182 | }; 183 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 184 | isa = PBXContainerItemProxy; 185 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 186 | proxyType = 2; 187 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 188 | remoteInfo = "cxxreact-tvOS"; 189 | }; 190 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 191 | isa = PBXContainerItemProxy; 192 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 193 | proxyType = 2; 194 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 195 | remoteInfo = jschelpers; 196 | }; 197 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 198 | isa = PBXContainerItemProxy; 199 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 200 | proxyType = 2; 201 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 202 | remoteInfo = "jschelpers-tvOS"; 203 | }; 204 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 205 | isa = PBXContainerItemProxy; 206 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 207 | proxyType = 2; 208 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 209 | remoteInfo = RCTAnimation; 210 | }; 211 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 212 | isa = PBXContainerItemProxy; 213 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 214 | proxyType = 2; 215 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 216 | remoteInfo = "RCTAnimation-tvOS"; 217 | }; 218 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 219 | isa = PBXContainerItemProxy; 220 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 221 | proxyType = 2; 222 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 223 | remoteInfo = RCTLinking; 224 | }; 225 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 226 | isa = PBXContainerItemProxy; 227 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 228 | proxyType = 2; 229 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 230 | remoteInfo = RCTText; 231 | }; 232 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 233 | isa = PBXContainerItemProxy; 234 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 235 | proxyType = 2; 236 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 237 | remoteInfo = RCTBlob; 238 | }; 239 | /* End PBXContainerItemProxy section */ 240 | 241 | /* Begin PBXFileReference section */ 242 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 243 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 244 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 245 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 246 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 247 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 248 | 00E356EE1AD99517003FC87E /* ReactNativeWebRTCSampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativeWebRTCSampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 249 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 250 | 00E356F21AD99517003FC87E /* ReactNativeWebRTCSampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeWebRTCSampleTests.m; sourceTree = ""; }; 251 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 252 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 253 | 13B07F961A680F5B00A75B9A /* ReactNativeWebRTCSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeWebRTCSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 254 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeWebRTCSample/AppDelegate.h; sourceTree = ""; }; 255 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ReactNativeWebRTCSample/AppDelegate.m; sourceTree = ""; }; 256 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 257 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeWebRTCSample/Images.xcassets; sourceTree = ""; }; 258 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeWebRTCSample/Info.plist; sourceTree = ""; }; 259 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeWebRTCSample/main.m; sourceTree = ""; }; 260 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 261 | 2D02E47B1E0B4A5D006451C7 /* ReactNativeWebRTCSample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ReactNativeWebRTCSample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 262 | 2D02E4901E0B4A5D006451C7 /* ReactNativeWebRTCSample-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ReactNativeWebRTCSample-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 263 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 264 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 265 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 266 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 267 | CE175BB9998B4A109CDEF312 /* RCTWebRTC.xcodeproj */ = {isa = PBXFileReference; name = "RCTWebRTC.xcodeproj"; path = "../node_modules/react-native-webrtc/ios/RCTWebRTC.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; 268 | 330E532CD169495A9DB32065 /* libRCTWebRTC.a */ = {isa = PBXFileReference; name = "libRCTWebRTC.a"; path = "libRCTWebRTC.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 269 | /* End PBXFileReference section */ 270 | 271 | /* Begin PBXFrameworksBuildPhase section */ 272 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 273 | isa = PBXFrameworksBuildPhase; 274 | buildActionMask = 2147483647; 275 | files = ( 276 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 281 | isa = PBXFrameworksBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 285 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 286 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 287 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 288 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 289 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 290 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 291 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 292 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 293 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 294 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 295 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 296 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 297 | 9FE19B6F1B5C4648AF2D4B7E /* libRCTWebRTC.a in Frameworks */, 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | }; 301 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 302 | isa = PBXFrameworksBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 306 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */, 307 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 308 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 309 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 310 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 311 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 312 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | }; 316 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 317 | isa = PBXFrameworksBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | }; 323 | /* End PBXFrameworksBuildPhase section */ 324 | 325 | /* Begin PBXGroup section */ 326 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 327 | isa = PBXGroup; 328 | children = ( 329 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 330 | ); 331 | name = Products; 332 | sourceTree = ""; 333 | }; 334 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 335 | isa = PBXGroup; 336 | children = ( 337 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 338 | ); 339 | name = Products; 340 | sourceTree = ""; 341 | }; 342 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 343 | isa = PBXGroup; 344 | children = ( 345 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 346 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 347 | ); 348 | name = Products; 349 | sourceTree = ""; 350 | }; 351 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 352 | isa = PBXGroup; 353 | children = ( 354 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 355 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 356 | ); 357 | name = Products; 358 | sourceTree = ""; 359 | }; 360 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 361 | isa = PBXGroup; 362 | children = ( 363 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 364 | ); 365 | name = Products; 366 | sourceTree = ""; 367 | }; 368 | 00E356EF1AD99517003FC87E /* ReactNativeWebRTCSampleTests */ = { 369 | isa = PBXGroup; 370 | children = ( 371 | 00E356F21AD99517003FC87E /* ReactNativeWebRTCSampleTests.m */, 372 | 00E356F01AD99517003FC87E /* Supporting Files */, 373 | ); 374 | path = ReactNativeWebRTCSampleTests; 375 | sourceTree = ""; 376 | }; 377 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 378 | isa = PBXGroup; 379 | children = ( 380 | 00E356F11AD99517003FC87E /* Info.plist */, 381 | ); 382 | name = "Supporting Files"; 383 | sourceTree = ""; 384 | }; 385 | 139105B71AF99BAD00B5F7CC /* Products */ = { 386 | isa = PBXGroup; 387 | children = ( 388 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 389 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 390 | ); 391 | name = Products; 392 | sourceTree = ""; 393 | }; 394 | 139FDEE71B06529A00C62182 /* Products */ = { 395 | isa = PBXGroup; 396 | children = ( 397 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 398 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 399 | ); 400 | name = Products; 401 | sourceTree = ""; 402 | }; 403 | 13B07FAE1A68108700A75B9A /* ReactNativeWebRTCSample */ = { 404 | isa = PBXGroup; 405 | children = ( 406 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 407 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 408 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 409 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 410 | 13B07FB61A68108700A75B9A /* Info.plist */, 411 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 412 | 13B07FB71A68108700A75B9A /* main.m */, 413 | ); 414 | name = ReactNativeWebRTCSample; 415 | sourceTree = ""; 416 | }; 417 | 146834001AC3E56700842450 /* Products */ = { 418 | isa = PBXGroup; 419 | children = ( 420 | 146834041AC3E56700842450 /* libReact.a */, 421 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 422 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 423 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 424 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 425 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 426 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 427 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 428 | 3DAD3EA31DF850E9000B6D8A /* libReact-tvOS.a */, 429 | ); 430 | name = Products; 431 | sourceTree = ""; 432 | }; 433 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 434 | isa = PBXGroup; 435 | children = ( 436 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 437 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */, 438 | ); 439 | name = Products; 440 | sourceTree = ""; 441 | }; 442 | 78C398B11ACF4ADC00677621 /* Products */ = { 443 | isa = PBXGroup; 444 | children = ( 445 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 446 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 447 | ); 448 | name = Products; 449 | sourceTree = ""; 450 | }; 451 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 452 | isa = PBXGroup; 453 | children = ( 454 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 455 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 456 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 457 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 458 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 459 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 460 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 461 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 462 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 463 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 464 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 465 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 466 | CE175BB9998B4A109CDEF312 /* RCTWebRTC.xcodeproj */, 467 | ); 468 | name = Libraries; 469 | sourceTree = ""; 470 | }; 471 | 832341B11AAA6A8300B99B32 /* Products */ = { 472 | isa = PBXGroup; 473 | children = ( 474 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 475 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 476 | ); 477 | name = Products; 478 | sourceTree = ""; 479 | }; 480 | 83CBB9F61A601CBA00E9B192 = { 481 | isa = PBXGroup; 482 | children = ( 483 | 13B07FAE1A68108700A75B9A /* ReactNativeWebRTCSample */, 484 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 485 | 00E356EF1AD99517003FC87E /* ReactNativeWebRTCSampleTests */, 486 | 83CBBA001A601CBA00E9B192 /* Products */, 487 | ); 488 | indentWidth = 2; 489 | sourceTree = ""; 490 | tabWidth = 2; 491 | usesTabs = 0; 492 | }; 493 | 83CBBA001A601CBA00E9B192 /* Products */ = { 494 | isa = PBXGroup; 495 | children = ( 496 | 13B07F961A680F5B00A75B9A /* ReactNativeWebRTCSample.app */, 497 | 00E356EE1AD99517003FC87E /* ReactNativeWebRTCSampleTests.xctest */, 498 | 2D02E47B1E0B4A5D006451C7 /* ReactNativeWebRTCSample-tvOS.app */, 499 | 2D02E4901E0B4A5D006451C7 /* ReactNativeWebRTCSample-tvOSTests.xctest */, 500 | ); 501 | name = Products; 502 | sourceTree = ""; 503 | }; 504 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 505 | isa = PBXGroup; 506 | children = ( 507 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 508 | ); 509 | name = Products; 510 | sourceTree = ""; 511 | }; 512 | /* End PBXGroup section */ 513 | 514 | /* Begin PBXNativeTarget section */ 515 | 00E356ED1AD99517003FC87E /* ReactNativeWebRTCSampleTests */ = { 516 | isa = PBXNativeTarget; 517 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeWebRTCSampleTests" */; 518 | buildPhases = ( 519 | 00E356EA1AD99517003FC87E /* Sources */, 520 | 00E356EB1AD99517003FC87E /* Frameworks */, 521 | 00E356EC1AD99517003FC87E /* Resources */, 522 | ); 523 | buildRules = ( 524 | ); 525 | dependencies = ( 526 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 527 | ); 528 | name = ReactNativeWebRTCSampleTests; 529 | productName = ReactNativeWebRTCSampleTests; 530 | productReference = 00E356EE1AD99517003FC87E /* ReactNativeWebRTCSampleTests.xctest */; 531 | productType = "com.apple.product-type.bundle.unit-test"; 532 | }; 533 | 13B07F861A680F5B00A75B9A /* ReactNativeWebRTCSample */ = { 534 | isa = PBXNativeTarget; 535 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeWebRTCSample" */; 536 | buildPhases = ( 537 | 13B07F871A680F5B00A75B9A /* Sources */, 538 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 539 | 13B07F8E1A680F5B00A75B9A /* Resources */, 540 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 541 | ); 542 | buildRules = ( 543 | ); 544 | dependencies = ( 545 | ); 546 | name = ReactNativeWebRTCSample; 547 | productName = "Hello World"; 548 | productReference = 13B07F961A680F5B00A75B9A /* ReactNativeWebRTCSample.app */; 549 | productType = "com.apple.product-type.application"; 550 | }; 551 | 2D02E47A1E0B4A5D006451C7 /* ReactNativeWebRTCSample-tvOS */ = { 552 | isa = PBXNativeTarget; 553 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeWebRTCSample-tvOS" */; 554 | buildPhases = ( 555 | 2D02E4771E0B4A5D006451C7 /* Sources */, 556 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 557 | 2D02E4791E0B4A5D006451C7 /* Resources */, 558 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 559 | ); 560 | buildRules = ( 561 | ); 562 | dependencies = ( 563 | ); 564 | name = "ReactNativeWebRTCSample-tvOS"; 565 | productName = "ReactNativeWebRTCSample-tvOS"; 566 | productReference = 2D02E47B1E0B4A5D006451C7 /* ReactNativeWebRTCSample-tvOS.app */; 567 | productType = "com.apple.product-type.application"; 568 | }; 569 | 2D02E48F1E0B4A5D006451C7 /* ReactNativeWebRTCSample-tvOSTests */ = { 570 | isa = PBXNativeTarget; 571 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeWebRTCSample-tvOSTests" */; 572 | buildPhases = ( 573 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 574 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 575 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 576 | ); 577 | buildRules = ( 578 | ); 579 | dependencies = ( 580 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 581 | ); 582 | name = "ReactNativeWebRTCSample-tvOSTests"; 583 | productName = "ReactNativeWebRTCSample-tvOSTests"; 584 | productReference = 2D02E4901E0B4A5D006451C7 /* ReactNativeWebRTCSample-tvOSTests.xctest */; 585 | productType = "com.apple.product-type.bundle.unit-test"; 586 | }; 587 | /* End PBXNativeTarget section */ 588 | 589 | /* Begin PBXProject section */ 590 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 591 | isa = PBXProject; 592 | attributes = { 593 | LastUpgradeCheck = 610; 594 | ORGANIZATIONNAME = Facebook; 595 | TargetAttributes = { 596 | 00E356ED1AD99517003FC87E = { 597 | CreatedOnToolsVersion = 6.2; 598 | TestTargetID = 13B07F861A680F5B00A75B9A; 599 | }; 600 | 2D02E47A1E0B4A5D006451C7 = { 601 | CreatedOnToolsVersion = 8.2.1; 602 | ProvisioningStyle = Automatic; 603 | }; 604 | 2D02E48F1E0B4A5D006451C7 = { 605 | CreatedOnToolsVersion = 8.2.1; 606 | ProvisioningStyle = Automatic; 607 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 608 | }; 609 | }; 610 | }; 611 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeWebRTCSample" */; 612 | compatibilityVersion = "Xcode 3.2"; 613 | developmentRegion = English; 614 | hasScannedForEncodings = 0; 615 | knownRegions = ( 616 | en, 617 | Base, 618 | ); 619 | mainGroup = 83CBB9F61A601CBA00E9B192; 620 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 621 | projectDirPath = ""; 622 | projectReferences = ( 623 | { 624 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 625 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 626 | }, 627 | { 628 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 629 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 630 | }, 631 | { 632 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 633 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 634 | }, 635 | { 636 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 637 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 638 | }, 639 | { 640 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 641 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 642 | }, 643 | { 644 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 645 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 646 | }, 647 | { 648 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 649 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 650 | }, 651 | { 652 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 653 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 654 | }, 655 | { 656 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 657 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 658 | }, 659 | { 660 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 661 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 662 | }, 663 | { 664 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 665 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 666 | }, 667 | { 668 | ProductGroup = 146834001AC3E56700842450 /* Products */; 669 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 670 | }, 671 | ); 672 | projectRoot = ""; 673 | targets = ( 674 | 13B07F861A680F5B00A75B9A /* ReactNativeWebRTCSample */, 675 | 00E356ED1AD99517003FC87E /* ReactNativeWebRTCSampleTests */, 676 | 2D02E47A1E0B4A5D006451C7 /* ReactNativeWebRTCSample-tvOS */, 677 | 2D02E48F1E0B4A5D006451C7 /* ReactNativeWebRTCSample-tvOSTests */, 678 | ); 679 | }; 680 | /* End PBXProject section */ 681 | 682 | /* Begin PBXReferenceProxy section */ 683 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 684 | isa = PBXReferenceProxy; 685 | fileType = archive.ar; 686 | path = libRCTActionSheet.a; 687 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 688 | sourceTree = BUILT_PRODUCTS_DIR; 689 | }; 690 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 691 | isa = PBXReferenceProxy; 692 | fileType = archive.ar; 693 | path = libRCTGeolocation.a; 694 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 695 | sourceTree = BUILT_PRODUCTS_DIR; 696 | }; 697 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 698 | isa = PBXReferenceProxy; 699 | fileType = archive.ar; 700 | path = libRCTImage.a; 701 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 702 | sourceTree = BUILT_PRODUCTS_DIR; 703 | }; 704 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 705 | isa = PBXReferenceProxy; 706 | fileType = archive.ar; 707 | path = libRCTNetwork.a; 708 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 709 | sourceTree = BUILT_PRODUCTS_DIR; 710 | }; 711 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 712 | isa = PBXReferenceProxy; 713 | fileType = archive.ar; 714 | path = libRCTVibration.a; 715 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 716 | sourceTree = BUILT_PRODUCTS_DIR; 717 | }; 718 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 719 | isa = PBXReferenceProxy; 720 | fileType = archive.ar; 721 | path = libRCTSettings.a; 722 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 723 | sourceTree = BUILT_PRODUCTS_DIR; 724 | }; 725 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 726 | isa = PBXReferenceProxy; 727 | fileType = archive.ar; 728 | path = libRCTWebSocket.a; 729 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 730 | sourceTree = BUILT_PRODUCTS_DIR; 731 | }; 732 | 146834041AC3E56700842450 /* libReact.a */ = { 733 | isa = PBXReferenceProxy; 734 | fileType = archive.ar; 735 | path = libReact.a; 736 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 737 | sourceTree = BUILT_PRODUCTS_DIR; 738 | }; 739 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 740 | isa = PBXReferenceProxy; 741 | fileType = archive.ar; 742 | path = "libRCTImage-tvOS.a"; 743 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 744 | sourceTree = BUILT_PRODUCTS_DIR; 745 | }; 746 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 747 | isa = PBXReferenceProxy; 748 | fileType = archive.ar; 749 | path = "libRCTLinking-tvOS.a"; 750 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 751 | sourceTree = BUILT_PRODUCTS_DIR; 752 | }; 753 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 754 | isa = PBXReferenceProxy; 755 | fileType = archive.ar; 756 | path = "libRCTNetwork-tvOS.a"; 757 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 758 | sourceTree = BUILT_PRODUCTS_DIR; 759 | }; 760 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 761 | isa = PBXReferenceProxy; 762 | fileType = archive.ar; 763 | path = "libRCTSettings-tvOS.a"; 764 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 765 | sourceTree = BUILT_PRODUCTS_DIR; 766 | }; 767 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 768 | isa = PBXReferenceProxy; 769 | fileType = archive.ar; 770 | path = "libRCTText-tvOS.a"; 771 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 772 | sourceTree = BUILT_PRODUCTS_DIR; 773 | }; 774 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 775 | isa = PBXReferenceProxy; 776 | fileType = archive.ar; 777 | path = "libRCTWebSocket-tvOS.a"; 778 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 779 | sourceTree = BUILT_PRODUCTS_DIR; 780 | }; 781 | 3DAD3EA31DF850E9000B6D8A /* libReact-tvOS.a */ = { 782 | isa = PBXReferenceProxy; 783 | fileType = archive.ar; 784 | path = "libReact-tvOS.a"; 785 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 786 | sourceTree = BUILT_PRODUCTS_DIR; 787 | }; 788 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 789 | isa = PBXReferenceProxy; 790 | fileType = archive.ar; 791 | path = libyoga.a; 792 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 793 | sourceTree = BUILT_PRODUCTS_DIR; 794 | }; 795 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 796 | isa = PBXReferenceProxy; 797 | fileType = archive.ar; 798 | path = libyoga.a; 799 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 800 | sourceTree = BUILT_PRODUCTS_DIR; 801 | }; 802 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 803 | isa = PBXReferenceProxy; 804 | fileType = archive.ar; 805 | path = libcxxreact.a; 806 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 807 | sourceTree = BUILT_PRODUCTS_DIR; 808 | }; 809 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 810 | isa = PBXReferenceProxy; 811 | fileType = archive.ar; 812 | path = libcxxreact.a; 813 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 814 | sourceTree = BUILT_PRODUCTS_DIR; 815 | }; 816 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 817 | isa = PBXReferenceProxy; 818 | fileType = archive.ar; 819 | path = libjschelpers.a; 820 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 821 | sourceTree = BUILT_PRODUCTS_DIR; 822 | }; 823 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 824 | isa = PBXReferenceProxy; 825 | fileType = archive.ar; 826 | path = libjschelpers.a; 827 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 828 | sourceTree = BUILT_PRODUCTS_DIR; 829 | }; 830 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 831 | isa = PBXReferenceProxy; 832 | fileType = archive.ar; 833 | path = libRCTAnimation.a; 834 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 835 | sourceTree = BUILT_PRODUCTS_DIR; 836 | }; 837 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = { 838 | isa = PBXReferenceProxy; 839 | fileType = archive.ar; 840 | path = "libRCTAnimation-tvOS.a"; 841 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 842 | sourceTree = BUILT_PRODUCTS_DIR; 843 | }; 844 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 845 | isa = PBXReferenceProxy; 846 | fileType = archive.ar; 847 | path = libRCTLinking.a; 848 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 849 | sourceTree = BUILT_PRODUCTS_DIR; 850 | }; 851 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 852 | isa = PBXReferenceProxy; 853 | fileType = archive.ar; 854 | path = libRCTText.a; 855 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 856 | sourceTree = BUILT_PRODUCTS_DIR; 857 | }; 858 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 859 | isa = PBXReferenceProxy; 860 | fileType = archive.ar; 861 | path = libRCTBlob.a; 862 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 863 | sourceTree = BUILT_PRODUCTS_DIR; 864 | }; 865 | /* End PBXReferenceProxy section */ 866 | 867 | /* Begin PBXResourcesBuildPhase section */ 868 | 00E356EC1AD99517003FC87E /* Resources */ = { 869 | isa = PBXResourcesBuildPhase; 870 | buildActionMask = 2147483647; 871 | files = ( 872 | ); 873 | runOnlyForDeploymentPostprocessing = 0; 874 | }; 875 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 876 | isa = PBXResourcesBuildPhase; 877 | buildActionMask = 2147483647; 878 | files = ( 879 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 880 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 881 | ); 882 | runOnlyForDeploymentPostprocessing = 0; 883 | }; 884 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 885 | isa = PBXResourcesBuildPhase; 886 | buildActionMask = 2147483647; 887 | files = ( 888 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 889 | ); 890 | runOnlyForDeploymentPostprocessing = 0; 891 | }; 892 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 893 | isa = PBXResourcesBuildPhase; 894 | buildActionMask = 2147483647; 895 | files = ( 896 | ); 897 | runOnlyForDeploymentPostprocessing = 0; 898 | }; 899 | /* End PBXResourcesBuildPhase section */ 900 | 901 | /* Begin PBXShellScriptBuildPhase section */ 902 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 903 | isa = PBXShellScriptBuildPhase; 904 | buildActionMask = 2147483647; 905 | files = ( 906 | ); 907 | inputPaths = ( 908 | ); 909 | name = "Bundle React Native code and images"; 910 | outputPaths = ( 911 | ); 912 | runOnlyForDeploymentPostprocessing = 0; 913 | shellPath = /bin/sh; 914 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 915 | }; 916 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 917 | isa = PBXShellScriptBuildPhase; 918 | buildActionMask = 2147483647; 919 | files = ( 920 | ); 921 | inputPaths = ( 922 | ); 923 | name = "Bundle React Native Code And Images"; 924 | outputPaths = ( 925 | ); 926 | runOnlyForDeploymentPostprocessing = 0; 927 | shellPath = /bin/sh; 928 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 929 | }; 930 | /* End PBXShellScriptBuildPhase section */ 931 | 932 | /* Begin PBXSourcesBuildPhase section */ 933 | 00E356EA1AD99517003FC87E /* Sources */ = { 934 | isa = PBXSourcesBuildPhase; 935 | buildActionMask = 2147483647; 936 | files = ( 937 | 00E356F31AD99517003FC87E /* ReactNativeWebRTCSampleTests.m in Sources */, 938 | ); 939 | runOnlyForDeploymentPostprocessing = 0; 940 | }; 941 | 13B07F871A680F5B00A75B9A /* Sources */ = { 942 | isa = PBXSourcesBuildPhase; 943 | buildActionMask = 2147483647; 944 | files = ( 945 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 946 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 947 | ); 948 | runOnlyForDeploymentPostprocessing = 0; 949 | }; 950 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 951 | isa = PBXSourcesBuildPhase; 952 | buildActionMask = 2147483647; 953 | files = ( 954 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 955 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 956 | ); 957 | runOnlyForDeploymentPostprocessing = 0; 958 | }; 959 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 960 | isa = PBXSourcesBuildPhase; 961 | buildActionMask = 2147483647; 962 | files = ( 963 | 2DCD954D1E0B4F2C00145EB5 /* ReactNativeWebRTCSampleTests.m in Sources */, 964 | ); 965 | runOnlyForDeploymentPostprocessing = 0; 966 | }; 967 | /* End PBXSourcesBuildPhase section */ 968 | 969 | /* Begin PBXTargetDependency section */ 970 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 971 | isa = PBXTargetDependency; 972 | target = 13B07F861A680F5B00A75B9A /* ReactNativeWebRTCSample */; 973 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 974 | }; 975 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 976 | isa = PBXTargetDependency; 977 | target = 2D02E47A1E0B4A5D006451C7 /* ReactNativeWebRTCSample-tvOS */; 978 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 979 | }; 980 | /* End PBXTargetDependency section */ 981 | 982 | /* Begin PBXVariantGroup section */ 983 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 984 | isa = PBXVariantGroup; 985 | children = ( 986 | 13B07FB21A68108700A75B9A /* Base */, 987 | ); 988 | name = LaunchScreen.xib; 989 | path = ReactNativeWebRTCSample; 990 | sourceTree = ""; 991 | }; 992 | /* End PBXVariantGroup section */ 993 | 994 | /* Begin XCBuildConfiguration section */ 995 | 00E356F61AD99517003FC87E /* Debug */ = { 996 | isa = XCBuildConfiguration; 997 | buildSettings = { 998 | BUNDLE_LOADER = "$(TEST_HOST)"; 999 | GCC_PREPROCESSOR_DEFINITIONS = ( 1000 | "DEBUG=1", 1001 | "$(inherited)", 1002 | ); 1003 | INFOPLIST_FILE = ReactNativeWebRTCSampleTests/Info.plist; 1004 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1005 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1006 | OTHER_LDFLAGS = ( 1007 | "-ObjC", 1008 | "-lc++", 1009 | ); 1010 | PRODUCT_NAME = "$(TARGET_NAME)"; 1011 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeWebRTCSample.app/ReactNativeWebRTCSample"; 1012 | LIBRARY_SEARCH_PATHS = ( 1013 | "$(inherited)", 1014 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1015 | ); 1016 | }; 1017 | name = Debug; 1018 | }; 1019 | 00E356F71AD99517003FC87E /* Release */ = { 1020 | isa = XCBuildConfiguration; 1021 | buildSettings = { 1022 | BUNDLE_LOADER = "$(TEST_HOST)"; 1023 | COPY_PHASE_STRIP = NO; 1024 | INFOPLIST_FILE = ReactNativeWebRTCSampleTests/Info.plist; 1025 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1026 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1027 | OTHER_LDFLAGS = ( 1028 | "-ObjC", 1029 | "-lc++", 1030 | ); 1031 | PRODUCT_NAME = "$(TARGET_NAME)"; 1032 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeWebRTCSample.app/ReactNativeWebRTCSample"; 1033 | LIBRARY_SEARCH_PATHS = ( 1034 | "$(inherited)", 1035 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1036 | ); 1037 | }; 1038 | name = Release; 1039 | }; 1040 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1041 | isa = XCBuildConfiguration; 1042 | buildSettings = { 1043 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1044 | CURRENT_PROJECT_VERSION = 1; 1045 | DEAD_CODE_STRIPPING = NO; 1046 | INFOPLIST_FILE = ReactNativeWebRTCSample/Info.plist; 1047 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1048 | OTHER_LDFLAGS = ( 1049 | "$(inherited)", 1050 | "-ObjC", 1051 | "-lc++", 1052 | ); 1053 | PRODUCT_NAME = ReactNativeWebRTCSample; 1054 | VERSIONING_SYSTEM = "apple-generic"; 1055 | }; 1056 | name = Debug; 1057 | }; 1058 | 13B07F951A680F5B00A75B9A /* Release */ = { 1059 | isa = XCBuildConfiguration; 1060 | buildSettings = { 1061 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1062 | CURRENT_PROJECT_VERSION = 1; 1063 | INFOPLIST_FILE = ReactNativeWebRTCSample/Info.plist; 1064 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1065 | OTHER_LDFLAGS = ( 1066 | "$(inherited)", 1067 | "-ObjC", 1068 | "-lc++", 1069 | ); 1070 | PRODUCT_NAME = ReactNativeWebRTCSample; 1071 | VERSIONING_SYSTEM = "apple-generic"; 1072 | }; 1073 | name = Release; 1074 | }; 1075 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1076 | isa = XCBuildConfiguration; 1077 | buildSettings = { 1078 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1079 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1080 | CLANG_ANALYZER_NONNULL = YES; 1081 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1082 | CLANG_WARN_INFINITE_RECURSION = YES; 1083 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1084 | DEBUG_INFORMATION_FORMAT = dwarf; 1085 | ENABLE_TESTABILITY = YES; 1086 | GCC_NO_COMMON_BLOCKS = YES; 1087 | INFOPLIST_FILE = "ReactNativeWebRTCSample-tvOS/Info.plist"; 1088 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1089 | OTHER_LDFLAGS = ( 1090 | "-ObjC", 1091 | "-lc++", 1092 | ); 1093 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativeWebRTCSample-tvOS"; 1094 | PRODUCT_NAME = "$(TARGET_NAME)"; 1095 | SDKROOT = appletvos; 1096 | TARGETED_DEVICE_FAMILY = 3; 1097 | TVOS_DEPLOYMENT_TARGET = 9.2; 1098 | LIBRARY_SEARCH_PATHS = ( 1099 | "$(inherited)", 1100 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1101 | ); 1102 | }; 1103 | name = Debug; 1104 | }; 1105 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1106 | isa = XCBuildConfiguration; 1107 | buildSettings = { 1108 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1109 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1110 | CLANG_ANALYZER_NONNULL = YES; 1111 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1112 | CLANG_WARN_INFINITE_RECURSION = YES; 1113 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1114 | COPY_PHASE_STRIP = NO; 1115 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1116 | GCC_NO_COMMON_BLOCKS = YES; 1117 | INFOPLIST_FILE = "ReactNativeWebRTCSample-tvOS/Info.plist"; 1118 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1119 | OTHER_LDFLAGS = ( 1120 | "-ObjC", 1121 | "-lc++", 1122 | ); 1123 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativeWebRTCSample-tvOS"; 1124 | PRODUCT_NAME = "$(TARGET_NAME)"; 1125 | SDKROOT = appletvos; 1126 | TARGETED_DEVICE_FAMILY = 3; 1127 | TVOS_DEPLOYMENT_TARGET = 9.2; 1128 | LIBRARY_SEARCH_PATHS = ( 1129 | "$(inherited)", 1130 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1131 | ); 1132 | }; 1133 | name = Release; 1134 | }; 1135 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1136 | isa = XCBuildConfiguration; 1137 | buildSettings = { 1138 | BUNDLE_LOADER = "$(TEST_HOST)"; 1139 | CLANG_ANALYZER_NONNULL = YES; 1140 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1141 | CLANG_WARN_INFINITE_RECURSION = YES; 1142 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1143 | DEBUG_INFORMATION_FORMAT = dwarf; 1144 | ENABLE_TESTABILITY = YES; 1145 | GCC_NO_COMMON_BLOCKS = YES; 1146 | INFOPLIST_FILE = "ReactNativeWebRTCSample-tvOSTests/Info.plist"; 1147 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1148 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativeWebRTCSample-tvOSTests"; 1149 | PRODUCT_NAME = "$(TARGET_NAME)"; 1150 | SDKROOT = appletvos; 1151 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeWebRTCSample-tvOS.app/ReactNativeWebRTCSample-tvOS"; 1152 | TVOS_DEPLOYMENT_TARGET = 10.1; 1153 | LIBRARY_SEARCH_PATHS = ( 1154 | "$(inherited)", 1155 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1156 | ); 1157 | }; 1158 | name = Debug; 1159 | }; 1160 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1161 | isa = XCBuildConfiguration; 1162 | buildSettings = { 1163 | BUNDLE_LOADER = "$(TEST_HOST)"; 1164 | CLANG_ANALYZER_NONNULL = YES; 1165 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1166 | CLANG_WARN_INFINITE_RECURSION = YES; 1167 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1168 | COPY_PHASE_STRIP = NO; 1169 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1170 | GCC_NO_COMMON_BLOCKS = YES; 1171 | INFOPLIST_FILE = "ReactNativeWebRTCSample-tvOSTests/Info.plist"; 1172 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1173 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativeWebRTCSample-tvOSTests"; 1174 | PRODUCT_NAME = "$(TARGET_NAME)"; 1175 | SDKROOT = appletvos; 1176 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeWebRTCSample-tvOS.app/ReactNativeWebRTCSample-tvOS"; 1177 | TVOS_DEPLOYMENT_TARGET = 10.1; 1178 | LIBRARY_SEARCH_PATHS = ( 1179 | "$(inherited)", 1180 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1181 | ); 1182 | }; 1183 | name = Release; 1184 | }; 1185 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1186 | isa = XCBuildConfiguration; 1187 | buildSettings = { 1188 | ALWAYS_SEARCH_USER_PATHS = NO; 1189 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1190 | CLANG_CXX_LIBRARY = "libc++"; 1191 | CLANG_ENABLE_MODULES = YES; 1192 | CLANG_ENABLE_OBJC_ARC = YES; 1193 | CLANG_WARN_BOOL_CONVERSION = YES; 1194 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1195 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1196 | CLANG_WARN_EMPTY_BODY = YES; 1197 | CLANG_WARN_ENUM_CONVERSION = YES; 1198 | CLANG_WARN_INT_CONVERSION = YES; 1199 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1200 | CLANG_WARN_UNREACHABLE_CODE = YES; 1201 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1202 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1203 | COPY_PHASE_STRIP = NO; 1204 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1205 | GCC_C_LANGUAGE_STANDARD = gnu99; 1206 | GCC_DYNAMIC_NO_PIC = NO; 1207 | GCC_OPTIMIZATION_LEVEL = 0; 1208 | GCC_PREPROCESSOR_DEFINITIONS = ( 1209 | "DEBUG=1", 1210 | "$(inherited)", 1211 | ); 1212 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1213 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1214 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1215 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1216 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1217 | GCC_WARN_UNUSED_FUNCTION = YES; 1218 | GCC_WARN_UNUSED_VARIABLE = YES; 1219 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1220 | MTL_ENABLE_DEBUG_INFO = YES; 1221 | ONLY_ACTIVE_ARCH = YES; 1222 | SDKROOT = iphoneos; 1223 | }; 1224 | name = Debug; 1225 | }; 1226 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1227 | isa = XCBuildConfiguration; 1228 | buildSettings = { 1229 | ALWAYS_SEARCH_USER_PATHS = NO; 1230 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1231 | CLANG_CXX_LIBRARY = "libc++"; 1232 | CLANG_ENABLE_MODULES = YES; 1233 | CLANG_ENABLE_OBJC_ARC = YES; 1234 | CLANG_WARN_BOOL_CONVERSION = YES; 1235 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1236 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1237 | CLANG_WARN_EMPTY_BODY = YES; 1238 | CLANG_WARN_ENUM_CONVERSION = YES; 1239 | CLANG_WARN_INT_CONVERSION = YES; 1240 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1241 | CLANG_WARN_UNREACHABLE_CODE = YES; 1242 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1243 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1244 | COPY_PHASE_STRIP = YES; 1245 | ENABLE_NS_ASSERTIONS = NO; 1246 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1247 | GCC_C_LANGUAGE_STANDARD = gnu99; 1248 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1249 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1250 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1251 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1252 | GCC_WARN_UNUSED_FUNCTION = YES; 1253 | GCC_WARN_UNUSED_VARIABLE = YES; 1254 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1255 | MTL_ENABLE_DEBUG_INFO = NO; 1256 | SDKROOT = iphoneos; 1257 | VALIDATE_PRODUCT = YES; 1258 | }; 1259 | name = Release; 1260 | }; 1261 | /* End XCBuildConfiguration section */ 1262 | 1263 | /* Begin XCConfigurationList section */ 1264 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeWebRTCSampleTests" */ = { 1265 | isa = XCConfigurationList; 1266 | buildConfigurations = ( 1267 | 00E356F61AD99517003FC87E /* Debug */, 1268 | 00E356F71AD99517003FC87E /* Release */, 1269 | ); 1270 | defaultConfigurationIsVisible = 0; 1271 | defaultConfigurationName = Release; 1272 | }; 1273 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeWebRTCSample" */ = { 1274 | isa = XCConfigurationList; 1275 | buildConfigurations = ( 1276 | 13B07F941A680F5B00A75B9A /* Debug */, 1277 | 13B07F951A680F5B00A75B9A /* Release */, 1278 | ); 1279 | defaultConfigurationIsVisible = 0; 1280 | defaultConfigurationName = Release; 1281 | }; 1282 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeWebRTCSample-tvOS" */ = { 1283 | isa = XCConfigurationList; 1284 | buildConfigurations = ( 1285 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1286 | 2D02E4981E0B4A5E006451C7 /* Release */, 1287 | ); 1288 | defaultConfigurationIsVisible = 0; 1289 | defaultConfigurationName = Release; 1290 | }; 1291 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeWebRTCSample-tvOSTests" */ = { 1292 | isa = XCConfigurationList; 1293 | buildConfigurations = ( 1294 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1295 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1296 | ); 1297 | defaultConfigurationIsVisible = 0; 1298 | defaultConfigurationName = Release; 1299 | }; 1300 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeWebRTCSample" */ = { 1301 | isa = XCConfigurationList; 1302 | buildConfigurations = ( 1303 | 83CBBA201A601CBA00E9B192 /* Debug */, 1304 | 83CBBA211A601CBA00E9B192 /* Release */, 1305 | ); 1306 | defaultConfigurationIsVisible = 0; 1307 | defaultConfigurationName = Release; 1308 | }; 1309 | /* End XCConfigurationList section */ 1310 | }; 1311 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1312 | } 1313 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSample.xcodeproj/xcshareddata/xcschemes/ReactNativeWebRTCSample-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSample.xcodeproj/xcshareddata/xcschemes/ReactNativeWebRTCSample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"ReactNativeWebRTCSample" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSample/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | react-native-webrtc-sample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | 46 | NSExceptionDomains 47 | 48 | localhost 49 | 50 | NSExceptionAllowsInsecureHTTPLoads 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSample/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/ReactNativeWebRTCSampleTests/ReactNativeWebRTCSampleTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface ReactNativeWebRTCSampleTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation ReactNativeWebRTCSampleTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-webrtc-sample", 3 | "version": "0.1.0", 4 | "private": true, 5 | "devDependencies": { 6 | "jest-expo": "23.0.0", 7 | "react-test-renderer": "16.0.0" 8 | }, 9 | "scripts": { 10 | "start": "react-native start", 11 | "android": "react-native run-android", 12 | "ios": "react-native run-ios", 13 | "test": "node node_modules/jest/bin/jest.js --watch" 14 | }, 15 | "jest": { 16 | "preset": "jest-expo" 17 | }, 18 | "dependencies": { 19 | "babel-preset-react-native-stage-0": "^1.0.1", 20 | "react": "16.0.0", 21 | "react-native": "0.50.3", 22 | "react-native-device-uuid": "^1.2.0", 23 | "react-native-socketio": "^0.3.0", 24 | "react-native-swift-socketio": "^0.0.6", 25 | "react-native-webrtc": "^1.58.3", 26 | "reconnecting-websocket": "^3.2.2", 27 | "socket.io": "^2.0.4", 28 | "socket.io-client": "1.7.4" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /webrtc.js: -------------------------------------------------------------------------------- 1 | import WebRTCLib from 'react-native-webrtc' 2 | export async function scanDevices () { 3 | const devices = await WebRTCLib.MediaStreamTrack.getSources() 4 | if (Platform.OS === 'ios') { 5 | return devices[0] 6 | } 7 | return devices 8 | } 9 | 10 | export async function getNativeConstraints ({ video, audio }) { 11 | const constraints = {} 12 | 13 | if (audio) { 14 | constraints.audio = true 15 | } 16 | 17 | if (video) { 18 | const direction = 'front' 19 | 20 | constraints.video = { 21 | optional: [{ sourceId: null, facingMode: direction }] 22 | } 23 | 24 | const devices = await scanDevices() 25 | for (let d of devices) { 26 | if (d.kind.startsWith('video') && d.facing === direction) { 27 | constraints.video.optional.push({ sourceId: d.id, facingMode: d.facing }) 28 | } 29 | } 30 | 31 | if (Platform.OS === 'android') { 32 | constraints.video.mandatory = { 33 | minWidth: 500, 34 | minHeight: 300, 35 | minFrameRate: 30 36 | } 37 | } 38 | 39 | } 40 | 41 | return constraints 42 | } 43 | --------------------------------------------------------------------------------