@upscopeio/react-native-sdk 2026.6.2 → 2026.6.4
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/build.gradle.kts +1 -1
- package/android/src/main/kotlin/io/upscope/reactnative/UpscopeModule.kt +9 -2
- package/ios/UpscopeModule.swift +13 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/version.ts +1 -1
- package/upscopeio-react-native-sdk.podspec +1 -1
package/android/build.gradle.kts
CHANGED
|
@@ -234,9 +234,16 @@ class UpscopeModule(
|
|
|
234
234
|
Cancellable { pendingFullDeviceRequests.remove(requestId) }
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
val configuration = builder.build()
|
|
238
237
|
com.facebook.react.bridge.UiThreadUtil.runOnUiThread {
|
|
239
|
-
Upscope
|
|
238
|
+
// The native Upscope singleton outlives the JS bundle, so on a Fast
|
|
239
|
+
// Refresh reload initialize() would be called again and throw
|
|
240
|
+
// IllegalStateException — crashing the app. Skip re-initialization
|
|
241
|
+
// but always re-wire the listener/activity so the reloaded JS layer
|
|
242
|
+
// stays connected. Build the configuration only when it's actually
|
|
243
|
+
// needed so reloads don't pay for it.
|
|
244
|
+
if (!Upscope.isInitialized) {
|
|
245
|
+
Upscope.initialize(reactContext.applicationContext, builder.build())
|
|
246
|
+
}
|
|
240
247
|
Upscope.listener = upscopeListener
|
|
241
248
|
reactContext.currentActivity?.let { Upscope.setCurrentActivity(it) }
|
|
242
249
|
}
|
package/ios/UpscopeModule.swift
CHANGED
|
@@ -156,7 +156,19 @@ class UpscopeModule: RCTEventEmitter, UpscopeDelegate {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
Task { @MainActor in
|
|
159
|
-
|
|
159
|
+
// The native Upscope singleton outlives the JS bundle, so on a Fast
|
|
160
|
+
// Refresh reload initialize() would throw `alreadyInitialized`. Skip
|
|
161
|
+
// re-initialization but always re-wire the delegate so the reloaded
|
|
162
|
+
// JS layer keeps receiving events.
|
|
163
|
+
if !Upscope.shared.isInitialized {
|
|
164
|
+
do {
|
|
165
|
+
try Upscope.shared.initialize(with: upscopeConfig)
|
|
166
|
+
} catch {
|
|
167
|
+
// Guarded on isInitialized, so alreadyInitialized can't fire
|
|
168
|
+
// here; log anything else so a failed init isn't invisible.
|
|
169
|
+
NSLog("[Upscope] initialize failed: \(error)")
|
|
170
|
+
}
|
|
171
|
+
}
|
|
160
172
|
Upscope.shared.delegate = self
|
|
161
173
|
}
|
|
162
174
|
}
|
package/lib/commonjs/version.js
CHANGED
|
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.SDK_VERSION = void 0;
|
|
7
7
|
// Auto-generated by scripts/generate-version.sh — do not edit manually
|
|
8
|
-
const SDK_VERSION = exports.SDK_VERSION = "2026.6.
|
|
8
|
+
const SDK_VERSION = exports.SDK_VERSION = "2026.6.4";
|
|
9
9
|
//# sourceMappingURL=version.js.map
|
package/lib/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2026.6.
|
|
1
|
+
export declare const SDK_VERSION = "2026.6.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated by scripts/generate-version.sh — do not edit manually
|
|
2
|
-
export const SDK_VERSION = "2026.6.
|
|
2
|
+
export const SDK_VERSION = "2026.6.4";
|