├── .buckconfig ├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── App.tsx ├── README.md ├── __tests__ └── App-test.tsx ├── android ├── app │ ├── _BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── debug.keystore │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── rndeeplinkauth │ │ │ └── ReactNativeFlipper.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── rndeeplinkauth │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── app.json ├── babel.config.js ├── index.js ├── ios ├── Podfile ├── Podfile.lock ├── RNDeepLinkAuth.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── RNDeepLinkAuth.xcscheme ├── RNDeepLinkAuth.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── RNDeepLinkAuth │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ ├── LaunchScreen.storyboard │ └── main.m └── RNDeepLinkAuthTests │ ├── Info.plist │ └── RNDeepLinkAuthTests.m ├── metro.config.js ├── package.json ├── src ├── components │ ├── AuthenticationContext.tsx │ ├── CenteredView.tsx │ ├── DeepLinkProvider.tsx │ ├── HeaderRight.tsx │ ├── Text.tsx │ └── index.ts ├── hooks │ ├── index.ts │ ├── useDeepLinks.tsx │ └── useURL.ts ├── nav │ ├── HomeStack.tsx │ ├── OnboardingStack.tsx │ ├── RootNavigator.tsx │ ├── SwitchNavigation.tsx │ └── index.ts ├── screens │ ├── Home.tsx │ ├── Profile.tsx │ ├── SignIn.tsx │ ├── SignUp.tsx │ └── index.ts └── services │ ├── NavigationService.ts │ └── index.ts ├── tsconfig.json └── yarn.lock /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Windows files 2 | [*.bat] 3 | end_of_line = crlf 4 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | rules: { 5 | 'react-hooks/exhaustive-deps': 'off', 6 | }, 7 | }; 8 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Windows files should use crlf line endings 2 | # https://help.github.com/articles/dealing-with-line-endings/ 3 | *.bat text eol=crlf 4 | -------------------------------------------------------------------------------- /.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 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: true, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | arrowParens: 'avoid', 7 | }; 8 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.tsx: -------------------------------------------------------------------------------- 1 | import { Linking } from 'react-native'; 2 | import React, { FunctionComponent, useEffect } from 'react'; 3 | 4 | import { RootNavigator } from './src/nav'; 5 | import { AuthenticationProvider, DeepLinkProvider } from './src/components'; 6 | 7 | const App: FunctionComponent<{ initialURL?: string }> = ({ initialURL }) => { 8 | useEffect(() => { 9 | if (!initialURL) { 10 | return; 11 | } 12 | 13 | Linking.openURL(initialURL); 14 | }, [initialURL]); 15 | 16 | return ( 17 | 18 | 19 | 20 | 21 | 22 | ); 23 | }; 24 | 25 | export default App; 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This app will demonstrate how to handle deep links to routes that are behind an auth wall. Simply run the app and trigger the deep link to see the result. 2 | 3 | ## Available Scripts 4 | 5 | If Yarn was installed when the project was initialized, then dependencies will have been installed via Yarn, and you should probably use it to run these commands as well. Unlike dependency installation, command running syntax is identical for Yarn and NPM at the time of this writing. 6 | 7 | ### `npm start` 8 | 9 | Runs your app in development mode. 10 | 11 | Open it in the [Expo app](https://expo.io) on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal. 12 | 13 | Sometimes you may need to reset or clear the React Native packager's cache. To do so, you can pass the `--reset-cache` flag to the start script: 14 | 15 | ``` 16 | npm start -- --reset-cache 17 | # or 18 | yarn start -- --reset-cache 19 | ``` 20 | 21 | #### `npm test` 22 | 23 | Runs the [jest](https://github.com/facebook/jest) test runner on your tests. 24 | 25 | #### `npm run ios` 26 | 27 | Like `npm start`, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed. 28 | 29 | #### `npm run android` 30 | 31 | Like `npm start`, but also attempts to open your app on a connected Android device or emulator. Requires an installation of Android build tools (see [React Native docs](https://facebook.github.io/react-native/docs/getting-started.html) for detailed setup). We also recommend installing Genymotion as your Android emulator. Once you've finished setting up the native build environment, there are two options for making the right copy of `adb` available to Create React Native App: 32 | 33 | ##### Using Android Studio's `adb` 34 | 35 | 1. Make sure that you can run adb from your terminal. 36 | 2. Open Genymotion and navigate to `Settings -> ADB`. Select “Use custom Android SDK tools” and update with your [Android SDK directory](https://stackoverflow.com/questions/25176594/android-sdk-location). 37 | 38 | ##### Using Genymotion's `adb` 39 | 40 | 1. Find Genymotion’s copy of adb. On macOS for example, this is normally `/Applications/Genymotion.app/Contents/MacOS/tools/`. 41 | 2. Add the Genymotion tools directory to your path (instructions for [Mac](http://osxdaily.com/2014/08/14/add-new-path-to-path-command-line/), [Linux](http://www.computerhope.com/issues/ch001647.htm), and [Windows](https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/)). 42 | 3. Make sure that you can run adb from your terminal. 43 | 44 | #### `triggerprofiledeeplink:ios` 45 | 46 | Triggers profile screen deep link. 47 | 48 | #### `triggersignupdeeplink:ios` 49 | 50 | Triggers sign up screen deep link -------------------------------------------------------------------------------- /__tests__/App-test.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /android/app/_BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.rndeeplinkauth", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.rndeeplinkauth", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation. If none specified and 19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 20 | * // default. Can be overridden with ENTRY_FILE environment variable. 21 | * entryFile: "index.android.js", 22 | * 23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 24 | * bundleCommand: "ram-bundle", 25 | * 26 | * // whether to bundle JS and assets in debug mode 27 | * bundleInDebug: false, 28 | * 29 | * // whether to bundle JS and assets in release mode 30 | * bundleInRelease: true, 31 | * 32 | * // whether to bundle JS and assets in another build variant (if configured). 33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 34 | * // The configuration property can be in the following formats 35 | * // 'bundleIn${productFlavor}${buildType}' 36 | * // 'bundleIn${buildType}' 37 | * // bundleInFreeDebug: true, 38 | * // bundleInPaidRelease: true, 39 | * // bundleInBeta: true, 40 | * 41 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 42 | * // for example: to disable dev mode in the staging build type (if configured) 43 | * devDisabledInStaging: true, 44 | * // The configuration property can be in the following formats 45 | * // 'devDisabledIn${productFlavor}${buildType}' 46 | * // 'devDisabledIn${buildType}' 47 | * 48 | * // the root of your project, i.e. where "package.json" lives 49 | * root: "../../", 50 | * 51 | * // where to put the JS bundle asset in debug mode 52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 53 | * 54 | * // where to put the JS bundle asset in release mode 55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 56 | * 57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 58 | * // require('./image.png')), in debug mode 59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 60 | * 61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 62 | * // require('./image.png')), in release mode 63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 64 | * 65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 69 | * // for example, you might want to remove it from here. 70 | * inputExcludes: ["android/**", "ios/**"], 71 | * 72 | * // override which node gets called and with what additional arguments 73 | * nodeExecutableAndArgs: ["node"], 74 | * 75 | * // supply additional arguments to the packager 76 | * extraPackagerArgs: [] 77 | * ] 78 | */ 79 | 80 | project.ext.react = [ 81 | enableHermes: false, // clean and rebuild if changing 82 | ] 83 | 84 | apply from: "../../node_modules/react-native/react.gradle" 85 | 86 | /** 87 | * Set this to true to create two separate APKs instead of one: 88 | * - An APK that only works on ARM devices 89 | * - An APK that only works on x86 devices 90 | * The advantage is the size of the APK is reduced by about 4MB. 91 | * Upload all the APKs to the Play Store and people will download 92 | * the correct one based on the CPU architecture of their device. 93 | */ 94 | def enableSeparateBuildPerCPUArchitecture = false 95 | 96 | /** 97 | * Run Proguard to shrink the Java bytecode in release builds. 98 | */ 99 | def enableProguardInReleaseBuilds = false 100 | 101 | /** 102 | * The preferred build flavor of JavaScriptCore. 103 | * 104 | * For example, to use the international variant, you can use: 105 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 106 | * 107 | * The international variant includes ICU i18n library and necessary data 108 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 109 | * give correct results when using with locales other than en-US. Note that 110 | * this variant is about 6MiB larger per architecture than default. 111 | */ 112 | def jscFlavor = 'org.webkit:android-jsc:+' 113 | 114 | /** 115 | * Whether to enable the Hermes VM. 116 | * 117 | * This should be set on project.ext.react and mirrored here. If it is not set 118 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 119 | * and the benefits of using Hermes will therefore be sharply reduced. 120 | */ 121 | def enableHermes = project.ext.react.get("enableHermes", false); 122 | 123 | android { 124 | ndkVersion rootProject.ext.ndkVersion 125 | 126 | compileSdkVersion rootProject.ext.compileSdkVersion 127 | 128 | compileOptions { 129 | sourceCompatibility JavaVersion.VERSION_1_8 130 | targetCompatibility JavaVersion.VERSION_1_8 131 | } 132 | 133 | defaultConfig { 134 | applicationId "com.rndeeplinkauth" 135 | minSdkVersion rootProject.ext.minSdkVersion 136 | targetSdkVersion rootProject.ext.targetSdkVersion 137 | versionCode 1 138 | versionName "1.0" 139 | } 140 | splits { 141 | abi { 142 | reset() 143 | enable enableSeparateBuildPerCPUArchitecture 144 | universalApk false // If true, also generate a universal APK 145 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 146 | } 147 | } 148 | signingConfigs { 149 | debug { 150 | storeFile file('debug.keystore') 151 | storePassword 'android' 152 | keyAlias 'androiddebugkey' 153 | keyPassword 'android' 154 | } 155 | } 156 | buildTypes { 157 | debug { 158 | signingConfig signingConfigs.debug 159 | } 160 | release { 161 | // Caution! In production, you need to generate your own keystore file. 162 | // see https://reactnative.dev/docs/signed-apk-android. 163 | signingConfig signingConfigs.debug 164 | minifyEnabled enableProguardInReleaseBuilds 165 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 166 | } 167 | } 168 | 169 | // applicationVariants are e.g. debug, release 170 | applicationVariants.all { variant -> 171 | variant.outputs.each { output -> 172 | // For each separate APK per architecture, set a unique version code as described here: 173 | // https://developer.android.com/studio/build/configure-apk-splits.html 174 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. 175 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 176 | def abi = output.getFilter(OutputFile.ABI) 177 | if (abi != null) { // null for the universal-debug, universal-release variants 178 | output.versionCodeOverride = 179 | defaultConfig.versionCode * 1000 + versionCodes.get(abi) 180 | } 181 | 182 | } 183 | } 184 | } 185 | 186 | dependencies { 187 | implementation fileTree(dir: "libs", include: ["*.jar"]) 188 | //noinspection GradleDynamicVersion 189 | implementation "com.facebook.react:react-native:+" // From node_modules 190 | 191 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 192 | 193 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 194 | exclude group:'com.facebook.fbjni' 195 | } 196 | 197 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 198 | exclude group:'com.facebook.flipper' 199 | exclude group:'com.squareup.okhttp3', module:'okhttp' 200 | } 201 | 202 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 203 | exclude group:'com.facebook.flipper' 204 | } 205 | 206 | if (enableHermes) { 207 | def hermesPath = "../../node_modules/hermes-engine/android/"; 208 | debugImplementation files(hermesPath + "hermes-debug.aar") 209 | releaseImplementation files(hermesPath + "hermes-release.aar") 210 | } else { 211 | implementation jscFlavor 212 | } 213 | } 214 | 215 | // Run this once to be able to run the application with BUCK 216 | // puts all compile dependencies into folder libs for BUCK to use 217 | task copyDownloadableDepsToLibs(type: Copy) { 218 | from configurations.compile 219 | into 'libs' 220 | } 221 | 222 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 223 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ximxim/RNDeepLinkAuth/b95547be1cbb7ab2a976c143082e5464591a752d/android/app/debug.keystore -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /android/app/src/debug/java/com/rndeeplinkauth/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.rndeeplinkauth; 8 | 9 | import android.content.Context; 10 | import com.facebook.flipper.android.AndroidFlipperClient; 11 | import com.facebook.flipper.android.utils.FlipperUtils; 12 | import com.facebook.flipper.core.FlipperClient; 13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; 14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; 15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; 16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping; 17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; 18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; 19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; 20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin; 21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 22 | import com.facebook.react.ReactInstanceManager; 23 | import com.facebook.react.bridge.ReactContext; 24 | import com.facebook.react.modules.network.NetworkingModule; 25 | import okhttp3.OkHttpClient; 26 | 27 | public class ReactNativeFlipper { 28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 29 | if (FlipperUtils.shouldEnableFlipper(context)) { 30 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 31 | 32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 33 | client.addPlugin(new ReactFlipperPlugin()); 34 | client.addPlugin(new DatabasesFlipperPlugin(context)); 35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 36 | client.addPlugin(CrashReporterPlugin.getInstance()); 37 | 38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 39 | NetworkingModule.setCustomClientBuilder( 40 | new NetworkingModule.CustomClientBuilder() { 41 | @Override 42 | public void apply(OkHttpClient.Builder builder) { 43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 44 | } 45 | }); 46 | client.addPlugin(networkFlipperPlugin); 47 | client.start(); 48 | 49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 50 | // Hence we run if after all native modules have been initialized 51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 52 | if (reactContext == null) { 53 | reactInstanceManager.addReactInstanceEventListener( 54 | new ReactInstanceManager.ReactInstanceEventListener() { 55 | @Override 56 | public void onReactContextInitialized(ReactContext reactContext) { 57 | reactInstanceManager.removeReactInstanceEventListener(this); 58 | reactContext.runOnNativeModulesQueueThread( 59 | new Runnable() { 60 | @Override 61 | public void run() { 62 | client.addPlugin(new FrescoFlipperPlugin()); 63 | } 64 | }); 65 | } 66 | }); 67 | } else { 68 | client.addPlugin(new FrescoFlipperPlugin()); 69 | } 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rndeeplinkauth/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.rndeeplinkauth; 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. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "RNDeepLinkAuth"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rndeeplinkauth/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.rndeeplinkauth; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | import java.lang.reflect.InvocationTargetException; 12 | import java.util.List; 13 | 14 | public class MainApplication extends Application implements ReactApplication { 15 | 16 | private final ReactNativeHost mReactNativeHost = 17 | new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | @SuppressWarnings("UnnecessaryLocalVariable") 26 | List packages = new PackageList(this).getPackages(); 27 | // Packages that cannot be autolinked yet can be added manually here, for example: 28 | // packages.add(new MyReactNativePackage()); 29 | return packages; 30 | } 31 | 32 | @Override 33 | protected String getJSMainModuleName() { 34 | return "index"; 35 | } 36 | }; 37 | 38 | @Override 39 | public ReactNativeHost getReactNativeHost() { 40 | return mReactNativeHost; 41 | } 42 | 43 | @Override 44 | public void onCreate() { 45 | super.onCreate(); 46 | SoLoader.init(this, /* native exopackage */ false); 47 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 48 | } 49 | 50 | /** 51 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 52 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 53 | * 54 | * @param context 55 | * @param reactInstanceManager 56 | */ 57 | private static void initializeFlipper( 58 | Context context, ReactInstanceManager reactInstanceManager) { 59 | if (BuildConfig.DEBUG) { 60 | try { 61 | /* 62 | We use reflection here to pick up the class that initializes Flipper, 63 | since Flipper library is not available in release mode 64 | */ 65 | Class aClass = Class.forName("com.rndeeplinkauth.ReactNativeFlipper"); 66 | aClass 67 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 68 | .invoke(null, context, reactInstanceManager); 69 | } catch (ClassNotFoundException e) { 70 | e.printStackTrace(); 71 | } catch (NoSuchMethodException e) { 72 | e.printStackTrace(); 73 | } catch (IllegalAccessException e) { 74 | e.printStackTrace(); 75 | } catch (InvocationTargetException e) { 76 | e.printStackTrace(); 77 | } 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ximxim/RNDeepLinkAuth/b95547be1cbb7ab2a976c143082e5464591a752d/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ximxim/RNDeepLinkAuth/b95547be1cbb7ab2a976c143082e5464591a752d/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ximxim/RNDeepLinkAuth/b95547be1cbb7ab2a976c143082e5464591a752d/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ximxim/RNDeepLinkAuth/b95547be1cbb7ab2a976c143082e5464591a752d/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ximxim/RNDeepLinkAuth/b95547be1cbb7ab2a976c143082e5464591a752d/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ximxim/RNDeepLinkAuth/b95547be1cbb7ab2a976c143082e5464591a752d/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ximxim/RNDeepLinkAuth/b95547be1cbb7ab2a976c143082e5464591a752d/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ximxim/RNDeepLinkAuth/b95547be1cbb7ab2a976c143082e5464591a752d/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ximxim/RNDeepLinkAuth/b95547be1cbb7ab2a976c143082e5464591a752d/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ximxim/RNDeepLinkAuth/b95547be1cbb7ab2a976c143082e5464591a752d/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | RNDeepLinkAuth 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "29.0.3" 6 | minSdkVersion = 21 7 | compileSdkVersion = 29 8 | targetSdkVersion = 29 9 | ndkVersion = "20.1.5948944" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:4.1.0") 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenLocal() 25 | maven { 26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 27 | url("$rootDir/../node_modules/react-native/android") 28 | } 29 | maven { 30 | // Android JSC is installed from npm 31 | url("$rootDir/../node_modules/jsc-android/dist") 32 | } 33 | 34 | google() 35 | jcenter() 36 | maven { url 'https://www.jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /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 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.75.1 29 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ximxim/RNDeepLinkAuth/b95547be1cbb7ab2a976c143082e5464591a752d/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | 86 | # Determine the Java command to use to start the JVM. 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | if [ ! -x "$JAVACMD" ] ; then 95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 96 | 97 | Please set the JAVA_HOME variable in your environment to match the 98 | location of your Java installation." 99 | fi 100 | else 101 | JAVACMD="java" 102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 103 | 104 | Please set the JAVA_HOME variable in your environment to match the 105 | location of your Java installation." 106 | fi 107 | 108 | # Increase the maximum file descriptors if we can. 109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 110 | MAX_FD_LIMIT=`ulimit -H -n` 111 | if [ $? -eq 0 ] ; then 112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 113 | MAX_FD="$MAX_FD_LIMIT" 114 | fi 115 | ulimit -n $MAX_FD 116 | if [ $? -ne 0 ] ; then 117 | warn "Could not set maximum file descriptor limit: $MAX_FD" 118 | fi 119 | else 120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 121 | fi 122 | fi 123 | 124 | # For Darwin, add options to specify how the application appears in the dock 125 | if $darwin; then 126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 127 | fi 128 | 129 | # For Cygwin or MSYS, switch paths to Windows format before running java 130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 133 | 134 | JAVACMD=`cygpath --unix "$JAVACMD"` 135 | 136 | # We build the pattern for arguments to be converted via cygpath 137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 138 | SEP="" 139 | for dir in $ROOTDIRSRAW ; do 140 | ROOTDIRS="$ROOTDIRS$SEP$dir" 141 | SEP="|" 142 | done 143 | OURCYGPATTERN="(^($ROOTDIRS))" 144 | # Add a user-defined pattern to the cygpath arguments 145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 147 | fi 148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 149 | i=0 150 | for arg in "$@" ; do 151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 153 | 154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 156 | else 157 | eval `echo args$i`="\"$arg\"" 158 | fi 159 | i=`expr $i + 1` 160 | done 161 | case $i in 162 | 0) set -- ;; 163 | 1) set -- "$args0" ;; 164 | 2) set -- "$args0" "$args1" ;; 165 | 3) set -- "$args0" "$args1" "$args2" ;; 166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 172 | esac 173 | fi 174 | 175 | # Escape application args 176 | save () { 177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 178 | echo " " 179 | } 180 | APP_ARGS=`save "$@"` 181 | 182 | # Collect all arguments for the java command, following the shell quoting and substitution rules 183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 184 | 185 | exec "$JAVACMD" "$@" 186 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'RNDeepLinkAuth' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "RNDeepLinkAuth", 3 | "displayName": "RNDeepLinkAuth" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '10.0' 5 | 6 | target 'RNDeepLinkAuth' do 7 | config = use_native_modules! 8 | 9 | use_react_native!( 10 | :path => config[:reactNativePath], 11 | # to enable hermes on iOS, change `false` to `true` and then install pods 12 | :hermes_enabled => false 13 | ) 14 | 15 | target 'RNDeepLinkAuthTests' do 16 | inherit! :complete 17 | # Pods for testing 18 | end 19 | 20 | # Enables Flipper. 21 | # 22 | # Note that if you have use_frameworks! enabled, Flipper will not work and 23 | # you should disable the next line. 24 | use_flipper!() 25 | 26 | post_install do |installer| 27 | react_native_post_install(installer) 28 | end 29 | end -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - CocoaAsyncSocket (7.6.5) 4 | - DoubleConversion (1.1.6) 5 | - FBLazyVector (0.64.1) 6 | - FBReactNativeSpec (0.64.1): 7 | - RCT-Folly (= 2020.01.13.00) 8 | - RCTRequired (= 0.64.1) 9 | - RCTTypeSafety (= 0.64.1) 10 | - React-Core (= 0.64.1) 11 | - React-jsi (= 0.64.1) 12 | - ReactCommon/turbomodule/core (= 0.64.1) 13 | - Flipper (0.75.1): 14 | - Flipper-Folly (~> 2.5) 15 | - Flipper-RSocket (~> 1.3) 16 | - Flipper-DoubleConversion (1.1.7) 17 | - Flipper-Folly (2.5.3): 18 | - boost-for-react-native 19 | - Flipper-DoubleConversion 20 | - Flipper-Glog 21 | - libevent (~> 2.1.12) 22 | - OpenSSL-Universal (= 1.1.180) 23 | - Flipper-Glog (0.3.6) 24 | - Flipper-PeerTalk (0.0.4) 25 | - Flipper-RSocket (1.3.1): 26 | - Flipper-Folly (~> 2.5) 27 | - FlipperKit (0.75.1): 28 | - FlipperKit/Core (= 0.75.1) 29 | - FlipperKit/Core (0.75.1): 30 | - Flipper (~> 0.75.1) 31 | - FlipperKit/CppBridge 32 | - FlipperKit/FBCxxFollyDynamicConvert 33 | - FlipperKit/FBDefines 34 | - FlipperKit/FKPortForwarding 35 | - FlipperKit/CppBridge (0.75.1): 36 | - Flipper (~> 0.75.1) 37 | - FlipperKit/FBCxxFollyDynamicConvert (0.75.1): 38 | - Flipper-Folly (~> 2.5) 39 | - FlipperKit/FBDefines (0.75.1) 40 | - FlipperKit/FKPortForwarding (0.75.1): 41 | - CocoaAsyncSocket (~> 7.6) 42 | - Flipper-PeerTalk (~> 0.0.4) 43 | - FlipperKit/FlipperKitHighlightOverlay (0.75.1) 44 | - FlipperKit/FlipperKitLayoutPlugin (0.75.1): 45 | - FlipperKit/Core 46 | - FlipperKit/FlipperKitHighlightOverlay 47 | - FlipperKit/FlipperKitLayoutTextSearchable 48 | - YogaKit (~> 1.18) 49 | - FlipperKit/FlipperKitLayoutTextSearchable (0.75.1) 50 | - FlipperKit/FlipperKitNetworkPlugin (0.75.1): 51 | - FlipperKit/Core 52 | - FlipperKit/FlipperKitReactPlugin (0.75.1): 53 | - FlipperKit/Core 54 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.75.1): 55 | - FlipperKit/Core 56 | - FlipperKit/SKIOSNetworkPlugin (0.75.1): 57 | - FlipperKit/Core 58 | - FlipperKit/FlipperKitNetworkPlugin 59 | - glog (0.3.5) 60 | - libevent (2.1.12) 61 | - OpenSSL-Universal (1.1.180) 62 | - RCT-Folly (2020.01.13.00): 63 | - boost-for-react-native 64 | - DoubleConversion 65 | - glog 66 | - RCT-Folly/Default (= 2020.01.13.00) 67 | - RCT-Folly/Default (2020.01.13.00): 68 | - boost-for-react-native 69 | - DoubleConversion 70 | - glog 71 | - RCTRequired (0.64.1) 72 | - RCTTypeSafety (0.64.1): 73 | - FBLazyVector (= 0.64.1) 74 | - RCT-Folly (= 2020.01.13.00) 75 | - RCTRequired (= 0.64.1) 76 | - React-Core (= 0.64.1) 77 | - React (0.64.1): 78 | - React-Core (= 0.64.1) 79 | - React-Core/DevSupport (= 0.64.1) 80 | - React-Core/RCTWebSocket (= 0.64.1) 81 | - React-RCTActionSheet (= 0.64.1) 82 | - React-RCTAnimation (= 0.64.1) 83 | - React-RCTBlob (= 0.64.1) 84 | - React-RCTImage (= 0.64.1) 85 | - React-RCTLinking (= 0.64.1) 86 | - React-RCTNetwork (= 0.64.1) 87 | - React-RCTSettings (= 0.64.1) 88 | - React-RCTText (= 0.64.1) 89 | - React-RCTVibration (= 0.64.1) 90 | - React-callinvoker (0.64.1) 91 | - React-Core (0.64.1): 92 | - glog 93 | - RCT-Folly (= 2020.01.13.00) 94 | - React-Core/Default (= 0.64.1) 95 | - React-cxxreact (= 0.64.1) 96 | - React-jsi (= 0.64.1) 97 | - React-jsiexecutor (= 0.64.1) 98 | - React-perflogger (= 0.64.1) 99 | - Yoga 100 | - React-Core/CoreModulesHeaders (0.64.1): 101 | - glog 102 | - RCT-Folly (= 2020.01.13.00) 103 | - React-Core/Default 104 | - React-cxxreact (= 0.64.1) 105 | - React-jsi (= 0.64.1) 106 | - React-jsiexecutor (= 0.64.1) 107 | - React-perflogger (= 0.64.1) 108 | - Yoga 109 | - React-Core/Default (0.64.1): 110 | - glog 111 | - RCT-Folly (= 2020.01.13.00) 112 | - React-cxxreact (= 0.64.1) 113 | - React-jsi (= 0.64.1) 114 | - React-jsiexecutor (= 0.64.1) 115 | - React-perflogger (= 0.64.1) 116 | - Yoga 117 | - React-Core/DevSupport (0.64.1): 118 | - glog 119 | - RCT-Folly (= 2020.01.13.00) 120 | - React-Core/Default (= 0.64.1) 121 | - React-Core/RCTWebSocket (= 0.64.1) 122 | - React-cxxreact (= 0.64.1) 123 | - React-jsi (= 0.64.1) 124 | - React-jsiexecutor (= 0.64.1) 125 | - React-jsinspector (= 0.64.1) 126 | - React-perflogger (= 0.64.1) 127 | - Yoga 128 | - React-Core/RCTActionSheetHeaders (0.64.1): 129 | - glog 130 | - RCT-Folly (= 2020.01.13.00) 131 | - React-Core/Default 132 | - React-cxxreact (= 0.64.1) 133 | - React-jsi (= 0.64.1) 134 | - React-jsiexecutor (= 0.64.1) 135 | - React-perflogger (= 0.64.1) 136 | - Yoga 137 | - React-Core/RCTAnimationHeaders (0.64.1): 138 | - glog 139 | - RCT-Folly (= 2020.01.13.00) 140 | - React-Core/Default 141 | - React-cxxreact (= 0.64.1) 142 | - React-jsi (= 0.64.1) 143 | - React-jsiexecutor (= 0.64.1) 144 | - React-perflogger (= 0.64.1) 145 | - Yoga 146 | - React-Core/RCTBlobHeaders (0.64.1): 147 | - glog 148 | - RCT-Folly (= 2020.01.13.00) 149 | - React-Core/Default 150 | - React-cxxreact (= 0.64.1) 151 | - React-jsi (= 0.64.1) 152 | - React-jsiexecutor (= 0.64.1) 153 | - React-perflogger (= 0.64.1) 154 | - Yoga 155 | - React-Core/RCTImageHeaders (0.64.1): 156 | - glog 157 | - RCT-Folly (= 2020.01.13.00) 158 | - React-Core/Default 159 | - React-cxxreact (= 0.64.1) 160 | - React-jsi (= 0.64.1) 161 | - React-jsiexecutor (= 0.64.1) 162 | - React-perflogger (= 0.64.1) 163 | - Yoga 164 | - React-Core/RCTLinkingHeaders (0.64.1): 165 | - glog 166 | - RCT-Folly (= 2020.01.13.00) 167 | - React-Core/Default 168 | - React-cxxreact (= 0.64.1) 169 | - React-jsi (= 0.64.1) 170 | - React-jsiexecutor (= 0.64.1) 171 | - React-perflogger (= 0.64.1) 172 | - Yoga 173 | - React-Core/RCTNetworkHeaders (0.64.1): 174 | - glog 175 | - RCT-Folly (= 2020.01.13.00) 176 | - React-Core/Default 177 | - React-cxxreact (= 0.64.1) 178 | - React-jsi (= 0.64.1) 179 | - React-jsiexecutor (= 0.64.1) 180 | - React-perflogger (= 0.64.1) 181 | - Yoga 182 | - React-Core/RCTSettingsHeaders (0.64.1): 183 | - glog 184 | - RCT-Folly (= 2020.01.13.00) 185 | - React-Core/Default 186 | - React-cxxreact (= 0.64.1) 187 | - React-jsi (= 0.64.1) 188 | - React-jsiexecutor (= 0.64.1) 189 | - React-perflogger (= 0.64.1) 190 | - Yoga 191 | - React-Core/RCTTextHeaders (0.64.1): 192 | - glog 193 | - RCT-Folly (= 2020.01.13.00) 194 | - React-Core/Default 195 | - React-cxxreact (= 0.64.1) 196 | - React-jsi (= 0.64.1) 197 | - React-jsiexecutor (= 0.64.1) 198 | - React-perflogger (= 0.64.1) 199 | - Yoga 200 | - React-Core/RCTVibrationHeaders (0.64.1): 201 | - glog 202 | - RCT-Folly (= 2020.01.13.00) 203 | - React-Core/Default 204 | - React-cxxreact (= 0.64.1) 205 | - React-jsi (= 0.64.1) 206 | - React-jsiexecutor (= 0.64.1) 207 | - React-perflogger (= 0.64.1) 208 | - Yoga 209 | - React-Core/RCTWebSocket (0.64.1): 210 | - glog 211 | - RCT-Folly (= 2020.01.13.00) 212 | - React-Core/Default (= 0.64.1) 213 | - React-cxxreact (= 0.64.1) 214 | - React-jsi (= 0.64.1) 215 | - React-jsiexecutor (= 0.64.1) 216 | - React-perflogger (= 0.64.1) 217 | - Yoga 218 | - React-CoreModules (0.64.1): 219 | - FBReactNativeSpec (= 0.64.1) 220 | - RCT-Folly (= 2020.01.13.00) 221 | - RCTTypeSafety (= 0.64.1) 222 | - React-Core/CoreModulesHeaders (= 0.64.1) 223 | - React-jsi (= 0.64.1) 224 | - React-RCTImage (= 0.64.1) 225 | - ReactCommon/turbomodule/core (= 0.64.1) 226 | - React-cxxreact (0.64.1): 227 | - boost-for-react-native (= 1.63.0) 228 | - DoubleConversion 229 | - glog 230 | - RCT-Folly (= 2020.01.13.00) 231 | - React-callinvoker (= 0.64.1) 232 | - React-jsi (= 0.64.1) 233 | - React-jsinspector (= 0.64.1) 234 | - React-perflogger (= 0.64.1) 235 | - React-runtimeexecutor (= 0.64.1) 236 | - React-jsi (0.64.1): 237 | - boost-for-react-native (= 1.63.0) 238 | - DoubleConversion 239 | - glog 240 | - RCT-Folly (= 2020.01.13.00) 241 | - React-jsi/Default (= 0.64.1) 242 | - React-jsi/Default (0.64.1): 243 | - boost-for-react-native (= 1.63.0) 244 | - DoubleConversion 245 | - glog 246 | - RCT-Folly (= 2020.01.13.00) 247 | - React-jsiexecutor (0.64.1): 248 | - DoubleConversion 249 | - glog 250 | - RCT-Folly (= 2020.01.13.00) 251 | - React-cxxreact (= 0.64.1) 252 | - React-jsi (= 0.64.1) 253 | - React-perflogger (= 0.64.1) 254 | - React-jsinspector (0.64.1) 255 | - react-native-safe-area-context (3.2.0): 256 | - React-Core 257 | - React-perflogger (0.64.1) 258 | - React-RCTActionSheet (0.64.1): 259 | - React-Core/RCTActionSheetHeaders (= 0.64.1) 260 | - React-RCTAnimation (0.64.1): 261 | - FBReactNativeSpec (= 0.64.1) 262 | - RCT-Folly (= 2020.01.13.00) 263 | - RCTTypeSafety (= 0.64.1) 264 | - React-Core/RCTAnimationHeaders (= 0.64.1) 265 | - React-jsi (= 0.64.1) 266 | - ReactCommon/turbomodule/core (= 0.64.1) 267 | - React-RCTBlob (0.64.1): 268 | - FBReactNativeSpec (= 0.64.1) 269 | - RCT-Folly (= 2020.01.13.00) 270 | - React-Core/RCTBlobHeaders (= 0.64.1) 271 | - React-Core/RCTWebSocket (= 0.64.1) 272 | - React-jsi (= 0.64.1) 273 | - React-RCTNetwork (= 0.64.1) 274 | - ReactCommon/turbomodule/core (= 0.64.1) 275 | - React-RCTImage (0.64.1): 276 | - FBReactNativeSpec (= 0.64.1) 277 | - RCT-Folly (= 2020.01.13.00) 278 | - RCTTypeSafety (= 0.64.1) 279 | - React-Core/RCTImageHeaders (= 0.64.1) 280 | - React-jsi (= 0.64.1) 281 | - React-RCTNetwork (= 0.64.1) 282 | - ReactCommon/turbomodule/core (= 0.64.1) 283 | - React-RCTLinking (0.64.1): 284 | - FBReactNativeSpec (= 0.64.1) 285 | - React-Core/RCTLinkingHeaders (= 0.64.1) 286 | - React-jsi (= 0.64.1) 287 | - ReactCommon/turbomodule/core (= 0.64.1) 288 | - React-RCTNetwork (0.64.1): 289 | - FBReactNativeSpec (= 0.64.1) 290 | - RCT-Folly (= 2020.01.13.00) 291 | - RCTTypeSafety (= 0.64.1) 292 | - React-Core/RCTNetworkHeaders (= 0.64.1) 293 | - React-jsi (= 0.64.1) 294 | - ReactCommon/turbomodule/core (= 0.64.1) 295 | - React-RCTSettings (0.64.1): 296 | - FBReactNativeSpec (= 0.64.1) 297 | - RCT-Folly (= 2020.01.13.00) 298 | - RCTTypeSafety (= 0.64.1) 299 | - React-Core/RCTSettingsHeaders (= 0.64.1) 300 | - React-jsi (= 0.64.1) 301 | - ReactCommon/turbomodule/core (= 0.64.1) 302 | - React-RCTText (0.64.1): 303 | - React-Core/RCTTextHeaders (= 0.64.1) 304 | - React-RCTVibration (0.64.1): 305 | - FBReactNativeSpec (= 0.64.1) 306 | - RCT-Folly (= 2020.01.13.00) 307 | - React-Core/RCTVibrationHeaders (= 0.64.1) 308 | - React-jsi (= 0.64.1) 309 | - ReactCommon/turbomodule/core (= 0.64.1) 310 | - React-runtimeexecutor (0.64.1): 311 | - React-jsi (= 0.64.1) 312 | - ReactCommon/turbomodule/core (0.64.1): 313 | - DoubleConversion 314 | - glog 315 | - RCT-Folly (= 2020.01.13.00) 316 | - React-callinvoker (= 0.64.1) 317 | - React-Core (= 0.64.1) 318 | - React-cxxreact (= 0.64.1) 319 | - React-jsi (= 0.64.1) 320 | - React-perflogger (= 0.64.1) 321 | - RNCMaskedView (0.1.11): 322 | - React 323 | - RNGestureHandler (1.10.3): 324 | - React-Core 325 | - RNReanimated (2.2.0): 326 | - DoubleConversion 327 | - FBLazyVector 328 | - FBReactNativeSpec 329 | - glog 330 | - RCT-Folly 331 | - RCTRequired 332 | - RCTTypeSafety 333 | - React 334 | - React-callinvoker 335 | - React-Core 336 | - React-Core/DevSupport 337 | - React-Core/RCTWebSocket 338 | - React-CoreModules 339 | - React-cxxreact 340 | - React-jsi 341 | - React-jsiexecutor 342 | - React-jsinspector 343 | - React-RCTActionSheet 344 | - React-RCTAnimation 345 | - React-RCTBlob 346 | - React-RCTImage 347 | - React-RCTLinking 348 | - React-RCTNetwork 349 | - React-RCTSettings 350 | - React-RCTText 351 | - React-RCTVibration 352 | - ReactCommon/turbomodule/core 353 | - Yoga 354 | - RNScreens (3.4.0): 355 | - React-Core 356 | - React-RCTImage 357 | - Yoga (1.14.0) 358 | - YogaKit (1.18.1): 359 | - Yoga (~> 1.14) 360 | 361 | DEPENDENCIES: 362 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 363 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 364 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) 365 | - Flipper (~> 0.75.1) 366 | - Flipper-DoubleConversion (= 1.1.7) 367 | - Flipper-Folly (~> 2.5.3) 368 | - Flipper-Glog (= 0.3.6) 369 | - Flipper-PeerTalk (~> 0.0.4) 370 | - Flipper-RSocket (~> 1.3) 371 | - FlipperKit (~> 0.75.1) 372 | - FlipperKit/Core (~> 0.75.1) 373 | - FlipperKit/CppBridge (~> 0.75.1) 374 | - FlipperKit/FBCxxFollyDynamicConvert (~> 0.75.1) 375 | - FlipperKit/FBDefines (~> 0.75.1) 376 | - FlipperKit/FKPortForwarding (~> 0.75.1) 377 | - FlipperKit/FlipperKitHighlightOverlay (~> 0.75.1) 378 | - FlipperKit/FlipperKitLayoutPlugin (~> 0.75.1) 379 | - FlipperKit/FlipperKitLayoutTextSearchable (~> 0.75.1) 380 | - FlipperKit/FlipperKitNetworkPlugin (~> 0.75.1) 381 | - FlipperKit/FlipperKitReactPlugin (~> 0.75.1) 382 | - FlipperKit/FlipperKitUserDefaultsPlugin (~> 0.75.1) 383 | - FlipperKit/SKIOSNetworkPlugin (~> 0.75.1) 384 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 385 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) 386 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 387 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 388 | - React (from `../node_modules/react-native/`) 389 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 390 | - React-Core (from `../node_modules/react-native/`) 391 | - React-Core/DevSupport (from `../node_modules/react-native/`) 392 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 393 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 394 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 395 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 396 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 397 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 398 | - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) 399 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) 400 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 401 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 402 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 403 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 404 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 405 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 406 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 407 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 408 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 409 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) 410 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 411 | - "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)" 412 | - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) 413 | - RNReanimated (from `../node_modules/react-native-reanimated`) 414 | - RNScreens (from `../node_modules/react-native-screens`) 415 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 416 | 417 | SPEC REPOS: 418 | trunk: 419 | - boost-for-react-native 420 | - CocoaAsyncSocket 421 | - Flipper 422 | - Flipper-DoubleConversion 423 | - Flipper-Folly 424 | - Flipper-Glog 425 | - Flipper-PeerTalk 426 | - Flipper-RSocket 427 | - FlipperKit 428 | - libevent 429 | - OpenSSL-Universal 430 | - YogaKit 431 | 432 | EXTERNAL SOURCES: 433 | DoubleConversion: 434 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 435 | FBLazyVector: 436 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 437 | FBReactNativeSpec: 438 | :path: "../node_modules/react-native/React/FBReactNativeSpec" 439 | glog: 440 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 441 | RCT-Folly: 442 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" 443 | RCTRequired: 444 | :path: "../node_modules/react-native/Libraries/RCTRequired" 445 | RCTTypeSafety: 446 | :path: "../node_modules/react-native/Libraries/TypeSafety" 447 | React: 448 | :path: "../node_modules/react-native/" 449 | React-callinvoker: 450 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 451 | React-Core: 452 | :path: "../node_modules/react-native/" 453 | React-CoreModules: 454 | :path: "../node_modules/react-native/React/CoreModules" 455 | React-cxxreact: 456 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 457 | React-jsi: 458 | :path: "../node_modules/react-native/ReactCommon/jsi" 459 | React-jsiexecutor: 460 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 461 | React-jsinspector: 462 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 463 | react-native-safe-area-context: 464 | :path: "../node_modules/react-native-safe-area-context" 465 | React-perflogger: 466 | :path: "../node_modules/react-native/ReactCommon/reactperflogger" 467 | React-RCTActionSheet: 468 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 469 | React-RCTAnimation: 470 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 471 | React-RCTBlob: 472 | :path: "../node_modules/react-native/Libraries/Blob" 473 | React-RCTImage: 474 | :path: "../node_modules/react-native/Libraries/Image" 475 | React-RCTLinking: 476 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 477 | React-RCTNetwork: 478 | :path: "../node_modules/react-native/Libraries/Network" 479 | React-RCTSettings: 480 | :path: "../node_modules/react-native/Libraries/Settings" 481 | React-RCTText: 482 | :path: "../node_modules/react-native/Libraries/Text" 483 | React-RCTVibration: 484 | :path: "../node_modules/react-native/Libraries/Vibration" 485 | React-runtimeexecutor: 486 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" 487 | ReactCommon: 488 | :path: "../node_modules/react-native/ReactCommon" 489 | RNCMaskedView: 490 | :path: "../node_modules/@react-native-community/masked-view" 491 | RNGestureHandler: 492 | :path: "../node_modules/react-native-gesture-handler" 493 | RNReanimated: 494 | :path: "../node_modules/react-native-reanimated" 495 | RNScreens: 496 | :path: "../node_modules/react-native-screens" 497 | Yoga: 498 | :path: "../node_modules/react-native/ReactCommon/yoga" 499 | 500 | SPEC CHECKSUMS: 501 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 502 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 503 | DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de 504 | FBLazyVector: 7b423f9e248eae65987838148c36eec1dbfe0b53 505 | FBReactNativeSpec: 4dea62a096c5d239d85afe2556d2d252cfe44f89 506 | Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021 507 | Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41 508 | Flipper-Folly: 755929a4f851b2fb2c347d533a23f191b008554c 509 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6 510 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 511 | Flipper-RSocket: 127954abe8b162fcaf68d2134d34dc2bd7076154 512 | FlipperKit: 8a20b5c5fcf9436cac58551dc049867247f64b00 513 | glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62 514 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 515 | OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b 516 | RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c 517 | RCTRequired: ec2ebc96b7bfba3ca5c32740f5a0c6a014a274d2 518 | RCTTypeSafety: 22567f31e67c3e088c7ac23ea46ab6d4779c0ea5 519 | React: a241e3dbb1e91d06332f1dbd2b3ab26e1a4c4b9d 520 | React-callinvoker: da4d1c6141696a00163960906bc8a55b985e4ce4 521 | React-Core: 46ba164c437d7dac607b470c83c8308b05799748 522 | React-CoreModules: 217bd14904491c7b9940ff8b34a3fe08013c2f14 523 | React-cxxreact: 0090588ae6660c4615d3629fdd5c768d0983add4 524 | React-jsi: 5de8204706bd872b78ea646aee5d2561ca1214b6 525 | React-jsiexecutor: 124e8f99992490d0d13e0649d950d3e1aae06fe9 526 | React-jsinspector: 500a59626037be5b3b3d89c5151bc3baa9abf1a9 527 | react-native-safe-area-context: f0906bf8bc9835ac9a9d3f97e8bde2a997d8da79 528 | React-perflogger: aad6d4b4a267936b3667260d1f649b6f6069a675 529 | React-RCTActionSheet: fc376be462c9c8d6ad82c0905442fd77f82a9d2a 530 | React-RCTAnimation: ba0a1c3a2738be224a08092fa7f1b444ab77d309 531 | React-RCTBlob: f758d4403fc5828a326dc69e27b41e1a92f34947 532 | React-RCTImage: ce57088705f4a8d03f6594b066a59c29143ba73e 533 | React-RCTLinking: 852a3a95c65fa63f657a4b4e2d3d83a815e00a7c 534 | React-RCTNetwork: 9d7ccb8a08d522d71700b4fb677d9fa28cccd118 535 | React-RCTSettings: d8aaf4389ff06114dee8c42ef5f0f2915946011e 536 | React-RCTText: 809c12ed6b261796ba056c04fcd20d8b90bcc81d 537 | React-RCTVibration: 4b99a7f5c6c0abbc5256410cc5425fb8531986e1 538 | React-runtimeexecutor: ff951a0c241bfaefc4940a3f1f1a229e7cb32fa6 539 | ReactCommon: bedc99ed4dae329c4fcf128d0c31b9115e5365ca 540 | RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489 541 | RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211 542 | RNReanimated: 9c13c86454bfd54dab7505c1a054470bfecd2563 543 | RNScreens: 21b73c94c9117e1110a79ee0ee80c93ccefed8ce 544 | Yoga: a7de31c64fe738607e7a3803e3f591a4b1df7393 545 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a 546 | 547 | PODFILE CHECKSUM: b3006759cd6d7f9bc8d05be290e01abb08af6567 548 | 549 | COCOAPODS: 1.10.1 550 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuth.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* RNDeepLinkAuthTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* RNDeepLinkAuthTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 2708D84AED05DC31E57D7BD5 /* libPods-RNDeepLinkAuth-RNDeepLinkAuthTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2C52B32419970DCFB0EF160 /* libPods-RNDeepLinkAuth-RNDeepLinkAuthTests.a */; }; 15 | 3581035926B76AB000C611BB /* libReact-RCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3581035826B76AB000C611BB /* libReact-RCTLinking.a */; }; 16 | 7D5C936F0194C90F88E54738 /* libPods-RNDeepLinkAuth.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A51FB333A3EA5CE624F2EEC3 /* libPods-RNDeepLinkAuth.a */; }; 17 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 26 | remoteInfo = RNDeepLinkAuth; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 00E356EE1AD99517003FC87E /* RNDeepLinkAuthTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNDeepLinkAuthTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 33 | 00E356F21AD99517003FC87E /* RNDeepLinkAuthTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNDeepLinkAuthTests.m; sourceTree = ""; }; 34 | 13B07F961A680F5B00A75B9A /* RNDeepLinkAuth.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RNDeepLinkAuth.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = RNDeepLinkAuth/AppDelegate.h; sourceTree = ""; }; 36 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = RNDeepLinkAuth/AppDelegate.m; sourceTree = ""; }; 37 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = RNDeepLinkAuth/Images.xcassets; sourceTree = ""; }; 38 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = RNDeepLinkAuth/Info.plist; sourceTree = ""; }; 39 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = RNDeepLinkAuth/main.m; sourceTree = ""; }; 40 | 3581035826B76AB000C611BB /* libReact-RCTLinking.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = "libReact-RCTLinking.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 49541B5973E20A05D1916457 /* Pods-RNDeepLinkAuth.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNDeepLinkAuth.release.xcconfig"; path = "Target Support Files/Pods-RNDeepLinkAuth/Pods-RNDeepLinkAuth.release.xcconfig"; sourceTree = ""; }; 42 | 657320BADC5A9A6BA19D4DB5 /* Pods-RNDeepLinkAuth-RNDeepLinkAuthTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNDeepLinkAuth-RNDeepLinkAuthTests.release.xcconfig"; path = "Target Support Files/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests.release.xcconfig"; sourceTree = ""; }; 43 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = RNDeepLinkAuth/LaunchScreen.storyboard; sourceTree = ""; }; 44 | A51FB333A3EA5CE624F2EEC3 /* libPods-RNDeepLinkAuth.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNDeepLinkAuth.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | B2C52B32419970DCFB0EF160 /* libPods-RNDeepLinkAuth-RNDeepLinkAuthTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNDeepLinkAuth-RNDeepLinkAuthTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | D89CEDEA58B59F43E42E77F6 /* Pods-RNDeepLinkAuth.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNDeepLinkAuth.debug.xcconfig"; path = "Target Support Files/Pods-RNDeepLinkAuth/Pods-RNDeepLinkAuth.debug.xcconfig"; sourceTree = ""; }; 47 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 48 | F449B8AB445A6DC8D28B5803 /* Pods-RNDeepLinkAuth-RNDeepLinkAuthTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNDeepLinkAuth-RNDeepLinkAuthTests.debug.xcconfig"; path = "Target Support Files/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests.debug.xcconfig"; sourceTree = ""; }; 49 | /* End PBXFileReference section */ 50 | 51 | /* Begin PBXFrameworksBuildPhase section */ 52 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 53 | isa = PBXFrameworksBuildPhase; 54 | buildActionMask = 2147483647; 55 | files = ( 56 | 2708D84AED05DC31E57D7BD5 /* libPods-RNDeepLinkAuth-RNDeepLinkAuthTests.a in Frameworks */, 57 | ); 58 | runOnlyForDeploymentPostprocessing = 0; 59 | }; 60 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 61 | isa = PBXFrameworksBuildPhase; 62 | buildActionMask = 2147483647; 63 | files = ( 64 | 3581035926B76AB000C611BB /* libReact-RCTLinking.a in Frameworks */, 65 | 7D5C936F0194C90F88E54738 /* libPods-RNDeepLinkAuth.a in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 00E356EF1AD99517003FC87E /* RNDeepLinkAuthTests */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 00E356F21AD99517003FC87E /* RNDeepLinkAuthTests.m */, 76 | 00E356F01AD99517003FC87E /* Supporting Files */, 77 | ); 78 | path = RNDeepLinkAuthTests; 79 | sourceTree = ""; 80 | }; 81 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 00E356F11AD99517003FC87E /* Info.plist */, 85 | ); 86 | name = "Supporting Files"; 87 | sourceTree = ""; 88 | }; 89 | 05628AAE6341804D266F7B45 /* Pods */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | D89CEDEA58B59F43E42E77F6 /* Pods-RNDeepLinkAuth.debug.xcconfig */, 93 | 49541B5973E20A05D1916457 /* Pods-RNDeepLinkAuth.release.xcconfig */, 94 | F449B8AB445A6DC8D28B5803 /* Pods-RNDeepLinkAuth-RNDeepLinkAuthTests.debug.xcconfig */, 95 | 657320BADC5A9A6BA19D4DB5 /* Pods-RNDeepLinkAuth-RNDeepLinkAuthTests.release.xcconfig */, 96 | ); 97 | path = Pods; 98 | sourceTree = ""; 99 | }; 100 | 13B07FAE1A68108700A75B9A /* RNDeepLinkAuth */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 104 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 105 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 106 | 13B07FB61A68108700A75B9A /* Info.plist */, 107 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 108 | 13B07FB71A68108700A75B9A /* main.m */, 109 | ); 110 | name = RNDeepLinkAuth; 111 | sourceTree = ""; 112 | }; 113 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 117 | 3581035826B76AB000C611BB /* libReact-RCTLinking.a */, 118 | A51FB333A3EA5CE624F2EEC3 /* libPods-RNDeepLinkAuth.a */, 119 | B2C52B32419970DCFB0EF160 /* libPods-RNDeepLinkAuth-RNDeepLinkAuthTests.a */, 120 | ); 121 | name = Frameworks; 122 | sourceTree = ""; 123 | }; 124 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | ); 128 | name = Libraries; 129 | sourceTree = ""; 130 | }; 131 | 83CBB9F61A601CBA00E9B192 = { 132 | isa = PBXGroup; 133 | children = ( 134 | 13B07FAE1A68108700A75B9A /* RNDeepLinkAuth */, 135 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 136 | 00E356EF1AD99517003FC87E /* RNDeepLinkAuthTests */, 137 | 83CBBA001A601CBA00E9B192 /* Products */, 138 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 139 | 05628AAE6341804D266F7B45 /* Pods */, 140 | ); 141 | indentWidth = 2; 142 | sourceTree = ""; 143 | tabWidth = 2; 144 | usesTabs = 0; 145 | }; 146 | 83CBBA001A601CBA00E9B192 /* Products */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 13B07F961A680F5B00A75B9A /* RNDeepLinkAuth.app */, 150 | 00E356EE1AD99517003FC87E /* RNDeepLinkAuthTests.xctest */, 151 | ); 152 | name = Products; 153 | sourceTree = ""; 154 | }; 155 | /* End PBXGroup section */ 156 | 157 | /* Begin PBXNativeTarget section */ 158 | 00E356ED1AD99517003FC87E /* RNDeepLinkAuthTests */ = { 159 | isa = PBXNativeTarget; 160 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "RNDeepLinkAuthTests" */; 161 | buildPhases = ( 162 | B238260EA9798015DDDB64FD /* [CP] Check Pods Manifest.lock */, 163 | 00E356EA1AD99517003FC87E /* Sources */, 164 | 00E356EB1AD99517003FC87E /* Frameworks */, 165 | 00E356EC1AD99517003FC87E /* Resources */, 166 | 438B5DF4334EA211BB5C36D6 /* [CP] Embed Pods Frameworks */, 167 | 87B2ED3DADDB6280AFF889CE /* [CP] Copy Pods Resources */, 168 | ); 169 | buildRules = ( 170 | ); 171 | dependencies = ( 172 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 173 | ); 174 | name = RNDeepLinkAuthTests; 175 | productName = RNDeepLinkAuthTests; 176 | productReference = 00E356EE1AD99517003FC87E /* RNDeepLinkAuthTests.xctest */; 177 | productType = "com.apple.product-type.bundle.unit-test"; 178 | }; 179 | 13B07F861A680F5B00A75B9A /* RNDeepLinkAuth */ = { 180 | isa = PBXNativeTarget; 181 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNDeepLinkAuth" */; 182 | buildPhases = ( 183 | 9C08F1845B2B1160F32DB1E8 /* [CP] Check Pods Manifest.lock */, 184 | FD10A7F022414F080027D42C /* Start Packager */, 185 | 13B07F871A680F5B00A75B9A /* Sources */, 186 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 187 | 13B07F8E1A680F5B00A75B9A /* Resources */, 188 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 189 | 1CBEA6BE31DD5723FEAE5907 /* [CP] Embed Pods Frameworks */, 190 | 37D8B95452BEEA9F885BDDC4 /* [CP] Copy Pods Resources */, 191 | ); 192 | buildRules = ( 193 | ); 194 | dependencies = ( 195 | ); 196 | name = RNDeepLinkAuth; 197 | productName = RNDeepLinkAuth; 198 | productReference = 13B07F961A680F5B00A75B9A /* RNDeepLinkAuth.app */; 199 | productType = "com.apple.product-type.application"; 200 | }; 201 | /* End PBXNativeTarget section */ 202 | 203 | /* Begin PBXProject section */ 204 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 205 | isa = PBXProject; 206 | attributes = { 207 | LastUpgradeCheck = 1210; 208 | TargetAttributes = { 209 | 00E356ED1AD99517003FC87E = { 210 | CreatedOnToolsVersion = 6.2; 211 | TestTargetID = 13B07F861A680F5B00A75B9A; 212 | }; 213 | 13B07F861A680F5B00A75B9A = { 214 | LastSwiftMigration = 1120; 215 | }; 216 | }; 217 | }; 218 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNDeepLinkAuth" */; 219 | compatibilityVersion = "Xcode 12.0"; 220 | developmentRegion = en; 221 | hasScannedForEncodings = 0; 222 | knownRegions = ( 223 | en, 224 | Base, 225 | ); 226 | mainGroup = 83CBB9F61A601CBA00E9B192; 227 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 228 | projectDirPath = ""; 229 | projectRoot = ""; 230 | targets = ( 231 | 13B07F861A680F5B00A75B9A /* RNDeepLinkAuth */, 232 | 00E356ED1AD99517003FC87E /* RNDeepLinkAuthTests */, 233 | ); 234 | }; 235 | /* End PBXProject section */ 236 | 237 | /* Begin PBXResourcesBuildPhase section */ 238 | 00E356EC1AD99517003FC87E /* Resources */ = { 239 | isa = PBXResourcesBuildPhase; 240 | buildActionMask = 2147483647; 241 | files = ( 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | }; 245 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 250 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | /* End PBXResourcesBuildPhase section */ 255 | 256 | /* Begin PBXShellScriptBuildPhase section */ 257 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 258 | isa = PBXShellScriptBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | inputPaths = ( 263 | ); 264 | name = "Bundle React Native code and images"; 265 | outputPaths = ( 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | shellPath = /bin/sh; 269 | shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; 270 | }; 271 | 1CBEA6BE31DD5723FEAE5907 /* [CP] Embed Pods Frameworks */ = { 272 | isa = PBXShellScriptBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | ); 276 | inputFileListPaths = ( 277 | "${PODS_ROOT}/Target Support Files/Pods-RNDeepLinkAuth/Pods-RNDeepLinkAuth-frameworks-${CONFIGURATION}-input-files.xcfilelist", 278 | ); 279 | name = "[CP] Embed Pods Frameworks"; 280 | outputFileListPaths = ( 281 | "${PODS_ROOT}/Target Support Files/Pods-RNDeepLinkAuth/Pods-RNDeepLinkAuth-frameworks-${CONFIGURATION}-output-files.xcfilelist", 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | shellPath = /bin/sh; 285 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNDeepLinkAuth/Pods-RNDeepLinkAuth-frameworks.sh\"\n"; 286 | showEnvVarsInLog = 0; 287 | }; 288 | 37D8B95452BEEA9F885BDDC4 /* [CP] Copy Pods Resources */ = { 289 | isa = PBXShellScriptBuildPhase; 290 | buildActionMask = 2147483647; 291 | files = ( 292 | ); 293 | inputFileListPaths = ( 294 | "${PODS_ROOT}/Target Support Files/Pods-RNDeepLinkAuth/Pods-RNDeepLinkAuth-resources-${CONFIGURATION}-input-files.xcfilelist", 295 | ); 296 | name = "[CP] Copy Pods Resources"; 297 | outputFileListPaths = ( 298 | "${PODS_ROOT}/Target Support Files/Pods-RNDeepLinkAuth/Pods-RNDeepLinkAuth-resources-${CONFIGURATION}-output-files.xcfilelist", 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | shellPath = /bin/sh; 302 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNDeepLinkAuth/Pods-RNDeepLinkAuth-resources.sh\"\n"; 303 | showEnvVarsInLog = 0; 304 | }; 305 | 438B5DF4334EA211BB5C36D6 /* [CP] Embed Pods Frameworks */ = { 306 | isa = PBXShellScriptBuildPhase; 307 | buildActionMask = 2147483647; 308 | files = ( 309 | ); 310 | inputFileListPaths = ( 311 | "${PODS_ROOT}/Target Support Files/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", 312 | ); 313 | name = "[CP] Embed Pods Frameworks"; 314 | outputFileListPaths = ( 315 | "${PODS_ROOT}/Target Support Files/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", 316 | ); 317 | runOnlyForDeploymentPostprocessing = 0; 318 | shellPath = /bin/sh; 319 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests-frameworks.sh\"\n"; 320 | showEnvVarsInLog = 0; 321 | }; 322 | 87B2ED3DADDB6280AFF889CE /* [CP] Copy Pods Resources */ = { 323 | isa = PBXShellScriptBuildPhase; 324 | buildActionMask = 2147483647; 325 | files = ( 326 | ); 327 | inputFileListPaths = ( 328 | "${PODS_ROOT}/Target Support Files/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests-resources-${CONFIGURATION}-input-files.xcfilelist", 329 | ); 330 | name = "[CP] Copy Pods Resources"; 331 | outputFileListPaths = ( 332 | "${PODS_ROOT}/Target Support Files/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests-resources-${CONFIGURATION}-output-files.xcfilelist", 333 | ); 334 | runOnlyForDeploymentPostprocessing = 0; 335 | shellPath = /bin/sh; 336 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests-resources.sh\"\n"; 337 | showEnvVarsInLog = 0; 338 | }; 339 | 9C08F1845B2B1160F32DB1E8 /* [CP] Check Pods Manifest.lock */ = { 340 | isa = PBXShellScriptBuildPhase; 341 | buildActionMask = 2147483647; 342 | files = ( 343 | ); 344 | inputFileListPaths = ( 345 | ); 346 | inputPaths = ( 347 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 348 | "${PODS_ROOT}/Manifest.lock", 349 | ); 350 | name = "[CP] Check Pods Manifest.lock"; 351 | outputFileListPaths = ( 352 | ); 353 | outputPaths = ( 354 | "$(DERIVED_FILE_DIR)/Pods-RNDeepLinkAuth-checkManifestLockResult.txt", 355 | ); 356 | runOnlyForDeploymentPostprocessing = 0; 357 | shellPath = /bin/sh; 358 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 359 | showEnvVarsInLog = 0; 360 | }; 361 | B238260EA9798015DDDB64FD /* [CP] Check Pods Manifest.lock */ = { 362 | isa = PBXShellScriptBuildPhase; 363 | buildActionMask = 2147483647; 364 | files = ( 365 | ); 366 | inputFileListPaths = ( 367 | ); 368 | inputPaths = ( 369 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 370 | "${PODS_ROOT}/Manifest.lock", 371 | ); 372 | name = "[CP] Check Pods Manifest.lock"; 373 | outputFileListPaths = ( 374 | ); 375 | outputPaths = ( 376 | "$(DERIVED_FILE_DIR)/Pods-RNDeepLinkAuth-RNDeepLinkAuthTests-checkManifestLockResult.txt", 377 | ); 378 | runOnlyForDeploymentPostprocessing = 0; 379 | shellPath = /bin/sh; 380 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 381 | showEnvVarsInLog = 0; 382 | }; 383 | FD10A7F022414F080027D42C /* Start Packager */ = { 384 | isa = PBXShellScriptBuildPhase; 385 | buildActionMask = 2147483647; 386 | files = ( 387 | ); 388 | inputFileListPaths = ( 389 | ); 390 | inputPaths = ( 391 | ); 392 | name = "Start Packager"; 393 | outputFileListPaths = ( 394 | ); 395 | outputPaths = ( 396 | ); 397 | runOnlyForDeploymentPostprocessing = 0; 398 | shellPath = /bin/sh; 399 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 400 | showEnvVarsInLog = 0; 401 | }; 402 | /* End PBXShellScriptBuildPhase section */ 403 | 404 | /* Begin PBXSourcesBuildPhase section */ 405 | 00E356EA1AD99517003FC87E /* Sources */ = { 406 | isa = PBXSourcesBuildPhase; 407 | buildActionMask = 2147483647; 408 | files = ( 409 | 00E356F31AD99517003FC87E /* RNDeepLinkAuthTests.m in Sources */, 410 | ); 411 | runOnlyForDeploymentPostprocessing = 0; 412 | }; 413 | 13B07F871A680F5B00A75B9A /* Sources */ = { 414 | isa = PBXSourcesBuildPhase; 415 | buildActionMask = 2147483647; 416 | files = ( 417 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 418 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 419 | ); 420 | runOnlyForDeploymentPostprocessing = 0; 421 | }; 422 | /* End PBXSourcesBuildPhase section */ 423 | 424 | /* Begin PBXTargetDependency section */ 425 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 426 | isa = PBXTargetDependency; 427 | target = 13B07F861A680F5B00A75B9A /* RNDeepLinkAuth */; 428 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 429 | }; 430 | /* End PBXTargetDependency section */ 431 | 432 | /* Begin XCBuildConfiguration section */ 433 | 00E356F61AD99517003FC87E /* Debug */ = { 434 | isa = XCBuildConfiguration; 435 | baseConfigurationReference = F449B8AB445A6DC8D28B5803 /* Pods-RNDeepLinkAuth-RNDeepLinkAuthTests.debug.xcconfig */; 436 | buildSettings = { 437 | BUNDLE_LOADER = "$(TEST_HOST)"; 438 | GCC_PREPROCESSOR_DEFINITIONS = ( 439 | "DEBUG=1", 440 | "$(inherited)", 441 | ); 442 | INFOPLIST_FILE = RNDeepLinkAuthTests/Info.plist; 443 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 444 | LD_RUNPATH_SEARCH_PATHS = ( 445 | "$(inherited)", 446 | "@executable_path/Frameworks", 447 | "@loader_path/Frameworks", 448 | ); 449 | OTHER_LDFLAGS = ( 450 | "-ObjC", 451 | "-lc++", 452 | "$(inherited)", 453 | ); 454 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 455 | PRODUCT_NAME = "$(TARGET_NAME)"; 456 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNDeepLinkAuth.app/RNDeepLinkAuth"; 457 | }; 458 | name = Debug; 459 | }; 460 | 00E356F71AD99517003FC87E /* Release */ = { 461 | isa = XCBuildConfiguration; 462 | baseConfigurationReference = 657320BADC5A9A6BA19D4DB5 /* Pods-RNDeepLinkAuth-RNDeepLinkAuthTests.release.xcconfig */; 463 | buildSettings = { 464 | BUNDLE_LOADER = "$(TEST_HOST)"; 465 | COPY_PHASE_STRIP = NO; 466 | INFOPLIST_FILE = RNDeepLinkAuthTests/Info.plist; 467 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 468 | LD_RUNPATH_SEARCH_PATHS = ( 469 | "$(inherited)", 470 | "@executable_path/Frameworks", 471 | "@loader_path/Frameworks", 472 | ); 473 | OTHER_LDFLAGS = ( 474 | "-ObjC", 475 | "-lc++", 476 | "$(inherited)", 477 | ); 478 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 479 | PRODUCT_NAME = "$(TARGET_NAME)"; 480 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNDeepLinkAuth.app/RNDeepLinkAuth"; 481 | }; 482 | name = Release; 483 | }; 484 | 13B07F941A680F5B00A75B9A /* Debug */ = { 485 | isa = XCBuildConfiguration; 486 | baseConfigurationReference = D89CEDEA58B59F43E42E77F6 /* Pods-RNDeepLinkAuth.debug.xcconfig */; 487 | buildSettings = { 488 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 489 | CLANG_ENABLE_MODULES = YES; 490 | CURRENT_PROJECT_VERSION = 1; 491 | ENABLE_BITCODE = NO; 492 | INFOPLIST_FILE = RNDeepLinkAuth/Info.plist; 493 | LD_RUNPATH_SEARCH_PATHS = ( 494 | "$(inherited)", 495 | "@executable_path/Frameworks", 496 | ); 497 | OTHER_LDFLAGS = ( 498 | "$(inherited)", 499 | "-ObjC", 500 | "-lc++", 501 | ); 502 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 503 | PRODUCT_NAME = RNDeepLinkAuth; 504 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 505 | SWIFT_VERSION = 5.0; 506 | VERSIONING_SYSTEM = "apple-generic"; 507 | }; 508 | name = Debug; 509 | }; 510 | 13B07F951A680F5B00A75B9A /* Release */ = { 511 | isa = XCBuildConfiguration; 512 | baseConfigurationReference = 49541B5973E20A05D1916457 /* Pods-RNDeepLinkAuth.release.xcconfig */; 513 | buildSettings = { 514 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 515 | CLANG_ENABLE_MODULES = YES; 516 | CURRENT_PROJECT_VERSION = 1; 517 | INFOPLIST_FILE = RNDeepLinkAuth/Info.plist; 518 | LD_RUNPATH_SEARCH_PATHS = ( 519 | "$(inherited)", 520 | "@executable_path/Frameworks", 521 | ); 522 | OTHER_LDFLAGS = ( 523 | "$(inherited)", 524 | "-ObjC", 525 | "-lc++", 526 | ); 527 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 528 | PRODUCT_NAME = RNDeepLinkAuth; 529 | SWIFT_VERSION = 5.0; 530 | VERSIONING_SYSTEM = "apple-generic"; 531 | }; 532 | name = Release; 533 | }; 534 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 535 | isa = XCBuildConfiguration; 536 | buildSettings = { 537 | ALWAYS_SEARCH_USER_PATHS = NO; 538 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 539 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 540 | CLANG_CXX_LIBRARY = "libc++"; 541 | CLANG_ENABLE_MODULES = YES; 542 | CLANG_ENABLE_OBJC_ARC = YES; 543 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 544 | CLANG_WARN_BOOL_CONVERSION = YES; 545 | CLANG_WARN_COMMA = YES; 546 | CLANG_WARN_CONSTANT_CONVERSION = YES; 547 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 548 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 549 | CLANG_WARN_EMPTY_BODY = YES; 550 | CLANG_WARN_ENUM_CONVERSION = YES; 551 | CLANG_WARN_INFINITE_RECURSION = YES; 552 | CLANG_WARN_INT_CONVERSION = YES; 553 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 554 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 555 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 556 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 557 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 558 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 559 | CLANG_WARN_STRICT_PROTOTYPES = YES; 560 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 561 | CLANG_WARN_UNREACHABLE_CODE = YES; 562 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 563 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 564 | COPY_PHASE_STRIP = NO; 565 | ENABLE_STRICT_OBJC_MSGSEND = YES; 566 | ENABLE_TESTABILITY = YES; 567 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 568 | GCC_C_LANGUAGE_STANDARD = gnu99; 569 | GCC_DYNAMIC_NO_PIC = NO; 570 | GCC_NO_COMMON_BLOCKS = YES; 571 | GCC_OPTIMIZATION_LEVEL = 0; 572 | GCC_PREPROCESSOR_DEFINITIONS = ( 573 | "DEBUG=1", 574 | "$(inherited)", 575 | ); 576 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 577 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 578 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 579 | GCC_WARN_UNDECLARED_SELECTOR = YES; 580 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 581 | GCC_WARN_UNUSED_FUNCTION = YES; 582 | GCC_WARN_UNUSED_VARIABLE = YES; 583 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 584 | LD_RUNPATH_SEARCH_PATHS = ( 585 | /usr/lib/swift, 586 | "$(inherited)", 587 | ); 588 | LIBRARY_SEARCH_PATHS = ( 589 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 590 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 591 | "\"$(inherited)\"", 592 | ); 593 | MTL_ENABLE_DEBUG_INFO = YES; 594 | ONLY_ACTIVE_ARCH = YES; 595 | SDKROOT = iphoneos; 596 | }; 597 | name = Debug; 598 | }; 599 | 83CBBA211A601CBA00E9B192 /* Release */ = { 600 | isa = XCBuildConfiguration; 601 | buildSettings = { 602 | ALWAYS_SEARCH_USER_PATHS = NO; 603 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 604 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 605 | CLANG_CXX_LIBRARY = "libc++"; 606 | CLANG_ENABLE_MODULES = YES; 607 | CLANG_ENABLE_OBJC_ARC = YES; 608 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 609 | CLANG_WARN_BOOL_CONVERSION = YES; 610 | CLANG_WARN_COMMA = YES; 611 | CLANG_WARN_CONSTANT_CONVERSION = YES; 612 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 613 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 614 | CLANG_WARN_EMPTY_BODY = YES; 615 | CLANG_WARN_ENUM_CONVERSION = YES; 616 | CLANG_WARN_INFINITE_RECURSION = YES; 617 | CLANG_WARN_INT_CONVERSION = YES; 618 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 619 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 620 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 621 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 622 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 623 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 624 | CLANG_WARN_STRICT_PROTOTYPES = YES; 625 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 626 | CLANG_WARN_UNREACHABLE_CODE = YES; 627 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 628 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 629 | COPY_PHASE_STRIP = YES; 630 | ENABLE_NS_ASSERTIONS = NO; 631 | ENABLE_STRICT_OBJC_MSGSEND = YES; 632 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 633 | GCC_C_LANGUAGE_STANDARD = gnu99; 634 | GCC_NO_COMMON_BLOCKS = YES; 635 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 636 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 637 | GCC_WARN_UNDECLARED_SELECTOR = YES; 638 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 639 | GCC_WARN_UNUSED_FUNCTION = YES; 640 | GCC_WARN_UNUSED_VARIABLE = YES; 641 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 642 | LD_RUNPATH_SEARCH_PATHS = ( 643 | /usr/lib/swift, 644 | "$(inherited)", 645 | ); 646 | LIBRARY_SEARCH_PATHS = ( 647 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 648 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 649 | "\"$(inherited)\"", 650 | ); 651 | MTL_ENABLE_DEBUG_INFO = NO; 652 | SDKROOT = iphoneos; 653 | VALIDATE_PRODUCT = YES; 654 | }; 655 | name = Release; 656 | }; 657 | /* End XCBuildConfiguration section */ 658 | 659 | /* Begin XCConfigurationList section */ 660 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "RNDeepLinkAuthTests" */ = { 661 | isa = XCConfigurationList; 662 | buildConfigurations = ( 663 | 00E356F61AD99517003FC87E /* Debug */, 664 | 00E356F71AD99517003FC87E /* Release */, 665 | ); 666 | defaultConfigurationIsVisible = 0; 667 | defaultConfigurationName = Release; 668 | }; 669 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNDeepLinkAuth" */ = { 670 | isa = XCConfigurationList; 671 | buildConfigurations = ( 672 | 13B07F941A680F5B00A75B9A /* Debug */, 673 | 13B07F951A680F5B00A75B9A /* Release */, 674 | ); 675 | defaultConfigurationIsVisible = 0; 676 | defaultConfigurationName = Release; 677 | }; 678 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNDeepLinkAuth" */ = { 679 | isa = XCConfigurationList; 680 | buildConfigurations = ( 681 | 83CBBA201A601CBA00E9B192 /* Debug */, 682 | 83CBBA211A601CBA00E9B192 /* Release */, 683 | ); 684 | defaultConfigurationIsVisible = 0; 685 | defaultConfigurationName = Release; 686 | }; 687 | /* End XCConfigurationList section */ 688 | }; 689 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 690 | } 691 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuth.xcodeproj/xcshareddata/xcschemes/RNDeepLinkAuth.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuth.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuth.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuth/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuth/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | #import 7 | 8 | #ifdef FB_SONARKIT_ENABLED 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | #import 15 | 16 | static void InitializeFlipper(UIApplication *application) { 17 | FlipperClient *client = [FlipperClient sharedClient]; 18 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 19 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 20 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 21 | [client addPlugin:[FlipperKitReactPlugin new]]; 22 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 23 | [client start]; 24 | } 25 | #endif 26 | 27 | @implementation AppDelegate 28 | 29 | - (BOOL)application:(UIApplication *)application 30 | openURL:(NSURL *)url 31 | options:(NSDictionary *)options 32 | { 33 | return [RCTLinkingManager application:application openURL:url options:options]; 34 | } 35 | 36 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 37 | { 38 | #ifdef FB_SONARKIT_ENABLED 39 | InitializeFlipper(application); 40 | #endif 41 | 42 | // Parse initialURL - copied from RCTLinkingManager getInitialURL 43 | NSURL *initialURL = nil; 44 | if (launchOptions[UIApplicationLaunchOptionsURLKey]) { 45 | initialURL = launchOptions[UIApplicationLaunchOptionsURLKey]; 46 | } else { 47 | NSDictionary *userActivityDictionary = launchOptions[UIApplicationLaunchOptionsUserActivityDictionaryKey]; 48 | if ([userActivityDictionary[UIApplicationLaunchOptionsUserActivityTypeKey] isEqual:NSUserActivityTypeBrowsingWeb]) { 49 | initialURL = ((NSUserActivity *)userActivityDictionary[@"UIApplicationLaunchOptionsUserActivityKey"]).webpageURL; 50 | } 51 | } 52 | 53 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 54 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 55 | moduleName:@"RNDeepLinkAuth" 56 | initialProperties:@{@"initialURL" : initialURL ? initialURL.absoluteString : @""}]; 57 | 58 | if (@available(iOS 13.0, *)) { 59 | rootView.backgroundColor = [UIColor systemBackgroundColor]; 60 | } else { 61 | rootView.backgroundColor = [UIColor whiteColor]; 62 | } 63 | 64 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 65 | UIViewController *rootViewController = [UIViewController new]; 66 | rootViewController.view = rootView; 67 | self.window.rootViewController = rootViewController; 68 | [self.window makeKeyAndVisible]; 69 | return YES; 70 | } 71 | 72 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 73 | { 74 | #if DEBUG 75 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 76 | #else 77 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 78 | #endif 79 | } 80 | 81 | @end 82 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuth/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "scale" : "1x", 46 | "size" : "1024x1024" 47 | } 48 | ], 49 | "info" : { 50 | "author" : "xcode", 51 | "version" : 1 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuth/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuth/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | RNDeepLinkAuth 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleURLTypes 24 | 25 | 26 | CFBundleTypeRole 27 | Editor 28 | CFBundleURLName 29 | RNDeepLinkAuth 30 | CFBundleURLSchemes 31 | 32 | RNDeepLinkAuth 33 | 34 | 35 | 36 | CFBundleVersion 37 | 1 38 | LSRequiresIPhoneOS 39 | 40 | NSAppTransportSecurity 41 | 42 | NSExceptionDomains 43 | 44 | localhost 45 | 46 | NSExceptionAllowsInsecureHTTPLoads 47 | 48 | 49 | 50 | 51 | NSLocationWhenInUseUsageDescription 52 | 53 | UILaunchStoryboardName 54 | LaunchScreen 55 | UIRequiredDeviceCapabilities 56 | 57 | armv7 58 | 59 | UISupportedInterfaceOrientations 60 | 61 | UIInterfaceOrientationPortrait 62 | UIInterfaceOrientationLandscapeLeft 63 | UIInterfaceOrientationLandscapeRight 64 | 65 | UIViewControllerBasedStatusBarAppearance 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuth/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuth/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuthTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/RNDeepLinkAuthTests/RNDeepLinkAuthTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | #import 6 | 7 | #define TIMEOUT_SECONDS 600 8 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 9 | 10 | @interface RNDeepLinkAuthTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation RNDeepLinkAuthTests 15 | 16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 17 | { 18 | if (test(view)) { 19 | return YES; 20 | } 21 | for (UIView *subview in [view subviews]) { 22 | if ([self findSubviewInView:subview matching:test]) { 23 | return YES; 24 | } 25 | } 26 | return NO; 27 | } 28 | 29 | - (void)testRendersWelcomeScreen 30 | { 31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 33 | BOOL foundElement = NO; 34 | 35 | __block NSString *redboxError = nil; 36 | #ifdef DEBUG 37 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 38 | if (level >= RCTLogLevelError) { 39 | redboxError = message; 40 | } 41 | }); 42 | #endif 43 | 44 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 45 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 46 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 47 | 48 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 49 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 50 | return YES; 51 | } 52 | return NO; 53 | }]; 54 | } 55 | 56 | #ifdef DEBUG 57 | RCTSetLogFunction(RCTDefaultLogFunction); 58 | #endif 59 | 60 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 61 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 62 | } 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: true, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rndeeplinkauth", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint . --ext .js,.jsx,.ts,.tsx", 11 | "triggerprofiledeeplink:ios": "xcrun simctl openurl booted RNDeepLinkAuth://profile", 12 | "triggersignupdeeplink:ios": "xcrun simctl openurl booted RNDeepLinkAuth://signup" 13 | }, 14 | "dependencies": { 15 | "@react-native-community/masked-view": "^0.1.11", 16 | "@react-navigation/native": "^6.0.0", 17 | "@react-navigation/stack": "^6.0.0", 18 | "react": "17.0.1", 19 | "react-native": "0.64.1", 20 | "react-native-gesture-handler": "^1.10.3", 21 | "react-native-reanimated": "^2.2.0", 22 | "react-native-safe-area-context": "^3.2.0", 23 | "react-native-screens": "^3.4.0" 24 | }, 25 | "devDependencies": { 26 | "@babel/core": "^7.12.9", 27 | "@babel/runtime": "^7.12.5", 28 | "@react-native-community/eslint-config": "^2.0.0", 29 | "@types/jest": "^26.0.23", 30 | "@types/react-native": "^0.64.5", 31 | "@types/react-test-renderer": "^16.9.2", 32 | "babel-jest": "^26.6.3", 33 | "eslint": "^7.14.0", 34 | "jest": "^26.6.3", 35 | "metro-react-native-babel-preset": "^0.64.0", 36 | "react-test-renderer": "17.0.1", 37 | "typescript": "^3.8.3" 38 | }, 39 | "resolutions": { 40 | "@types/react": "^17" 41 | }, 42 | "jest": { 43 | "preset": "react-native", 44 | "moduleFileExtensions": [ 45 | "ts", 46 | "tsx", 47 | "js", 48 | "jsx", 49 | "json", 50 | "node" 51 | ] 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/components/AuthenticationContext.tsx: -------------------------------------------------------------------------------- 1 | import React, { createContext, useState, FunctionComponent } from 'react'; 2 | 3 | export interface IAuthenticationContext { 4 | isAuthenticated: boolean; 5 | setIsAuthenticated: (isAuthenticated: boolean) => void; 6 | } 7 | 8 | export const AuthenticationContext = createContext({ 9 | isAuthenticated: false, 10 | setIsAuthenticated: () => {}, 11 | }); 12 | 13 | export const AuthenticationProvider: FunctionComponent = ({ 14 | children, 15 | }) => { 16 | const [isAuthenticated, setIsAuthenticated] = useState(false); 17 | 18 | return ( 19 | 24 | {children} 25 | 26 | ); 27 | }; 28 | -------------------------------------------------------------------------------- /src/components/CenteredView.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from 'react'; 2 | import { View, StyleSheet, ViewProps, ColorValue } from 'react-native'; 3 | 4 | interface IViewProps extends ViewProps { 5 | backgroundColor?: ColorValue; 6 | } 7 | 8 | export const CenteredView: FunctionComponent = ({ 9 | children, 10 | backgroundColor, 11 | ...viewProps 12 | }) => { 13 | return ( 14 | 15 | {children} 16 | 17 | ); 18 | }; 19 | 20 | const styles = StyleSheet.create({ 21 | view: { 22 | flex: 1, 23 | justifyContent: 'center', 24 | alignItems: 'center', 25 | }, 26 | }); 27 | -------------------------------------------------------------------------------- /src/components/DeepLinkProvider.tsx: -------------------------------------------------------------------------------- 1 | import React, { 2 | useState, 3 | createContext, 4 | FunctionComponent, 5 | useCallback, 6 | } from 'react'; 7 | 8 | import { DeepLinkEnum } from '../hooks'; 9 | 10 | export interface IDeepLink { 11 | id: string; 12 | type: DeepLinkEnum; 13 | action: () => void | Promise; 14 | } 15 | 16 | export type DeepLinkContextType = { 17 | deepLinksState: IDeepLink[]; 18 | addDeepLink: (link: IDeepLink) => void; 19 | removeDeepLink: (id: string) => void; 20 | }; 21 | 22 | export const DeepLinkContext = createContext({ 23 | deepLinksState: [], 24 | addDeepLink: () => {}, 25 | removeDeepLink: () => {}, 26 | }); 27 | 28 | export const DeepLinkProvider: FunctionComponent = ({ children }) => { 29 | const [deepLinksState, setDeepLinksState] = useState([]); 30 | 31 | const addDeepLink = useCallback((link: IDeepLink) => { 32 | setDeepLinksState(prevDeepLinks => [...prevDeepLinks, link]); 33 | }, []); 34 | 35 | const removeDeepLink = useCallback((id: string) => { 36 | setDeepLinksState(prevDeepLinks => 37 | prevDeepLinks.filter(link => link.id !== id), 38 | ); 39 | }, []); 40 | 41 | return ( 42 | 44 | {children} 45 | 46 | ); 47 | }; 48 | -------------------------------------------------------------------------------- /src/components/HeaderRight.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from 'react'; 2 | import { 3 | TouchableOpacity, 4 | StyleSheet, 5 | TouchableOpacityProps, 6 | Text, 7 | } from 'react-native'; 8 | 9 | export const HeaderRight: FunctionComponent = ({ 10 | children, 11 | ...touchableProps 12 | }) => { 13 | return ( 14 | 15 | {children} 16 | 17 | ); 18 | }; 19 | 20 | const styles = StyleSheet.create({ 21 | wrapper: {}, 22 | text: {}, 23 | }); 24 | -------------------------------------------------------------------------------- /src/components/Text.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from 'react'; 2 | import { 3 | TextProps, 4 | StyleSheet, 5 | ColorValue, 6 | Text as RNText, 7 | } from 'react-native'; 8 | 9 | interface ITextProps extends TextProps { 10 | backgroundColor?: ColorValue; 11 | } 12 | 13 | export const Text: FunctionComponent = ({ 14 | children, 15 | backgroundColor, 16 | ...textProps 17 | }) => { 18 | return ( 19 | 20 | {children} 21 | 22 | ); 23 | }; 24 | 25 | const styles = StyleSheet.create({ 26 | text: { 27 | fontSize: 40, 28 | color: 'white', 29 | letterSpacing: 5, 30 | fontWeight: 'bold', 31 | paddingHorizontal: 15, 32 | textTransform: 'uppercase', 33 | }, 34 | }); 35 | -------------------------------------------------------------------------------- /src/components/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Text'; 2 | export * from './HeaderRight'; 3 | export * from './CenteredView'; 4 | export * from './DeepLinkProvider'; 5 | export * from './AuthenticationContext'; 6 | -------------------------------------------------------------------------------- /src/hooks/index.ts: -------------------------------------------------------------------------------- 1 | export * from './useURL'; 2 | export * from './useDeepLinks'; 3 | -------------------------------------------------------------------------------- /src/hooks/useDeepLinks.tsx: -------------------------------------------------------------------------------- 1 | import { useEffect, useContext, useState } from 'react'; 2 | import { InteractionManager } from 'react-native'; 3 | 4 | import { navigationRef } from '../services'; 5 | import { DeepLinkContext } from '../components'; 6 | 7 | export enum DeepLinkEnum { 8 | NAVIGATION = 'NAVIGATION', 9 | } 10 | 11 | export const useDeepLinks = (deepLinks?: DeepLinkEnum[]) => { 12 | const [hookRoute, setHookRoute] = useState(); 13 | const [currentRoute, setCurrentRoute] = useState(); 14 | const { deepLinksState, addDeepLink, removeDeepLink } = 15 | useContext(DeepLinkContext); 16 | 17 | useEffect(() => { 18 | const task = InteractionManager.runAfterInteractions(() => { 19 | const route = navigationRef.current?.getCurrentRoute(); 20 | if (!hookRoute) { 21 | setHookRoute(route?.name); 22 | } 23 | }); 24 | 25 | const handleNavigationStateChange = () => { 26 | setCurrentRoute(navigationRef.current?.getCurrentRoute()?.name); 27 | }; 28 | 29 | navigationRef.current?.addListener('state', handleNavigationStateChange); 30 | 31 | return () => { 32 | task.cancel(); 33 | navigationRef.current?.removeListener( 34 | 'state', 35 | handleNavigationStateChange, 36 | ); 37 | }; 38 | }, []); 39 | 40 | useEffect(() => { 41 | (async () => { 42 | if (!deepLinks || hookRoute !== currentRoute) { 43 | return; 44 | } 45 | 46 | const found = deepLinksState.filter(link => 47 | deepLinks.includes(link.type), 48 | ); 49 | 50 | if (!found.length) { 51 | return; 52 | } 53 | 54 | const currentLink = found[0]; 55 | await currentLink.action(); 56 | removeDeepLink(currentLink.id); 57 | })(); 58 | }, [deepLinksState, hookRoute, currentRoute]); 59 | 60 | return { addDeepLink }; 61 | }; 62 | -------------------------------------------------------------------------------- /src/hooks/useURL.ts: -------------------------------------------------------------------------------- 1 | import { useEffect, useCallback, useState } from 'react'; 2 | import { Linking } from 'react-native'; 3 | 4 | export const useURL = () => { 5 | const [link, setLink] = useState(); 6 | const handleUrlChange = useCallback(({ url }: { url: string }) => { 7 | setLink(url); 8 | }, []); 9 | 10 | useEffect(() => { 11 | (async () => { 12 | const initialUrl = await Linking.getInitialURL(); 13 | 14 | if (!initialUrl) { 15 | return; 16 | } 17 | 18 | handleUrlChange({ url: initialUrl }); 19 | })(); 20 | 21 | Linking.addEventListener('url', handleUrlChange); 22 | 23 | return () => Linking.removeEventListener('url', handleUrlChange); 24 | }, []); 25 | 26 | return link; 27 | }; 28 | -------------------------------------------------------------------------------- /src/nav/HomeStack.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from 'react'; 2 | import { createNativeStackNavigator } from 'react-native-screens/native-stack'; 3 | 4 | import { Home, Profile } from '../screens'; 5 | 6 | const Stack = createNativeStackNavigator(); 7 | 8 | export const HomeStack: FunctionComponent = () => { 9 | return ( 10 | 14 | 15 | 16 | 17 | ); 18 | }; 19 | -------------------------------------------------------------------------------- /src/nav/OnboardingStack.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from 'react'; 2 | import { createNativeStackNavigator } from 'react-native-screens/native-stack'; 3 | 4 | import { SignIn, SignUp } from '../screens'; 5 | 6 | const Stack = createNativeStackNavigator(); 7 | 8 | export const OnboardingStack: FunctionComponent = () => { 9 | return ( 10 | 14 | 15 | 16 | 17 | ); 18 | }; 19 | -------------------------------------------------------------------------------- /src/nav/RootNavigator.tsx: -------------------------------------------------------------------------------- 1 | import { InteractionManager } from 'react-native'; 2 | import { LinkingOptions } from '@react-navigation/native'; 3 | import { NavigationContainer } from '@react-navigation/native'; 4 | import React, { FunctionComponent, useEffect, useCallback } from 'react'; 5 | 6 | import { 7 | DeepLinkSchema, 8 | navigationRef, 9 | checkDeepLinkResult, 10 | } from '../services'; 11 | import { SwitchNavigation } from './SwitchNavigation'; 12 | import { useURL, DeepLinkEnum, useDeepLinks } from '../hooks'; 13 | 14 | export const linking: LinkingOptions = { 15 | prefixes: [DeepLinkSchema], 16 | config: { 17 | screens: { 18 | OnboardingStack: { 19 | screens: { 20 | SignUp: 'signup', 21 | }, 22 | }, 23 | HomeStack: { 24 | screens: { 25 | Profile: 'profile', 26 | }, 27 | }, 28 | }, 29 | }, 30 | }; 31 | 32 | export const RootNavigator: FunctionComponent = () => { 33 | const { addDeepLink } = useDeepLinks(); 34 | const link = useURL(); 35 | 36 | const handleDeepLink = useCallback( 37 | (url: string) => { 38 | const task = InteractionManager.runAfterInteractions(() => { 39 | const { didDeepLinkLand, action, linkPath } = checkDeepLinkResult(url); 40 | if (!didDeepLinkLand) { 41 | addDeepLink({ 42 | id: linkPath, 43 | type: DeepLinkEnum.NAVIGATION, 44 | action: () => navigationRef.current?.dispatch(action), 45 | }); 46 | } 47 | }); 48 | 49 | return () => task.cancel(); 50 | }, 51 | [navigationRef], 52 | ); 53 | 54 | useEffect(() => { 55 | if (!link) { 56 | return; 57 | } 58 | 59 | handleDeepLink(link); 60 | }, [link]); 61 | 62 | return ( 63 | 64 | 65 | 66 | ); 67 | }; 68 | -------------------------------------------------------------------------------- /src/nav/SwitchNavigation.tsx: -------------------------------------------------------------------------------- 1 | import 'react-native-gesture-handler'; 2 | import { enableScreens } from 'react-native-screens'; 3 | import React, { useContext, FunctionComponent } from 'react'; 4 | import { createNativeStackNavigator } from 'react-native-screens/native-stack'; 5 | 6 | import { AuthenticationContext, HeaderRight } from '../components'; 7 | 8 | import { HomeStack } from './HomeStack'; 9 | import { OnboardingStack } from './OnboardingStack'; 10 | 11 | enableScreens(); 12 | const Stack = createNativeStackNavigator(); 13 | 14 | export const SwitchNavigation: FunctionComponent = () => { 15 | const { isAuthenticated, setIsAuthenticated } = useContext( 16 | AuthenticationContext, 17 | ); 18 | 19 | return ( 20 | ( 23 | setIsAuthenticated(!isAuthenticated)}> 24 | {isAuthenticated ? 'Log out' : 'Log in'} 25 | 26 | ), 27 | }}> 28 | {isAuthenticated ? ( 29 | 34 | ) : ( 35 | 40 | )} 41 | 42 | ); 43 | }; 44 | -------------------------------------------------------------------------------- /src/nav/index.ts: -------------------------------------------------------------------------------- 1 | export * from './RootNavigator'; 2 | -------------------------------------------------------------------------------- /src/screens/Home.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from 'react'; 2 | 3 | import { useDeepLinks, DeepLinkEnum } from '../hooks'; 4 | import { CenteredView, Text } from '../components'; 5 | 6 | export const Home: FunctionComponent = () => { 7 | useDeepLinks([DeepLinkEnum.NAVIGATION]); 8 | 9 | return ( 10 | 11 | Home 12 | 13 | ); 14 | }; 15 | -------------------------------------------------------------------------------- /src/screens/Profile.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from 'react'; 2 | 3 | import { CenteredView, Text } from '../components'; 4 | 5 | export const Profile: FunctionComponent = () => { 6 | return ( 7 | 8 | Profile 9 | 10 | ); 11 | }; 12 | -------------------------------------------------------------------------------- /src/screens/SignIn.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from 'react'; 2 | 3 | import { CenteredView, Text } from '../components'; 4 | 5 | export const SignIn: FunctionComponent = () => { 6 | return ( 7 | 8 | Sign In 9 | 10 | ); 11 | }; 12 | -------------------------------------------------------------------------------- /src/screens/SignUp.tsx: -------------------------------------------------------------------------------- 1 | import React, { FunctionComponent } from 'react'; 2 | 3 | import { CenteredView, Text } from '../components'; 4 | 5 | export const SignUp: FunctionComponent = () => { 6 | return ( 7 | 8 | Sign Up 9 | 10 | ); 11 | }; 12 | -------------------------------------------------------------------------------- /src/screens/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Home'; 2 | export * from './SignIn'; 3 | export * from './SignUp'; 4 | export * from './Profile'; 5 | -------------------------------------------------------------------------------- /src/services/NavigationService.ts: -------------------------------------------------------------------------------- 1 | import { createRef } from 'react'; 2 | import { 3 | PartialState, 4 | NavigationAction, 5 | NavigationState, 6 | getStateFromPath, 7 | getPathFromState, 8 | getActionFromState, 9 | NavigationContainerRef, 10 | } from '@react-navigation/native'; 11 | 12 | import { linking } from '../nav'; 13 | 14 | export const DeepLinkSchema = 'RNDeepLinkAuth://'; 15 | export const navigationRef = createRef>(); 16 | 17 | const cleanPathStr = (path: string) => { 18 | const queryVairablesIndex = path.indexOf('?'); 19 | if (queryVairablesIndex === -1) { 20 | return path; 21 | } 22 | return path.substr(0, queryVairablesIndex); 23 | }; 24 | 25 | export const checkDeepLinkResult = (url: string) => { 26 | const extractedUrl = url.replace(DeepLinkSchema, ''); 27 | 28 | const currentState = navigationRef.current?.getRootState() as NavigationState; 29 | 30 | const linkState = getStateFromPath( 31 | extractedUrl, 32 | linking.config as any, 33 | ) as PartialState; 34 | 35 | const currentPath = cleanPathStr(getPathFromState(currentState)); 36 | 37 | const linkPath = cleanPathStr(getPathFromState(linkState)); 38 | 39 | const action = getActionFromState(linkState) as NavigationAction; 40 | 41 | return { 42 | action, 43 | linkPath, 44 | didDeepLinkLand: currentPath === linkPath, 45 | }; 46 | }; 47 | 48 | -------------------------------------------------------------------------------- /src/services/index.ts: -------------------------------------------------------------------------------- 1 | export * from './NavigationService'; 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "compilerOptions": { 4 | /* Basic Options */ 5 | "target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ 6 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ 7 | "lib": ["es2017"], /* Specify library files to be included in the compilation. */ 8 | "allowJs": true, /* Allow javascript files to be compiled. */ 9 | // "checkJs": true, /* Report errors in .js files. */ 10 | "jsx": "react-native", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ 11 | // "declaration": true, /* Generates corresponding '.d.ts' file. */ 12 | // "sourceMap": true, /* Generates corresponding '.map' file. */ 13 | // "outFile": "./", /* Concatenate and emit output to single file. */ 14 | // "outDir": "./", /* Redirect output structure to the directory. */ 15 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ 16 | // "removeComments": true, /* Do not emit comments to output. */ 17 | "noEmit": true, /* Do not emit outputs. */ 18 | // "incremental": true, /* Enable incremental compilation */ 19 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */ 20 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ 21 | "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ 22 | 23 | /* Strict Type-Checking Options */ 24 | "strict": true, /* Enable all strict type-checking options. */ 25 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ 26 | // "strictNullChecks": true, /* Enable strict null checks. */ 27 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ 28 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ 29 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ 30 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ 31 | 32 | /* Additional Checks */ 33 | // "noUnusedLocals": true, /* Report errors on unused locals. */ 34 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 35 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 36 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 37 | 38 | /* Module Resolution Options */ 39 | "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ 40 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ 41 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ 42 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ 43 | // "typeRoots": [], /* List of folders to include type definitions from. */ 44 | // "types": [], /* Type declaration files to be included in compilation. */ 45 | "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ 46 | "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ 47 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ 48 | "skipLibCheck": false /* Skip type checking of declaration files. */ 49 | 50 | /* Source Map Options */ 51 | // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ 52 | // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */ 53 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ 54 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ 55 | 56 | /* Experimental Options */ 57 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ 58 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ 59 | }, 60 | "exclude": [ 61 | "node_modules", "babel.config.js", "metro.config.js", "jest.config.js" 62 | ] 63 | } 64 | --------------------------------------------------------------------------------