-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restrict NewDot deep/universal links to specific paths on Android #6068
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5234246
remove duplicate URL deep link handler
Julesssss f255f89
simplify Android intent filter deep link handlers
Julesssss 293c40e
improve deep link documentation
Julesssss 82fd335
restrict universal handling to specific paths
Julesssss 6adaff3
add missing 'setpassword' path, reorder to match iOS
Julesssss c54d714
re-add removed path
Julesssss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:allowBackup="false" | ||
android:theme="@style/AppTheme"> | ||
|
||
<activity | ||
android:name=".MainActivity" | ||
android:label="@string/app_name" | ||
|
@@ -31,45 +32,54 @@ | |
android:exported="true" | ||
android:windowSoftInputMode="adjustResize"> | ||
</activity> | ||
|
||
<activity | ||
android:name="com.zoontek.rnbootsplash.RNBootSplashActivity" | ||
android:theme="@style/BootTheme" | ||
android:launchMode="singleTask"> | ||
|
||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
|
||
<!-- Custom URI handlers. Used to intercept Urban Airship deep links. --> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW"/> | ||
<category android:name="android.intent.category.DEFAULT"/> | ||
<category android:name="android.intent.category.BROWSABLE"/> | ||
<data android:scheme="expensify-cash"/> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW"/> | ||
<category android:name="android.intent.category.DEFAULT"/> | ||
<category android:name="android.intent.category.BROWSABLE"/> | ||
Comment on lines
-47
to
-51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We only need one intent filter for each scheme. |
||
<data android:scheme="new-expensify"/> | ||
</intent-filter> | ||
|
||
<!-- Web URL handlers. Used to intercept web links. --> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW"/> | ||
<category android:name="android.intent.category.DEFAULT"/> | ||
<category android:name="android.intent.category.BROWSABLE"/> | ||
<data android:scheme="https" android:host="new.expensify.com" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW"/> | ||
<category android:name="android.intent.category.DEFAULT"/> | ||
<category android:name="android.intent.category.BROWSABLE"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW"/> | ||
<category android:name="android.intent.category.DEFAULT"/> | ||
<category android:name="android.intent.category.BROWSABLE"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" /> | ||
|
||
<!-- Production URLs --> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/r"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/settings"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/setpassword"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/details"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/v"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/bank-account"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/iou"/> | ||
<data android:scheme="https" android:host="new.expensify.com" android:pathPrefix="/enable-payments"/> | ||
|
||
<!-- Staging URLs --> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/r"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/settings"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/setpassword"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/details"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/v"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/bank-account"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/iou"/> | ||
<data android:scheme="https" android:host="staging.new.expensify.com" android:pathPrefix="/enable-payments"/> | ||
</intent-filter> | ||
</activity> | ||
|
||
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" /> | ||
|
||
<meta-data android:name="com.urbanairship.reactnative.AIRSHIP_EXTENDER" | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering if we could remove the expensify-cash scheme here, but looks like that's going to be handled in https://github.com/Expensify/Expensify/issues/176081 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good spot. I was going to do this separately. Thanks for the existing issue link!