framepayments-react-native 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/.settings/org.eclipse.buildship.core.prefs +3 -3
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -1
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/ios/FrameSDKBridge.swift +8 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
arguments=--init-script /var/folders/my/2knngz1131q4pq8rnxxjb3_h0000gn/T/db3b08fc4a9ef609cb16b96b200fa13e563f396e9bb1ed0905fdab7bc3bc513b.gradle --init-script /var/folders/my/2knngz1131q4pq8rnxxjb3_h0000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle --init-script /var/folders/my/2knngz1131q4pq8rnxxjb3_h0000gn/T/861a75667e10803d304a058d833cb7404195ca44013d0d61d3b653eb084379b8.gradle --init-script /var/folders/my/2knngz1131q4pq8rnxxjb3_h0000gn/T/68eb1b6516fe21c6fbba58e63c99c3207ccfc918360613709367eecde56fa77f.gradle
|
|
2
|
-
auto.sync=
|
|
1
|
+
arguments=--init-script /var/folders/my/2knngz1131q4pq8rnxxjb3_h0000gn/T/db3b08fc4a9ef609cb16b96b200fa13e563f396e9bb1ed0905fdab7bc3bc513b.gradle --init-script /var/folders/my/2knngz1131q4pq8rnxxjb3_h0000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle --init-script /var/folders/my/2knngz1131q4pq8rnxxjb3_h0000gn/T/861a75667e10803d304a058d833cb7404195ca44013d0d61d3b653eb084379b8.gradle --init-script /var/folders/my/2knngz1131q4pq8rnxxjb3_h0000gn/T/68eb1b6516fe21c6fbba58e63c99c3207ccfc918360613709367eecde56fa77f.gradle --init-script /var/folders/my/2knngz1131q4pq8rnxxjb3_h0000gn/T/da64152279c70a8b4f3de4ca9ea66fd3b3405b7aca4e1f20f2d08e5593aa1ce1.gradle
|
|
2
|
+
auto.sync=true
|
|
3
3
|
build.scans.enabled=false
|
|
4
4
|
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(8.9))
|
|
5
|
-
connection.project.dir
|
|
5
|
+
connection.project.dir=
|
|
6
6
|
eclipse.preferences.version=1
|
|
7
7
|
gradle.user.home=
|
|
8
8
|
java.home=/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
|
|
@@ -1 +1 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Fri May 01 16:00:34 PDT 2026
|
|
Binary file
|
package/ios/FrameSDKBridge.swift
CHANGED
|
@@ -186,9 +186,9 @@ public class FrameSDKBridge: NSObject {
|
|
|
186
186
|
rootView: OnboardingContainerView(
|
|
187
187
|
accountId: accountId,
|
|
188
188
|
requiredCapabilities: capabilities,
|
|
189
|
-
onComplete: { [weak
|
|
189
|
+
onComplete: { [weak hosting] in
|
|
190
190
|
delegate?.finish(completed: true)
|
|
191
|
-
|
|
191
|
+
hosting?.dismiss(animated: true)
|
|
192
192
|
}
|
|
193
193
|
)
|
|
194
194
|
)
|
|
@@ -197,6 +197,7 @@ public class FrameSDKBridge: NSObject {
|
|
|
197
197
|
sheet.detents = [UISheetPresentationController.Detent.large()]
|
|
198
198
|
}
|
|
199
199
|
delegate = OnboardingDismissDelegate(resolve: resolve)
|
|
200
|
+
delegate.hostingController = hosting
|
|
200
201
|
objc_setAssociatedObject(hosting, &onboardingDismissKey, delegate, .OBJC_ASSOCIATION_RETAIN)
|
|
201
202
|
top.present(hosting, animated: true) {
|
|
202
203
|
hosting.presentationController?.delegate = delegate
|
|
@@ -245,6 +246,7 @@ private final class CartDismissDelegate: NSObject, UIAdaptivePresentationControl
|
|
|
245
246
|
|
|
246
247
|
private final class OnboardingDismissDelegate: NSObject, UIAdaptivePresentationControllerDelegate {
|
|
247
248
|
let resolve: RCTPromiseResolveBlock
|
|
249
|
+
weak var hostingController: UIViewController?
|
|
248
250
|
var didFinish = false
|
|
249
251
|
|
|
250
252
|
init(resolve: @escaping RCTPromiseResolveBlock) {
|
|
@@ -260,6 +262,10 @@ private final class OnboardingDismissDelegate: NSObject, UIAdaptivePresentationC
|
|
|
260
262
|
}
|
|
261
263
|
|
|
262
264
|
func presentationControllerDidDismiss(_ presentationController: UIPresentationController) {
|
|
265
|
+
// Nested SwiftUI sheets (e.g. the phone country picker) propagate this
|
|
266
|
+
// callback to the Onboarding host's delegate. Only treat dismissal of the
|
|
267
|
+
// Onboarding hosting controller itself as a cancellation.
|
|
268
|
+
guard presentationController.presentedViewController === hostingController else { return }
|
|
263
269
|
finish(completed: false)
|
|
264
270
|
}
|
|
265
271
|
}
|
package/package.json
CHANGED