Commit 6ddac0d
Add support for parametrized constructor
* remove duplicate intent-filter
* - Update androidx.browser to 1.9.0
- Update AGP version to 8.9.1 -- requires update to gradle wrapper 8.11.1
- Update compile and target sdk to 36
* first iteration on AuthTab Setup:
added AuthTabInternalClient,
removed ChromeCustomTabsInternalClient,
modified ComposeActivity & DemoActivitySingleTop to accept the above changes,
added toast visuals to see whether or not the AuthTab is supported
* Rename .java to .kt
* second iteration on AuthTab Setup:
rewrote AuthTabInternalClient to Kotlin and added a ClearTop Flag,
wrote new AuthTabInternalClientUnitTest,
removed ChromeCustomTabsInternalClientUnitTest,
modified BrowserSwitchClientUnitTest to accept the AuthTab changes
* third iteration on AuthTab Setup:
removed CustomTabIntentBuilder,
removed tests associated with CustomTabs from AuthTabInternalClientUnitTest,,
modified BrowserSwitchClientUnitTest to accept the AuthTab launchURL signature
* EOD commit:
-Testing the authtab flow on older devices without intents
* Revert "EOD commit:"
This reverts commit e27cfa1.
* Revert "third iteration on AuthTab Setup:"
This reverts commit 9803e43. Branching still needed to provide support for older devices.
* Completed implementation of AuthTab Support:
- added AuthTabInternalClient,
- removed ChromeCustomTabsInternalClient,
- modified ComposeActivity & DemoActivitySingleTop to accept the above changes,
- added toast visuals to see whether or not the AuthTab is supported
* Address PR suggestions
* Address PR suggestions
* Add support for parametrized constructor to give a merchant a choice to use AuthTab or not
* -added the ability to store a callback internally without exposing it
-modified BrowserSwitchClient's constructor to only accept Activity as a parameter
-rerouted the flow to always call completeRequest and check for the callback result withing the function
-added a call to completeRequest in DemoActivitySingleTop.java onResume
-added the tests to support the new flow
* -addressed PR suggestions
-removed toast pop-ups
* updated javadoc for parametrized BrowserSwitchClient constructor and completeRequest() function
---------
Co-authored-by: saperi <[email protected]>1 parent cc39a8a commit 6ddac0d
File tree
7 files changed
+235
-112
lines changed- browser-switch/src
- main/java/com/braintreepayments/api
- test/java/com/braintreepayments/api
- demo/src/main/java/com/braintreepayments/api/browserswitch/demo
7 files changed
+235
-112
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
Lines changed: 81 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
29 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
35 | 77 | | |
36 | 78 | | |
37 | 79 | | |
38 | 80 | | |
39 | 81 | | |
| 82 | + | |
40 | 83 | | |
41 | 84 | | |
42 | 85 | | |
43 | 86 | | |
44 | 87 | | |
| 88 | + | |
| 89 | + | |
45 | 90 | | |
46 | | - | |
47 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
48 | 99 | | |
49 | | - | |
| 100 | + | |
50 | 101 | | |
51 | 102 | | |
52 | | - | |
53 | 103 | | |
54 | 104 | | |
55 | 105 | | |
| |||
61 | 111 | | |
62 | 112 | | |
63 | 113 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 114 | | |
74 | 115 | | |
75 | 116 | | |
76 | | - | |
| 117 | + | |
77 | 118 | | |
78 | 119 | | |
79 | 120 | | |
| |||
91 | 132 | | |
92 | 133 | | |
93 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
94 | 138 | | |
95 | 139 | | |
96 | 140 | | |
| |||
121 | 165 | | |
122 | 166 | | |
123 | 167 | | |
124 | | - | |
| 168 | + | |
125 | 169 | | |
126 | 170 | | |
127 | 171 | | |
| |||
188 | 232 | | |
189 | 233 | | |
190 | 234 | | |
191 | | - | |
192 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
193 | 238 | | |
194 | 239 | | |
195 | 240 | | |
196 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
197 | 246 | | |
198 | 247 | | |
199 | 248 | | |
200 | 249 | | |
201 | 250 | | |
202 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
203 | 256 | | |
204 | 257 | | |
205 | 258 | | |
| |||
215 | 268 | | |
216 | 269 | | |
217 | 270 | | |
218 | | - | |
219 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
220 | 280 | | |
221 | 281 | | |
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
| |||
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
219 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
0 commit comments