Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
40914ab
feat: setup android inline component
kieran-osgood-shopify Nov 12, 2025
91ab2c3
fix: ensure we can respond to address change events
kieran-osgood-shopify Nov 12, 2025
6eb56fa
chore: remove redundant address change map
kieran-osgood-shopify Nov 12, 2025
b55ea61
remove unused imports
kieran-osgood-shopify Nov 12, 2025
4319800
fix: rename CheckoutCompletedEvent -> CheckoutCompleteEvent
kieran-osgood-shopify Nov 13, 2025
e585ce7
refactor: remove deprecated method overrides
kieran-osgood-shopify Nov 13, 2025
c38175e
chore: cleaning up token and networking debugging
kieran-osgood-shopify Nov 13, 2025
f0e5ced
fix: remove android debugging code - readd timeout
kieran-osgood-shopify Nov 13, 2025
c2730a0
fix: add event handlers for CheckoutScreen
kieran-osgood-shopify Nov 13, 2025
278620a
refactor: remove unnecessary view in buynowbutton
kieran-osgood-shopify Nov 13, 2025
1323004
fix: yarn module build errors
kieran-osgood-shopify Nov 13, 2025
704cfb1
refactor(RCTCheckoutWebView): replace complicated if checks with .equ…
kieran-osgood-shopify Nov 14, 2025
4926b04
refactor: remove lint warnings on type coersion
kieran-osgood-shopify Nov 14, 2025
2684297
refactor: use shorter kotlin unit instance
kieran-osgood-shopify Nov 14, 2025
09e2522
fix: remove absolute user path
kieran-osgood-shopify Nov 26, 2025
049a571
fix: issues with inconsistent names of events
kieran-osgood-shopify Nov 27, 2025
1bd7aa0
refactor: remove unnecesasry logging and overrides
kieran-osgood-shopify Nov 27, 2025
3b9ad9d
remove classPaths from build.gradle
kieran-osgood-shopify Nov 27, 2025
fe15ad7
feat: add event handling to inline webview android
kieran-osgood-shopify Nov 27, 2025
f80904b
refactor: simplifying map construction
kieran-osgood-shopify Nov 27, 2025
d33096f
refactor: remove deprecated event emitting
kieran-osgood-shopify Nov 27, 2025
ffbb322
refactor: extract CheckoutEvent for instance based events
kieran-osgood-shopify Nov 27, 2025
73fb035
fix: webview not loading
kieran-osgood-shopify Nov 27, 2025
0664faf
cleanup events that arent ready - rename onClickLink
kieran-osgood-shopify Nov 27, 2025
0d3b83a
add nonnull annotation for getEventName
kieran-osgood-shopify Nov 27, 2025
857fa72
fix: remove onLoad from swift
kieran-osgood-shopify Nov 27, 2025
fa56ba3
rename customeventprocessor -> Sheeteventprocessor
kieran-osgood-shopify Nov 27, 2025
3c82c9a
refactor: undo changes to reuse custom event processor for inline
kieran-osgood-shopify Nov 27, 2025
0d0d0f3
fix: intermitent flakiness of layout for checkout webview inline
kieran-osgood-shopify Nov 27, 2025
51c1ff4
remove unused variable
kieran-osgood-shopify Nov 27, 2025
43464ab
fix: flatten onerror - implement onlinkclick
kieran-osgood-shopify Nov 27, 2025
9999547
format files
kieran-osgood-shopify Nov 28, 2025
2e7b283
fix: type in TAG - remove unused comments
kieran-osgood-shopify Nov 28, 2025
95b387d
fix: remove record (java16 feature)
kieran-osgood-shopify Nov 28, 2025
d22b70f
fix: ensure layout params are applied to webview
kieran-osgood-shopify Nov 28, 2025
6d88aa0
test: RctCheckoutWebViewTests
kieran-osgood-shopify Nov 28, 2025
3a7c499
refactor: improve tests with side effects of setup checks
kieran-osgood-shopify Nov 28, 2025
34599b1
fix: ts error from unused prop
kieran-osgood-shopify Nov 28, 2025
235ff69
feat: update snapshot with new classes for components
kieran-osgood-shopify Nov 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions modules/@shopify/checkout-sheet-kit/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,10 @@ dependencies {
implementation("com.shopify:checkout-sheet-kit:${SHOPIFY_CHECKOUT_SDK_VERSION}")
implementation("com.fasterxml.jackson.core:jackson-databind:2.12.5")
debugImplementation("com.shopify:checkout-sheet-kit:${SHOPIFY_CHECKOUT_SDK_VERSION}")

testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:4.11.0'
testImplementation 'org.mockito:mockito-inline:5.2.0'
testImplementation 'org.assertj:assertj-core:3.27.6'
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
MIT License

Copyright 2023 - Present, Shopify Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

package com.shopify.reactnative.checkoutsheetkit;

import androidx.annotation.NonNull;

import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.uimanager.events.Event;

/**
* Can be used to send events back to props of instances of components
* <p>
* private void sendEvent(String eventName, WritableMap params) {
* ReactContext reactContext = this.context.getReactApplicationContext();
* int viewId = getId();
* EventDispatcher eventDispatcher = UIManagerHelper.getEventDispatcherForReactTag(reactContext, viewId);
* int surfaceId = UIManagerHelper.getSurfaceId(reactContext);
* eventDispatcher.dispatchEvent(new CheckoutEvent(surfaceId, viewId, eventName, params));
* }
**/
public class CheckoutEvent extends Event<CheckoutEvent> {
private final String eventName;
private final WritableMap payload;

public CheckoutEvent(int surfaceId, int viewId, String eventName, WritableMap payload) {
super(surfaceId, viewId);
this.eventName = eventName;
this.payload = payload;
}

@NonNull
@Override
public String getEventName() {
return eventName;
}

@Override
protected WritableMap getEventData() {
return payload != null ? payload : Arguments.createMap();
}
}
Loading
Loading