Skip to content

Commit 6d88aa0

Browse files
test: RctCheckoutWebViewTests
1 parent d22b70f commit 6d88aa0

File tree

3 files changed

+388
-2
lines changed

3 files changed

+388
-2
lines changed

modules/@shopify/checkout-sheet-kit/android/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,10 @@ dependencies {
100100
implementation("com.shopify:checkout-sheet-kit:${SHOPIFY_CHECKOUT_SDK_VERSION}")
101101
implementation("com.fasterxml.jackson.core:jackson-databind:2.12.5")
102102
debugImplementation("com.shopify:checkout-sheet-kit:${SHOPIFY_CHECKOUT_SDK_VERSION}")
103+
104+
testImplementation 'junit:junit:4.13.2'
105+
testImplementation 'org.mockito:mockito-core:4.11.0'
106+
testImplementation 'org.mockito:mockito-inline:5.2.0'
107+
testImplementation 'org.assertj:assertj-core:3.27.6'
103108
}
104109

modules/@shopify/checkout-sheet-kit/android/src/main/java/com/shopify/reactnative/checkoutsheetkit/SheetCheckoutEventProcessor.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ public void invokeGeolocationCallback(boolean allow) {
9191
* @param callback - The callback to invoke when the app requests permissions
9292
*/
9393
@Override
94-
public void onGeolocationPermissionsShowPrompt(@NonNull String origin,
95-
@NonNull GeolocationPermissions.Callback callback) {
94+
public void onGeolocationPermissionsShowPrompt(
95+
@NonNull String origin,
96+
@NonNull GeolocationPermissions.Callback callback
97+
) {
9698

9799
// Store the callback and origin in memory. The kit will wait for the app to
98100
// request permissions first before granting.

0 commit comments

Comments
 (0)