├── .buckconfig
├── .gitattributes
├── .gitignore
├── .watchmanconfig
├── App.js
├── DatContentLoader.js
├── DatURL.js
├── LICENSE
├── Pages
├── Browser.js
├── Directory.js
├── File.js
├── HTML.js
├── Image.js
├── Loading.js
├── Markdown.js
└── Welcome.js
├── README.md
├── __tests__
└── App.js
├── android
├── app
│ ├── BUCK
│ ├── build.gradle
│ ├── build_defs.bzl
│ ├── proguard-rules.pro
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── datmobile
│ │ │ ├── MainActivity.java
│ │ │ └── MainApplication.java
│ │ └── res
│ │ ├── mipmap-hdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-mdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ └── 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
└── settings.gradle
├── app.json
├── assets
├── banner.png
├── banner.svg
├── logo.png
└── logo.svg
├── babel.config.js
├── empty.js
├── index.js
├── ios
├── Datmobile-tvOS
│ └── Info.plist
├── Datmobile-tvOSTests
│ └── Info.plist
├── Datmobile.xcodeproj
│ ├── project.pbxproj
│ └── xcshareddata
│ │ └── xcschemes
│ │ ├── Datmobile-tvOS.xcscheme
│ │ └── Datmobile.xcscheme
├── Datmobile
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Base.lproj
│ │ └── LaunchScreen.xib
│ ├── Images.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ └── Contents.json
│ │ └── Contents.json
│ ├── Info.plist
│ └── main.m
└── DatmobileTests
│ ├── DatmobileTests.m
│ └── Info.plist
├── package.json
├── react-native-dat-webview
└── index.js
├── react-native-dat
└── index.js
├── shim.js
└── yarn.lock
/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | *.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://docs.fastlane.tools/best-practices/source-control/
50 |
51 | */fastlane/report.xml
52 | */fastlane/Preview.html
53 | */fastlane/screenshots
54 |
55 | # Bundle artifact
56 | *.jsbundle
57 |
58 | package-lock.json
59 |
60 | index.android.bundle
61 |
--------------------------------------------------------------------------------
/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/App.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import {
3 | StyleSheet,
4 | View,
5 | TextInput,
6 | Button,
7 | BackHandler,
8 | Linking
9 | } from 'react-native'
10 |
11 | import Dat from './react-native-dat'
12 | import RARF, { cachePath } from 'random-access-rn-file'
13 | import path from 'path'
14 |
15 | import Welcome from './Pages/Welcome'
16 | import Loading from './Pages/Loading'
17 | import Directory from './Pages/Directory'
18 | import File from './Pages/File'
19 | import Image from './Pages/Image'
20 | import Markdown from './Pages/Markdown'
21 | import HTML from './Pages/HTML'
22 | import Browser from './Pages/Browser'
23 |
24 | const PAGE_MAPPING = {
25 | 'browser': Browser,
26 | 'welcome': Welcome,
27 | 'loading': Loading
28 | }
29 |
30 | export default class App extends Component {
31 | constructor (props) {
32 | super(props)
33 |
34 | this.state = {
35 | page: 'welcome',
36 | url: 'dat://',
37 | data: null
38 | }
39 |
40 | this.history = []
41 |
42 | this.dat = new Dat({
43 | db: (file) => {
44 | const finalPath = path.join(cachePath, file)
45 | return RARF(finalPath)
46 | }
47 | })
48 |
49 | this.input = null
50 |
51 | this.navigateTo = (url) => {
52 | if (this.state.url === url) return
53 | console.log('Navigating to', url)
54 | this.history.push(this.state.url)
55 | // Navigating
56 | if ((url + '') === 'dat://') {
57 | this.setState({
58 | url,
59 | page: 'welcome'
60 | })
61 | } else {
62 | this.setState({
63 | url,
64 | page: 'loading'
65 | })
66 |
67 | this.dat.get(url).then(() => {
68 | this.setState({
69 | url,
70 | page: 'browser'
71 | })
72 | })
73 | }
74 | }
75 |
76 | this.goBack = () => {
77 | const url = this.history.pop()
78 | this.navigateTo(url)
79 | this.history.pop()
80 | }
81 |
82 | this.navigateToCurrentURL = () => {
83 | this.navigateTo(this.state.url)
84 | }
85 | this.setInputRef = (input) => {
86 | this.input = input
87 | }
88 | }
89 |
90 | componentDidMount () {
91 | BackHandler.addEventListener('hardwareBackPress', () => {
92 | if (!this.history.length) return false
93 |
94 | this.goBack()
95 |
96 | return true
97 | })
98 |
99 | Linking.getInitialURL().then((url) => {
100 | if (url) {
101 | this.navigateTo(url)
102 | }
103 | }).catch(err => console.error('An error occurred', err))
104 | }
105 |
106 | render () {
107 | let RenderComponent = Loading
108 |
109 | const page = this.state.page
110 |
111 | const gotComponent = PAGE_MAPPING[page]
112 | if (gotComponent) RenderComponent = gotComponent
113 |
114 | return (
115 |
116 |
117 |
136 |
137 |
141 |
142 |
143 | )
144 | }
145 | }
146 |
147 | const styles = StyleSheet.create({
148 | container: {
149 | flex: 1,
150 | justifyContent: 'center',
151 | alignItems: 'center',
152 | alignSelf: 'stretch',
153 | backgroundColor: '#F5FCFF'
154 | },
155 | navigation: {
156 | flexDirection: 'row',
157 | alignItems: 'center'
158 | },
159 | flex: {
160 | flex: 1
161 | }
162 | })
163 |
--------------------------------------------------------------------------------
/DatContentLoader.js:
--------------------------------------------------------------------------------
1 | import Dat from './react-native-dat'
2 | import DatURL from './DatURL'
3 |
4 | export default class DatContentLoader {
5 | constructor () {
6 | this.dat = new Dat()
7 | }
8 |
9 | async isFile (url) {
10 | const parsed = new DatURL(url)
11 | const dat = await this.dat.get(url)
12 |
13 | return new Promise((resolve, reject) => {
14 | dat.stat(parsed.path, (err, stat) => {
15 | if (err) return reject(err)
16 | resolve(stat.isFile())
17 | })
18 | })
19 | }
20 |
21 | async getAsText (url) {
22 | const parsed = new DatURL(url)
23 | const dat = await this.dat.get(url)
24 |
25 | return new Promise((resolve, reject) => {
26 | dat.readFile(parsed.path, 'utf-8', (err, data) => {
27 | if (err) return reject(err)
28 | resolve(data)
29 | })
30 | })
31 | }
32 |
33 | async getAsDataURI (url) {
34 | const parsed = new DatURL(url)
35 | const mimeType = parsed.mimeType
36 |
37 | const buffer = await this.getAsBinary(url)
38 | return `data:${mimeType};base64,${buffer.toString('base64')}`
39 | }
40 |
41 | async getAsBinary (url) {
42 | const parsed = new DatURL(url)
43 | const dat = await this.dat.get(url)
44 |
45 | return new Promise((resolve, reject) => {
46 | dat.readFile(parsed.path, (err, data) => {
47 | if (err) return reject(err)
48 | resolve(data)
49 | })
50 | })
51 | }
52 |
53 | async getFolderContents (url) {
54 | const parsed = new DatURL(url)
55 | const dat = await this.dat.get(url)
56 |
57 | return new Promise((resolve, reject) => {
58 | dat.readdir(parsed.path, (err, files) => {
59 | if (err) return reject(err)
60 | resolve(files)
61 | })
62 | })
63 | }
64 |
65 | close () {
66 | return this.dat.close()
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/DatURL.js:
--------------------------------------------------------------------------------
1 | import pathAPI from 'path'
2 | import mime from 'mime/lite'
3 |
4 | const DAT_REGEX = /dat:\/\/([^/]+)\/?(.*)?/i
5 | const DAT_PROTOCOL = 'dat://'
6 |
7 | export default class DatURL {
8 | constructor (url) {
9 | if (url instanceof DatURL) url = url.toString()
10 | const matches = url.match(DAT_REGEX)
11 | if (!matches) throw new TypeError(`Invalid dat URL: ${url}`)
12 |
13 | let key = matches[1]
14 | let version = null
15 | if (key.includes('+')) {
16 | [key, version] = key.split('+')
17 | }
18 | const path = matches[2] || ''
19 |
20 | this.key = key
21 | this.path = path
22 | this.version = version
23 | }
24 |
25 | relative (url) {
26 | const stringURL = url.toString()
27 | if (stringURL.indexOf(DAT_PROTOCOL) === 0) {
28 | return new DatURL(url)
29 | } else {
30 | const newPath = pathAPI.resolve(this.path, stringURL)
31 | return new DatURL(`${DAT_PROTOCOL}${this.key}${newPath}`)
32 | }
33 | }
34 |
35 | toString () {
36 | const versionText = this.version ? `+${this.version}` : ''
37 | return `${DAT_PROTOCOL}${this.key}${versionText}/${this.path}`
38 | }
39 |
40 | get mimeType () {
41 | return mime.getType(this.path)
42 | }
43 |
44 | static isDatURL (url) {
45 | return url && url.matches(DatURL)
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Pages/Browser.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import {
3 | StyleSheet,
4 | View
5 | } from 'react-native'
6 |
7 | import { DatWebView } from '../react-native-dat-webview'
8 |
9 | export default class Browser extends Component {
10 | constructor (props) {
11 | super(props)
12 |
13 | this.onLoadStart = ({ nativeEvent }) => {
14 | const { url } = nativeEvent
15 | this.props.navigateTo(url)
16 | }
17 | }
18 |
19 | render () {
20 | const { url, dat } = this.props
21 | return (
22 |
23 |
29 |
30 | )
31 | }
32 | }
33 | const styles = StyleSheet.create({
34 | webview: {
35 | flex: 1,
36 | alignSelf: 'stretch',
37 | overflow: 'hidden'
38 | }
39 | })
40 |
--------------------------------------------------------------------------------
/Pages/Directory.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import {
3 | Button,
4 | ScrollView
5 | } from 'react-native'
6 |
7 | export default function Directory (props) {
8 | const data = props.data
9 | const navigateTo = props.navigateTo
10 |
11 | const buttons = data.map((file) => {
12 | const fileName = `./${file}`
13 | const label = `Navigate to ${file}`
14 | return (
15 | navigateTo(fileName)}
19 | accessibilityLabel={label}
20 | />
21 | )
22 | })
23 |
24 | return (
25 |
26 | navigateTo('../')}
29 | accessibilityLabel='Navigate to parent folder'
30 | />
31 | {buttons}
32 |
33 | )
34 | }
35 |
--------------------------------------------------------------------------------
/Pages/File.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import {
3 | Text,
4 | ScrollView
5 | } from 'react-native'
6 |
7 | export default function File (props) {
8 | const data = props.data
9 |
10 | return (
11 |
12 | {data}
13 |
14 | )
15 | }
16 |
--------------------------------------------------------------------------------
/Pages/HTML.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import {
3 | StyleSheet,
4 | View
5 | } from 'react-native'
6 |
7 | import { WebView } from 'react-native-webview'
8 |
9 | export default function HTML (props) {
10 | const data = props.data
11 | const url = props.url
12 |
13 | return (
14 |
15 |
20 |
21 | )
22 | }
23 |
24 | const styles = StyleSheet.create({
25 | webview: {
26 | flex: 1,
27 | alignSelf: 'stretch',
28 | overflow: 'hidden'
29 | }
30 | })
31 |
--------------------------------------------------------------------------------
/Pages/Image.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import {
3 | StyleSheet,
4 | Image,
5 | ActivityIndicator,
6 | View
7 | } from 'react-native'
8 |
9 | export default class ImageFile extends Component {
10 | constructor (props) {
11 | super(props)
12 |
13 | this.state = {
14 | layout: null
15 | }
16 |
17 | this.handleLayoutSet = ({ nativeEvent }) => {
18 | const { layout } = nativeEvent
19 | console.log('Layout', layout)
20 | this.setState({ layout })
21 | }
22 | }
23 | render () {
24 | if (!this.state.layout) {
25 | return (
26 |
27 |
28 |
29 | )
30 | }
31 |
32 | const data = this.props.data
33 |
34 | return (
35 |
36 |
41 |
42 | )
43 | }
44 | }
45 |
46 | const styles = StyleSheet.create({
47 | image: {
48 | width: 100,
49 | height: 100,
50 | resizeMode: 'contain'
51 | },
52 | container: {
53 | flex: 1,
54 | alignSelf: 'stretch',
55 | alignItems: 'center',
56 | justifyContent: 'center'
57 | }
58 | })
59 |
--------------------------------------------------------------------------------
/Pages/Loading.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import {
3 | ActivityIndicator
4 | } from 'react-native'
5 |
6 | export default function Loading () {
7 | return (
8 |
9 | )
10 | }
11 |
--------------------------------------------------------------------------------
/Pages/Markdown.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import {
3 | ScrollView
4 | } from 'react-native'
5 |
6 | import EasyMarkdown from 'react-native-easy-markdown'
7 |
8 | export default function Markdown (props) {
9 | const data = props.data
10 |
11 | return (
12 |
13 | {data}
14 |
15 | )
16 | }
17 |
--------------------------------------------------------------------------------
/Pages/Welcome.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import {
3 | Text,
4 | StyleSheet,
5 | ScrollView,
6 | Button
7 | } from 'react-native'
8 |
9 | const LINKS = [{
10 | title: 'Explore dat',
11 | link: 'dat://explore.beakerbrowser.com/'
12 | }, {
13 | title: 'Dat Project Homepage',
14 | link: 'dat://datproject.org'
15 | }, {
16 | title: 'Beaker Browser Homepage',
17 | link: 'dat://beakerbrowser.com/'
18 | }, {
19 | title: "RangerMauve's Blog",
20 | // link: 'dat://rangermauve.hashbase.io/'
21 | link: 'dat://rangermauve.hashbase.io/posts/'
22 | }]
23 |
24 | export default function Welcome ({ navigateTo }) {
25 | return (
26 |
27 | Enter a `dat://` URl and hit Go!
28 | Or click one of these links:
29 | {LINKS.map((info) => navigateTo(info.link)} style={styles.spacer} />)}
30 |
31 | )
32 | }
33 |
34 | const styles = StyleSheet.create({
35 | spacer: {
36 | marginBottom: 16
37 | }
38 | })
39 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # Datmobile [(download)](https://play.google.com/store/apps/details?id=com.datmobile)
4 |
5 | A mobile app for viewing Dat Archives. Drive all around the P2P web with your phone. Pronounced like the famous hero's car.
6 |
7 | ## Status:
8 |
9 | I've run into performance issues with keeping the Dat logic within the React-Native thread.
10 |
11 | Protocol interception seems to be working, but I'll be putting this on hold until I can refactor it to use nodejs-mobile.
12 |
13 | ## Plans:
14 |
15 | - [x] Set up RN project (Start with Android for now)
16 | - [ ] Get hyperdrive running in RN
17 | - [x] Get node builtin modules working [rn-nodeify](https://github.com/tradle/rn-nodeify)
18 | - [x] Get hyperdrive replicating with dat-gateway through websockets
19 | - [ ] Make a viewer similar to [dat-js-example](https://github.com/RangerMauve/dat-js-example)
20 | - [x] Load Dat from URL bar
21 | - [x] View with some default URLs to visit
22 | - [x] Directory listing
23 | - [x] View text files in a Text element
24 | - [x] Image viewing
25 | - [x] Markdown support through some component
26 | - [x] HTML viewier with a webview (Won't support relative URLs or dat://protocol)
27 | - [x] Make it actually work on the device without remote debugging 😭 Thanks @mafintosh!
28 | - [x] Release to playstore
29 | - [x] Get discovery-swarm to work with RN in the JS thread
30 | - [x] dat-dns
31 | - [x] Identify the node modules that need to run in RN
32 | - [x] Use discovery-swarm instead of gateway
33 | - [x] Test dns tracker functionality
34 | - [ ] Test DHT (Bootstraps into the DHT, doesn't find peers)
35 | - [ ] Test MDNS
36 | - [ ] Support dat protocol as a browser
37 | - [x] Find how to support custom protocols in Webview (Android)
38 | - [x] [shouldInterceptRequest](https://developer.android.com/reference/android/webkit/WebViewClient.html#shouldInterceptRequest(android.webkit.WebView,%20android.webkit.WebResourceRequest))
39 | - [x] Add a `registerStreamProtocol` API based on [electron's protocol API](https://electronjs.org/docs/api/protocol#protocolregisterstreamprotocolscheme-handler-completion)
40 | - [x] Follow guide for [customizing react-native-webview](https://github.com/react-native-community/react-native-webview/blob/master/docs/Custom-Android.md)
41 | - [x] Create Java ReactNativeProtocolViewManager
42 | - [x] Custom WebViewClient to intercept requests
43 | - [x] Extend RNCWebView commandMap with commands for sending responses
44 | - [x] Generate events for intercepting requests
45 | - [x] Add props for protocol scheme list
46 | - [x] Create ProtocolWebView JS API
47 | - [x] static `registerProtocol` and `unregisterProtocol`
48 | - [x] pass list of protocols to native props
49 | - [x] add an event listener for intercepted requests to use the protocol handlers
50 | - [x] Test it out with a dummy protocol
51 | - [x] Update fork of react-native-webview that supports intercepting URLs
52 | - [x] Create DatWebview which adds support for `dat://` protocol
53 | - [x] Make browser UI with the new webview, replacing the viewer functionality
54 | - [ ] Support version portion of `dat://` URL
55 | - [ ] Keep track of history and view / clear it
56 | - [ ] DatArchive API
57 | - [ ] Extract WebView into own library
58 | - [ ] Extract Dat mechanics into `react-native-dat`
59 | - [ ] Extras!
60 | - [ ] experimental.datPeers API
61 | - [ ] Add Blocklist for trackers and ads
62 | - [ ] Perormance improvements
63 | - [ ] Close repos when they're not in use
64 | - [ ] Don't upload to discovery-swarm while on battery
65 | - [ ] Download bookmarked site updates when charging and not on metered wifi
66 | - [ ] Keep an LRU of archies to seed in the background
67 | - [ ] Prioritize local network over internet
68 | - [ ] [DNS caching](https://github.com/datprotocol/DEPs/pull/59)
69 |
70 | ## Contributing:
71 |
72 | - Changes are very much welcome!
73 | - Please open an issue if you have an idea for a big change before doing a PR.
74 | - Please use the ["standard"](https://standardjs.com/) code style.
75 |
76 | ## Building
77 |
78 | - `npm install`
79 | - `npm run nodeify`
80 | - `react-native link react-native-randombytes`
81 | - `react-native link react-native-tcp`
82 | - `react-native link react-native-udp`
83 | - `react-native link react-native-os`
84 | - `react-native link react-native-webview`
85 | - `react-native run-android`
86 |
87 | ## Privacy:
88 |
89 | Datmobile does not collect or save any of your personal data, or share it with third parties.
90 |
--------------------------------------------------------------------------------
/__tests__/App.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | * @lint-ignore-every XPLATJSCOPYRIGHT1
4 | */
5 |
6 | import 'react-native'
7 | import React from 'react'
8 | import App from '../App'
9 |
10 | // Note: test renderer must be required after react-native.
11 | import renderer from 'react-test-renderer'
12 |
13 | it('renders correctly', () => {
14 | renderer.create()
15 | })
16 |
--------------------------------------------------------------------------------
/android/app/BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12 |
13 | lib_deps = []
14 |
15 | create_aar_targets(glob(["libs/*.aar"]))
16 |
17 | create_jar_targets(glob(["libs/*.jar"]))
18 |
19 | android_library(
20 | name = "all-libs",
21 | exported_deps = lib_deps,
22 | )
23 |
24 | android_library(
25 | name = "app-code",
26 | srcs = glob([
27 | "src/main/java/**/*.java",
28 | ]),
29 | deps = [
30 | ":all-libs",
31 | ":build_config",
32 | ":res",
33 | ],
34 | )
35 |
36 | android_build_config(
37 | name = "build_config",
38 | package = "com.datmobile",
39 | )
40 |
41 | android_resource(
42 | name = "res",
43 | package = "com.datmobile",
44 | res = "src/main/res",
45 | )
46 |
47 | android_binary(
48 | name = "app",
49 | keystore = "//android/keystores:debug",
50 | manifest = "src/main/AndroidManifest.xml",
51 | package_type = "debug",
52 | deps = [
53 | ":app-code",
54 | ],
55 | )
56 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
37 | * // for example: to disable dev mode in the staging build type (if configured)
38 | * devDisabledInStaging: true,
39 | * // The configuration property can be in the following formats
40 | * // 'devDisabledIn${productFlavor}${buildType}'
41 | * // 'devDisabledIn${buildType}'
42 | *
43 | * // the root of your project, i.e. where "package.json" lives
44 | * root: "../../",
45 | *
46 | * // where to put the JS bundle asset in debug mode
47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
48 | *
49 | * // where to put the JS bundle asset in release mode
50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
51 | *
52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
53 | * // require('./image.png')), in debug mode
54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
55 | *
56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
57 | * // require('./image.png')), in release mode
58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
59 | *
60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
64 | * // for example, you might want to remove it from here.
65 | * inputExcludes: ["android/**", "ios/**"],
66 | *
67 | * // override which node gets called and with what additional arguments
68 | * nodeExecutableAndArgs: ["node"],
69 | *
70 | * // supply additional arguments to the packager
71 | * extraPackagerArgs: []
72 | * ]
73 | */
74 |
75 | project.ext.react = [
76 | entryFile: "index.js"
77 | ]
78 |
79 | apply from: "../../node_modules/react-native/react.gradle"
80 |
81 | /**
82 | * Set this to true to create two separate APKs instead of one:
83 | * - An APK that only works on ARM devices
84 | * - An APK that only works on x86 devices
85 | * The advantage is the size of the APK is reduced by about 4MB.
86 | * Upload all the APKs to the Play Store and people will download
87 | * the correct one based on the CPU architecture of their device.
88 | */
89 | def enableSeparateBuildPerCPUArchitecture = false
90 |
91 | /**
92 | * Run Proguard to shrink the Java bytecode in release builds.
93 | */
94 | def enableProguardInReleaseBuilds = false
95 |
96 | android {
97 | compileSdkVersion rootProject.ext.compileSdkVersion
98 | // buildToolsVersion rootProject.ext.buildToolsVersion
99 |
100 | defaultConfig {
101 | applicationId "com.datmobile"
102 | minSdkVersion rootProject.ext.minSdkVersion
103 | targetSdkVersion rootProject.ext.targetSdkVersion
104 | versionCode 3
105 | versionName "1.1.0"
106 | }
107 | signingConfigs {
108 | release {
109 | if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
110 | storeFile file(MYAPP_RELEASE_STORE_FILE)
111 | storePassword MYAPP_RELEASE_STORE_PASSWORD
112 | keyAlias MYAPP_RELEASE_KEY_ALIAS
113 | keyPassword MYAPP_RELEASE_KEY_PASSWORD
114 | }
115 | }
116 | }
117 | splits {
118 | abi {
119 | reset()
120 | enable enableSeparateBuildPerCPUArchitecture
121 | universalApk false // If true, also generate a universal APK
122 | include "armeabi-v7a", "x86", "arm64-v8a"
123 | }
124 | }
125 | buildTypes {
126 | release {
127 | minifyEnabled enableProguardInReleaseBuilds
128 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
129 | signingConfig signingConfigs.release
130 | }
131 | }
132 | // applicationVariants are e.g. debug, release
133 | applicationVariants.all { variant ->
134 | variant.outputs.each { output ->
135 | // For each separate APK per architecture, set a unique version code as described here:
136 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
137 | def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3]
138 | def abi = output.getFilter(OutputFile.ABI)
139 | if (abi != null) { // null for the universal-debug, universal-release variants
140 | output.versionCodeOverride =
141 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
142 | }
143 | }
144 | }
145 |
146 | /* packagingOptions {
147 | pickFirst 'lib/x86/libc++_shared.so'
148 | pickFirst 'lib/x86_64/libjsc.so'
149 | pickFirst 'lib/arm64-v8a/libjsc.so'
150 | pickFirst 'lib/arm64-v8a/libc++_shared.so'
151 | pickFirst 'lib/x86_64/libc++_shared.so'
152 | pickFirst 'lib/armeabi-v7a/libc++_shared.so'
153 | }*/
154 | }
155 |
156 | /*
157 | configurations.all {
158 | resolutionStrategy {
159 | force 'org.webkit:android-jsc:r236355'
160 | }
161 | }
162 | */
163 |
164 | dependencies {
165 | implementation project(':random-access-rn-file')
166 | implementation project(':react-native-os')
167 | implementation project(':react-native-udp')
168 | implementation project(':react-native-tcp')
169 | implementation project(':react-native-webview')
170 | implementation fileTree(dir: "libs", include: ["*.jar"])
171 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
172 | implementation "com.facebook.react:react-native:0.58.5" // From node_modules
173 | implementation project(':react-native-randombytes')
174 | }
175 |
176 | // Run this once to be able to run the application with BUCK
177 | // puts all compile dependencies into folder libs for BUCK to use
178 | task copyDownloadableDepsToLibs(type: Copy) {
179 | from configurations.compile
180 | into 'libs'
181 | }
182 |
--------------------------------------------------------------------------------
/android/app/build_defs.bzl:
--------------------------------------------------------------------------------
1 | """Helper definitions to glob .aar and .jar targets"""
2 |
3 | def create_aar_targets(aarfiles):
4 | for aarfile in aarfiles:
5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
6 | lib_deps.append(":" + name)
7 | android_prebuilt_aar(
8 | name = name,
9 | aar = aarfile,
10 | )
11 |
12 | def create_jar_targets(jarfiles):
13 | for jarfile in jarfiles:
14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
15 | lib_deps.append(":" + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
16 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/datmobile/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.datmobile;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "Datmobile";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/datmobile/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.datmobile;
2 |
3 | import android.app.Application;
4 |
5 | import com.bitgo.randombytes.RandomBytesPackage;
6 | import com.datmobile.BuildConfig;
7 | import com.facebook.react.ReactApplication;
8 | import com.reactlibrary.RNRandomAccessRnFilePackage;
9 | import com.facebook.react.ReactNativeHost;
10 | import com.facebook.react.ReactPackage;
11 | import com.facebook.react.shell.MainReactPackage;
12 | import com.facebook.soloader.SoLoader;
13 | import com.peel.react.TcpSocketsModule;
14 | import com.peel.react.rnos.RNOSModule;
15 | import com.tradle.react.UdpSocketsModule;
16 | import com.reactnativecommunity.webview.RNCWebViewPackage;
17 |
18 | import java.util.Arrays;
19 | import java.util.List;
20 |
21 | public class MainApplication extends Application implements ReactApplication {
22 |
23 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
24 | @Override
25 | public boolean getUseDeveloperSupport() {
26 | return BuildConfig.DEBUG;
27 | }
28 |
29 | @Override
30 | protected List getPackages() {
31 | return Arrays.asList(
32 | new MainReactPackage(),
33 | new RNRandomAccessRnFilePackage(),
34 | new RNOSModule(),
35 | new UdpSocketsModule(),
36 | new TcpSocketsModule(),
37 | new RNCWebViewPackage(),
38 | new RandomBytesPackage()
39 | );
40 | }
41 |
42 | @Override
43 | protected String getJSMainModuleName() {
44 | return "index";
45 | }
46 | };
47 |
48 | @Override
49 | public ReactNativeHost getReactNativeHost() {
50 | return mReactNativeHost;
51 | }
52 |
53 | @Override
54 | public void onCreate() {
55 | super.onCreate();
56 | SoLoader.init(this, /* native exopackage */ false);
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Datmobile
3 |
4 |
--------------------------------------------------------------------------------
/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 | ext {
5 | buildToolsVersion = "28.0.2"
6 | minSdkVersion = 21
7 | compileSdkVersion = 28
8 | targetSdkVersion = 27
9 | supportLibVersion = "28.0.0"
10 | }
11 | repositories {
12 | google()
13 | jcenter()
14 | }
15 | dependencies {
16 | classpath 'com.android.tools.build:gradle:3.2.1'
17 |
18 | // NOTE: Do not place your application dependencies here; they belong
19 | // in the individual module build.gradle files
20 | }
21 | }
22 |
23 | allprojects {
24 | repositories {
25 | maven { url "https://jitpack.io" }
26 | mavenLocal()
27 | google()
28 | jcenter()
29 | maven {
30 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
31 | url "$rootDir/../node_modules/react-native/android"
32 | }
33 | //maven {
34 | // Local Maven repo containing AARs with JSC library built for Android
35 | // url "$rootDir/../node_modules/jsc-android/dist"
36 | //}
37 | }
38 | }
39 |
40 | subprojects {
41 | afterEvaluate {project ->
42 | if (project.hasProperty("android")) {
43 | android {
44 | compileSdkVersion 28
45 | buildToolsVersion "28.0.0"
46 | }
47 | }
48 | }
49 | }
50 |
51 | task wrapper(type: Wrapper) {
52 | gradleVersion = '4.7'
53 | distributionUrl = distributionUrl.replace("bin", "all")
54 | }
55 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip
6 |
--------------------------------------------------------------------------------
/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/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/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'Datmobile'
2 | include ':random-access-rn-file'
3 | project(':random-access-rn-file').projectDir = new File(rootProject.projectDir, '../node_modules/random-access-rn-file/android')
4 | include ':react-native-os'
5 | project(':react-native-os').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-os/android')
6 | include ':react-native-udp'
7 | project(':react-native-udp').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-udp/android')
8 | include ':react-native-tcp'
9 | project(':react-native-tcp').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-tcp/android')
10 | include ':react-native-webview'
11 | project(':react-native-webview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview/android')
12 | include ':react-native-randombytes'
13 | project(':react-native-randombytes').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-randombytes/android')
14 |
15 | include ':app'
16 |
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Datmobile",
3 | "displayName": "Datmobile"
4 | }
--------------------------------------------------------------------------------
/assets/banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/assets/banner.png
--------------------------------------------------------------------------------
/assets/banner.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RangerMauve/datmobile/175de29ba809ac9799427d75de1c3962833aec04/assets/logo.png
--------------------------------------------------------------------------------
/assets/logo.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ['module:metro-react-native-babel-preset']
3 | }
4 |
--------------------------------------------------------------------------------
/empty.js:
--------------------------------------------------------------------------------
1 | module.exports = {}
2 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | import './shim.js'
2 | import { AppRegistry } from 'react-native'
3 | import App from './App'
4 | import { name as appName } from './app.json'
5 |
6 | AppRegistry.registerComponent(appName, () => App)
7 |
--------------------------------------------------------------------------------
/ios/Datmobile-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/Datmobile-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/Datmobile.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 /* DatmobileTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* DatmobileTests.m */; };
15 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
25 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
26 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
27 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
28 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
29 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; };
30 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; };
31 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; };
32 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; };
33 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; };
34 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; };
35 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; };
36 | 2DCD954D1E0B4F2C00145EB5 /* DatmobileTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* DatmobileTests.m */; };
37 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; };
38 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
39 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; };
40 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; };
41 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; };
42 | 927FCBED88A84693B59EB9C8 /* libRNRandomBytes.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3FDC3BB778EB49DE9A9841B4 /* libRNRandomBytes.a */; };
43 | A7E855796F7E420EB75931B0 /* libRNCWebView.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 900E499C797D458BA47554B3 /* libRNCWebView.a */; };
44 | 88E8AC88E7AF4E9B9652E4AF /* libTcpSockets.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1EB158E3B4DF4F819B35A1AE /* libTcpSockets.a */; };
45 | F42D7E7A403B45EE995F9E62 /* libUdpSockets.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D3B60CB1438745BFB94A3B78 /* libUdpSockets.a */; };
46 | 3FD0DFCC2B2A4B2BB297279B /* libRNOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DC7A601D9D0A41F987A2BFA2 /* libRNOS.a */; };
47 | 30B4FC82F9F64AB3879873A2 /* libRNFS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7104D30D5E9548F095E5AEBC /* libRNFS.a */; };
48 | 34E4CB6D9CA540A887AEEFB2 /* libRNRandomAccessRnFile.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B84EEDC403E34EE2B588205B /* libRNRandomAccessRnFile.a */; };
49 | /* End PBXBuildFile section */
50 |
51 | /* Begin PBXContainerItemProxy section */
52 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
53 | isa = PBXContainerItemProxy;
54 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
55 | proxyType = 2;
56 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
57 | remoteInfo = RCTActionSheet;
58 | };
59 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
60 | isa = PBXContainerItemProxy;
61 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
62 | proxyType = 2;
63 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
64 | remoteInfo = RCTGeolocation;
65 | };
66 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
67 | isa = PBXContainerItemProxy;
68 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
69 | proxyType = 2;
70 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
71 | remoteInfo = RCTImage;
72 | };
73 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
74 | isa = PBXContainerItemProxy;
75 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
76 | proxyType = 2;
77 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
78 | remoteInfo = RCTNetwork;
79 | };
80 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
81 | isa = PBXContainerItemProxy;
82 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
83 | proxyType = 2;
84 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
85 | remoteInfo = RCTVibration;
86 | };
87 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
88 | isa = PBXContainerItemProxy;
89 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
90 | proxyType = 1;
91 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
92 | remoteInfo = Datmobile;
93 | };
94 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
95 | isa = PBXContainerItemProxy;
96 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
97 | proxyType = 2;
98 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
99 | remoteInfo = RCTSettings;
100 | };
101 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
102 | isa = PBXContainerItemProxy;
103 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
104 | proxyType = 2;
105 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
106 | remoteInfo = RCTWebSocket;
107 | };
108 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
109 | isa = PBXContainerItemProxy;
110 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
111 | proxyType = 2;
112 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
113 | remoteInfo = React;
114 | };
115 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = {
116 | isa = PBXContainerItemProxy;
117 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
118 | proxyType = 1;
119 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7;
120 | remoteInfo = "Datmobile-tvOS";
121 | };
122 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
123 | isa = PBXContainerItemProxy;
124 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
125 | proxyType = 2;
126 | remoteGlobalIDString = ADD01A681E09402E00F6D226;
127 | remoteInfo = "RCTBlob-tvOS";
128 | };
129 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
130 | isa = PBXContainerItemProxy;
131 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
132 | proxyType = 2;
133 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32;
134 | remoteInfo = fishhook;
135 | };
136 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
137 | isa = PBXContainerItemProxy;
138 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
139 | proxyType = 2;
140 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32;
141 | remoteInfo = "fishhook-tvOS";
142 | };
143 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = {
144 | isa = PBXContainerItemProxy;
145 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
146 | proxyType = 2;
147 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5;
148 | remoteInfo = jsinspector;
149 | };
150 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = {
151 | isa = PBXContainerItemProxy;
152 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
153 | proxyType = 2;
154 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5;
155 | remoteInfo = "jsinspector-tvOS";
156 | };
157 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = {
158 | isa = PBXContainerItemProxy;
159 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
160 | proxyType = 2;
161 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7;
162 | remoteInfo = "third-party";
163 | };
164 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = {
165 | isa = PBXContainerItemProxy;
166 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
167 | proxyType = 2;
168 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8;
169 | remoteInfo = "third-party-tvOS";
170 | };
171 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = {
172 | isa = PBXContainerItemProxy;
173 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
174 | proxyType = 2;
175 | remoteGlobalIDString = 139D7E881E25C6D100323FB7;
176 | remoteInfo = "double-conversion";
177 | };
178 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = {
179 | isa = PBXContainerItemProxy;
180 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
181 | proxyType = 2;
182 | remoteGlobalIDString = 3D383D621EBD27B9005632C8;
183 | remoteInfo = "double-conversion-tvOS";
184 | };
185 | 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */ = {
186 | isa = PBXContainerItemProxy;
187 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
188 | proxyType = 2;
189 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04;
190 | remoteInfo = privatedata;
191 | };
192 | 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */ = {
193 | isa = PBXContainerItemProxy;
194 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
195 | proxyType = 2;
196 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04;
197 | remoteInfo = "privatedata-tvOS";
198 | };
199 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = {
200 | isa = PBXContainerItemProxy;
201 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
202 | proxyType = 2;
203 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
204 | remoteInfo = "RCTImage-tvOS";
205 | };
206 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = {
207 | isa = PBXContainerItemProxy;
208 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
209 | proxyType = 2;
210 | remoteGlobalIDString = 2D2A28471D9B043800D4039D;
211 | remoteInfo = "RCTLinking-tvOS";
212 | };
213 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
214 | isa = PBXContainerItemProxy;
215 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
216 | proxyType = 2;
217 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
218 | remoteInfo = "RCTNetwork-tvOS";
219 | };
220 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
221 | isa = PBXContainerItemProxy;
222 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
223 | proxyType = 2;
224 | remoteGlobalIDString = 2D2A28611D9B046600D4039D;
225 | remoteInfo = "RCTSettings-tvOS";
226 | };
227 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = {
228 | isa = PBXContainerItemProxy;
229 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
230 | proxyType = 2;
231 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
232 | remoteInfo = "RCTText-tvOS";
233 | };
234 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = {
235 | isa = PBXContainerItemProxy;
236 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
237 | proxyType = 2;
238 | remoteGlobalIDString = 2D2A28881D9B049200D4039D;
239 | remoteInfo = "RCTWebSocket-tvOS";
240 | };
241 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = {
242 | isa = PBXContainerItemProxy;
243 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
244 | proxyType = 2;
245 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
246 | remoteInfo = "React-tvOS";
247 | };
248 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = {
249 | isa = PBXContainerItemProxy;
250 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
251 | proxyType = 2;
252 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
253 | remoteInfo = yoga;
254 | };
255 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = {
256 | isa = PBXContainerItemProxy;
257 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
258 | proxyType = 2;
259 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
260 | remoteInfo = "yoga-tvOS";
261 | };
262 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = {
263 | isa = PBXContainerItemProxy;
264 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
265 | proxyType = 2;
266 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
267 | remoteInfo = cxxreact;
268 | };
269 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
270 | isa = PBXContainerItemProxy;
271 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
272 | proxyType = 2;
273 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
274 | remoteInfo = "cxxreact-tvOS";
275 | };
276 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
277 | isa = PBXContainerItemProxy;
278 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
279 | proxyType = 2;
280 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4;
281 | remoteInfo = jschelpers;
282 | };
283 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
284 | isa = PBXContainerItemProxy;
285 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
286 | proxyType = 2;
287 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4;
288 | remoteInfo = "jschelpers-tvOS";
289 | };
290 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
291 | isa = PBXContainerItemProxy;
292 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
293 | proxyType = 2;
294 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
295 | remoteInfo = RCTAnimation;
296 | };
297 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
298 | isa = PBXContainerItemProxy;
299 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
300 | proxyType = 2;
301 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
302 | remoteInfo = "RCTAnimation-tvOS";
303 | };
304 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
305 | isa = PBXContainerItemProxy;
306 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
307 | proxyType = 2;
308 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
309 | remoteInfo = RCTLinking;
310 | };
311 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
312 | isa = PBXContainerItemProxy;
313 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
314 | proxyType = 2;
315 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
316 | remoteInfo = RCTText;
317 | };
318 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = {
319 | isa = PBXContainerItemProxy;
320 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
321 | proxyType = 2;
322 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814;
323 | remoteInfo = RCTBlob;
324 | };
325 | /* End PBXContainerItemProxy section */
326 |
327 | /* Begin PBXFileReference section */
328 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
329 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
330 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
331 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
332 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
333 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
334 | 00E356EE1AD99517003FC87E /* DatmobileTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DatmobileTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
335 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
336 | 00E356F21AD99517003FC87E /* DatmobileTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DatmobileTests.m; sourceTree = ""; };
337 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
338 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
339 | 13B07F961A680F5B00A75B9A /* Datmobile.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Datmobile.app; sourceTree = BUILT_PRODUCTS_DIR; };
340 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Datmobile/AppDelegate.h; sourceTree = ""; };
341 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Datmobile/AppDelegate.m; sourceTree = ""; };
342 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
343 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Datmobile/Images.xcassets; sourceTree = ""; };
344 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Datmobile/Info.plist; sourceTree = ""; };
345 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Datmobile/main.m; sourceTree = ""; };
346 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
347 | 2D02E47B1E0B4A5D006451C7 /* Datmobile-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Datmobile-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
348 | 2D02E4901E0B4A5D006451C7 /* Datmobile-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Datmobile-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
349 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; };
350 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; };
351 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
352 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
353 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; };
354 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
355 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
356 | E8150AEC3EEE4028B6892A6A /* RNRandomBytes.xcodeproj */ = {isa = PBXFileReference; name = "RNRandomBytes.xcodeproj"; path = "../node_modules/react-native-randombytes/RNRandomBytes.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
357 | 3FDC3BB778EB49DE9A9841B4 /* libRNRandomBytes.a */ = {isa = PBXFileReference; name = "libRNRandomBytes.a"; path = "libRNRandomBytes.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
358 | 3123FB2FE3FF42BEBB3C2557 /* RNCWebView.xcodeproj */ = {isa = PBXFileReference; name = "RNCWebView.xcodeproj"; path = "../node_modules/react-native-webview/ios/RNCWebView.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
359 | 900E499C797D458BA47554B3 /* libRNCWebView.a */ = {isa = PBXFileReference; name = "libRNCWebView.a"; path = "libRNCWebView.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
360 | 44F5D1D81CEF48DF8ACF9461 /* TcpSockets.xcodeproj */ = {isa = PBXFileReference; name = "TcpSockets.xcodeproj"; path = "../node_modules/react-native-tcp/ios/TcpSockets.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
361 | 1EB158E3B4DF4F819B35A1AE /* libTcpSockets.a */ = {isa = PBXFileReference; name = "libTcpSockets.a"; path = "libTcpSockets.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
362 | 3BB80DFFA2D542A796D28821 /* UdpSockets.xcodeproj */ = {isa = PBXFileReference; name = "UdpSockets.xcodeproj"; path = "../node_modules/react-native-udp/ios/UdpSockets.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
363 | D3B60CB1438745BFB94A3B78 /* libUdpSockets.a */ = {isa = PBXFileReference; name = "libUdpSockets.a"; path = "libUdpSockets.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
364 | 17CAF67C01F3492795489675 /* RNOS.xcodeproj */ = {isa = PBXFileReference; name = "RNOS.xcodeproj"; path = "../node_modules/react-native-os/ios/RNOS.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
365 | DC7A601D9D0A41F987A2BFA2 /* libRNOS.a */ = {isa = PBXFileReference; name = "libRNOS.a"; path = "libRNOS.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
366 | 70B95E6DB259412E84A245DF /* RNFS.xcodeproj */ = {isa = PBXFileReference; name = "RNFS.xcodeproj"; path = "../node_modules/react-native-fs/RNFS.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
367 | 7104D30D5E9548F095E5AEBC /* libRNFS.a */ = {isa = PBXFileReference; name = "libRNFS.a"; path = "libRNFS.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
368 | 096AD2E8C3524CA5B492DF56 /* RNRandomAccessRnFile.xcodeproj */ = {isa = PBXFileReference; name = "RNRandomAccessRnFile.xcodeproj"; path = "../node_modules/random-access-rn-file/ios/RNRandomAccessRnFile.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
369 | B84EEDC403E34EE2B588205B /* libRNRandomAccessRnFile.a */ = {isa = PBXFileReference; name = "libRNRandomAccessRnFile.a"; path = "libRNRandomAccessRnFile.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
370 | /* End PBXFileReference section */
371 |
372 | /* Begin PBXFrameworksBuildPhase section */
373 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
374 | isa = PBXFrameworksBuildPhase;
375 | buildActionMask = 2147483647;
376 | files = (
377 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */,
378 | );
379 | runOnlyForDeploymentPostprocessing = 0;
380 | };
381 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
382 | isa = PBXFrameworksBuildPhase;
383 | buildActionMask = 2147483647;
384 | files = (
385 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */,
386 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */,
387 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */,
388 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
389 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
390 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
391 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
392 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
393 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
394 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
395 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
396 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
397 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
398 | 927FCBED88A84693B59EB9C8 /* libRNRandomBytes.a in Frameworks */,
399 | A7E855796F7E420EB75931B0 /* libRNCWebView.a in Frameworks */,
400 | 88E8AC88E7AF4E9B9652E4AF /* libTcpSockets.a in Frameworks */,
401 | F42D7E7A403B45EE995F9E62 /* libUdpSockets.a in Frameworks */,
402 | 3FD0DFCC2B2A4B2BB297279B /* libRNOS.a in Frameworks */,
403 | 30B4FC82F9F64AB3879873A2 /* libRNFS.a in Frameworks */,
404 | 34E4CB6D9CA540A887AEEFB2 /* libRNRandomAccessRnFile.a in Frameworks */,
405 | );
406 | runOnlyForDeploymentPostprocessing = 0;
407 | };
408 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = {
409 | isa = PBXFrameworksBuildPhase;
410 | buildActionMask = 2147483647;
411 | files = (
412 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */,
413 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */,
414 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */,
415 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */,
416 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */,
417 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */,
418 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */,
419 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */,
420 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */,
421 | );
422 | runOnlyForDeploymentPostprocessing = 0;
423 | };
424 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = {
425 | isa = PBXFrameworksBuildPhase;
426 | buildActionMask = 2147483647;
427 | files = (
428 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */,
429 | );
430 | runOnlyForDeploymentPostprocessing = 0;
431 | };
432 | /* End PBXFrameworksBuildPhase section */
433 |
434 | /* Begin PBXGroup section */
435 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
436 | isa = PBXGroup;
437 | children = (
438 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
439 | );
440 | name = Products;
441 | sourceTree = "";
442 | };
443 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
444 | isa = PBXGroup;
445 | children = (
446 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
447 | );
448 | name = Products;
449 | sourceTree = "";
450 | };
451 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
452 | isa = PBXGroup;
453 | children = (
454 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
455 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */,
456 | );
457 | name = Products;
458 | sourceTree = "";
459 | };
460 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
461 | isa = PBXGroup;
462 | children = (
463 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
464 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */,
465 | );
466 | name = Products;
467 | sourceTree = "";
468 | };
469 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
470 | isa = PBXGroup;
471 | children = (
472 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
473 | );
474 | name = Products;
475 | sourceTree = "";
476 | };
477 | 00E356EF1AD99517003FC87E /* DatmobileTests */ = {
478 | isa = PBXGroup;
479 | children = (
480 | 00E356F21AD99517003FC87E /* DatmobileTests.m */,
481 | 00E356F01AD99517003FC87E /* Supporting Files */,
482 | );
483 | path = DatmobileTests;
484 | sourceTree = "";
485 | };
486 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
487 | isa = PBXGroup;
488 | children = (
489 | 00E356F11AD99517003FC87E /* Info.plist */,
490 | );
491 | name = "Supporting Files";
492 | sourceTree = "";
493 | };
494 | 139105B71AF99BAD00B5F7CC /* Products */ = {
495 | isa = PBXGroup;
496 | children = (
497 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
498 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */,
499 | );
500 | name = Products;
501 | sourceTree = "";
502 | };
503 | 139FDEE71B06529A00C62182 /* Products */ = {
504 | isa = PBXGroup;
505 | children = (
506 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
507 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */,
508 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */,
509 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */,
510 | );
511 | name = Products;
512 | sourceTree = "";
513 | };
514 | 13B07FAE1A68108700A75B9A /* Datmobile */ = {
515 | isa = PBXGroup;
516 | children = (
517 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
518 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
519 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
520 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
521 | 13B07FB61A68108700A75B9A /* Info.plist */,
522 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
523 | 13B07FB71A68108700A75B9A /* main.m */,
524 | );
525 | name = Datmobile;
526 | sourceTree = "";
527 | };
528 | 146834001AC3E56700842450 /* Products */ = {
529 | isa = PBXGroup;
530 | children = (
531 | 146834041AC3E56700842450 /* libReact.a */,
532 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */,
533 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */,
534 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */,
535 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */,
536 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */,
537 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */,
538 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */,
539 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */,
540 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */,
541 | 2DF0FFE32056DD460020B375 /* libthird-party.a */,
542 | 2DF0FFE52056DD460020B375 /* libthird-party.a */,
543 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */,
544 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */,
545 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */,
546 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */,
547 | );
548 | name = Products;
549 | sourceTree = "";
550 | };
551 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
552 | isa = PBXGroup;
553 | children = (
554 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
555 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
556 | 2D16E6891FA4F8E400B85C8A /* libReact.a */,
557 | );
558 | name = Frameworks;
559 | sourceTree = "";
560 | };
561 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
562 | isa = PBXGroup;
563 | children = (
564 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
565 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */,
566 | );
567 | name = Products;
568 | sourceTree = "";
569 | };
570 | 78C398B11ACF4ADC00677621 /* Products */ = {
571 | isa = PBXGroup;
572 | children = (
573 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
574 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */,
575 | );
576 | name = Products;
577 | sourceTree = "";
578 | };
579 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
580 | isa = PBXGroup;
581 | children = (
582 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
583 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
584 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
585 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */,
586 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
587 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
588 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
589 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
590 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
591 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
592 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
593 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
594 | E8150AEC3EEE4028B6892A6A /* RNRandomBytes.xcodeproj */,
595 | 3123FB2FE3FF42BEBB3C2557 /* RNCWebView.xcodeproj */,
596 | 44F5D1D81CEF48DF8ACF9461 /* TcpSockets.xcodeproj */,
597 | 3BB80DFFA2D542A796D28821 /* UdpSockets.xcodeproj */,
598 | 17CAF67C01F3492795489675 /* RNOS.xcodeproj */,
599 | 70B95E6DB259412E84A245DF /* RNFS.xcodeproj */,
600 | 096AD2E8C3524CA5B492DF56 /* RNRandomAccessRnFile.xcodeproj */,
601 | );
602 | name = Libraries;
603 | sourceTree = "";
604 | };
605 | 832341B11AAA6A8300B99B32 /* Products */ = {
606 | isa = PBXGroup;
607 | children = (
608 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
609 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */,
610 | );
611 | name = Products;
612 | sourceTree = "";
613 | };
614 | 83CBB9F61A601CBA00E9B192 = {
615 | isa = PBXGroup;
616 | children = (
617 | 13B07FAE1A68108700A75B9A /* Datmobile */,
618 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
619 | 00E356EF1AD99517003FC87E /* DatmobileTests */,
620 | 83CBBA001A601CBA00E9B192 /* Products */,
621 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
622 | );
623 | indentWidth = 2;
624 | sourceTree = "";
625 | tabWidth = 2;
626 | usesTabs = 0;
627 | };
628 | 83CBBA001A601CBA00E9B192 /* Products */ = {
629 | isa = PBXGroup;
630 | children = (
631 | 13B07F961A680F5B00A75B9A /* Datmobile.app */,
632 | 00E356EE1AD99517003FC87E /* DatmobileTests.xctest */,
633 | 2D02E47B1E0B4A5D006451C7 /* Datmobile-tvOS.app */,
634 | 2D02E4901E0B4A5D006451C7 /* Datmobile-tvOSTests.xctest */,
635 | );
636 | name = Products;
637 | sourceTree = "";
638 | };
639 | ADBDB9201DFEBF0600ED6528 /* Products */ = {
640 | isa = PBXGroup;
641 | children = (
642 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */,
643 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */,
644 | );
645 | name = Products;
646 | sourceTree = "";
647 | };
648 | /* End PBXGroup section */
649 |
650 | /* Begin PBXNativeTarget section */
651 | 00E356ED1AD99517003FC87E /* DatmobileTests */ = {
652 | isa = PBXNativeTarget;
653 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "DatmobileTests" */;
654 | buildPhases = (
655 | 00E356EA1AD99517003FC87E /* Sources */,
656 | 00E356EB1AD99517003FC87E /* Frameworks */,
657 | 00E356EC1AD99517003FC87E /* Resources */,
658 | );
659 | buildRules = (
660 | );
661 | dependencies = (
662 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
663 | );
664 | name = DatmobileTests;
665 | productName = DatmobileTests;
666 | productReference = 00E356EE1AD99517003FC87E /* DatmobileTests.xctest */;
667 | productType = "com.apple.product-type.bundle.unit-test";
668 | };
669 | 13B07F861A680F5B00A75B9A /* Datmobile */ = {
670 | isa = PBXNativeTarget;
671 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Datmobile" */;
672 | buildPhases = (
673 | 13B07F871A680F5B00A75B9A /* Sources */,
674 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
675 | 13B07F8E1A680F5B00A75B9A /* Resources */,
676 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
677 | );
678 | buildRules = (
679 | );
680 | dependencies = (
681 | );
682 | name = Datmobile;
683 | productName = "Hello World";
684 | productReference = 13B07F961A680F5B00A75B9A /* Datmobile.app */;
685 | productType = "com.apple.product-type.application";
686 | };
687 | 2D02E47A1E0B4A5D006451C7 /* Datmobile-tvOS */ = {
688 | isa = PBXNativeTarget;
689 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Datmobile-tvOS" */;
690 | buildPhases = (
691 | 2D02E4771E0B4A5D006451C7 /* Sources */,
692 | 2D02E4781E0B4A5D006451C7 /* Frameworks */,
693 | 2D02E4791E0B4A5D006451C7 /* Resources */,
694 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */,
695 | );
696 | buildRules = (
697 | );
698 | dependencies = (
699 | );
700 | name = "Datmobile-tvOS";
701 | productName = "Datmobile-tvOS";
702 | productReference = 2D02E47B1E0B4A5D006451C7 /* Datmobile-tvOS.app */;
703 | productType = "com.apple.product-type.application";
704 | };
705 | 2D02E48F1E0B4A5D006451C7 /* Datmobile-tvOSTests */ = {
706 | isa = PBXNativeTarget;
707 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Datmobile-tvOSTests" */;
708 | buildPhases = (
709 | 2D02E48C1E0B4A5D006451C7 /* Sources */,
710 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */,
711 | 2D02E48E1E0B4A5D006451C7 /* Resources */,
712 | );
713 | buildRules = (
714 | );
715 | dependencies = (
716 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */,
717 | );
718 | name = "Datmobile-tvOSTests";
719 | productName = "Datmobile-tvOSTests";
720 | productReference = 2D02E4901E0B4A5D006451C7 /* Datmobile-tvOSTests.xctest */;
721 | productType = "com.apple.product-type.bundle.unit-test";
722 | };
723 | /* End PBXNativeTarget section */
724 |
725 | /* Begin PBXProject section */
726 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
727 | isa = PBXProject;
728 | attributes = {
729 | LastUpgradeCheck = 940;
730 | ORGANIZATIONNAME = Facebook;
731 | TargetAttributes = {
732 | 00E356ED1AD99517003FC87E = {
733 | CreatedOnToolsVersion = 6.2;
734 | TestTargetID = 13B07F861A680F5B00A75B9A;
735 | };
736 | 2D02E47A1E0B4A5D006451C7 = {
737 | CreatedOnToolsVersion = 8.2.1;
738 | ProvisioningStyle = Automatic;
739 | };
740 | 2D02E48F1E0B4A5D006451C7 = {
741 | CreatedOnToolsVersion = 8.2.1;
742 | ProvisioningStyle = Automatic;
743 | TestTargetID = 2D02E47A1E0B4A5D006451C7;
744 | };
745 | };
746 | };
747 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Datmobile" */;
748 | compatibilityVersion = "Xcode 3.2";
749 | developmentRegion = English;
750 | hasScannedForEncodings = 0;
751 | knownRegions = (
752 | en,
753 | Base,
754 | );
755 | mainGroup = 83CBB9F61A601CBA00E9B192;
756 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
757 | projectDirPath = "";
758 | projectReferences = (
759 | {
760 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
761 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
762 | },
763 | {
764 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
765 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
766 | },
767 | {
768 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */;
769 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
770 | },
771 | {
772 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
773 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
774 | },
775 | {
776 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
777 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
778 | },
779 | {
780 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
781 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
782 | },
783 | {
784 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
785 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
786 | },
787 | {
788 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
789 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
790 | },
791 | {
792 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
793 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
794 | },
795 | {
796 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
797 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
798 | },
799 | {
800 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
801 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
802 | },
803 | {
804 | ProductGroup = 146834001AC3E56700842450 /* Products */;
805 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
806 | },
807 | );
808 | projectRoot = "";
809 | targets = (
810 | 13B07F861A680F5B00A75B9A /* Datmobile */,
811 | 00E356ED1AD99517003FC87E /* DatmobileTests */,
812 | 2D02E47A1E0B4A5D006451C7 /* Datmobile-tvOS */,
813 | 2D02E48F1E0B4A5D006451C7 /* Datmobile-tvOSTests */,
814 | );
815 | };
816 | /* End PBXProject section */
817 |
818 | /* Begin PBXReferenceProxy section */
819 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
820 | isa = PBXReferenceProxy;
821 | fileType = archive.ar;
822 | path = libRCTActionSheet.a;
823 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
824 | sourceTree = BUILT_PRODUCTS_DIR;
825 | };
826 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
827 | isa = PBXReferenceProxy;
828 | fileType = archive.ar;
829 | path = libRCTGeolocation.a;
830 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
831 | sourceTree = BUILT_PRODUCTS_DIR;
832 | };
833 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
834 | isa = PBXReferenceProxy;
835 | fileType = archive.ar;
836 | path = libRCTImage.a;
837 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
838 | sourceTree = BUILT_PRODUCTS_DIR;
839 | };
840 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
841 | isa = PBXReferenceProxy;
842 | fileType = archive.ar;
843 | path = libRCTNetwork.a;
844 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
845 | sourceTree = BUILT_PRODUCTS_DIR;
846 | };
847 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
848 | isa = PBXReferenceProxy;
849 | fileType = archive.ar;
850 | path = libRCTVibration.a;
851 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
852 | sourceTree = BUILT_PRODUCTS_DIR;
853 | };
854 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
855 | isa = PBXReferenceProxy;
856 | fileType = archive.ar;
857 | path = libRCTSettings.a;
858 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
859 | sourceTree = BUILT_PRODUCTS_DIR;
860 | };
861 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
862 | isa = PBXReferenceProxy;
863 | fileType = archive.ar;
864 | path = libRCTWebSocket.a;
865 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
866 | sourceTree = BUILT_PRODUCTS_DIR;
867 | };
868 | 146834041AC3E56700842450 /* libReact.a */ = {
869 | isa = PBXReferenceProxy;
870 | fileType = archive.ar;
871 | path = libReact.a;
872 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
873 | sourceTree = BUILT_PRODUCTS_DIR;
874 | };
875 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = {
876 | isa = PBXReferenceProxy;
877 | fileType = archive.ar;
878 | path = "libRCTBlob-tvOS.a";
879 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */;
880 | sourceTree = BUILT_PRODUCTS_DIR;
881 | };
882 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = {
883 | isa = PBXReferenceProxy;
884 | fileType = archive.ar;
885 | path = libfishhook.a;
886 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */;
887 | sourceTree = BUILT_PRODUCTS_DIR;
888 | };
889 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = {
890 | isa = PBXReferenceProxy;
891 | fileType = archive.ar;
892 | path = "libfishhook-tvOS.a";
893 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */;
894 | sourceTree = BUILT_PRODUCTS_DIR;
895 | };
896 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = {
897 | isa = PBXReferenceProxy;
898 | fileType = archive.ar;
899 | path = libjsinspector.a;
900 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */;
901 | sourceTree = BUILT_PRODUCTS_DIR;
902 | };
903 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = {
904 | isa = PBXReferenceProxy;
905 | fileType = archive.ar;
906 | path = "libjsinspector-tvOS.a";
907 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */;
908 | sourceTree = BUILT_PRODUCTS_DIR;
909 | };
910 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = {
911 | isa = PBXReferenceProxy;
912 | fileType = archive.ar;
913 | path = "libthird-party.a";
914 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */;
915 | sourceTree = BUILT_PRODUCTS_DIR;
916 | };
917 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = {
918 | isa = PBXReferenceProxy;
919 | fileType = archive.ar;
920 | path = "libthird-party.a";
921 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */;
922 | sourceTree = BUILT_PRODUCTS_DIR;
923 | };
924 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = {
925 | isa = PBXReferenceProxy;
926 | fileType = archive.ar;
927 | path = "libdouble-conversion.a";
928 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */;
929 | sourceTree = BUILT_PRODUCTS_DIR;
930 | };
931 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = {
932 | isa = PBXReferenceProxy;
933 | fileType = archive.ar;
934 | path = "libdouble-conversion.a";
935 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */;
936 | sourceTree = BUILT_PRODUCTS_DIR;
937 | };
938 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */ = {
939 | isa = PBXReferenceProxy;
940 | fileType = archive.ar;
941 | path = libprivatedata.a;
942 | remoteRef = 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */;
943 | sourceTree = BUILT_PRODUCTS_DIR;
944 | };
945 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */ = {
946 | isa = PBXReferenceProxy;
947 | fileType = archive.ar;
948 | path = "libprivatedata-tvOS.a";
949 | remoteRef = 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */;
950 | sourceTree = BUILT_PRODUCTS_DIR;
951 | };
952 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = {
953 | isa = PBXReferenceProxy;
954 | fileType = archive.ar;
955 | path = "libRCTImage-tvOS.a";
956 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */;
957 | sourceTree = BUILT_PRODUCTS_DIR;
958 | };
959 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = {
960 | isa = PBXReferenceProxy;
961 | fileType = archive.ar;
962 | path = "libRCTLinking-tvOS.a";
963 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */;
964 | sourceTree = BUILT_PRODUCTS_DIR;
965 | };
966 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = {
967 | isa = PBXReferenceProxy;
968 | fileType = archive.ar;
969 | path = "libRCTNetwork-tvOS.a";
970 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */;
971 | sourceTree = BUILT_PRODUCTS_DIR;
972 | };
973 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = {
974 | isa = PBXReferenceProxy;
975 | fileType = archive.ar;
976 | path = "libRCTSettings-tvOS.a";
977 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */;
978 | sourceTree = BUILT_PRODUCTS_DIR;
979 | };
980 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = {
981 | isa = PBXReferenceProxy;
982 | fileType = archive.ar;
983 | path = "libRCTText-tvOS.a";
984 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */;
985 | sourceTree = BUILT_PRODUCTS_DIR;
986 | };
987 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = {
988 | isa = PBXReferenceProxy;
989 | fileType = archive.ar;
990 | path = "libRCTWebSocket-tvOS.a";
991 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */;
992 | sourceTree = BUILT_PRODUCTS_DIR;
993 | };
994 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = {
995 | isa = PBXReferenceProxy;
996 | fileType = archive.ar;
997 | path = libReact.a;
998 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */;
999 | sourceTree = BUILT_PRODUCTS_DIR;
1000 | };
1001 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = {
1002 | isa = PBXReferenceProxy;
1003 | fileType = archive.ar;
1004 | path = libyoga.a;
1005 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */;
1006 | sourceTree = BUILT_PRODUCTS_DIR;
1007 | };
1008 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = {
1009 | isa = PBXReferenceProxy;
1010 | fileType = archive.ar;
1011 | path = libyoga.a;
1012 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */;
1013 | sourceTree = BUILT_PRODUCTS_DIR;
1014 | };
1015 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = {
1016 | isa = PBXReferenceProxy;
1017 | fileType = archive.ar;
1018 | path = libcxxreact.a;
1019 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */;
1020 | sourceTree = BUILT_PRODUCTS_DIR;
1021 | };
1022 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = {
1023 | isa = PBXReferenceProxy;
1024 | fileType = archive.ar;
1025 | path = libcxxreact.a;
1026 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */;
1027 | sourceTree = BUILT_PRODUCTS_DIR;
1028 | };
1029 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = {
1030 | isa = PBXReferenceProxy;
1031 | fileType = archive.ar;
1032 | path = libjschelpers.a;
1033 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */;
1034 | sourceTree = BUILT_PRODUCTS_DIR;
1035 | };
1036 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = {
1037 | isa = PBXReferenceProxy;
1038 | fileType = archive.ar;
1039 | path = libjschelpers.a;
1040 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */;
1041 | sourceTree = BUILT_PRODUCTS_DIR;
1042 | };
1043 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
1044 | isa = PBXReferenceProxy;
1045 | fileType = archive.ar;
1046 | path = libRCTAnimation.a;
1047 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
1048 | sourceTree = BUILT_PRODUCTS_DIR;
1049 | };
1050 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
1051 | isa = PBXReferenceProxy;
1052 | fileType = archive.ar;
1053 | path = libRCTAnimation.a;
1054 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
1055 | sourceTree = BUILT_PRODUCTS_DIR;
1056 | };
1057 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
1058 | isa = PBXReferenceProxy;
1059 | fileType = archive.ar;
1060 | path = libRCTLinking.a;
1061 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
1062 | sourceTree = BUILT_PRODUCTS_DIR;
1063 | };
1064 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
1065 | isa = PBXReferenceProxy;
1066 | fileType = archive.ar;
1067 | path = libRCTText.a;
1068 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
1069 | sourceTree = BUILT_PRODUCTS_DIR;
1070 | };
1071 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = {
1072 | isa = PBXReferenceProxy;
1073 | fileType = archive.ar;
1074 | path = libRCTBlob.a;
1075 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */;
1076 | sourceTree = BUILT_PRODUCTS_DIR;
1077 | };
1078 | /* End PBXReferenceProxy section */
1079 |
1080 | /* Begin PBXResourcesBuildPhase section */
1081 | 00E356EC1AD99517003FC87E /* Resources */ = {
1082 | isa = PBXResourcesBuildPhase;
1083 | buildActionMask = 2147483647;
1084 | files = (
1085 | );
1086 | runOnlyForDeploymentPostprocessing = 0;
1087 | };
1088 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
1089 | isa = PBXResourcesBuildPhase;
1090 | buildActionMask = 2147483647;
1091 | files = (
1092 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
1093 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
1094 | );
1095 | runOnlyForDeploymentPostprocessing = 0;
1096 | };
1097 | 2D02E4791E0B4A5D006451C7 /* Resources */ = {
1098 | isa = PBXResourcesBuildPhase;
1099 | buildActionMask = 2147483647;
1100 | files = (
1101 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */,
1102 | );
1103 | runOnlyForDeploymentPostprocessing = 0;
1104 | };
1105 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = {
1106 | isa = PBXResourcesBuildPhase;
1107 | buildActionMask = 2147483647;
1108 | files = (
1109 | );
1110 | runOnlyForDeploymentPostprocessing = 0;
1111 | };
1112 | /* End PBXResourcesBuildPhase section */
1113 |
1114 | /* Begin PBXShellScriptBuildPhase section */
1115 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
1116 | isa = PBXShellScriptBuildPhase;
1117 | buildActionMask = 2147483647;
1118 | files = (
1119 | );
1120 | inputPaths = (
1121 | );
1122 | name = "Bundle React Native code and images";
1123 | outputPaths = (
1124 | );
1125 | runOnlyForDeploymentPostprocessing = 0;
1126 | shellPath = /bin/sh;
1127 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1128 | };
1129 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = {
1130 | isa = PBXShellScriptBuildPhase;
1131 | buildActionMask = 2147483647;
1132 | files = (
1133 | );
1134 | inputPaths = (
1135 | );
1136 | name = "Bundle React Native Code And Images";
1137 | outputPaths = (
1138 | );
1139 | runOnlyForDeploymentPostprocessing = 0;
1140 | shellPath = /bin/sh;
1141 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1142 | };
1143 | /* End PBXShellScriptBuildPhase section */
1144 |
1145 | /* Begin PBXSourcesBuildPhase section */
1146 | 00E356EA1AD99517003FC87E /* Sources */ = {
1147 | isa = PBXSourcesBuildPhase;
1148 | buildActionMask = 2147483647;
1149 | files = (
1150 | 00E356F31AD99517003FC87E /* DatmobileTests.m in Sources */,
1151 | );
1152 | runOnlyForDeploymentPostprocessing = 0;
1153 | };
1154 | 13B07F871A680F5B00A75B9A /* Sources */ = {
1155 | isa = PBXSourcesBuildPhase;
1156 | buildActionMask = 2147483647;
1157 | files = (
1158 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
1159 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
1160 | );
1161 | runOnlyForDeploymentPostprocessing = 0;
1162 | };
1163 | 2D02E4771E0B4A5D006451C7 /* Sources */ = {
1164 | isa = PBXSourcesBuildPhase;
1165 | buildActionMask = 2147483647;
1166 | files = (
1167 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */,
1168 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */,
1169 | );
1170 | runOnlyForDeploymentPostprocessing = 0;
1171 | };
1172 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = {
1173 | isa = PBXSourcesBuildPhase;
1174 | buildActionMask = 2147483647;
1175 | files = (
1176 | 2DCD954D1E0B4F2C00145EB5 /* DatmobileTests.m in Sources */,
1177 | );
1178 | runOnlyForDeploymentPostprocessing = 0;
1179 | };
1180 | /* End PBXSourcesBuildPhase section */
1181 |
1182 | /* Begin PBXTargetDependency section */
1183 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
1184 | isa = PBXTargetDependency;
1185 | target = 13B07F861A680F5B00A75B9A /* Datmobile */;
1186 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
1187 | };
1188 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = {
1189 | isa = PBXTargetDependency;
1190 | target = 2D02E47A1E0B4A5D006451C7 /* Datmobile-tvOS */;
1191 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */;
1192 | };
1193 | /* End PBXTargetDependency section */
1194 |
1195 | /* Begin PBXVariantGroup section */
1196 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
1197 | isa = PBXVariantGroup;
1198 | children = (
1199 | 13B07FB21A68108700A75B9A /* Base */,
1200 | );
1201 | name = LaunchScreen.xib;
1202 | path = Datmobile;
1203 | sourceTree = "";
1204 | };
1205 | /* End PBXVariantGroup section */
1206 |
1207 | /* Begin XCBuildConfiguration section */
1208 | 00E356F61AD99517003FC87E /* Debug */ = {
1209 | isa = XCBuildConfiguration;
1210 | buildSettings = {
1211 | BUNDLE_LOADER = "$(TEST_HOST)";
1212 | GCC_PREPROCESSOR_DEFINITIONS = (
1213 | "DEBUG=1",
1214 | "$(inherited)",
1215 | );
1216 | INFOPLIST_FILE = DatmobileTests/Info.plist;
1217 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1218 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1219 | OTHER_LDFLAGS = (
1220 | "-ObjC",
1221 | "-lc++",
1222 | );
1223 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1224 | PRODUCT_NAME = "$(TARGET_NAME)";
1225 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Datmobile.app/Datmobile";
1226 | LIBRARY_SEARCH_PATHS = (
1227 | "$(inherited)",
1228 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1229 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1230 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1231 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1232 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1233 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1234 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1235 | );
1236 | HEADER_SEARCH_PATHS = (
1237 | "$(inherited)",
1238 | "$(SRCROOT)\..\node_modules\react-native-randombytes",
1239 | "$(SRCROOT)\..\node_modules\react-native-webview\ios",
1240 | "$(SRCROOT)\..\node_modules\react-native-tcp\ios/**",
1241 | "$(SRCROOT)\..\node_modules\react-native-udp\ios/**",
1242 | "$(SRCROOT)\..\node_modules\react-native-os\ios",
1243 | "$(SRCROOT)\..\node_modules\react-native-fs/**",
1244 | "$(SRCROOT)\..\node_modules\random-access-rn-file\ios",
1245 | );
1246 | };
1247 | name = Debug;
1248 | };
1249 | 00E356F71AD99517003FC87E /* Release */ = {
1250 | isa = XCBuildConfiguration;
1251 | buildSettings = {
1252 | BUNDLE_LOADER = "$(TEST_HOST)";
1253 | COPY_PHASE_STRIP = NO;
1254 | INFOPLIST_FILE = DatmobileTests/Info.plist;
1255 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1256 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1257 | OTHER_LDFLAGS = (
1258 | "-ObjC",
1259 | "-lc++",
1260 | );
1261 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1262 | PRODUCT_NAME = "$(TARGET_NAME)";
1263 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Datmobile.app/Datmobile";
1264 | LIBRARY_SEARCH_PATHS = (
1265 | "$(inherited)",
1266 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1267 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1268 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1269 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1270 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1271 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1272 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1273 | );
1274 | HEADER_SEARCH_PATHS = (
1275 | "$(inherited)",
1276 | "$(SRCROOT)\..\node_modules\react-native-randombytes",
1277 | "$(SRCROOT)\..\node_modules\react-native-webview\ios",
1278 | "$(SRCROOT)\..\node_modules\react-native-tcp\ios/**",
1279 | "$(SRCROOT)\..\node_modules\react-native-udp\ios/**",
1280 | "$(SRCROOT)\..\node_modules\react-native-os\ios",
1281 | "$(SRCROOT)\..\node_modules\react-native-fs/**",
1282 | "$(SRCROOT)\..\node_modules\random-access-rn-file\ios",
1283 | );
1284 | };
1285 | name = Release;
1286 | };
1287 | 13B07F941A680F5B00A75B9A /* Debug */ = {
1288 | isa = XCBuildConfiguration;
1289 | buildSettings = {
1290 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1291 | CURRENT_PROJECT_VERSION = 1;
1292 | DEAD_CODE_STRIPPING = NO;
1293 | INFOPLIST_FILE = Datmobile/Info.plist;
1294 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1295 | OTHER_LDFLAGS = (
1296 | "$(inherited)",
1297 | "-ObjC",
1298 | "-lc++",
1299 | );
1300 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1301 | PRODUCT_NAME = Datmobile;
1302 | VERSIONING_SYSTEM = "apple-generic";
1303 | HEADER_SEARCH_PATHS = (
1304 | "$(inherited)",
1305 | "$(SRCROOT)\..\node_modules\react-native-randombytes",
1306 | "$(SRCROOT)\..\node_modules\react-native-webview\ios",
1307 | "$(SRCROOT)\..\node_modules\react-native-tcp\ios/**",
1308 | "$(SRCROOT)\..\node_modules\react-native-udp\ios/**",
1309 | "$(SRCROOT)\..\node_modules\react-native-os\ios",
1310 | "$(SRCROOT)\..\node_modules\react-native-fs/**",
1311 | "$(SRCROOT)\..\node_modules\random-access-rn-file\ios",
1312 | );
1313 | };
1314 | name = Debug;
1315 | };
1316 | 13B07F951A680F5B00A75B9A /* Release */ = {
1317 | isa = XCBuildConfiguration;
1318 | buildSettings = {
1319 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1320 | CURRENT_PROJECT_VERSION = 1;
1321 | INFOPLIST_FILE = Datmobile/Info.plist;
1322 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1323 | OTHER_LDFLAGS = (
1324 | "$(inherited)",
1325 | "-ObjC",
1326 | "-lc++",
1327 | );
1328 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1329 | PRODUCT_NAME = Datmobile;
1330 | VERSIONING_SYSTEM = "apple-generic";
1331 | HEADER_SEARCH_PATHS = (
1332 | "$(inherited)",
1333 | "$(SRCROOT)\..\node_modules\react-native-randombytes",
1334 | "$(SRCROOT)\..\node_modules\react-native-webview\ios",
1335 | "$(SRCROOT)\..\node_modules\react-native-tcp\ios/**",
1336 | "$(SRCROOT)\..\node_modules\react-native-udp\ios/**",
1337 | "$(SRCROOT)\..\node_modules\react-native-os\ios",
1338 | "$(SRCROOT)\..\node_modules\react-native-fs/**",
1339 | "$(SRCROOT)\..\node_modules\random-access-rn-file\ios",
1340 | );
1341 | };
1342 | name = Release;
1343 | };
1344 | 2D02E4971E0B4A5E006451C7 /* Debug */ = {
1345 | isa = XCBuildConfiguration;
1346 | buildSettings = {
1347 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1348 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1349 | CLANG_ANALYZER_NONNULL = YES;
1350 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1351 | CLANG_WARN_INFINITE_RECURSION = YES;
1352 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1353 | DEBUG_INFORMATION_FORMAT = dwarf;
1354 | ENABLE_TESTABILITY = YES;
1355 | GCC_NO_COMMON_BLOCKS = YES;
1356 | INFOPLIST_FILE = "Datmobile-tvOS/Info.plist";
1357 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1358 | OTHER_LDFLAGS = (
1359 | "-ObjC",
1360 | "-lc++",
1361 | );
1362 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Datmobile-tvOS";
1363 | PRODUCT_NAME = "$(TARGET_NAME)";
1364 | SDKROOT = appletvos;
1365 | TARGETED_DEVICE_FAMILY = 3;
1366 | TVOS_DEPLOYMENT_TARGET = 9.2;
1367 | LIBRARY_SEARCH_PATHS = (
1368 | "$(inherited)",
1369 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1370 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1371 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1372 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1373 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1374 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1375 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1376 | );
1377 | HEADER_SEARCH_PATHS = (
1378 | "$(inherited)",
1379 | "$(SRCROOT)\..\node_modules\react-native-randombytes",
1380 | "$(SRCROOT)\..\node_modules\react-native-webview\ios",
1381 | "$(SRCROOT)\..\node_modules\react-native-tcp\ios/**",
1382 | "$(SRCROOT)\..\node_modules\react-native-udp\ios/**",
1383 | "$(SRCROOT)\..\node_modules\react-native-os\ios",
1384 | "$(SRCROOT)\..\node_modules\react-native-fs/**",
1385 | "$(SRCROOT)\..\node_modules\random-access-rn-file\ios",
1386 | );
1387 | };
1388 | name = Debug;
1389 | };
1390 | 2D02E4981E0B4A5E006451C7 /* Release */ = {
1391 | isa = XCBuildConfiguration;
1392 | buildSettings = {
1393 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1394 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1395 | CLANG_ANALYZER_NONNULL = YES;
1396 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1397 | CLANG_WARN_INFINITE_RECURSION = YES;
1398 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1399 | COPY_PHASE_STRIP = NO;
1400 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1401 | GCC_NO_COMMON_BLOCKS = YES;
1402 | INFOPLIST_FILE = "Datmobile-tvOS/Info.plist";
1403 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1404 | OTHER_LDFLAGS = (
1405 | "-ObjC",
1406 | "-lc++",
1407 | );
1408 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Datmobile-tvOS";
1409 | PRODUCT_NAME = "$(TARGET_NAME)";
1410 | SDKROOT = appletvos;
1411 | TARGETED_DEVICE_FAMILY = 3;
1412 | TVOS_DEPLOYMENT_TARGET = 9.2;
1413 | LIBRARY_SEARCH_PATHS = (
1414 | "$(inherited)",
1415 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1416 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1417 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1418 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1419 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1420 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1421 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1422 | );
1423 | HEADER_SEARCH_PATHS = (
1424 | "$(inherited)",
1425 | "$(SRCROOT)\..\node_modules\react-native-randombytes",
1426 | "$(SRCROOT)\..\node_modules\react-native-webview\ios",
1427 | "$(SRCROOT)\..\node_modules\react-native-tcp\ios/**",
1428 | "$(SRCROOT)\..\node_modules\react-native-udp\ios/**",
1429 | "$(SRCROOT)\..\node_modules\react-native-os\ios",
1430 | "$(SRCROOT)\..\node_modules\react-native-fs/**",
1431 | "$(SRCROOT)\..\node_modules\random-access-rn-file\ios",
1432 | );
1433 | };
1434 | name = Release;
1435 | };
1436 | 2D02E4991E0B4A5E006451C7 /* Debug */ = {
1437 | isa = XCBuildConfiguration;
1438 | buildSettings = {
1439 | BUNDLE_LOADER = "$(TEST_HOST)";
1440 | CLANG_ANALYZER_NONNULL = YES;
1441 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1442 | CLANG_WARN_INFINITE_RECURSION = YES;
1443 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1444 | DEBUG_INFORMATION_FORMAT = dwarf;
1445 | ENABLE_TESTABILITY = YES;
1446 | GCC_NO_COMMON_BLOCKS = YES;
1447 | INFOPLIST_FILE = "Datmobile-tvOSTests/Info.plist";
1448 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1449 | OTHER_LDFLAGS = (
1450 | "-ObjC",
1451 | "-lc++",
1452 | );
1453 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Datmobile-tvOSTests";
1454 | PRODUCT_NAME = "$(TARGET_NAME)";
1455 | SDKROOT = appletvos;
1456 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Datmobile-tvOS.app/Datmobile-tvOS";
1457 | TVOS_DEPLOYMENT_TARGET = 10.1;
1458 | LIBRARY_SEARCH_PATHS = (
1459 | "$(inherited)",
1460 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1461 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1462 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1463 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1464 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1465 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1466 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1467 | );
1468 | HEADER_SEARCH_PATHS = (
1469 | "$(inherited)",
1470 | "$(SRCROOT)\..\node_modules\react-native-randombytes",
1471 | "$(SRCROOT)\..\node_modules\react-native-webview\ios",
1472 | "$(SRCROOT)\..\node_modules\react-native-tcp\ios/**",
1473 | "$(SRCROOT)\..\node_modules\react-native-udp\ios/**",
1474 | "$(SRCROOT)\..\node_modules\react-native-os\ios",
1475 | "$(SRCROOT)\..\node_modules\react-native-fs/**",
1476 | "$(SRCROOT)\..\node_modules\random-access-rn-file\ios",
1477 | );
1478 | };
1479 | name = Debug;
1480 | };
1481 | 2D02E49A1E0B4A5E006451C7 /* Release */ = {
1482 | isa = XCBuildConfiguration;
1483 | buildSettings = {
1484 | BUNDLE_LOADER = "$(TEST_HOST)";
1485 | CLANG_ANALYZER_NONNULL = YES;
1486 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1487 | CLANG_WARN_INFINITE_RECURSION = YES;
1488 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1489 | COPY_PHASE_STRIP = NO;
1490 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1491 | GCC_NO_COMMON_BLOCKS = YES;
1492 | INFOPLIST_FILE = "Datmobile-tvOSTests/Info.plist";
1493 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1494 | OTHER_LDFLAGS = (
1495 | "-ObjC",
1496 | "-lc++",
1497 | );
1498 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Datmobile-tvOSTests";
1499 | PRODUCT_NAME = "$(TARGET_NAME)";
1500 | SDKROOT = appletvos;
1501 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Datmobile-tvOS.app/Datmobile-tvOS";
1502 | TVOS_DEPLOYMENT_TARGET = 10.1;
1503 | LIBRARY_SEARCH_PATHS = (
1504 | "$(inherited)",
1505 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1506 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1507 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1508 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1509 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1510 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1511 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1512 | );
1513 | HEADER_SEARCH_PATHS = (
1514 | "$(inherited)",
1515 | "$(SRCROOT)\..\node_modules\react-native-randombytes",
1516 | "$(SRCROOT)\..\node_modules\react-native-webview\ios",
1517 | "$(SRCROOT)\..\node_modules\react-native-tcp\ios/**",
1518 | "$(SRCROOT)\..\node_modules\react-native-udp\ios/**",
1519 | "$(SRCROOT)\..\node_modules\react-native-os\ios",
1520 | "$(SRCROOT)\..\node_modules\react-native-fs/**",
1521 | "$(SRCROOT)\..\node_modules\random-access-rn-file\ios",
1522 | );
1523 | };
1524 | name = Release;
1525 | };
1526 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
1527 | isa = XCBuildConfiguration;
1528 | buildSettings = {
1529 | ALWAYS_SEARCH_USER_PATHS = NO;
1530 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1531 | CLANG_CXX_LIBRARY = "libc++";
1532 | CLANG_ENABLE_MODULES = YES;
1533 | CLANG_ENABLE_OBJC_ARC = YES;
1534 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
1535 | CLANG_WARN_BOOL_CONVERSION = YES;
1536 | CLANG_WARN_COMMA = YES;
1537 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1538 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
1539 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1540 | CLANG_WARN_EMPTY_BODY = YES;
1541 | CLANG_WARN_ENUM_CONVERSION = YES;
1542 | CLANG_WARN_INFINITE_RECURSION = YES;
1543 | CLANG_WARN_INT_CONVERSION = YES;
1544 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1545 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
1546 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
1547 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1548 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
1549 | CLANG_WARN_STRICT_PROTOTYPES = YES;
1550 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1551 | CLANG_WARN_UNREACHABLE_CODE = YES;
1552 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1553 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1554 | COPY_PHASE_STRIP = NO;
1555 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1556 | ENABLE_TESTABILITY = YES;
1557 | GCC_C_LANGUAGE_STANDARD = gnu99;
1558 | GCC_DYNAMIC_NO_PIC = NO;
1559 | GCC_NO_COMMON_BLOCKS = YES;
1560 | GCC_OPTIMIZATION_LEVEL = 0;
1561 | GCC_PREPROCESSOR_DEFINITIONS = (
1562 | "DEBUG=1",
1563 | "$(inherited)",
1564 | );
1565 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
1566 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1567 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1568 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1569 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1570 | GCC_WARN_UNUSED_FUNCTION = YES;
1571 | GCC_WARN_UNUSED_VARIABLE = YES;
1572 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1573 | MTL_ENABLE_DEBUG_INFO = YES;
1574 | ONLY_ACTIVE_ARCH = YES;
1575 | SDKROOT = iphoneos;
1576 | };
1577 | name = Debug;
1578 | };
1579 | 83CBBA211A601CBA00E9B192 /* Release */ = {
1580 | isa = XCBuildConfiguration;
1581 | buildSettings = {
1582 | ALWAYS_SEARCH_USER_PATHS = NO;
1583 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1584 | CLANG_CXX_LIBRARY = "libc++";
1585 | CLANG_ENABLE_MODULES = YES;
1586 | CLANG_ENABLE_OBJC_ARC = YES;
1587 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
1588 | CLANG_WARN_BOOL_CONVERSION = YES;
1589 | CLANG_WARN_COMMA = YES;
1590 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1591 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
1592 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1593 | CLANG_WARN_EMPTY_BODY = YES;
1594 | CLANG_WARN_ENUM_CONVERSION = YES;
1595 | CLANG_WARN_INFINITE_RECURSION = YES;
1596 | CLANG_WARN_INT_CONVERSION = YES;
1597 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1598 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
1599 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
1600 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1601 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
1602 | CLANG_WARN_STRICT_PROTOTYPES = YES;
1603 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1604 | CLANG_WARN_UNREACHABLE_CODE = YES;
1605 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1606 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1607 | COPY_PHASE_STRIP = YES;
1608 | ENABLE_NS_ASSERTIONS = NO;
1609 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1610 | GCC_C_LANGUAGE_STANDARD = gnu99;
1611 | GCC_NO_COMMON_BLOCKS = YES;
1612 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1613 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1614 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1615 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1616 | GCC_WARN_UNUSED_FUNCTION = YES;
1617 | GCC_WARN_UNUSED_VARIABLE = YES;
1618 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1619 | MTL_ENABLE_DEBUG_INFO = NO;
1620 | SDKROOT = iphoneos;
1621 | VALIDATE_PRODUCT = YES;
1622 | };
1623 | name = Release;
1624 | };
1625 | /* End XCBuildConfiguration section */
1626 |
1627 | /* Begin XCConfigurationList section */
1628 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "DatmobileTests" */ = {
1629 | isa = XCConfigurationList;
1630 | buildConfigurations = (
1631 | 00E356F61AD99517003FC87E /* Debug */,
1632 | 00E356F71AD99517003FC87E /* Release */,
1633 | );
1634 | defaultConfigurationIsVisible = 0;
1635 | defaultConfigurationName = Release;
1636 | };
1637 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Datmobile" */ = {
1638 | isa = XCConfigurationList;
1639 | buildConfigurations = (
1640 | 13B07F941A680F5B00A75B9A /* Debug */,
1641 | 13B07F951A680F5B00A75B9A /* Release */,
1642 | );
1643 | defaultConfigurationIsVisible = 0;
1644 | defaultConfigurationName = Release;
1645 | };
1646 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Datmobile-tvOS" */ = {
1647 | isa = XCConfigurationList;
1648 | buildConfigurations = (
1649 | 2D02E4971E0B4A5E006451C7 /* Debug */,
1650 | 2D02E4981E0B4A5E006451C7 /* Release */,
1651 | );
1652 | defaultConfigurationIsVisible = 0;
1653 | defaultConfigurationName = Release;
1654 | };
1655 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Datmobile-tvOSTests" */ = {
1656 | isa = XCConfigurationList;
1657 | buildConfigurations = (
1658 | 2D02E4991E0B4A5E006451C7 /* Debug */,
1659 | 2D02E49A1E0B4A5E006451C7 /* Release */,
1660 | );
1661 | defaultConfigurationIsVisible = 0;
1662 | defaultConfigurationName = Release;
1663 | };
1664 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Datmobile" */ = {
1665 | isa = XCConfigurationList;
1666 | buildConfigurations = (
1667 | 83CBBA201A601CBA00E9B192 /* Debug */,
1668 | 83CBBA211A601CBA00E9B192 /* Release */,
1669 | );
1670 | defaultConfigurationIsVisible = 0;
1671 | defaultConfigurationName = Release;
1672 | };
1673 | /* End XCConfigurationList section */
1674 | };
1675 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
1676 | }
1677 |
--------------------------------------------------------------------------------
/ios/Datmobile.xcodeproj/xcshareddata/xcschemes/Datmobile-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/Datmobile.xcodeproj/xcshareddata/xcschemes/Datmobile.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/Datmobile/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 |
10 | @interface AppDelegate : UIResponder
11 |
12 | @property (nonatomic, strong) UIWindow *window;
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/ios/Datmobile/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import "AppDelegate.h"
9 |
10 | #import
11 | #import
12 |
13 | @implementation AppDelegate
14 |
15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
16 | {
17 | NSURL *jsCodeLocation;
18 |
19 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
20 |
21 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
22 | moduleName:@"Datmobile"
23 | initialProperties:nil
24 | launchOptions:launchOptions];
25 | rootView.backgroundColor = [UIColor blackColor];
26 |
27 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
28 | UIViewController *rootViewController = [UIViewController new];
29 | rootViewController.view = rootView;
30 | self.window.rootViewController = rootViewController;
31 | [self.window makeKeyAndVisible];
32 | return YES;
33 | }
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/ios/Datmobile/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/Datmobile/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/Datmobile/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ios/Datmobile/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | Datmobile
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | NSLocationWhenInUseUsageDescription
28 |
29 | UILaunchStoryboardName
30 | LaunchScreen
31 | UIRequiredDeviceCapabilities
32 |
33 | armv7
34 |
35 | UISupportedInterfaceOrientations
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationLandscapeLeft
39 | UIInterfaceOrientationLandscapeRight
40 |
41 | UIViewControllerBasedStatusBarAppearance
42 |
43 | NSLocationWhenInUseUsageDescription
44 |
45 | NSAppTransportSecurity
46 |
47 |
48 | NSAllowsArbitraryLoads
49 |
50 | NSExceptionDomains
51 |
52 | localhost
53 |
54 | NSExceptionAllowsInsecureHTTPLoads
55 |
56 |
57 |
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/ios/Datmobile/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 |
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/ios/DatmobileTests/DatmobileTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | #define TIMEOUT_SECONDS 600
15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
16 |
17 | @interface DatmobileTests : XCTestCase
18 |
19 | @end
20 |
21 | @implementation DatmobileTests
22 |
23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
24 | {
25 | if (test(view)) {
26 | return YES;
27 | }
28 | for (UIView *subview in [view subviews]) {
29 | if ([self findSubviewInView:subview matching:test]) {
30 | return YES;
31 | }
32 | }
33 | return NO;
34 | }
35 |
36 | - (void)testRendersWelcomeScreen
37 | {
38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
40 | BOOL foundElement = NO;
41 |
42 | __block NSString *redboxError = nil;
43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
44 | if (level >= RCTLogLevelError) {
45 | redboxError = message;
46 | }
47 | });
48 |
49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
52 |
53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
55 | return YES;
56 | }
57 | return NO;
58 | }];
59 | }
60 |
61 | RCTSetLogFunction(RCTDefaultLogFunction);
62 |
63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
65 | }
66 |
67 |
68 | @end
69 |
--------------------------------------------------------------------------------
/ios/DatmobileTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "datmobile",
3 | "version": "1.1.0",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest",
8 | "nodeify": "rn-nodeify --install --hack",
9 | "postinstall": "npm run nodeify",
10 | "build-android": "cd ./android && gradlew assembleRelease",
11 | "build-bundle-android": "mkdir android/app/src/main/assets && react-native bundle --platform android --dev true --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res"
12 | },
13 | "dependencies": {
14 | "@tradle/react-native-http": "^2.0.0",
15 | "asap": "^2.0.6",
16 | "assert": "^1.1.1",
17 | "asyncstorage-down": "^4.1.2",
18 | "browserify-zlib": "^0.1.4",
19 | "buffer": "^4.9.1",
20 | "console-browserify": "^1.1.0",
21 | "constants-browserify": "^1.0.0",
22 | "dat-dns": "^3.1.0",
23 | "dat-encoding": "^5.0.1",
24 | "dat-swarm-defaults": "^1.0.2",
25 | "delay": "^4.1.0",
26 | "discovery-swarm": "^5.1.4",
27 | "dns.js": "^1.0.1",
28 | "domain-browser": "^1.1.1",
29 | "es6-symbol": "^3.1.1",
30 | "events": "^1.0.0",
31 | "https-browserify": "0.0.1",
32 | "hypercore-crypto": "^1.0.0",
33 | "hypercore-protocol": "^6.9.0",
34 | "hyperdrive": "^9.14.2",
35 | "mime": "^2.4.0",
36 | "path-browserify": "0.0.0",
37 | "process": "^0.11.0",
38 | "pump": "^3.0.0",
39 | "punycode": "^1.2.4",
40 | "querystring-es3": "^0.2.1",
41 | "random-access-memory": "^3.1.1",
42 | "random-access-rn-file": "github:allain/random-access-rn-file-dev",
43 | "react": "16.6.3",
44 | "react-native": "^0.58.5",
45 | "react-native-crypto": "^2.1.0",
46 | "react-native-easy-markdown": "^1.3.0",
47 | "react-native-fit-image": "^1.5.4",
48 | "react-native-level-fs": "^3.0.0",
49 | "react-native-os": "^1.2.2",
50 | "react-native-randombytes": "^3.5.2",
51 | "react-native-tcp": "^3.3.0",
52 | "react-native-udp": "^2.1.0",
53 | "react-native-webview": "github:rangermauve/react-native-webview#ios-scheme-handler",
54 | "readable-stream": "^1.0.33",
55 | "resolve-dat-path": "^1.0.0",
56 | "signalhubws": "^1.0.10",
57 | "stream-browserify": "^1.0.0",
58 | "stream-http": "^3.0.0",
59 | "string_decoder": "^0.10.31",
60 | "through2": "^3.0.0",
61 | "timers-browserify": "^1.0.1",
62 | "tty-browserify": "0.0.0",
63 | "url": "^0.10.3",
64 | "util": "^0.10.4",
65 | "vm-browserify": "0.0.4",
66 | "websocket-stream": "^5.1.2"
67 | },
68 | "devDependencies": {
69 | "babel-core": "7.0.0-bridge.0",
70 | "babel-jest": "24.1.0",
71 | "jest": "24.1.0",
72 | "metro-react-native-babel-preset": "0.52.0",
73 | "react-test-renderer": "16.6.3",
74 | "rn-nodeify": "^10.0.1"
75 | },
76 | "jest": {
77 | "preset": "react-native"
78 | },
79 | "react-native": {
80 | "zlib": "browserify-zlib",
81 | "console": "console-browserify",
82 | "constants": "constants-browserify",
83 | "crypto": "react-native-crypto",
84 | "dns": "dns.js",
85 | "net": "react-native-tcp",
86 | "domain": "domain-browser",
87 | "http": "@tradle/react-native-http",
88 | "https": "https-browserify",
89 | "os": "react-native-os",
90 | "path": "path-browserify",
91 | "querystring": "querystring-es3",
92 | "fs": "react-native-level-fs",
93 | "_stream_transform": "readable-stream/transform",
94 | "_stream_readable": "readable-stream/readable",
95 | "_stream_writable": "readable-stream/writable",
96 | "_stream_duplex": "readable-stream/duplex",
97 | "_stream_passthrough": "readable-stream/passthrough",
98 | "dgram": "react-native-udp",
99 | "stream": "stream-browserify",
100 | "timers": "timers-browserify",
101 | "tty": "tty-browserify",
102 | "vm": "vm-browserify",
103 | "tls": false
104 | },
105 | "browser": {
106 | "zlib": "browserify-zlib",
107 | "console": "console-browserify",
108 | "constants": "constants-browserify",
109 | "crypto": "react-native-crypto",
110 | "dns": "dns.js",
111 | "net": "react-native-tcp",
112 | "domain": "domain-browser",
113 | "http": "@tradle/react-native-http",
114 | "https": "https-browserify",
115 | "os": "react-native-os",
116 | "path": "path-browserify",
117 | "querystring": "querystring-es3",
118 | "fs": "react-native-level-fs",
119 | "_stream_transform": "readable-stream/transform",
120 | "_stream_readable": "readable-stream/readable",
121 | "_stream_writable": "readable-stream/writable",
122 | "_stream_duplex": "readable-stream/duplex",
123 | "_stream_passthrough": "readable-stream/passthrough",
124 | "dgram": "react-native-udp",
125 | "stream": "stream-browserify",
126 | "timers": "timers-browserify",
127 | "tty": "tty-browserify",
128 | "vm": "vm-browserify",
129 | "tls": false
130 | }
131 | }
--------------------------------------------------------------------------------
/react-native-dat-webview/index.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import {
3 | StyleSheet,
4 | View
5 | } from 'react-native'
6 |
7 | import { WebView } from 'react-native-webview'
8 |
9 | import resolveDatPath from 'resolve-dat-path'
10 |
11 | import { PassThrough } from 'stream'
12 |
13 | import mime from 'mime/lite'
14 |
15 | const DAT_REGEX = /dat:\/\/([^/]+)\/?(.*)?/i
16 |
17 | function parseDatURL (url) {
18 | const matches = url.match(DAT_REGEX)
19 | if (!matches) throw new TypeError(`Invalid dat URL: ${url}`)
20 |
21 | let key = matches[1]
22 | let version = null
23 | if (key.includes('+')) {
24 | [key, version] = key.split('+')
25 | }
26 | const path = matches[2] || ''
27 |
28 | return { key, path, version }
29 | }
30 |
31 | function showError ({ url }, err) {
32 | console.log('Error loading', err)
33 | const body = `
34 |
35 |
36 | Something went wrong:
37 |
38 | ${err.message}
39 |
40 | `
41 | return {
42 | type: 'response',
43 | url,
44 | body,
45 | status: 500,
46 | headers: {}
47 | }
48 | }
49 |
50 | function showDirectory (archive, { url }, resolvedPath) {
51 | return new Promise((resolve, reject) => {
52 | archive.readdir(resolvedPath, (err, items) => {
53 | if (err) return reject(err)
54 | const body = `
55 |
56 |
57 | dat://${archive.key.toString('hex')}
58 |
59 | ${resolvedPath}
60 |
61 | -
62 | ../
63 |
64 | -
65 | /
66 |
67 | ${items.map((item) => `
68 | -
69 | ./${item}
70 |
71 | `).join('\n')}
72 |
73 | `
74 | resolve({
75 | type: 'response',
76 | url,
77 | body,
78 | status: 200,
79 | headers: {}
80 | })
81 | })
82 | })
83 | }
84 |
85 | function showFile (archive, { url }, resolvedPath) {
86 | console.log(`loading dat://${archive.key.toString('hex')}${resolvedPath}`)
87 |
88 | return new Promise((resolve, reject) => {
89 | archive.readFile(resolvedPath, 'utf-8', (err, body) => {
90 | const mimeType = mime.getType(resolvedPath)
91 | const headers = {
92 | 'content-type': mimeType
93 | }
94 |
95 | resolve({
96 | type: 'response',
97 | url: url,
98 | headers,
99 | body,
100 | status: 200
101 | })
102 | })
103 | })
104 | }
105 |
106 | function resolveDatPathPromise (archive, path) {
107 | return new Promise((resolve, reject) => {
108 | resolveDatPath(archive, path, (err, resolution) => {
109 | if (err) reject(err)
110 | else resolve(resolution)
111 | })
112 | })
113 | }
114 |
115 | async function loadContent (dat, request) {
116 | const { url } = request
117 | const { key, path } = parseDatURL(url)
118 |
119 | try {
120 | const archive = await dat.get(`dat://${key}`)
121 |
122 | const resolution = await resolveDatPathPromise(archive, path)
123 |
124 | const resolvedPath = resolution.path
125 | const type = resolution.type
126 | if (type === 'directory') return showDirectory(archive, request, resolvedPath)
127 | if (type === 'file') return showFile(archive, request, resolvedPath)
128 | } catch (err) {
129 | return showError(request, new Error('Not found'))
130 | }
131 |
132 | // This should never happen
133 | return showError(request, new Error('Not found'))
134 | }
135 |
136 | export class DatWebView extends Component {
137 | constructor (props) {
138 | super(props)
139 | this.onUrlSchemeRequest = async (request) => {
140 | console.log('Handling request', request)
141 | return loadContent(this.props.dat, request).then((response) => {
142 | console.log('Finished request', request)
143 | return response
144 | })
145 | }
146 | }
147 |
148 | render () {
149 | return (
150 |
155 | )
156 | }
157 | }
158 |
159 | const styles = StyleSheet.create({
160 | loadingView: {
161 | flex: 1,
162 | justifyContent: 'center',
163 | alignItems: 'center'
164 | },
165 | loadingProgressBar: {
166 | height: 20
167 | }
168 | })
169 |
--------------------------------------------------------------------------------
/react-native-dat/index.js:
--------------------------------------------------------------------------------
1 | import Hyperdrive from 'hyperdrive'
2 | import ram from 'random-access-memory'
3 | import crypto from 'hypercore-crypto'
4 | import DatDNSAPI from 'dat-dns'
5 | import DiscoverySwarm from 'discovery-swarm'
6 | import HypercoreProtocol from 'hypercore-protocol'
7 | import DatEncoding from 'dat-encoding'
8 | import { EventEmitter } from 'events'
9 | import krpc from 'k-rpc'
10 | import sha1 from 'simple-sha1'
11 |
12 | import SWARM_DEFAULTS from 'dat-swarm-defaults'
13 |
14 | const DEFAULT_OPTIONS = {
15 | sparse: true
16 | }
17 |
18 | const DEFAULT_DNS_HOST = 'dns.dns-over-https.com'
19 | const DEFAULT_DNS_PATH = '/dns-query'
20 |
21 | const DEFAULT_DNS_OPTS = {
22 | dnsHost: DEFAULT_DNS_HOST,
23 | dnsPath: DEFAULT_DNS_PATH
24 | }
25 |
26 | const DAT_SWARM_PORT = 3282
27 |
28 | /**
29 | * The Dat object. Manages multiple repositories in
30 | * a single discovery-swarm instance.
31 | * @param {Object} opts Default options to use for the dat.
32 | */
33 | export default class Dat extends EventEmitter {
34 | async resolveName (url) {
35 | return this.dns.resolveName(url)
36 | }
37 |
38 | constructor (opts) {
39 | super()
40 | this.opts = Object.assign({}, DEFAULT_OPTIONS, opts || {})
41 |
42 | if (!this.opts.id) this.opts.id = crypto.randomBytes(32)
43 |
44 | this.archives = []
45 |
46 | this.dns = DatDNSAPI(Object.assign({}, DEFAULT_DNS_OPTS, this.opts))
47 |
48 | const swarmOpts = SWARM_DEFAULTS({
49 | hash: false,
50 | stream: (info) => this._createReplicationStream(info)
51 | })
52 |
53 | swarmOpts.dht.krpc = krpc({
54 | isIP: () => true,
55 | idLength: Buffer.from(sha1.sync(Buffer.from('')), 'hex').length
56 | })
57 |
58 | this.swarm = new DiscoverySwarm(swarmOpts)
59 |
60 | this._opening = new Promise((resolve, reject) => {
61 | this.swarm.listen(DAT_SWARM_PORT, (err) => {
62 | if (err) return reject(err)
63 | this._opening = null
64 | resolve()
65 | })
66 | })
67 | }
68 |
69 | // Based on beaker-core https://github.com/beakerbrowser/beaker-core/blob/54726a042dc0f72773a9e147c87f8072a9d7a39a/dat/daemon/index.js#L531
70 | _createReplicationStream (info) {
71 | // console.log('Got peer', info)
72 | const stream = new HypercoreProtocol({
73 | id: this.opts.id,
74 | live: true,
75 | encrypt: true
76 | })
77 |
78 | stream.peerInfo = info
79 |
80 | stream.on('error', (e) => console.log(e))
81 |
82 | if (info.channel) this._replicateWith(stream, info.channel)
83 |
84 | return stream
85 | }
86 |
87 | _replicateWith (stream, discoveryKey) {
88 | const discoveryKeyString = DatEncoding.encode(discoveryKey)
89 | const archive = this.archives.find((archive) => DatEncoding.encode(archive.discoveryKey) === discoveryKeyString)
90 |
91 | // Unknown archive
92 | if (!archive) return
93 |
94 | archive.replicate({ stream, live: true })
95 | }
96 |
97 | /**
98 | * Returns a repo with the given url. Returns undefined
99 | * if no repository is found with that url.
100 | * @param {url} url The url of the repo.
101 | * @return {Promise} The repo object with the corresponding url.
102 | */
103 | async get (url) {
104 | const key = await this.resolveName(url)
105 | const stringkey = DatEncoding.encode(key)
106 |
107 | const archive = this.archives.find((archive) => DatEncoding.encode(archive.key) === stringkey)
108 | if (archive) return archive
109 | return this._add(key)
110 | }
111 |
112 | async _add (key, opts) {
113 | if (this.destroyed) throw new Error('client is destroyed')
114 |
115 | await this._opening
116 |
117 | if (!opts) opts = {}
118 |
119 | const finalOpts = Object.assign({}, this.opts, opts)
120 |
121 | if (!key) {
122 | const keyPair = crypto.keyPair()
123 | key = keyPair.publicKey
124 | finalOpts.secretKey = keyPair.secretKey
125 | }
126 |
127 | const stringkey = DatEncoding.encode(key)
128 |
129 | const db = (file) => {
130 | const db = finalOpts.db || ram
131 | return db(stringkey + '/' + file)
132 | }
133 |
134 | // console.log('Resolved key', key.toString('hex'))
135 |
136 | const archive = new Hyperdrive(db, key, finalOpts)
137 |
138 | this.archives.push(archive)
139 |
140 | return new Promise((resolve, reject) => {
141 | console.log('Waiting for ready')
142 | archive.ready(() => {
143 | console.log('Ready')
144 | // archive.metadata.update((err) => {
145 | // if (err) reject(err)
146 | // else resolve(archive)
147 | resolve(archive)
148 | this.emit('repo', archive)
149 | // })
150 |
151 | this.swarm.join(archive.discoveryKey, {
152 | announce: true
153 | })
154 | })
155 | })
156 | }
157 |
158 | async create (opts) {
159 | return this._add(null, opts)
160 | }
161 |
162 | async has (url) {
163 | const key = await this.resolveName(url)
164 | const stringkey = DatEncoding.encode(key)
165 |
166 | const archive = this.archives.find((archive) => DatEncoding.encode(archive.key) === stringkey)
167 |
168 | return !!archive
169 | }
170 |
171 | /**
172 | * Closes the dat, the swarm, and all underlying repo instances.
173 | */
174 | async close () {
175 | if (this.destroyed) {
176 | return
177 | }
178 | this.destroyed = true
179 |
180 | await new Promise((resolve, reject) => {
181 | this.swarm.close((err) => {
182 | if (err) reject(err)
183 | else resolve()
184 | })
185 | })
186 |
187 | await Promise.all(this.archives.map((archive) => {
188 | return new Promise(resolve => archive.close(resolve))
189 | }))
190 |
191 | this.repos = null
192 |
193 | this.emit('close')
194 | }
195 |
196 | destroy () {
197 | return this.close()
198 | }
199 | }
200 |
--------------------------------------------------------------------------------
/shim.js:
--------------------------------------------------------------------------------
1 | /* global __DEV__, localStorage, Uint8Array */
2 |
3 | require('es6-symbol/implement')
4 | if (typeof __dirname === 'undefined') global.__dirname = '/'
5 | if (typeof __filename === 'undefined') global.__filename = ''
6 | if (typeof process === 'undefined') {
7 | global.process = require('process')
8 | } else {
9 | const bProcess = require('process')
10 | for (var p in bProcess) {
11 | if (!(p in process)) {
12 | process[p] = bProcess[p]
13 | }
14 | }
15 | }
16 |
17 | process.browser = false
18 | if (typeof Buffer === 'undefined') global.Buffer = require('buffer').Buffer
19 |
20 | // global.location = global.location || { port: 80 }
21 | const isDev = typeof __DEV__ === 'boolean' && __DEV__
22 | process.env['NODE_ENV'] = isDev ? 'development' : 'production'
23 | if (typeof localStorage !== 'undefined') {
24 | localStorage.debug = isDev ? '*' : ''
25 | }
26 |
27 | // If using the crypto shim, uncomment the following line to ensure
28 | // crypto is loaded first, so it can populate global.crypto
29 | require('crypto')
30 |
31 | if (!Uint8Array.prototype.fill) {
32 | Uint8Array.prototype.fill = function (n) {
33 | const l = this.length
34 | for (let i = 0; i < l; i++) {
35 | this[i] = n
36 | }
37 | }
38 | }
39 |
40 | if (!Math.clz32) {
41 | Math.clz32 = function (x) {
42 | // Let n be ToUint32(x).
43 | // Let p be the number of leading zero bits in
44 | // the 32-bit binary representation of n.
45 | // Return p.
46 | if (x == null || x === 0) {
47 | return 32
48 | }
49 | return 31 - (Math.log(x >>> 0) / Math.LN2 | 0) // the "| 0" acts like math.floor
50 | }
51 | }
52 |
53 | const Response = require('@tradle/react-native-http/lib/response')
54 |
55 | if (!Response.prototype.setEncoding) {
56 | Response.prototype.setEncoding = function (encoding) {
57 | this.__encoding = encoding
58 | }
59 |
60 | Response.prototype._emitData = function (res) {
61 | var respBody = this.getResponse(res)
62 | if (respBody.length > this.offset) {
63 | var rawData = respBody.slice(this.offset)
64 | var data = this.__encoding === 'utf-8' ? rawData : Buffer.from(rawData)
65 |
66 | this.emit('data', data)
67 | this.offset = respBody.length
68 | }
69 | }
70 | }
71 |
72 | // Shim DNS functionality
73 | var DNS = require('dns')
74 | var DNSClient = DNS.Client
75 | var dns = new DNSClient()
76 |
77 | const DNS_CACHE = {}
78 |
79 | DNSClient.prototype.lookup = function (hostname, options, callback) {
80 | if (typeof options === 'function') {
81 | callback = options
82 | options = null
83 | }
84 |
85 | if (DNS_CACHE[hostname]) return setTimeout(() => callback(null, DNS_CACHE[hostname]), 0)
86 |
87 | this.resolve(hostname, options, (err, addresses) => {
88 | if (err) callback(err)
89 | else if (!addresses.length) callback(new Error(`No DNS entry found for ${hostname}`))
90 | else {
91 | const resolved = addresses[0]
92 | DNS_CACHE[hostname] = resolved
93 | callback(null, resolved)
94 | }
95 | })
96 | }
97 |
98 | Object.keys(DNSClient.prototype).forEach((name) => {
99 | const value = dns[name]
100 | if (typeof value === 'function') {
101 | DNS[name] = (...args) => dns[name](...args)
102 | } else {
103 | DNS[name] = dns[name]
104 | }
105 | })
106 |
107 | // // Shim react-native-udp to use random ports
108 | // const UdpSocket = require('react-native-udp/UdpSocket')
109 | //
110 | // const _bindSocket = UdpSocket.prototype.bind
111 | //
112 | // let PORT_COUNT = 15000
113 | //
114 | // UdpSocket.prototype.bind = function (port, address, callback) {
115 | // if (!address && callback) {
116 | // address = callback
117 | // callback = null
118 | // }
119 | // if (!port) port = PORT_COUNT++
120 | //
121 | // console.log('udp bind', port, address, callback)
122 | //
123 | // return _bindSocket.call(this, port, address, callback)
124 | // }
125 |
--------------------------------------------------------------------------------