.`, where the hash is the SHA of the commit being reverted.
48 |
49 | ### Type
50 | Must be one of the following:
51 |
52 | * **build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
53 | * **ci**: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
54 | * **docs**: Documentation only changes
55 | * **feat**: A new feature
56 | * **fix**: A bug fix
57 | * **perf**: A code change that improves performance
58 | * **refactor**: A code change that neither fixes a bug nor adds a feature
59 | * **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing
60 | semi-colons, etc)
61 | * **test**: Adding missing tests or correcting existing tests
62 | * **chore**: Changes to the build process or auxiliary tools and libraries such as documentation
63 | generation
64 |
65 | ### Scope
66 | The scope could be anything specifying place of the commit change. For example `routes`,
67 | `browser`, `compile`, `scope`, etc...
68 |
69 | You can use `*` when the change affects more than a single scope.
70 |
71 | ### Subject
72 | The subject contains succinct description of the change:
73 |
74 | * use the imperative, present tense: "change" not "changed" nor "changes"
75 | * don't capitalize first letter
76 | * no dot (.) at the end
77 |
78 | ### Body
79 | Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
80 | The body should include the motivation for the change and contrast this with previous behavior.
81 |
82 | ### Footer
83 | The footer should contain any information about **Breaking Changes** and is also the place to
84 | reference GitHub issues that this commit **Closes**.
85 |
86 | **Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
87 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Luis Flores
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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | ## Overview
16 |
17 | React Native route-matching library to handle deep links.
18 |
19 | ## Installation
20 |
21 | This package is distributed via npm:
22 |
23 | ```
24 | npm install react-native-deep-linking
25 | ```
26 |
27 | ### Add deep link support to your app
28 |
29 | #### For iOS:
30 |
31 | #### 1. Make sure you have a URL scheme registered for your app in your Info.plist
32 | 
33 |
34 |
35 | #### 2. Add this to your AppDelegate.m
36 |
37 | ```objective-c
38 | #import "RCTLinkingManager.h"
39 |
40 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
41 | sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
42 | {
43 | return [RCTLinkingManager application:application openURL:url
44 | sourceApplication:sourceApplication annotation:annotation];
45 | }
46 |
47 | // Only if your app is using [Universal Links](https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/AppSearch/UniversalLinks.html).
48 | - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity
49 | restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler
50 | {
51 | return [RCTLinkingManager application:application
52 | continueUserActivity:userActivity
53 | restorationHandler:restorationHandler];
54 | }
55 | ```
56 |
57 | #### For Android:
58 | https://developer.android.com/training/app-indexing/deep-linking.html
59 |
60 | More info: https://facebook.github.io/react-native/docs/linking.html
61 |
62 | ## Usage
63 |
64 | #### 1. Import DeepLinking
65 | ```javascript
66 | import DeepLinking from 'react-native-deep-linking';
67 | ```
68 |
69 | #### 2. Register schemes
70 | ```javascript
71 | DeepLinking.addScheme('example://');
72 | ```
73 |
74 | #### 3. Add event listener
75 | ```javascript
76 | import { Linking } from 'react-native';
77 |
78 | Linking.addEventListener('url', handleUrl);
79 |
80 | const handleUrl = ({ url }) => {
81 | Linking.canOpenURL(url).then((supported) => {
82 | if (supported) {
83 | DeepLinking.evaluateUrl(url);
84 | }
85 | });
86 | };
87 | ```
88 |
89 | #### 4. Register routes
90 | ```javascript
91 | DeepLinking.addRoute('/test/:id', (response) => {
92 | // example://test/23
93 | console.log(response.id); // 23
94 | });
95 | ```
96 |
97 | #### 5. Open external url (Optional)
98 | If your app was launched from an external url registered to your app you can access and handle it from any component you want with
99 | ```javascript
100 | componentDidMount() {
101 | var url = Linking.getInitialURL().then((url) => {
102 | if (url) {
103 | Linking.openURL(url);
104 | }
105 | }).catch(err => console.error('An error occurred', err));
106 | }
107 | ```
108 |
109 | ## Example
110 |
111 | ```javascript
112 | import React, { Component } from 'react';
113 | import { Button, Linking, StyleSheet, Text, View } from 'react-native';
114 |
115 | import DeepLinking from 'react-native-deep-linking';
116 |
117 | export default class App extends Component {
118 | state = {
119 | response: {},
120 | };
121 |
122 | componentDidMount() {
123 | DeepLinking.addScheme('example://');
124 | Linking.addEventListener('url', this.handleUrl);
125 |
126 | DeepLinking.addRoute('/test', (response) => {
127 | // example://test
128 | this.setState({ response });
129 | });
130 |
131 | DeepLinking.addRoute('/test/:id', (response) => {
132 | // example://test/23
133 | this.setState({ response });
134 | });
135 |
136 | DeepLinking.addRoute('/test/:id/details', (response) => {
137 | // example://test/100/details
138 | this.setState({ response });
139 | });
140 |
141 | Linking.getInitialURL().then((url) => {
142 | if (url) {
143 | Linking.openURL(url);
144 | }
145 | }).catch(err => console.error('An error occurred', err));
146 | }
147 |
148 | componentWillUnmount() {
149 | Linking.removeEventListener('url', this.handleUrl);
150 | }
151 |
152 | handleUrl = ({ url }) => {
153 | Linking.canOpenURL(url).then((supported) => {
154 | if (supported) {
155 | DeepLinking.evaluateUrl(url);
156 | }
157 | });
158 | }
159 |
160 | render() {
161 | return (
162 |
163 |
164 |
177 |
178 | {this.state.response.scheme ? `Url scheme: ${this.state.response.scheme}` : ''}
179 | {this.state.response.path ? `Url path: ${this.state.response.path}` : ''}
180 | {this.state.response.id ? `Url id: ${this.state.response.id}` : ''}
181 |
182 |
183 | );
184 | }
185 | }
186 |
187 | const styles = StyleSheet.create({
188 | container: {
189 | flex: 1,
190 | justifyContent: 'center',
191 | alignItems: 'center',
192 | },
193 | text: {
194 | fontSize: 18,
195 | margin: 10,
196 | },
197 | });
198 | ```
199 |
200 | ## Routes
201 |
202 | The format of a deep link URL is the following: `:///`
203 |
204 | Example `facebook://profile`
205 | ```javascript
206 | // The following route matches the URL.
207 | DeepLinking.addRoute('/profile', ({ scheme, path }) => {
208 | console.log(scheme); // `facebook://`
209 | console.log(path); // `/profile`
210 | });
211 |
212 | // The following route does NOT match the URL.
213 | DeepLinking.addRoute('profile', () => { ... });
214 | ```
215 |
216 | Example `facebook://profile/33138223345`
217 | ```javascript
218 | // The following route matches the URL.
219 | DeepLinking.addRoute('/profile/:id', ({ scheme, path, id }) => {
220 | console.log(scheme); // `facebook://`
221 | console.log(path); // `/profile/33138223345`
222 | console.log(id); // `33138223345`
223 | });
224 | ```
225 |
226 | Example `facebook://profile/12/posts/403`
227 | ```javascript
228 | // The following route matches the URL.
229 | DeepLinking.addRoute('profile/:id/posts/:postId', ({ scheme, path, id, postId }) => {
230 | console.log(scheme); // `facebook://`
231 | console.log(path); // `/profile/12/posts/403`
232 | console.log(id); // `12`
233 | console.log(postId); // `403`
234 | });
235 | ```
236 |
237 | ### Regex Routes
238 |
239 | Need something more powerful? You can add your own regex.
240 |
241 | Example `facebook://profile/123/details`
242 | ```javascript
243 | const regex = /\/profile\/(.*)\/details/g;
244 | DeepLinking.addRoute(regex, ({ scheme, path, match }) => {
245 | console.log(scheme); // `facebook://`
246 | console.log(path); // `/profile/33138223345/details`
247 | console.log(match); // `[ "/profile/123/details", "123" ]`
248 | });
249 | ```
250 |
251 | ## Contributing
252 |
253 | Read up on our guidelines for [contributing](CONTRIBUTING.md).
254 |
255 | ## License
256 |
257 | DeepLinking is licensed under the [MIT License](LICENSE).
258 |
--------------------------------------------------------------------------------
/example/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
4 |
--------------------------------------------------------------------------------
/example/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/example/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | [include]
18 |
19 | [libs]
20 | node_modules/react-native/Libraries/react-native/react-native-interface.js
21 | node_modules/react-native/flow
22 | flow/
23 |
24 | [options]
25 | emoji=true
26 |
27 | module.system=haste
28 |
29 | experimental.strict_type_args=true
30 |
31 | munge_underscores=true
32 |
33 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
34 |
35 | suppress_type=$FlowIssue
36 | suppress_type=$FlowFixMe
37 | suppress_type=$FixMe
38 |
39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
40 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
41 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
42 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
43 |
44 | unsafe.enable_getters_and_setters=true
45 |
46 | [version]
47 | ^0.45.0
48 |
--------------------------------------------------------------------------------
/example/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/example/.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://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
50 |
51 | fastlane/report.xml
52 | fastlane/Preview.html
53 | fastlane/screenshots
54 |
--------------------------------------------------------------------------------
/example/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/example/android/app/BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | lib_deps = []
12 |
13 | for jarfile in glob(['libs/*.jar']):
14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')]
15 | lib_deps.append(':' + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
21 | for aarfile in glob(['libs/*.aar']):
22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')]
23 | lib_deps.append(':' + name)
24 | android_prebuilt_aar(
25 | name = name,
26 | aar = aarfile,
27 | )
28 |
29 | android_library(
30 | name = "all-libs",
31 | exported_deps = lib_deps,
32 | )
33 |
34 | android_library(
35 | name = "app-code",
36 | srcs = glob([
37 | "src/main/java/**/*.java",
38 | ]),
39 | deps = [
40 | ":all-libs",
41 | ":build_config",
42 | ":res",
43 | ],
44 | )
45 |
46 | android_build_config(
47 | name = "build_config",
48 | package = "com.example",
49 | )
50 |
51 | android_resource(
52 | name = "res",
53 | package = "com.example",
54 | res = "src/main/res",
55 | )
56 |
57 | android_binary(
58 | name = "app",
59 | keystore = "//android/keystores:debug",
60 | manifest = "src/main/AndroidManifest.xml",
61 | package_type = "debug",
62 | deps = [
63 | ":app-code",
64 | ],
65 | )
66 |
--------------------------------------------------------------------------------
/example/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // 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 | apply from: "../../node_modules/react-native/react.gradle"
76 |
77 | /**
78 | * Set this to true to create two separate APKs instead of one:
79 | * - An APK that only works on ARM devices
80 | * - An APK that only works on x86 devices
81 | * The advantage is the size of the APK is reduced by about 4MB.
82 | * Upload all the APKs to the Play Store and people will download
83 | * the correct one based on the CPU architecture of their device.
84 | */
85 | def enableSeparateBuildPerCPUArchitecture = false
86 |
87 | /**
88 | * Run Proguard to shrink the Java bytecode in release builds.
89 | */
90 | def enableProguardInReleaseBuilds = false
91 |
92 | android {
93 | compileSdkVersion 23
94 | buildToolsVersion "23.0.1"
95 |
96 | defaultConfig {
97 | applicationId "com.example"
98 | minSdkVersion 16
99 | targetSdkVersion 22
100 | versionCode 1
101 | versionName "1.0"
102 | ndk {
103 | abiFilters "armeabi-v7a", "x86"
104 | }
105 | }
106 | splits {
107 | abi {
108 | reset()
109 | enable enableSeparateBuildPerCPUArchitecture
110 | universalApk false // If true, also generate a universal APK
111 | include "armeabi-v7a", "x86"
112 | }
113 | }
114 | buildTypes {
115 | release {
116 | minifyEnabled enableProguardInReleaseBuilds
117 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
118 | }
119 | }
120 | // applicationVariants are e.g. debug, release
121 | applicationVariants.all { variant ->
122 | variant.outputs.each { output ->
123 | // For each separate APK per architecture, set a unique version code as described here:
124 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
125 | def versionCodes = ["armeabi-v7a":1, "x86":2]
126 | def abi = output.getFilter(OutputFile.ABI)
127 | if (abi != null) { // null for the universal-debug, universal-release variants
128 | output.versionCodeOverride =
129 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
130 | }
131 | }
132 | }
133 | }
134 |
135 | dependencies {
136 | compile fileTree(dir: "libs", include: ["*.jar"])
137 | compile "com.android.support:appcompat-v7:23.0.1"
138 | compile "com.facebook.react:react-native:+" // From node_modules
139 | }
140 |
141 | // Run this once to be able to run the application with BUCK
142 | // puts all compile dependencies into folder libs for BUCK to use
143 | task copyDownloadableDepsToLibs(type: Copy) {
144 | from configurations.compile
145 | into 'libs'
146 | }
147 |
--------------------------------------------------------------------------------
/example/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Disabling obfuscation is useful if you collect stack traces from production crashes
20 | # (unless you are using a system that supports de-obfuscate the stack traces).
21 | -dontobfuscate
22 |
23 | # React Native
24 |
25 | # Keep our interfaces so they can be used by other ProGuard rules.
26 | # See http://sourceforge.net/p/proguard/bugs/466/
27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
30 |
31 | # Do not strip any method/class that is annotated with @DoNotStrip
32 | -keep @com.facebook.proguard.annotations.DoNotStrip class *
33 | -keep @com.facebook.common.internal.DoNotStrip class *
34 | -keepclassmembers class * {
35 | @com.facebook.proguard.annotations.DoNotStrip *;
36 | @com.facebook.common.internal.DoNotStrip *;
37 | }
38 |
39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
40 | void set*(***);
41 | *** get*();
42 | }
43 |
44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; }
46 | -keepclassmembers,includedescriptorclasses class * { native ; }
47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
50 |
51 | -dontwarn com.facebook.react.**
52 |
53 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout.
54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details.
55 | -dontwarn android.text.StaticLayout
56 |
57 | # okhttp
58 |
59 | -keepattributes Signature
60 | -keepattributes *Annotation*
61 | -keep class okhttp3.** { *; }
62 | -keep interface okhttp3.** { *; }
63 | -dontwarn okhttp3.**
64 |
65 | # okio
66 |
67 | -keep class sun.misc.Unsafe { *; }
68 | -dontwarn java.nio.file.*
69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
70 | -dontwarn okio.**
71 |
--------------------------------------------------------------------------------
/example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
19 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/example/android/app/src/main/java/com/example/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example;
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 "example";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/example/android/app/src/main/java/com/example/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import android.app.Application;
4 |
5 | import com.facebook.react.ReactApplication;
6 | import com.facebook.react.ReactNativeHost;
7 | import com.facebook.react.ReactPackage;
8 | import com.facebook.react.shell.MainReactPackage;
9 | import com.facebook.soloader.SoLoader;
10 |
11 | import java.util.Arrays;
12 | import java.util.List;
13 |
14 | public class MainApplication extends Application implements ReactApplication {
15 |
16 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
17 | @Override
18 | public boolean getUseDeveloperSupport() {
19 | return BuildConfig.DEBUG;
20 | }
21 |
22 | @Override
23 | protected List getPackages() {
24 | return Arrays.asList(
25 | new MainReactPackage()
26 | );
27 | }
28 | };
29 |
30 | @Override
31 | public ReactNativeHost getReactNativeHost() {
32 | return mReactNativeHost;
33 | }
34 |
35 | @Override
36 | public void onCreate() {
37 | super.onCreate();
38 | SoLoader.init(this, /* native exopackage */ false);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/luisfcofv/react-native-deep-linking/b46c90f689a3b46ebec5d2742e91edaccdb15d55/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/luisfcofv/react-native-deep-linking/b46c90f689a3b46ebec5d2742e91edaccdb15d55/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/luisfcofv/react-native-deep-linking/b46c90f689a3b46ebec5d2742e91edaccdb15d55/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/luisfcofv/react-native-deep-linking/b46c90f689a3b46ebec5d2742e91edaccdb15d55/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | example
3 |
4 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | mavenLocal()
18 | jcenter()
19 | maven {
20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21 | url "$rootDir/../node_modules/react-native/android"
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/example/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/luisfcofv/react-native-deep-linking/b46c90f689a3b46ebec5d2742e91edaccdb15d55/example/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/example/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-2.14.1-all.zip
6 |
--------------------------------------------------------------------------------
/example/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/example/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/example/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'example'
2 |
3 | include ':app'
4 |
--------------------------------------------------------------------------------
/example/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "displayName": "example"
4 | }
--------------------------------------------------------------------------------
/example/index.android.js:
--------------------------------------------------------------------------------
1 | import { AppRegistry } from 'react-native';
2 |
3 | import App from './src';
4 |
5 | AppRegistry.registerComponent('example', () => App);
--------------------------------------------------------------------------------
/example/index.ios.js:
--------------------------------------------------------------------------------
1 | import { AppRegistry } from 'react-native';
2 |
3 | import App from './src';
4 |
5 | AppRegistry.registerComponent('example', () => App);
--------------------------------------------------------------------------------
/example/ios/example.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
19 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
20 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
21 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
22 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
23 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
24 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
25 | /* End PBXBuildFile section */
26 |
27 | /* Begin PBXContainerItemProxy section */
28 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
29 | isa = PBXContainerItemProxy;
30 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
31 | proxyType = 2;
32 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
33 | remoteInfo = RCTActionSheet;
34 | };
35 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
36 | isa = PBXContainerItemProxy;
37 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
38 | proxyType = 2;
39 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
40 | remoteInfo = RCTGeolocation;
41 | };
42 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
43 | isa = PBXContainerItemProxy;
44 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
45 | proxyType = 2;
46 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
47 | remoteInfo = RCTImage;
48 | };
49 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
50 | isa = PBXContainerItemProxy;
51 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
52 | proxyType = 2;
53 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
54 | remoteInfo = RCTNetwork;
55 | };
56 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
57 | isa = PBXContainerItemProxy;
58 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
59 | proxyType = 2;
60 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
61 | remoteInfo = RCTVibration;
62 | };
63 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
64 | isa = PBXContainerItemProxy;
65 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
66 | proxyType = 2;
67 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
68 | remoteInfo = RCTSettings;
69 | };
70 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
71 | isa = PBXContainerItemProxy;
72 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
73 | proxyType = 2;
74 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
75 | remoteInfo = RCTWebSocket;
76 | };
77 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
78 | isa = PBXContainerItemProxy;
79 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
80 | proxyType = 2;
81 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
82 | remoteInfo = React;
83 | };
84 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = {
85 | isa = PBXContainerItemProxy;
86 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
87 | proxyType = 2;
88 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
89 | remoteInfo = "RCTImage-tvOS";
90 | };
91 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = {
92 | isa = PBXContainerItemProxy;
93 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
94 | proxyType = 2;
95 | remoteGlobalIDString = 2D2A28471D9B043800D4039D;
96 | remoteInfo = "RCTLinking-tvOS";
97 | };
98 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
99 | isa = PBXContainerItemProxy;
100 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
101 | proxyType = 2;
102 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
103 | remoteInfo = "RCTNetwork-tvOS";
104 | };
105 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
106 | isa = PBXContainerItemProxy;
107 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
108 | proxyType = 2;
109 | remoteGlobalIDString = 2D2A28611D9B046600D4039D;
110 | remoteInfo = "RCTSettings-tvOS";
111 | };
112 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = {
113 | isa = PBXContainerItemProxy;
114 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
115 | proxyType = 2;
116 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
117 | remoteInfo = "RCTText-tvOS";
118 | };
119 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = {
120 | isa = PBXContainerItemProxy;
121 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
122 | proxyType = 2;
123 | remoteGlobalIDString = 2D2A28881D9B049200D4039D;
124 | remoteInfo = "RCTWebSocket-tvOS";
125 | };
126 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = {
127 | isa = PBXContainerItemProxy;
128 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
129 | proxyType = 2;
130 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
131 | remoteInfo = "React-tvOS";
132 | };
133 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = {
134 | isa = PBXContainerItemProxy;
135 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
136 | proxyType = 2;
137 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
138 | remoteInfo = yoga;
139 | };
140 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = {
141 | isa = PBXContainerItemProxy;
142 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
143 | proxyType = 2;
144 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
145 | remoteInfo = "yoga-tvOS";
146 | };
147 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = {
148 | isa = PBXContainerItemProxy;
149 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
150 | proxyType = 2;
151 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
152 | remoteInfo = cxxreact;
153 | };
154 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
155 | isa = PBXContainerItemProxy;
156 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
157 | proxyType = 2;
158 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
159 | remoteInfo = "cxxreact-tvOS";
160 | };
161 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
162 | isa = PBXContainerItemProxy;
163 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
164 | proxyType = 2;
165 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4;
166 | remoteInfo = jschelpers;
167 | };
168 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
169 | isa = PBXContainerItemProxy;
170 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
171 | proxyType = 2;
172 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4;
173 | remoteInfo = "jschelpers-tvOS";
174 | };
175 | 4A11FF091F06AE4500B3A934 /* PBXContainerItemProxy */ = {
176 | isa = PBXContainerItemProxy;
177 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
178 | proxyType = 2;
179 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7;
180 | remoteInfo = "third-party";
181 | };
182 | 4A11FF0B1F06AE4500B3A934 /* PBXContainerItemProxy */ = {
183 | isa = PBXContainerItemProxy;
184 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
185 | proxyType = 2;
186 | remoteGlobalIDString = 139D7E881E25C6D100323FB7;
187 | remoteInfo = "double-conversion";
188 | };
189 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
190 | isa = PBXContainerItemProxy;
191 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
192 | proxyType = 2;
193 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
194 | remoteInfo = RCTAnimation;
195 | };
196 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
197 | isa = PBXContainerItemProxy;
198 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
199 | proxyType = 2;
200 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
201 | remoteInfo = "RCTAnimation-tvOS";
202 | };
203 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
204 | isa = PBXContainerItemProxy;
205 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
206 | proxyType = 2;
207 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
208 | remoteInfo = RCTLinking;
209 | };
210 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
211 | isa = PBXContainerItemProxy;
212 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
213 | proxyType = 2;
214 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
215 | remoteInfo = RCTText;
216 | };
217 | /* End PBXContainerItemProxy section */
218 |
219 | /* Begin PBXFileReference section */
220 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
221 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
222 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
223 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
224 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
225 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
226 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
227 | 00E356F21AD99517003FC87E /* exampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = exampleTests.m; sourceTree = ""; };
228 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
229 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
230 | 13B07F961A680F5B00A75B9A /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; };
231 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = example/AppDelegate.h; sourceTree = ""; };
232 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = example/AppDelegate.m; sourceTree = ""; };
233 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
234 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example/Images.xcassets; sourceTree = ""; };
235 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example/Info.plist; sourceTree = ""; };
236 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example/main.m; sourceTree = ""; };
237 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
238 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; };
239 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
240 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
241 | /* End PBXFileReference section */
242 |
243 | /* Begin PBXFrameworksBuildPhase section */
244 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
245 | isa = PBXFrameworksBuildPhase;
246 | buildActionMask = 2147483647;
247 | files = (
248 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
249 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */,
250 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
251 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
252 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
253 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
254 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
255 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
256 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
257 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
258 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
259 | );
260 | runOnlyForDeploymentPostprocessing = 0;
261 | };
262 | /* End PBXFrameworksBuildPhase section */
263 |
264 | /* Begin PBXGroup section */
265 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
266 | isa = PBXGroup;
267 | children = (
268 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
269 | );
270 | name = Products;
271 | sourceTree = "";
272 | };
273 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
274 | isa = PBXGroup;
275 | children = (
276 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
277 | );
278 | name = Products;
279 | sourceTree = "";
280 | };
281 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
282 | isa = PBXGroup;
283 | children = (
284 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
285 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */,
286 | );
287 | name = Products;
288 | sourceTree = "";
289 | };
290 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
291 | isa = PBXGroup;
292 | children = (
293 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
294 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */,
295 | );
296 | name = Products;
297 | sourceTree = "";
298 | };
299 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
300 | isa = PBXGroup;
301 | children = (
302 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
303 | );
304 | name = Products;
305 | sourceTree = "";
306 | };
307 | 00E356EF1AD99517003FC87E /* exampleTests */ = {
308 | isa = PBXGroup;
309 | children = (
310 | 00E356F21AD99517003FC87E /* exampleTests.m */,
311 | 00E356F01AD99517003FC87E /* Supporting Files */,
312 | );
313 | path = exampleTests;
314 | sourceTree = "";
315 | };
316 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
317 | isa = PBXGroup;
318 | children = (
319 | 00E356F11AD99517003FC87E /* Info.plist */,
320 | );
321 | name = "Supporting Files";
322 | sourceTree = "";
323 | };
324 | 139105B71AF99BAD00B5F7CC /* Products */ = {
325 | isa = PBXGroup;
326 | children = (
327 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
328 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */,
329 | );
330 | name = Products;
331 | sourceTree = "";
332 | };
333 | 139FDEE71B06529A00C62182 /* Products */ = {
334 | isa = PBXGroup;
335 | children = (
336 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
337 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */,
338 | );
339 | name = Products;
340 | sourceTree = "";
341 | };
342 | 13B07FAE1A68108700A75B9A /* example */ = {
343 | isa = PBXGroup;
344 | children = (
345 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
346 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
347 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
348 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
349 | 13B07FB61A68108700A75B9A /* Info.plist */,
350 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
351 | 13B07FB71A68108700A75B9A /* main.m */,
352 | );
353 | name = example;
354 | sourceTree = "";
355 | };
356 | 146834001AC3E56700842450 /* Products */ = {
357 | isa = PBXGroup;
358 | children = (
359 | 146834041AC3E56700842450 /* libReact.a */,
360 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */,
361 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */,
362 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */,
363 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */,
364 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */,
365 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */,
366 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */,
367 | 4A11FF0A1F06AE4500B3A934 /* libthird-party.a */,
368 | 4A11FF0C1F06AE4500B3A934 /* libdouble-conversion.a */,
369 | );
370 | name = Products;
371 | sourceTree = "";
372 | };
373 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
374 | isa = PBXGroup;
375 | children = (
376 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
377 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */,
378 | );
379 | name = Products;
380 | sourceTree = "";
381 | };
382 | 78C398B11ACF4ADC00677621 /* Products */ = {
383 | isa = PBXGroup;
384 | children = (
385 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
386 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */,
387 | );
388 | name = Products;
389 | sourceTree = "";
390 | };
391 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
392 | isa = PBXGroup;
393 | children = (
394 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
395 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
396 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
397 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
398 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
399 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
400 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
401 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
402 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
403 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
404 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
405 | );
406 | name = Libraries;
407 | sourceTree = "";
408 | };
409 | 832341B11AAA6A8300B99B32 /* Products */ = {
410 | isa = PBXGroup;
411 | children = (
412 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
413 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */,
414 | );
415 | name = Products;
416 | sourceTree = "";
417 | };
418 | 83CBB9F61A601CBA00E9B192 = {
419 | isa = PBXGroup;
420 | children = (
421 | 13B07FAE1A68108700A75B9A /* example */,
422 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
423 | 00E356EF1AD99517003FC87E /* exampleTests */,
424 | 83CBBA001A601CBA00E9B192 /* Products */,
425 | );
426 | indentWidth = 2;
427 | sourceTree = "";
428 | tabWidth = 2;
429 | };
430 | 83CBBA001A601CBA00E9B192 /* Products */ = {
431 | isa = PBXGroup;
432 | children = (
433 | 13B07F961A680F5B00A75B9A /* example.app */,
434 | );
435 | name = Products;
436 | sourceTree = "";
437 | };
438 | /* End PBXGroup section */
439 |
440 | /* Begin PBXNativeTarget section */
441 | 13B07F861A680F5B00A75B9A /* example */ = {
442 | isa = PBXNativeTarget;
443 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */;
444 | buildPhases = (
445 | 13B07F871A680F5B00A75B9A /* Sources */,
446 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
447 | 13B07F8E1A680F5B00A75B9A /* Resources */,
448 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
449 | );
450 | buildRules = (
451 | );
452 | dependencies = (
453 | );
454 | name = example;
455 | productName = "Hello World";
456 | productReference = 13B07F961A680F5B00A75B9A /* example.app */;
457 | productType = "com.apple.product-type.application";
458 | };
459 | /* End PBXNativeTarget section */
460 |
461 | /* Begin PBXProject section */
462 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
463 | isa = PBXProject;
464 | attributes = {
465 | LastUpgradeCheck = 0610;
466 | ORGANIZATIONNAME = Facebook;
467 | };
468 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */;
469 | compatibilityVersion = "Xcode 3.2";
470 | developmentRegion = English;
471 | hasScannedForEncodings = 0;
472 | knownRegions = (
473 | en,
474 | Base,
475 | );
476 | mainGroup = 83CBB9F61A601CBA00E9B192;
477 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
478 | projectDirPath = "";
479 | projectReferences = (
480 | {
481 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
482 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
483 | },
484 | {
485 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
486 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
487 | },
488 | {
489 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
490 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
491 | },
492 | {
493 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
494 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
495 | },
496 | {
497 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
498 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
499 | },
500 | {
501 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
502 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
503 | },
504 | {
505 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
506 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
507 | },
508 | {
509 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
510 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
511 | },
512 | {
513 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
514 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
515 | },
516 | {
517 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
518 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
519 | },
520 | {
521 | ProductGroup = 146834001AC3E56700842450 /* Products */;
522 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
523 | },
524 | );
525 | projectRoot = "";
526 | targets = (
527 | 13B07F861A680F5B00A75B9A /* example */,
528 | );
529 | };
530 | /* End PBXProject section */
531 |
532 | /* Begin PBXReferenceProxy section */
533 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
534 | isa = PBXReferenceProxy;
535 | fileType = archive.ar;
536 | path = libRCTActionSheet.a;
537 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
538 | sourceTree = BUILT_PRODUCTS_DIR;
539 | };
540 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
541 | isa = PBXReferenceProxy;
542 | fileType = archive.ar;
543 | path = libRCTGeolocation.a;
544 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
545 | sourceTree = BUILT_PRODUCTS_DIR;
546 | };
547 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
548 | isa = PBXReferenceProxy;
549 | fileType = archive.ar;
550 | path = libRCTImage.a;
551 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
552 | sourceTree = BUILT_PRODUCTS_DIR;
553 | };
554 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
555 | isa = PBXReferenceProxy;
556 | fileType = archive.ar;
557 | path = libRCTNetwork.a;
558 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
559 | sourceTree = BUILT_PRODUCTS_DIR;
560 | };
561 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
562 | isa = PBXReferenceProxy;
563 | fileType = archive.ar;
564 | path = libRCTVibration.a;
565 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
566 | sourceTree = BUILT_PRODUCTS_DIR;
567 | };
568 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
569 | isa = PBXReferenceProxy;
570 | fileType = archive.ar;
571 | path = libRCTSettings.a;
572 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
573 | sourceTree = BUILT_PRODUCTS_DIR;
574 | };
575 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
576 | isa = PBXReferenceProxy;
577 | fileType = archive.ar;
578 | path = libRCTWebSocket.a;
579 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
580 | sourceTree = BUILT_PRODUCTS_DIR;
581 | };
582 | 146834041AC3E56700842450 /* libReact.a */ = {
583 | isa = PBXReferenceProxy;
584 | fileType = archive.ar;
585 | path = libReact.a;
586 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
587 | sourceTree = BUILT_PRODUCTS_DIR;
588 | };
589 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = {
590 | isa = PBXReferenceProxy;
591 | fileType = archive.ar;
592 | path = "libRCTImage-tvOS.a";
593 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */;
594 | sourceTree = BUILT_PRODUCTS_DIR;
595 | };
596 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = {
597 | isa = PBXReferenceProxy;
598 | fileType = archive.ar;
599 | path = "libRCTLinking-tvOS.a";
600 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */;
601 | sourceTree = BUILT_PRODUCTS_DIR;
602 | };
603 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = {
604 | isa = PBXReferenceProxy;
605 | fileType = archive.ar;
606 | path = "libRCTNetwork-tvOS.a";
607 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */;
608 | sourceTree = BUILT_PRODUCTS_DIR;
609 | };
610 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = {
611 | isa = PBXReferenceProxy;
612 | fileType = archive.ar;
613 | path = "libRCTSettings-tvOS.a";
614 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */;
615 | sourceTree = BUILT_PRODUCTS_DIR;
616 | };
617 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = {
618 | isa = PBXReferenceProxy;
619 | fileType = archive.ar;
620 | path = "libRCTText-tvOS.a";
621 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */;
622 | sourceTree = BUILT_PRODUCTS_DIR;
623 | };
624 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = {
625 | isa = PBXReferenceProxy;
626 | fileType = archive.ar;
627 | path = "libRCTWebSocket-tvOS.a";
628 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */;
629 | sourceTree = BUILT_PRODUCTS_DIR;
630 | };
631 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = {
632 | isa = PBXReferenceProxy;
633 | fileType = archive.ar;
634 | path = libReact.a;
635 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */;
636 | sourceTree = BUILT_PRODUCTS_DIR;
637 | };
638 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = {
639 | isa = PBXReferenceProxy;
640 | fileType = archive.ar;
641 | path = libyoga.a;
642 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */;
643 | sourceTree = BUILT_PRODUCTS_DIR;
644 | };
645 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = {
646 | isa = PBXReferenceProxy;
647 | fileType = archive.ar;
648 | path = libyoga.a;
649 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */;
650 | sourceTree = BUILT_PRODUCTS_DIR;
651 | };
652 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = {
653 | isa = PBXReferenceProxy;
654 | fileType = archive.ar;
655 | path = libcxxreact.a;
656 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */;
657 | sourceTree = BUILT_PRODUCTS_DIR;
658 | };
659 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = {
660 | isa = PBXReferenceProxy;
661 | fileType = archive.ar;
662 | path = libcxxreact.a;
663 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */;
664 | sourceTree = BUILT_PRODUCTS_DIR;
665 | };
666 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = {
667 | isa = PBXReferenceProxy;
668 | fileType = archive.ar;
669 | path = libjschelpers.a;
670 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */;
671 | sourceTree = BUILT_PRODUCTS_DIR;
672 | };
673 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = {
674 | isa = PBXReferenceProxy;
675 | fileType = archive.ar;
676 | path = libjschelpers.a;
677 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */;
678 | sourceTree = BUILT_PRODUCTS_DIR;
679 | };
680 | 4A11FF0A1F06AE4500B3A934 /* libthird-party.a */ = {
681 | isa = PBXReferenceProxy;
682 | fileType = archive.ar;
683 | path = "libthird-party.a";
684 | remoteRef = 4A11FF091F06AE4500B3A934 /* PBXContainerItemProxy */;
685 | sourceTree = BUILT_PRODUCTS_DIR;
686 | };
687 | 4A11FF0C1F06AE4500B3A934 /* libdouble-conversion.a */ = {
688 | isa = PBXReferenceProxy;
689 | fileType = archive.ar;
690 | path = "libdouble-conversion.a";
691 | remoteRef = 4A11FF0B1F06AE4500B3A934 /* PBXContainerItemProxy */;
692 | sourceTree = BUILT_PRODUCTS_DIR;
693 | };
694 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
695 | isa = PBXReferenceProxy;
696 | fileType = archive.ar;
697 | path = libRCTAnimation.a;
698 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
699 | sourceTree = BUILT_PRODUCTS_DIR;
700 | };
701 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
702 | isa = PBXReferenceProxy;
703 | fileType = archive.ar;
704 | path = libRCTAnimation.a;
705 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
706 | sourceTree = BUILT_PRODUCTS_DIR;
707 | };
708 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
709 | isa = PBXReferenceProxy;
710 | fileType = archive.ar;
711 | path = libRCTLinking.a;
712 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
713 | sourceTree = BUILT_PRODUCTS_DIR;
714 | };
715 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
716 | isa = PBXReferenceProxy;
717 | fileType = archive.ar;
718 | path = libRCTText.a;
719 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
720 | sourceTree = BUILT_PRODUCTS_DIR;
721 | };
722 | /* End PBXReferenceProxy section */
723 |
724 | /* Begin PBXResourcesBuildPhase section */
725 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
726 | isa = PBXResourcesBuildPhase;
727 | buildActionMask = 2147483647;
728 | files = (
729 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
730 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
731 | );
732 | runOnlyForDeploymentPostprocessing = 0;
733 | };
734 | /* End PBXResourcesBuildPhase section */
735 |
736 | /* Begin PBXShellScriptBuildPhase section */
737 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
738 | isa = PBXShellScriptBuildPhase;
739 | buildActionMask = 2147483647;
740 | files = (
741 | );
742 | inputPaths = (
743 | );
744 | name = "Bundle React Native code and images";
745 | outputPaths = (
746 | );
747 | runOnlyForDeploymentPostprocessing = 0;
748 | shellPath = /bin/sh;
749 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh";
750 | };
751 | /* End PBXShellScriptBuildPhase section */
752 |
753 | /* Begin PBXSourcesBuildPhase section */
754 | 13B07F871A680F5B00A75B9A /* Sources */ = {
755 | isa = PBXSourcesBuildPhase;
756 | buildActionMask = 2147483647;
757 | files = (
758 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
759 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
760 | );
761 | runOnlyForDeploymentPostprocessing = 0;
762 | };
763 | /* End PBXSourcesBuildPhase section */
764 |
765 | /* Begin PBXVariantGroup section */
766 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
767 | isa = PBXVariantGroup;
768 | children = (
769 | 13B07FB21A68108700A75B9A /* Base */,
770 | );
771 | name = LaunchScreen.xib;
772 | path = example;
773 | sourceTree = "";
774 | };
775 | /* End PBXVariantGroup section */
776 |
777 | /* Begin XCBuildConfiguration section */
778 | 13B07F941A680F5B00A75B9A /* Debug */ = {
779 | isa = XCBuildConfiguration;
780 | buildSettings = {
781 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
782 | CURRENT_PROJECT_VERSION = 1;
783 | DEAD_CODE_STRIPPING = NO;
784 | INFOPLIST_FILE = example/Info.plist;
785 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
786 | OTHER_LDFLAGS = (
787 | "$(inherited)",
788 | "-ObjC",
789 | "-lc++",
790 | );
791 | PRODUCT_NAME = example;
792 | VERSIONING_SYSTEM = "apple-generic";
793 | };
794 | name = Debug;
795 | };
796 | 13B07F951A680F5B00A75B9A /* Release */ = {
797 | isa = XCBuildConfiguration;
798 | buildSettings = {
799 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
800 | CURRENT_PROJECT_VERSION = 1;
801 | INFOPLIST_FILE = example/Info.plist;
802 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
803 | OTHER_LDFLAGS = (
804 | "$(inherited)",
805 | "-ObjC",
806 | "-lc++",
807 | );
808 | PRODUCT_NAME = example;
809 | VERSIONING_SYSTEM = "apple-generic";
810 | };
811 | name = Release;
812 | };
813 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
814 | isa = XCBuildConfiguration;
815 | buildSettings = {
816 | ALWAYS_SEARCH_USER_PATHS = NO;
817 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
818 | CLANG_CXX_LIBRARY = "libc++";
819 | CLANG_ENABLE_MODULES = YES;
820 | CLANG_ENABLE_OBJC_ARC = YES;
821 | CLANG_WARN_BOOL_CONVERSION = YES;
822 | CLANG_WARN_CONSTANT_CONVERSION = YES;
823 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
824 | CLANG_WARN_EMPTY_BODY = YES;
825 | CLANG_WARN_ENUM_CONVERSION = YES;
826 | CLANG_WARN_INT_CONVERSION = YES;
827 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
828 | CLANG_WARN_UNREACHABLE_CODE = YES;
829 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
830 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
831 | COPY_PHASE_STRIP = NO;
832 | ENABLE_STRICT_OBJC_MSGSEND = YES;
833 | GCC_C_LANGUAGE_STANDARD = gnu99;
834 | GCC_DYNAMIC_NO_PIC = NO;
835 | GCC_OPTIMIZATION_LEVEL = 0;
836 | GCC_PREPROCESSOR_DEFINITIONS = (
837 | "DEBUG=1",
838 | "$(inherited)",
839 | );
840 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
841 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
842 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
843 | GCC_WARN_UNDECLARED_SELECTOR = YES;
844 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
845 | GCC_WARN_UNUSED_FUNCTION = YES;
846 | GCC_WARN_UNUSED_VARIABLE = YES;
847 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
848 | MTL_ENABLE_DEBUG_INFO = YES;
849 | ONLY_ACTIVE_ARCH = YES;
850 | SDKROOT = iphoneos;
851 | };
852 | name = Debug;
853 | };
854 | 83CBBA211A601CBA00E9B192 /* Release */ = {
855 | isa = XCBuildConfiguration;
856 | buildSettings = {
857 | ALWAYS_SEARCH_USER_PATHS = NO;
858 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
859 | CLANG_CXX_LIBRARY = "libc++";
860 | CLANG_ENABLE_MODULES = YES;
861 | CLANG_ENABLE_OBJC_ARC = YES;
862 | CLANG_WARN_BOOL_CONVERSION = YES;
863 | CLANG_WARN_CONSTANT_CONVERSION = YES;
864 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
865 | CLANG_WARN_EMPTY_BODY = YES;
866 | CLANG_WARN_ENUM_CONVERSION = YES;
867 | CLANG_WARN_INT_CONVERSION = YES;
868 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
869 | CLANG_WARN_UNREACHABLE_CODE = YES;
870 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
871 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
872 | COPY_PHASE_STRIP = YES;
873 | ENABLE_NS_ASSERTIONS = NO;
874 | ENABLE_STRICT_OBJC_MSGSEND = YES;
875 | GCC_C_LANGUAGE_STANDARD = gnu99;
876 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
877 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
878 | GCC_WARN_UNDECLARED_SELECTOR = YES;
879 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
880 | GCC_WARN_UNUSED_FUNCTION = YES;
881 | GCC_WARN_UNUSED_VARIABLE = YES;
882 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
883 | MTL_ENABLE_DEBUG_INFO = NO;
884 | SDKROOT = iphoneos;
885 | VALIDATE_PRODUCT = YES;
886 | };
887 | name = Release;
888 | };
889 | /* End XCBuildConfiguration section */
890 |
891 | /* Begin XCConfigurationList section */
892 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */ = {
893 | isa = XCConfigurationList;
894 | buildConfigurations = (
895 | 13B07F941A680F5B00A75B9A /* Debug */,
896 | 13B07F951A680F5B00A75B9A /* Release */,
897 | );
898 | defaultConfigurationIsVisible = 0;
899 | defaultConfigurationName = Release;
900 | };
901 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */ = {
902 | isa = XCConfigurationList;
903 | buildConfigurations = (
904 | 83CBBA201A601CBA00E9B192 /* Debug */,
905 | 83CBBA211A601CBA00E9B192 /* Release */,
906 | );
907 | defaultConfigurationIsVisible = 0;
908 | defaultConfigurationName = Release;
909 | };
910 | /* End XCConfigurationList section */
911 | };
912 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
913 | }
914 |
--------------------------------------------------------------------------------
/example/ios/example.xcodeproj/xcshareddata/xcschemes/example-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 |
--------------------------------------------------------------------------------
/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.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 |
--------------------------------------------------------------------------------
/example/ios/example/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/example/ios/example/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import
13 | #import
14 | #import
15 |
16 | @implementation AppDelegate
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
19 | {
20 | NSURL *jsCodeLocation;
21 |
22 | jsCodeLocation = [NSURL URLWithString:@"http://127.0.0.1:8081/index.ios.bundle?platform=ios&dev=true"];;
23 |
24 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
25 | moduleName:@"example"
26 | initialProperties:nil
27 | launchOptions:launchOptions];
28 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
29 |
30 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
31 | UIViewController *rootViewController = [UIViewController new];
32 | rootViewController.view = rootView;
33 | self.window.rootViewController = rootViewController;
34 | [self.window makeKeyAndVisible];
35 | return YES;
36 | }
37 |
38 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
39 | sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
40 | {
41 | return [RCTLinkingManager application:application openURL:url
42 | sourceApplication:sourceApplication annotation:annotation];
43 | }
44 |
45 | - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity
46 | restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler
47 | {
48 | return [RCTLinkingManager application:application
49 | continueUserActivity:userActivity
50 | restorationHandler:restorationHandler];
51 | }
52 |
53 | @end
54 |
--------------------------------------------------------------------------------
/example/ios/example/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 |
--------------------------------------------------------------------------------
/example/ios/example/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 | }
--------------------------------------------------------------------------------
/example/ios/example/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleURLTypes
6 |
7 |
8 | CFBundleURLSchemes
9 |
10 | example
11 |
12 |
13 |
14 | CFBundleDevelopmentRegion
15 | en
16 | CFBundleDisplayName
17 | example
18 | CFBundleExecutable
19 | $(EXECUTABLE_NAME)
20 | CFBundleIdentifier
21 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
22 | CFBundleInfoDictionaryVersion
23 | 6.0
24 | CFBundleName
25 | $(PRODUCT_NAME)
26 | CFBundlePackageType
27 | APPL
28 | CFBundleShortVersionString
29 | 1.0
30 | CFBundleSignature
31 | ????
32 | CFBundleVersion
33 | 1
34 | LSRequiresIPhoneOS
35 |
36 | UILaunchStoryboardName
37 | LaunchScreen
38 | UIRequiredDeviceCapabilities
39 |
40 | armv7
41 |
42 | UISupportedInterfaceOrientations
43 |
44 | UIInterfaceOrientationPortrait
45 | UIInterfaceOrientationLandscapeLeft
46 | UIInterfaceOrientationLandscapeRight
47 |
48 | UIViewControllerBasedStatusBarAppearance
49 |
50 | NSLocationWhenInUseUsageDescription
51 |
52 | NSAppTransportSecurity
53 |
54 | NSExceptionDomains
55 |
56 | localhost
57 |
58 | NSExceptionAllowsInsecureHTTPLoads
59 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/example/ios/example/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start"
7 | },
8 | "dependencies": {
9 | "react": "16.0.0-alpha.12",
10 | "react-native": "0.45.1",
11 | "react-native-deep-linking": "../"
12 | },
13 | "devDependencies": {
14 | "babel-jest": "20.0.3",
15 | "babel-preset-react-native": "2.0.0"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/example/src/index.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import { Button, Linking, StyleSheet, Text, View } from 'react-native';
3 |
4 | import DeepLinking from 'react-native-deep-linking';
5 |
6 | export default class App extends Component {
7 | state = {
8 | response: {},
9 | };
10 |
11 | componentDidMount() {
12 | DeepLinking.addScheme('example://');
13 | Linking.addEventListener('url', this.handleUrl);
14 |
15 | DeepLinking.addRoute('/test', (response) => {
16 | // example://test
17 | this.setState({ response });
18 | });
19 |
20 | DeepLinking.addRoute('/test/:id', (response) => {
21 | // example://test/23
22 | this.setState({ response });
23 | });
24 |
25 | DeepLinking.addRoute('/test/:id/details', (response) => {
26 | // example://test/100/details
27 | this.setState({ response });
28 | });
29 |
30 | Linking.getInitialURL().then((url) => {
31 | if (url) {
32 | Linking.openURL(url);
33 | }
34 | }).catch(err => console.error('An error occurred', err));
35 | }
36 |
37 | componentWillUnmount() {
38 | Linking.removeEventListener('url', this.handleUrl);
39 | }
40 |
41 | handleUrl = ({ url }) => {
42 | Linking.canOpenURL(url).then((supported) => {
43 | if (supported) {
44 | DeepLinking.evaluateUrl(url);
45 | }
46 | });
47 | }
48 |
49 | render() {
50 | return (
51 |
52 |
53 | Linking.openURL('example://test')}
55 | title="Open example://test"
56 | />
57 | Linking.openURL('example://test/23')}
59 | title="Open example://test/23"
60 | />
61 | Linking.openURL('example://test/100/details')}
63 | title="Open example://test/100/details"
64 | />
65 |
66 |
67 | {this.state.response.scheme ? `Url scheme: ${this.state.response.scheme}` : ''}
68 | {this.state.response.path ? `Url path: ${this.state.response.path}` : ''}
69 | {this.state.response.id ? `Url id: ${this.state.response.id}` : ''}
70 |
71 |
72 | );
73 | }
74 | }
75 |
76 | const styles = StyleSheet.create({
77 | container: {
78 | flex: 1,
79 | justifyContent: 'center',
80 | alignItems: 'center',
81 | },
82 | text: {
83 | fontSize: 18,
84 | margin: 10,
85 | },
86 | });
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | import DeepLinking from './src';
2 |
3 | export default DeepLinking;
4 |
--------------------------------------------------------------------------------
/ios-schemes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/luisfcofv/react-native-deep-linking/b46c90f689a3b46ebec5d2742e91edaccdb15d55/ios-schemes.png
--------------------------------------------------------------------------------
/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "allowJs": true,
4 | "allowSyntheticDefaultImports": true
5 | },
6 | "exclude": [
7 | "node_modules"
8 | ]
9 | }
--------------------------------------------------------------------------------
/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/luisfcofv/react-native-deep-linking/b46c90f689a3b46ebec5d2742e91edaccdb15d55/logo.png
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-deep-linking",
3 | "version": "0.0.0-development",
4 | "description": "React Native URL routing library",
5 | "main": "index.js",
6 | "files": [
7 | "index.js",
8 | "LICENSE",
9 | "README.md",
10 | "src/"
11 | ],
12 | "directories": {
13 | "test": "test"
14 | },
15 | "scripts": {
16 | "prepush": "yarn test",
17 | "commit": "git-cz ",
18 | "test": "jest",
19 | "eslint": "./node_modules/.bin/eslint .",
20 | "semantic-release": "semantic-release pre && npm publish && semantic-release post"
21 | },
22 | "jest": {
23 | "collectCoverage": true,
24 | "coverageThreshold": {
25 | "global": {
26 | "branches": 100,
27 | "functions": 100,
28 | "lines": 100,
29 | "statements": 100
30 | }
31 | }
32 | },
33 | "author": "Luis Flores (http://luisflores.mx/)",
34 | "license": "MIT",
35 | "devDependencies": {
36 | "babel-jest": "^20.0.0",
37 | "babel-preset-es2015": "^6.24.0",
38 | "babel-preset-stage-2": "^6.22.0",
39 | "codecov.io": "^0.1.6",
40 | "commitizen": "^2.9.5",
41 | "cz-conventional-changelog": "^2.0.0",
42 | "eslint": "^3.19.0",
43 | "eslint-config-airbnb": "^15.0.1",
44 | "eslint-plugin-import": "^2.6.1",
45 | "eslint-plugin-jsx-a11y": "^5.0.1",
46 | "eslint-plugin-react": "^7.0.0",
47 | "husky": "^0.14.1",
48 | "jest": "^20.0.0",
49 | "semantic-release": "^6.3.2"
50 | },
51 | "repository": {
52 | "type": "git",
53 | "url": "git@github.com:luisfcofv/react-native-deep-linking.git"
54 | },
55 | "config": {
56 | "commitizen": {
57 | "path": "node_modules/cz-conventional-changelog"
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | const schemes = [];
2 | const routes = [];
3 |
4 | const fetchQueries = (expression) => {
5 | const regex = /:([^/]*)/g;
6 | const queries = [];
7 |
8 | let match = regex.exec(expression);
9 | while (match) {
10 | if (match && match[0] && match[1]) {
11 | queries.push(match[0]);
12 | }
13 |
14 | match = regex.exec(expression);
15 | }
16 |
17 | return queries;
18 | };
19 |
20 | const execRegex = (queries, expression, path) => {
21 | let regexExpression = expression;
22 | queries.forEach((query) => {
23 | regexExpression = regexExpression.replace(query, '(.*)');
24 | });
25 |
26 | const queryRegex = new RegExp(regexExpression, 'g');
27 | const match = queryRegex.exec(path);
28 |
29 | if (match && !match[1].includes('/')) {
30 | let results = { path: match[0] };
31 | queries.forEach((query, index) => {
32 | const id = query.substring(1);
33 | results = { [id]: match[index + 1], ...results };
34 | });
35 |
36 | return results;
37 | }
38 |
39 | return false;
40 | };
41 |
42 | const evaluateExpression = (expression, path, scheme) => {
43 | if (expression === path) {
44 | return { scheme, path };
45 | }
46 |
47 | try {
48 | const regex = expression;
49 | const match = regex.exec(path);
50 | regex.lastIndex = 0;
51 | if (match) {
52 | return { scheme, path, match };
53 | }
54 | } catch (e) {
55 | // Error, expression is not regex
56 | }
57 |
58 | if (typeof expression === 'string' && expression.includes(':')) {
59 | const queries = fetchQueries(expression);
60 | if (queries.length) {
61 | return execRegex(queries, expression, path);
62 | }
63 | }
64 |
65 | return false;
66 | };
67 |
68 | const evaluateUrl = (url) => {
69 | let solved = false;
70 | schemes.forEach((scheme) => {
71 | if (url.startsWith(scheme)) {
72 | const path = url.substring(scheme.length - 1);
73 | routes.forEach((route) => {
74 | const result = evaluateExpression(route.expression, path, scheme);
75 | if (result) {
76 | solved = true;
77 | route.callback({ scheme, ...result });
78 | }
79 | });
80 | }
81 | });
82 |
83 | return solved;
84 | };
85 |
86 | const addRoute = (expression, callback) => {
87 | routes.push({ expression, callback });
88 | };
89 |
90 | const removeRoute = (expression) => {
91 | const index = routes.findIndex(route => route.expression === expression);
92 | routes.splice(index, 1);
93 | };
94 |
95 | const resetRoutes = () => {
96 | routes.splice(0, routes.length);
97 | };
98 |
99 | const addScheme = (scheme) => {
100 | schemes.push(scheme);
101 | };
102 |
103 | const resetSchemes = () => {
104 | schemes.splice(0, schemes.length);
105 | };
106 |
107 | const DeepLinking = {
108 | addRoute,
109 | addScheme,
110 | evaluateUrl,
111 | removeRoute,
112 | resetSchemes,
113 | resetRoutes,
114 | routes,
115 | schemes,
116 | };
117 |
118 | export default DeepLinking;
119 |
--------------------------------------------------------------------------------
/test/index.test.js:
--------------------------------------------------------------------------------
1 | import DeepLinking from '../src';
2 |
3 | DeepLinking.addScheme('domain://');
4 |
5 | describe('DeepLinking', () => {
6 | const articleRoute = {
7 | expression: 'domain://article',
8 | callback: () => {},
9 | };
10 |
11 | const musicRoute = {
12 | expression: 'domain://music',
13 | callback: () => {},
14 | };
15 |
16 | beforeEach(() => {
17 | expect(DeepLinking.routes).toEqual([]);
18 | });
19 |
20 | afterEach(() => {
21 | DeepLinking.resetRoutes();
22 | });
23 |
24 | test('addRoute', () => {
25 | DeepLinking.addRoute(articleRoute.expression, articleRoute.callback);
26 | expect(DeepLinking.routes).toEqual([articleRoute]);
27 |
28 | DeepLinking.addRoute(musicRoute.expression, musicRoute.callback);
29 | expect(DeepLinking.routes).toEqual([articleRoute, musicRoute]);
30 | });
31 |
32 | test('removeRoute', () => {
33 | DeepLinking.addRoute(articleRoute.expression, articleRoute.callback);
34 | DeepLinking.addRoute(musicRoute.expression, musicRoute.callback);
35 | expect(DeepLinking.routes).toEqual([articleRoute, musicRoute]);
36 |
37 | DeepLinking.removeRoute(articleRoute.expression);
38 | expect(DeepLinking.routes).toEqual([musicRoute]);
39 | });
40 |
41 | test('resetRoutes', () => {
42 | DeepLinking.addRoute(articleRoute.expression, articleRoute.callback);
43 | DeepLinking.addRoute(musicRoute.expression, musicRoute.callback);
44 | expect(DeepLinking.routes).toEqual([articleRoute, musicRoute]);
45 |
46 | DeepLinking.resetRoutes();
47 | expect(DeepLinking.routes).toEqual([]);
48 | });
49 | });
50 |
51 | describe('Routes', () => {
52 | afterEach(() => {
53 | DeepLinking.resetRoutes();
54 | });
55 |
56 | test('domain://music', () => {
57 | let urlEvaluated = false;
58 | DeepLinking.addRoute('/music', (result) => {
59 | const { path, scheme } = result;
60 | expect(path).toEqual('/music');
61 | expect(scheme).toEqual('domain://');
62 | urlEvaluated = true;
63 | });
64 |
65 | DeepLinking.evaluateUrl('domain://music');
66 | expect(urlEvaluated).toEqual(true);
67 | });
68 |
69 | test('domain://music/:id', () => {
70 | let urlEvaluated = false;
71 | DeepLinking.addRoute('/music/:id', (result) => {
72 | const { path, scheme, id } = result;
73 | expect(path).toEqual('/music/123');
74 | expect(scheme).toEqual('domain://');
75 | expect(id).toEqual('123');
76 | urlEvaluated = true;
77 | });
78 |
79 | DeepLinking.evaluateUrl('domain://music/123');
80 | expect(urlEvaluated).toEqual(true);
81 | });
82 |
83 | test('domain://music/:name/', () => {
84 | let urlEvaluated = false;
85 | DeepLinking.addRoute('/music/:name/', (result) => {
86 | const { path, scheme, name } = result;
87 | expect(path).toEqual('/music/abcd/');
88 | expect(scheme).toEqual('domain://');
89 | expect(name).toEqual('abcd');
90 | urlEvaluated = true;
91 | });
92 |
93 | DeepLinking.evaluateUrl('domain://music/abcd/');
94 | expect(urlEvaluated).toEqual(true);
95 | });
96 |
97 | test('domain://music/:name/details/:id', () => {
98 | let urlEvaluated = false;
99 | DeepLinking.addRoute('/music/:name/details/:id', (result) => {
100 | const { path, scheme, name, id } = result;
101 | expect(path).toEqual('/music/test/details/12');
102 | expect(scheme).toEqual('domain://');
103 | expect(name).toEqual('test');
104 | expect(id).toEqual('12');
105 | urlEvaluated = true;
106 | });
107 |
108 | DeepLinking.evaluateUrl('domain://music/test/details/12');
109 | expect(urlEvaluated).toEqual(true);
110 | });
111 |
112 | test('domain://:id', () => {
113 | let urlEvaluated = false;
114 | DeepLinking.addRoute('/:id', (result) => {
115 | const { path, scheme, id } = result;
116 | expect(path).toEqual('/100');
117 | expect(scheme).toEqual('domain://');
118 | expect(id).toEqual('100');
119 | urlEvaluated = true;
120 | });
121 |
122 | DeepLinking.evaluateUrl('domain://100');
123 | expect(urlEvaluated).toEqual(true);
124 | });
125 |
126 | test('domain://:id1/:id2/:id3/:id4', () => {
127 | let urlEvaluated = false;
128 | DeepLinking.addRoute('/:id1/:id2/:id3/:id4', (result) => {
129 | const { path, scheme, id1, id2, id3, id4 } = result;
130 | expect(path).toEqual('/1/2/3/4');
131 | expect(scheme).toEqual('domain://');
132 | expect(id1).toEqual('1');
133 | expect(id2).toEqual('2');
134 | expect(id3).toEqual('3');
135 | expect(id4).toEqual('4');
136 | urlEvaluated = true;
137 | });
138 |
139 | DeepLinking.evaluateUrl('domain://1/2/3/4');
140 | expect(urlEvaluated).toEqual(true);
141 | });
142 |
143 | test('regex domain://music/(.*)/details/', () => {
144 | let urlEvaluated = false;
145 | const regex = /\/music\/(.*)\/details/g;
146 | DeepLinking.addRoute(regex, (result) => {
147 | const { path, scheme, match } = result;
148 | expect(path).toEqual('/music/123/details');
149 | expect(scheme).toEqual('domain://');
150 | expect(match).toBeTruthy();
151 | expect(match[1]).toEqual('123');
152 | urlEvaluated = true;
153 | });
154 |
155 | DeepLinking.evaluateUrl('domain://music/123/details');
156 | expect(urlEvaluated).toEqual(true);
157 | });
158 |
159 | test('invalid scheme something://music', () => {
160 | let urlEvaluated = false;
161 | DeepLinking.addRoute('/music', () => {
162 | urlEvaluated = true;
163 | });
164 |
165 | DeepLinking.evaluateUrl('something://music');
166 | expect(urlEvaluated).toEqual(false);
167 | });
168 |
169 | test('invalid route', () => {
170 | let urlEvaluated = false;
171 | DeepLinking.addRoute('music', () => {
172 | urlEvaluated = true;
173 | });
174 |
175 | DeepLinking.evaluateUrl('domain://music');
176 | expect(urlEvaluated).toEqual(false);
177 | });
178 |
179 | test('invalid path', () => {
180 | let urlEvaluated = false;
181 | DeepLinking.addRoute('/music/:id', () => {
182 | urlEvaluated = true;
183 | });
184 |
185 | DeepLinking.evaluateUrl('domain://music/12/details');
186 | expect(urlEvaluated).toEqual(false);
187 | });
188 |
189 | test('invalid query', () => {
190 | let urlEvaluated = false;
191 | DeepLinking.addRoute('/music/:', () => {
192 | urlEvaluated = true;
193 | });
194 |
195 | DeepLinking.evaluateUrl('domain://music/1');
196 | expect(urlEvaluated).toEqual(false);
197 | });
198 |
199 | test('invalid path with regex domain://music/(.*)/details/', () => {
200 | let urlEvaluated = false;
201 | const regex = /\/music\/(.*)\/details/g;
202 | DeepLinking.addRoute(regex, () => {
203 | urlEvaluated = true;
204 | });
205 |
206 | DeepLinking.evaluateUrl('domain://videos/123/details');
207 | expect(urlEvaluated).toEqual(false);
208 | });
209 | });
210 |
211 |
212 | describe('Schemes', () => {
213 | test('resetSchemes', () => {
214 | DeepLinking.resetSchemes();
215 | expect(DeepLinking.schemes).toEqual([]);
216 | });
217 | });
218 |
--------------------------------------------------------------------------------