From c03f867bdf3f7a14384a6c52883e774bf9b0db9f Mon Sep 17 00:00:00 2001 From: Daniel Kift Date: Fri, 19 Dec 2025 15:14:45 +0000 Subject: [PATCH] bump android and fix constructor --- .../checkout-sheet-kit/android/gradle.properties | 2 +- .../checkoutsheetkit/RCTCheckoutWebView.java | 10 +--------- sample/android/gradle.properties | 2 +- scripts/publish_android_snapshot | 2 +- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/modules/@shopify/checkout-sheet-kit/android/gradle.properties b/modules/@shopify/checkout-sheet-kit/android/gradle.properties index ff3e0b6c..66799338 100644 --- a/modules/@shopify/checkout-sheet-kit/android/gradle.properties +++ b/modules/@shopify/checkout-sheet-kit/android/gradle.properties @@ -5,4 +5,4 @@ ndkVersion=23.1.7779620 buildToolsVersion = "35.0.0" # Version of Shopify Checkout SDK to use with React Native -SHOPIFY_CHECKOUT_SDK_VERSION=4.0.0-SNAPSHOT +SHOPIFY_CHECKOUT_SDK_VERSION=4.0.1-SNAPSHOT diff --git a/modules/@shopify/checkout-sheet-kit/android/src/main/java/com/shopify/reactnative/checkoutsheetkit/RCTCheckoutWebView.java b/modules/@shopify/checkout-sheet-kit/android/src/main/java/com/shopify/reactnative/checkoutsheetkit/RCTCheckoutWebView.java index 0d154ed2..066da8f6 100644 --- a/modules/@shopify/checkout-sheet-kit/android/src/main/java/com/shopify/reactnative/checkoutsheetkit/RCTCheckoutWebView.java +++ b/modules/@shopify/checkout-sheet-kit/android/src/main/java/com/shopify/reactnative/checkoutsheetkit/RCTCheckoutWebView.java @@ -62,8 +62,6 @@ of this software and associated documentation files (the "Software"), to deal import java.util.Map; import java.util.Objects; -import kotlin.Unit; - public class RCTCheckoutWebView extends FrameLayout { private static final String TAG = "RCTCheckoutWebView"; private final ThemedReactContext context; @@ -195,13 +193,7 @@ private CheckoutWebViewEventProcessor getCheckoutWebViewEventProcessor() { Activity currentActivity = this.context.getCurrentActivity(); InlineCheckoutEventProcessor eventProcessor = new InlineCheckoutEventProcessor(currentActivity); - return new CheckoutWebViewEventProcessor( - eventProcessor, - (visible) -> Unit.INSTANCE, // toggleHeader - (error) -> Unit.INSTANCE, // closeCheckoutDialogWithError - (visibility) -> Unit.INSTANCE, // setProgressBarVisibility - (percentage) -> Unit.INSTANCE // updateProgressBarPercentage - ); + return new CheckoutWebViewEventProcessor(eventProcessor); } void removeCheckout() { diff --git a/sample/android/gradle.properties b/sample/android/gradle.properties index 195ae5b0..019d9d95 100644 --- a/sample/android/gradle.properties +++ b/sample/android/gradle.properties @@ -41,4 +41,4 @@ newArchEnabled=true hermesEnabled=true # Note: only used here for testing -SHOPIFY_CHECKOUT_SDK_VERSION=4.0.0-SNAPSHOT +SHOPIFY_CHECKOUT_SDK_VERSION=4.0.1-SNAPSHOT diff --git a/scripts/publish_android_snapshot b/scripts/publish_android_snapshot index 1c968b7d..e88640b4 100755 --- a/scripts/publish_android_snapshot +++ b/scripts/publish_android_snapshot @@ -2,7 +2,7 @@ set -e SDK_PATH="${1:-$HOME/src/github.com/Shopify/checkout-sheet-kit-android}" -VERSION="${2:-4.0.0-SNAPSHOT}" +VERSION="${2:-4.0.1-SNAPSHOT}" if [ ! -d "$SDK_PATH" ]; then echo "Error: checkout-sheet-kit-android not found at $SDK_PATH"