Skip to content

Commit 4e3dab3

Browse files
authored
Merge pull request #396 from code-payments/fix/dont-autoverify-tipcard-urls
fix: don't autoverify tipcard.getcode* to allow tipcard deep links to operate from link clicks
2 parents d5fa092 + 60cd6c3 commit 4e3dab3

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
2424
<!-- needed for network connectivity detection in Api24NetworkObserver -->
25-
<uses-permission android:name="android.permission.READ_PHONE_STATE"
26-
android:maxSdkVersion="28"
27-
/>
25+
<uses-permission
26+
android:name="android.permission.READ_PHONE_STATE"
27+
android:maxSdkVersion="28" />
2828

2929
<queries>
3030
<intent>
@@ -45,7 +45,6 @@
4545
android:name="com.getcode.view.MainActivity"
4646
android:exported="true"
4747
android:hardwareAccelerated="true"
48-
android:label="@string/app_name"
4948
android:launchMode="singleTask"
5049
android:resizeableActivity="false"
5150
android:screenOrientation="portrait"
@@ -57,8 +56,10 @@
5756

5857
<intent-filter android:autoVerify="true">
5958
<action android:name="android.intent.action.VIEW" />
59+
6060
<category android:name="android.intent.category.DEFAULT" />
6161
<category android:name="android.intent.category.BROWSABLE" />
62+
6263
<data
6364
android:host="app.getcode.com"
6465
android:pathPattern="/login.*"
@@ -67,8 +68,10 @@
6768

6869
<intent-filter android:autoVerify="true">
6970
<action android:name="android.intent.action.VIEW" />
71+
7072
<category android:name="android.intent.category.DEFAULT" />
7173
<category android:name="android.intent.category.BROWSABLE" />
74+
7275
<data
7376
android:host="@string/root_url_app_no_protocol"
7477
android:pathPattern="/cash/.*"
@@ -77,8 +80,10 @@
7780

7881
<intent-filter android:autoVerify="true">
7982
<action android:name="android.intent.action.VIEW" />
83+
8084
<category android:name="android.intent.category.DEFAULT" />
8185
<category android:name="android.intent.category.BROWSABLE" />
86+
8287
<data
8388
android:host="@string/root_url_app_no_protocol"
8489
android:pathPattern="/c/.*"
@@ -87,18 +92,10 @@
8792

8893
<intent-filter android:autoVerify="true">
8994
<action android:name="android.intent.action.VIEW" />
90-
<category android:name="android.intent.category.DEFAULT" />
91-
<category android:name="android.intent.category.BROWSABLE" />
92-
<data
93-
android:host="@string/root_url_tipcard_no_protocol"
94-
android:pathPattern="/x/.*"
95-
android:scheme="https" />
96-
</intent-filter>
9795

98-
<intent-filter android:autoVerify="true">
99-
<action android:name="android.intent.action.VIEW" />
10096
<category android:name="android.intent.category.DEFAULT" />
10197
<category android:name="android.intent.category.BROWSABLE" />
98+
10299
<data
103100
android:host="cash.getcode.com"
104101
android:pathPattern="/cash/.*"
@@ -107,6 +104,7 @@
107104

108105
<intent-filter android:autoVerify="true">
109106
<action android:name="android.intent.action.VIEW" />
107+
110108
<category android:name="android.intent.category.DEFAULT" />
111109
<category android:name="android.intent.category.BROWSABLE" />
112110

@@ -129,15 +127,15 @@
129127
</intent-filter>
130128

131129
<intent-filter>
132-
<action android:name="android.intent.action.VIEW" />
130+
<action android:name="android.intent.action.VIEW" />
133131

134-
<category android:name="android.intent.category.DEFAULT" />
135-
<category android:name="android.intent.category.BROWSABLE" />
132+
<category android:name="android.intent.category.DEFAULT" />
133+
<category android:name="android.intent.category.BROWSABLE" />
136134

137-
<data
138-
android:host="@string/root_url_sdk_no_protocol"
139-
android:pathPattern="/v1/elements/.*/"
140-
android:scheme="codewallet" />
135+
<data
136+
android:host="@string/root_url_sdk_no_protocol"
137+
android:pathPattern="/v1/elements/.*/"
138+
android:scheme="codewallet" />
141139
</intent-filter>
142140

143141
</activity>

0 commit comments

Comments
 (0)