react-native-acoustic-connect-beta 18.0.27 → 18.0.28
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/AcousticConnectRN.podspec +4 -4
- package/README.md +36 -7
- package/android/CMakeLists.txt +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/assets/ConnectBasicConfig.properties +1 -1
- package/android/src/main/java/com/acousticconnectrn/AcousticConnectRNPackage.java +1 -1
- package/android/src/main/java/com/acousticconnectrn/HybridAcousticConnectRN.kt +191 -37
- package/ios/Bridge.h +1 -1
- package/ios/HybridAcousticConnectRN.swift +5 -5
- package/lib/commonjs/TLTRN.js +23 -3
- package/lib/commonjs/TLTRN.js.map +1 -1
- package/lib/commonjs/components/Connect.js +1 -1
- package/lib/commonjs/index.js +13 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/utils/withAcousticAutoDialog.js +1 -1
- package/lib/module/TLTRN.js +23 -3
- package/lib/module/TLTRN.js.map +1 -1
- package/lib/module/components/Connect.js +1 -1
- package/lib/module/index.js +14 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/withAcousticAutoDialog.js +1 -1
- package/lib/typescript/src/TLTRN.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/withAcousticAutoDialog.d.ts +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/acousticconnectrn/PushErrorInfo.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/acousticconnectrn/PushPermissionResult.kt +15 -0
- package/package.json +5 -5
- package/src/TLTRN.ts +31 -11
- package/src/components/Connect.tsx +1 -1
- package/src/index.ts +19 -2
- package/src/specs/react-native-acoustic-connect.nitro.ts +1 -1
- package/src/utils/withAcousticAutoDialog.tsx +1 -1
|
@@ -10,10 +10,10 @@ dependencyName = useRelease ? 'AcousticConnect' : 'AcousticConnectDebug'
|
|
|
10
10
|
iOSVersion = connectConfig["Connect"]["iOSVersion"]
|
|
11
11
|
|
|
12
12
|
# Floor required by the RN bridge:
|
|
13
|
-
# - `ConnectSDK.shared.enable(with:)` and `ConnectConfig` landed in 2.0.0
|
|
14
|
-
#
|
|
13
|
+
# - `ConnectSDK.shared.enable(with:)` and `ConnectConfig` landed in 2.0.0;
|
|
14
|
+
# anything older lacks the Swift symbols this file imports.
|
|
15
15
|
# - Bundle-less init via `_connectApplyBundleDefaults` landed in 2.0.5
|
|
16
|
-
# (
|
|
16
|
+
# (Release_Connect_Module_2_0_5, 2026-04-13). Without it,
|
|
17
17
|
# consumers who don't bundle `EOCoreSettings.bundle` + `TLFResources.bundle`
|
|
18
18
|
# fail to enable the SDK at all — the bridge ships no bundles and relies
|
|
19
19
|
# on programmatic config, so this fix is load-bearing here.
|
|
@@ -29,7 +29,7 @@ iOSVersion = connectConfig["Connect"]["iOSVersion"]
|
|
|
29
29
|
# `ConnectConfig.json -> Connect.PushEnabled` (mirrors the Android conditional
|
|
30
30
|
# on `connect-push-fcm` in `android/build.gradle`).
|
|
31
31
|
# 2.1.12 floor: `ConnectSDK.shared.push.requestAuthorization()` and
|
|
32
|
-
# `getCurrentAuthorization()`
|
|
32
|
+
# `getCurrentAuthorization()` land in 2.1.12. The push permission
|
|
33
33
|
# bridge methods call them directly, so an older pod would fail to compile.
|
|
34
34
|
sdkFloor = '>= 2.1.12'
|
|
35
35
|
dependencyRequirements = iOSVersion.to_s.empty? ? [sdkFloor] : [sdkFloor, iOSVersion]
|
package/README.md
CHANGED
|
@@ -11,11 +11,34 @@ For the full product overview see the
|
|
|
11
11
|
|
|
12
12
|
- React Native 0.82.x – 0.85.x with the new architecture
|
|
13
13
|
- React 19.1.1 or newer (or whatever your RN version pins)
|
|
14
|
+
- `react-native-nitro-modules` at the **exact** version this package pins in `peerDependencies` (currently **`0.35.9`**) — your app must resolve exactly this version; see [Nitro version pin](#nitro-version-pin)
|
|
14
15
|
- Node 20 or newer
|
|
15
16
|
- iOS deployment target ≥ 15.1, AcousticConnect / AcousticConnectDebug pod ≥ 2.0.5
|
|
16
17
|
- Android `minSdk` ≥ 26, `compileSdk` ≥ 35, `io.github.go-acoustic:connect` in `[11.0.11, 12.0.0)`
|
|
17
18
|
- **Expo is not supported by this package.** Expo apps should use the sibling
|
|
18
|
-
Config Plugin (
|
|
19
|
+
Config Plugin (shipped separately).
|
|
20
|
+
|
|
21
|
+
### Nitro version pin
|
|
22
|
+
|
|
23
|
+
This package pins `react-native-nitro-modules` to an **exact version**
|
|
24
|
+
(currently **`0.35.9`**) in its `peerDependencies` — deliberately *not* a range.
|
|
25
|
+
**Your app must resolve exactly that version.**
|
|
26
|
+
|
|
27
|
+
**Why (important): Nitro patch releases can contain breaking changes.** The SDK
|
|
28
|
+
ships native bindings generated against one specific Nitro version, and Nitro's
|
|
29
|
+
generated-code ↔ runtime contract is **not patch-safe**. For example, a
|
|
30
|
+
`0.35.4` → `0.35.9` *patch* bump changed Nitro's native registration and caused
|
|
31
|
+
this SDK's HybridObject to fail to load with a `ClassNotFoundException`, taking
|
|
32
|
+
the entire module offline at runtime. Because even a patch can break it, a
|
|
33
|
+
version *range* (`^`/`~`/`>=…<…`) cannot guarantee compatibility — so the pin is
|
|
34
|
+
exact.
|
|
35
|
+
|
|
36
|
+
If your app resolves a different Nitro version, the SDK may fail to start. You
|
|
37
|
+
*can* force past the peer check with `--legacy-peer-deps` / `--force`, **but
|
|
38
|
+
then you own making it work** — we cannot guard against breaking changes in
|
|
39
|
+
arbitrary future Nitro patch releases. When this SDK adopts a newer Nitro, it
|
|
40
|
+
ships in a new SDK release with the pin bumped; upgrade the SDK and Nitro
|
|
41
|
+
together.
|
|
19
42
|
|
|
20
43
|
## Installation
|
|
21
44
|
|
|
@@ -222,16 +245,22 @@ and the `<Connect>` component.
|
|
|
222
245
|
|
|
223
246
|
### `npm install` peer-dependency conflicts
|
|
224
247
|
|
|
225
|
-
|
|
226
|
-
|
|
248
|
+
This package pins `react-native-nitro-modules` to an **exact** version (see
|
|
249
|
+
[Nitro version pin](#nitro-version-pin)). If `npm install` errors on the Nitro
|
|
250
|
+
peer, your app is resolving a *different* Nitro version. Check it with:
|
|
227
251
|
|
|
228
252
|
```bash
|
|
229
|
-
npm
|
|
253
|
+
npm ls react-native-nitro-modules
|
|
230
254
|
```
|
|
231
255
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
256
|
+
**Supported fix:** align your app to the exact version this package requires
|
|
257
|
+
(and match React Native / React per the [Requirements](#requirements)).
|
|
258
|
+
|
|
259
|
+
`--legacy-peer-deps` / `--force` will silence the error, but the pin is
|
|
260
|
+
intentional: a mismatched Nitro version can break the SDK at runtime (an
|
|
261
|
+
init-time `ClassNotFoundException`), and bypassing means **you take on that
|
|
262
|
+
risk** — we cannot guard against breaking changes in arbitrary Nitro patch
|
|
263
|
+
releases. Match the version rather than bypass it.
|
|
235
264
|
|
|
236
265
|
### iOS — `pod install` fails with `[Connect] requires AcousticConnect >= 2.0.5`
|
|
237
266
|
|
package/android/CMakeLists.txt
CHANGED
package/android/build.gradle
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// prohibited.
|
|
8
8
|
//
|
|
9
9
|
//
|
|
10
|
-
// Created
|
|
10
|
+
// Created on 5/9/25.
|
|
11
11
|
//
|
|
12
12
|
|
|
13
13
|
package com.acousticconnectrn
|
|
@@ -29,6 +29,7 @@ import android.view.WindowManager
|
|
|
29
29
|
import android.view.inputmethod.InputMethodManager
|
|
30
30
|
import android.widget.EditText
|
|
31
31
|
import android.widget.TextView
|
|
32
|
+
import androidx.activity.ComponentActivity
|
|
32
33
|
import androidx.fragment.app.DialogFragment
|
|
33
34
|
import com.acoustic.connect.android.connectmod.Connect
|
|
34
35
|
import com.acoustic.connect.android.connectmod.Connect.TLF_ON_FOCUS_CHANGE_IN
|
|
@@ -47,6 +48,7 @@ import com.acoustic.connect.android.connectmod.Connect.logScreenview
|
|
|
47
48
|
import com.acoustic.connect.android.connectmod.Connect.onResume
|
|
48
49
|
import com.acoustic.connect.android.connectmod.Connect.registerFormField
|
|
49
50
|
import com.acoustic.connect.android.connectmod.Connect.resumeConnect
|
|
51
|
+
import com.acoustic.connect.android.connectmod.push.PushPermissionState
|
|
50
52
|
import com.facebook.react.bridge.LifecycleEventListener
|
|
51
53
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
52
54
|
import com.facebook.react.uimanager.UIManagerHelper
|
|
@@ -60,6 +62,7 @@ import com.margelo.nitro.acousticconnectrn.Variant_Boolean_String_Double
|
|
|
60
62
|
import com.margelo.nitro.acousticconnectrn.Variant_NullType_Boolean
|
|
61
63
|
import com.margelo.nitro.acousticconnectrn.Variant_NullType_String
|
|
62
64
|
import com.margelo.nitro.core.ArrayBuffer
|
|
65
|
+
import com.margelo.nitro.core.NullType
|
|
63
66
|
import com.margelo.nitro.core.Promise
|
|
64
67
|
import com.tl.uic.Tealeaf
|
|
65
68
|
import com.tl.uic.model.ScreenviewType
|
|
@@ -173,7 +176,7 @@ class HybridAcousticConnectRN : HybridAcousticConnectRNSpec(),
|
|
|
173
176
|
return app
|
|
174
177
|
}
|
|
175
178
|
|
|
176
|
-
// region Gate-keeper API
|
|
179
|
+
// region Gate-keeper API
|
|
177
180
|
|
|
178
181
|
/**
|
|
179
182
|
* Re-enables the Connect SDK after a prior `disable()`. All configuration
|
|
@@ -190,8 +193,7 @@ class HybridAcousticConnectRN : HybridAcousticConnectRNSpec(),
|
|
|
190
193
|
* Push wiring on Android is gated at build time by `Connect.PushEnabled`
|
|
191
194
|
* in `ConnectConfig.json`, which `android/build.gradle` consults to
|
|
192
195
|
* include the `connect-push-fcm` artifact. Token forwarding to Connect
|
|
193
|
-
*
|
|
194
|
-
* `FirebaseMessagingService`.
|
|
196
|
+
* runs through the host app's `FirebaseMessagingService`.
|
|
195
197
|
*
|
|
196
198
|
* @return true on accepted dispatch, false if no application context.
|
|
197
199
|
*/
|
|
@@ -231,76 +233,227 @@ class HybridAcousticConnectRN : HybridAcousticConnectRNSpec(),
|
|
|
231
233
|
return true
|
|
232
234
|
}
|
|
233
235
|
|
|
234
|
-
//
|
|
236
|
+
// region Push (Android)
|
|
235
237
|
//
|
|
236
|
-
// The shared Nitro spec
|
|
237
|
-
//
|
|
238
|
-
//
|
|
239
|
-
//
|
|
240
|
-
//
|
|
241
|
-
//
|
|
242
|
-
//
|
|
243
|
-
//
|
|
238
|
+
// The shared Nitro spec declares these push methods on both platforms. On
|
|
239
|
+
// Android the native SDK owns the ENTIRE push lifecycle — Connect's own
|
|
240
|
+
// FirebaseMessagingService (shipped in connect-push-fcm) handles inbound
|
|
241
|
+
// delivery, PushReceived / PushAction logging, and token registration
|
|
242
|
+
// automatically. Unlike iOS, Android has no manual JS-forwarding API, so
|
|
243
|
+
// every JS→native forwarder is a no-op that reports "handled", kept only
|
|
244
|
+
// for cross-platform API symmetry:
|
|
245
|
+
// - pushDidReceiveNotification, pushDidReceiveResponse,
|
|
246
|
+
// pushDidRegisterWithToken, pushDidFailToRegister,
|
|
247
|
+
// pushDidReceiveAuthorization
|
|
248
|
+
//
|
|
249
|
+
// The only Android-relevant behaviour is permission wiring:
|
|
250
|
+
// - pushRequestPermission / pushGetPermissionState — POST_NOTIFICATIONS
|
|
251
|
+
//
|
|
252
|
+
// pushGetToken / pushGetTokenAsync are intentionally NOT on the surface —
|
|
253
|
+
// parked (the native SDK registers the token with Connect automatically;
|
|
254
|
+
// no JS accessor is needed). None of these methods reject.
|
|
244
255
|
|
|
256
|
+
/**
|
|
257
|
+
* iOS-primary forwarder. On Android the FCM token is captured and registered
|
|
258
|
+
* with Connect automatically by the native messaging service, so this is a
|
|
259
|
+
* no-op that reports "handled". Never rejects.
|
|
260
|
+
*/
|
|
245
261
|
override fun pushDidRegisterWithToken(deviceToken: ArrayBuffer): Promise<Boolean> {
|
|
246
|
-
Log.
|
|
247
|
-
return Promise.resolved(
|
|
262
|
+
Log.d(TAG, "[bridge] pushDidRegisterWithToken: no-op on Android (native SDK owns token registration)")
|
|
263
|
+
return Promise.resolved(true)
|
|
248
264
|
}
|
|
249
265
|
|
|
266
|
+
/**
|
|
267
|
+
* iOS-primary forwarder. Android surfaces registration failures through the
|
|
268
|
+
* native SDK's own error path, so this is a no-op. Never rejects.
|
|
269
|
+
*/
|
|
250
270
|
override fun pushDidFailToRegister(error: PushErrorInfo): Promise<Boolean> {
|
|
251
|
-
Log.
|
|
252
|
-
return Promise.resolved(
|
|
271
|
+
Log.d(TAG, "[bridge] pushDidFailToRegister: no-op on Android (domain=${error.domain}, code=${error.code})")
|
|
272
|
+
return Promise.resolved(true)
|
|
253
273
|
}
|
|
254
274
|
|
|
275
|
+
/**
|
|
276
|
+
* iOS-primary forwarder. Android has **no** manual push-delivery API: the
|
|
277
|
+
* native SDK's own `FirebaseMessagingService` (shipped in `connect-push-fcm`)
|
|
278
|
+
* receives inbound messages and logs the PushReceived signal automatically.
|
|
279
|
+
* There is no sanctioned JS-forwarding entry point on Android — and outside
|
|
280
|
+
* Connect's push transport there is no registered device to attribute a
|
|
281
|
+
* PushReceived to — so this is a no-op that reports "handled". Kept for
|
|
282
|
+
* cross-platform API symmetry with iOS (where it forwards to the SDK in
|
|
283
|
+
* manual mode). Never rejects.
|
|
284
|
+
*/
|
|
255
285
|
override fun pushDidReceiveNotification(userInfo: Map<String, Variant_Boolean_String_Double>): Promise<Boolean> {
|
|
256
|
-
Log.
|
|
257
|
-
return Promise.resolved(
|
|
286
|
+
Log.d(TAG, "[bridge] pushDidReceiveNotification: no-op on Android (native FCM service owns delivery + logging)")
|
|
287
|
+
return Promise.resolved(true)
|
|
258
288
|
}
|
|
259
289
|
|
|
290
|
+
/**
|
|
291
|
+
* iOS-primary forwarder. Tap (PushAction) handling on Android routes through
|
|
292
|
+
* the native SDK's `NotificationActionActivity`, so this is a no-op. Never
|
|
293
|
+
* rejects.
|
|
294
|
+
*/
|
|
260
295
|
override fun pushDidReceiveResponse(
|
|
261
296
|
actionIdentifier: String,
|
|
262
|
-
userInfo: Map<String, Variant_Boolean_String_Double
|
|
297
|
+
userInfo: Map<String, Variant_Boolean_String_Double>,
|
|
263
298
|
): Promise<Boolean> {
|
|
264
|
-
Log.
|
|
265
|
-
return Promise.resolved(
|
|
299
|
+
Log.d(TAG, "[bridge] pushDidReceiveResponse: no-op on Android (native SDK handles tap actions)")
|
|
300
|
+
return Promise.resolved(true)
|
|
266
301
|
}
|
|
267
302
|
|
|
303
|
+
/**
|
|
304
|
+
* No-op on Android. Permission state is auto-detected on every activity
|
|
305
|
+
* start by the SDK's ActivityLifecycleHandler, so an externally-supplied
|
|
306
|
+
* authorization result needs no forwarding. Kept for API symmetry with iOS
|
|
307
|
+
* (where it forwards to the native SDK). Never rejects.
|
|
308
|
+
*/
|
|
268
309
|
override fun pushDidReceiveAuthorization(granted: Variant_NullType_Boolean?, error: PushErrorInfo?): Promise<Boolean> {
|
|
269
|
-
Log.
|
|
270
|
-
return Promise.resolved(
|
|
310
|
+
Log.d(TAG, "[bridge] pushDidReceiveAuthorization: no-op on Android (state self-heals via lifecycle)")
|
|
311
|
+
return Promise.resolved(true)
|
|
271
312
|
}
|
|
272
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Requests the POST_NOTIFICATIONS permission. Delegates to
|
|
316
|
+
* [com.acoustic.connect.android.connectmod.push.PushApi.requestNotificationPermission],
|
|
317
|
+
* which fully manages the system dialog and the Activity Result registration,
|
|
318
|
+
* then resolves from its one-shot callback. On pre-TIRAMISU devices the SDK
|
|
319
|
+
* resolves `granted = true` immediately.
|
|
320
|
+
*
|
|
321
|
+
* **Never rejects.** If no foreground [ComponentActivity] is available, or
|
|
322
|
+
* the SDK call throws, it resolves `{ granted: false, error: <reason> }`.
|
|
323
|
+
*
|
|
324
|
+
* Intentionally NOT gated by [isConnectPushFcmAvailable]. The permission
|
|
325
|
+
* API ([PushApi]/`ConnectPush` and the `NotificationPermission*` classes)
|
|
326
|
+
* ships in the core `connect` artifact, which is always on the classpath —
|
|
327
|
+
* the `connect-push-fcm` variant pulls `connect` in transitively (see
|
|
328
|
+
* `android/build.gradle`). So `Connect.push` is a non-null core object, not
|
|
329
|
+
* a stub, and accessing it cannot raise `NoClassDefFoundError` from a
|
|
330
|
+
* missing FCM artifact. POST_NOTIFICATIONS is an OS-level concern that is
|
|
331
|
+
* meaningful regardless of whether FCM message delivery is bundled; gating
|
|
332
|
+
* it on the FCM probe would wrongly disable a working capability in
|
|
333
|
+
* analytics-only (`PushEnabled=false`) builds. The only FCM-adjacent path
|
|
334
|
+
* the SDK runs from here — `sendToken()` in the result callback — is itself
|
|
335
|
+
* guarded by the SDK's `isInitialized()` and no-ops when transport is absent.
|
|
336
|
+
*/
|
|
273
337
|
override fun pushRequestPermission(): Promise<PushPermissionResult> {
|
|
274
|
-
|
|
275
|
-
|
|
338
|
+
val promise = Promise<PushPermissionResult>()
|
|
339
|
+
runOnMain {
|
|
340
|
+
// Re-read the foreground activity inside the main-looper block: it can
|
|
341
|
+
// change between the bridge call and this dispatch (e.g. a rotation /
|
|
342
|
+
// configuration change). Guard against a finishing or destroyed
|
|
343
|
+
// activity, not just null — handing such an activity to the SDK lets it
|
|
344
|
+
// register an ActivityResultLauncher whose result callback never fires,
|
|
345
|
+
// which would hang this Promise forever. Resolving deterministically
|
|
346
|
+
// here is preferable to a silent never-resolving Promise.
|
|
347
|
+
val activity = getCurrentActivity() as? ComponentActivity
|
|
348
|
+
if (activity == null || activity.isFinishing || activity.isDestroyed) {
|
|
349
|
+
Log.w(TAG, "[bridge] pushRequestPermission: no usable foreground ComponentActivity")
|
|
350
|
+
promise.resolve(
|
|
351
|
+
PushPermissionResult(false, Variant_NullType_String.create("no-foreground-activity")),
|
|
352
|
+
)
|
|
353
|
+
return@runOnMain
|
|
354
|
+
}
|
|
355
|
+
try {
|
|
356
|
+
// The `granted` callback is always delivered on the main thread:
|
|
357
|
+
// either synchronously here (pre-TIRAMISU / already-granted paths,
|
|
358
|
+
// still on this looper) or via AndroidX ActivityResultRegistry,
|
|
359
|
+
// which dispatches results on the main thread. Promise.resolve is
|
|
360
|
+
// additionally thread-agnostic — it delegates to native, which
|
|
361
|
+
// marshals onto the JS thread — so resolution is safe regardless of
|
|
362
|
+
// the calling thread.
|
|
363
|
+
Connect.push.requestNotificationPermission(activity) { granted ->
|
|
364
|
+
promise.resolve(PushPermissionResult(granted, null))
|
|
365
|
+
}
|
|
366
|
+
} catch (e: Exception) {
|
|
367
|
+
Log.w(TAG, "[bridge] pushRequestPermission: request failed — ${e.message}")
|
|
368
|
+
promise.resolve(
|
|
369
|
+
PushPermissionResult(false, Variant_NullType_String.create(e.message ?: "permission-request-failed")),
|
|
370
|
+
)
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
return promise
|
|
276
374
|
}
|
|
277
375
|
|
|
376
|
+
/**
|
|
377
|
+
* Returns the current POST_NOTIFICATIONS permission as the cross-platform
|
|
378
|
+
* tri-state: `true` granted, `false` denied, `null` not yet
|
|
379
|
+
* determined. Maps [PushPermissionState] from the native SDK. Does not
|
|
380
|
+
* prompt. Never rejects — resolves `null` if the context is unavailable or
|
|
381
|
+
* the SDK call throws.
|
|
382
|
+
*
|
|
383
|
+
* Runs on the main looper (via [runOnMain]), matching every other
|
|
384
|
+
* `Connect.push.*` invocation in this bridge rather than executing on the
|
|
385
|
+
* Nitro bridge thread the HybridObject method is dispatched on. Besides
|
|
386
|
+
* keeping the threading contract consistent, this serialises the call with
|
|
387
|
+
* [pushRequestPermission]'s SDK callback: both ultimately touch the same
|
|
388
|
+
* notification-permission `SharedPreferences` store (the SDK's
|
|
389
|
+
* `getPushPermissionState` does a read-then-write to reconcile a
|
|
390
|
+
* Settings-side revocation), so funnelling both through main avoids an
|
|
391
|
+
* interleaved read/write across threads.
|
|
392
|
+
*
|
|
393
|
+
* Like [pushRequestPermission], this is intentionally NOT gated by
|
|
394
|
+
* [isConnectPushFcmAvailable] — the permission API lives in the core
|
|
395
|
+
* `connect` artifact (always on the classpath) and never touches the FCM
|
|
396
|
+
* transport classes, so there is no missing-artifact / stub-object risk.
|
|
397
|
+
*/
|
|
278
398
|
override fun pushGetPermissionState(): Promise<Variant_NullType_Boolean> {
|
|
279
|
-
|
|
280
|
-
|
|
399
|
+
val promise = Promise<Variant_NullType_Boolean>()
|
|
400
|
+
runOnMain {
|
|
401
|
+
val context = applicationContext?.applicationContext
|
|
402
|
+
if (context == null) {
|
|
403
|
+
promise.resolve(Variant_NullType_Boolean.create(NullType.NULL))
|
|
404
|
+
return@runOnMain
|
|
405
|
+
}
|
|
406
|
+
try {
|
|
407
|
+
// Redundant against today's 3-value enum, but kept deliberately
|
|
408
|
+
// for forward-compatibility with future SDK enum values (see the
|
|
409
|
+
// `else` branch below), so silence the redundancy warning.
|
|
410
|
+
@Suppress("REDUNDANT_ELSE_IN_WHEN")
|
|
411
|
+
val triState = when (Connect.push.getPushPermissionState(context)) {
|
|
412
|
+
PushPermissionState.GRANTED -> Variant_NullType_Boolean.create(true)
|
|
413
|
+
PushPermissionState.DENIED -> Variant_NullType_Boolean.create(false)
|
|
414
|
+
PushPermissionState.NOT_DETERMINED -> Variant_NullType_Boolean.create(NullType.NULL)
|
|
415
|
+
// PushPermissionState is a Connect-SDK enum that may gain
|
|
416
|
+
// values in a future release. An explicit `else` keeps this
|
|
417
|
+
// forward-compatible: it avoids a compile break if the bridge
|
|
418
|
+
// is rebuilt against an SDK with a new state, and replaces the
|
|
419
|
+
// synthetic NoWhenBranchMatchedException (binary-incompat case:
|
|
420
|
+
// bridge built against the old enum, run against a newer one)
|
|
421
|
+
// with a deliberate fallback. Any unknown/new state maps to the
|
|
422
|
+
// tri-state `null` ("not determined") — the safest default.
|
|
423
|
+
else -> Variant_NullType_Boolean.create(NullType.NULL)
|
|
424
|
+
}
|
|
425
|
+
promise.resolve(triState)
|
|
426
|
+
} catch (e: Exception) {
|
|
427
|
+
Log.w(TAG, "[bridge] pushGetPermissionState: query failed — ${e.message}")
|
|
428
|
+
promise.resolve(Variant_NullType_Boolean.create(NullType.NULL))
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
return promise
|
|
281
432
|
}
|
|
282
433
|
|
|
434
|
+
// endregion
|
|
435
|
+
|
|
283
436
|
/**
|
|
284
437
|
* Checks whether the `connect-push-fcm` artifact is on the classpath and
|
|
285
438
|
* logs the result. The artifact is gated by `Connect.PushEnabled` in
|
|
286
439
|
* `ConnectConfig.json` via `android/build.gradle`'s conditional
|
|
287
440
|
* `implementation` clause. A missing artifact when `PushEnabled` was set
|
|
288
441
|
* to true points at a build-pipeline issue (didn't run `config.gradle`
|
|
289
|
-
* or the conditional didn't fire).
|
|
290
|
-
* Connect push API on Android
|
|
442
|
+
* or the conditional didn't fire). This method also gates the push
|
|
443
|
+
* wire-up against the resolved Connect push API on Android.
|
|
291
444
|
*/
|
|
292
445
|
private fun logResolvedPushAvailability() {
|
|
293
446
|
val pushAvailable = isConnectPushFcmAvailable()
|
|
294
447
|
Log.i(TAG, "[config] connect-push-fcm on classpath: $pushAvailable")
|
|
295
448
|
if (!pushAvailable) {
|
|
296
|
-
Log.i(TAG, "[config] Push is not active on Android in this build. To enable, set Connect.PushEnabled=true in ConnectConfig.json and re-sync Gradle to include connect-push-fcm.
|
|
449
|
+
Log.i(TAG, "[config] Push is not active on Android in this build. To enable, set Connect.PushEnabled=true in ConnectConfig.json and re-sync Gradle to include connect-push-fcm.")
|
|
297
450
|
}
|
|
298
451
|
}
|
|
299
452
|
|
|
300
453
|
private fun isConnectPushFcmAvailable(): Boolean {
|
|
301
454
|
// Probe a known class shipped by the connect-push-fcm artifact. The
|
|
302
|
-
// exact class lives in the Connect Android SDK's push module
|
|
303
|
-
//
|
|
455
|
+
// exact class lives in the Connect Android SDK's push module. This
|
|
456
|
+
// Class.forName probe is robust to
|
|
304
457
|
// package-name changes because it falls through silently when the
|
|
305
458
|
// class is missing (which is the default in a no-push build).
|
|
306
459
|
return try {
|
|
@@ -1121,10 +1274,11 @@ class HybridAcousticConnectRN : HybridAcousticConnectRNSpec(),
|
|
|
1121
1274
|
const val DIALOG_CAPTURE_DELAY_MS = 500L // Configurable delay for dialog screenshot capture
|
|
1122
1275
|
|
|
1123
1276
|
// Class probed at runtime to detect whether the connect-push-fcm
|
|
1124
|
-
// artifact was included in the build.
|
|
1125
|
-
//
|
|
1126
|
-
//
|
|
1277
|
+
// transport artifact was included in the build (i.e. automatic mode,
|
|
1278
|
+
// where Connect's own FirebaseMessagingService is the PushReceived
|
|
1279
|
+
// sink). Points at the FCM messaging service shipped
|
|
1280
|
+
// by the connect-push-fcm artifact.
|
|
1127
1281
|
private const val CONNECT_PUSH_FCM_PROBE_CLASS =
|
|
1128
|
-
"com.acoustic.connect.android.push.fcm.
|
|
1282
|
+
"com.acoustic.connect.android.connectmod.push.services.fcm.FCMPushService"
|
|
1129
1283
|
}
|
|
1130
1284
|
}
|
package/ios/Bridge.h
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// prohibited.
|
|
8
8
|
//
|
|
9
9
|
//
|
|
10
|
-
// Created
|
|
10
|
+
// Created on 5/9/25.
|
|
11
11
|
//
|
|
12
12
|
|
|
13
13
|
import Foundation
|
|
@@ -94,7 +94,7 @@ class HybridAcousticConnectRN: HybridAcousticConnectRNSpec {
|
|
|
94
94
|
/// forwards events to the SDK; automatic/off surface `EAC-RN-007` (`false`).
|
|
95
95
|
///
|
|
96
96
|
// Constructor — auto-inits the SDK from `ConnectConfig.json`. Matches the
|
|
97
|
-
// pre-
|
|
97
|
+
// pre-existing auto-init behaviour; consumers that need consent-gated init can call
|
|
98
98
|
// `disable()` immediately and `enable()` once they have permission.
|
|
99
99
|
override init() {
|
|
100
100
|
super.init()
|
|
@@ -333,7 +333,7 @@ class HybridAcousticConnectRN: HybridAcousticConnectRNSpec {
|
|
|
333
333
|
return true
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
// MARK: - Push: APNs lifecycle
|
|
336
|
+
// MARK: - Push: APNs lifecycle
|
|
337
337
|
|
|
338
338
|
/// Forwards the raw APNs device token to the SDK. Nitro hands us native
|
|
339
339
|
/// `Data` via `ArrayBuffer` — no hex conversion, no validation. Idempotent
|
|
@@ -369,7 +369,7 @@ class HybridAcousticConnectRN: HybridAcousticConnectRNSpec {
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
// MARK: - Push: notification delivery — manual mode only
|
|
372
|
+
// MARK: - Push: notification delivery — manual mode only
|
|
373
373
|
|
|
374
374
|
/// Forwards a received notification so the SDK logs `pushReceived` (manual
|
|
375
375
|
/// mode). Resolves `true` when processed. In automatic/off mode the SDK
|
|
@@ -409,7 +409,7 @@ class HybridAcousticConnectRN: HybridAcousticConnectRNSpec {
|
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
-
// MARK: - Push: permission management
|
|
412
|
+
// MARK: - Push: permission management
|
|
413
413
|
|
|
414
414
|
/// Forwards externally-obtained permission state to the SDK. Tri-state
|
|
415
415
|
/// `granted`: `true`/`false` forward; `nil` (notDetermined) is recorded by
|
package/lib/commonjs/TLTRN.js
CHANGED
|
@@ -22,9 +22,25 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
22
22
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
|
|
25
|
+
// Preserve any previously-installed handler (e.g. React Native's red-box
|
|
26
|
+
// handler) so we augment rather than replace it.
|
|
25
27
|
// @ts-ignore
|
|
26
|
-
global.ErrorUtils
|
|
27
|
-
|
|
28
|
+
const previousGlobalErrorHandler = global.ErrorUtils?.getGlobalHandler?.();
|
|
29
|
+
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
global.ErrorUtils?.setGlobalHandler?.((e, isFatal) => {
|
|
32
|
+
// A global error handler must never throw — otherwise it masks the ORIGINAL
|
|
33
|
+
// error. `AcousticConnectRN` can be undefined here (e.g. the native module
|
|
34
|
+
// failed to load, or during the module-load circular import), so guard the
|
|
35
|
+
// call and always forward to the previous handler so the real error still
|
|
36
|
+
// surfaces and fatals still crash.
|
|
37
|
+
try {
|
|
38
|
+
_index.default?.logExceptionEvent?.(JSON.stringify(e), JSON.stringify(e), true);
|
|
39
|
+
} catch (loggingError) {
|
|
40
|
+
console.warn('TLTRN: failed to log uncaught exception:', loggingError?.message);
|
|
41
|
+
} finally {
|
|
42
|
+
previousGlobalErrorHandler?.(e, isFatal);
|
|
43
|
+
}
|
|
28
44
|
});
|
|
29
45
|
class TLTRN {
|
|
30
46
|
static currentScreen = "***initialCurrentScreen not set in ConnectLogger constructor***";
|
|
@@ -249,7 +265,11 @@ class TLTRN {
|
|
|
249
265
|
console.log("Message data:", data);
|
|
250
266
|
}
|
|
251
267
|
if (message.module === "ExceptionsManager") {
|
|
252
|
-
|
|
268
|
+
try {
|
|
269
|
+
_index.default?.logExceptionEvent?.(message.args[0], JSON.stringify(message.args[1]), true);
|
|
270
|
+
} catch (error) {
|
|
271
|
+
console.log('logExceptionEvent (bridge) error: ', error?.message);
|
|
272
|
+
}
|
|
253
273
|
}
|
|
254
274
|
};
|
|
255
275
|
static checkTime = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_MessageQueue","_interopRequireDefault","require","_reactNative","_KeyboardListener","_DialogListener","_index","e","__esModule","default","global","ErrorUtils","setGlobalHandler","_isFatal","AcousticConnectRN","logExceptionEvent","JSON","stringify","TLTRN","currentScreen","lastJSBridgeMessageTime","totalRenderTime","messageRenderTime","countMsgs","messageConsole","lastMessageConsole","isLoggingData","displayDebug","myTimer","handle","started","time","startTimer","setInterval","checkTime","stopTimer","clearInterval","init","initialCurrentScreen","showDebugConsoleMessages","undefined","currentScreenMsg","MessageQueue","spy","listenToBridge","interceptKeyboardEvents","enable","keyListener","logScreenViewPageName","name","result","setCurrentScreenName","error","console","log","message","logScreenViewContextLoad","prevName","logScreenLayout","logClickEvent","event","target","__nativeTag","_nativeTag","controlId","fiberId","_targetInst","memoizedProps","id","length","Array","isArray","_dispatchInstances","found","find","node","logTextChangeEvent","text","_ariaLabel","Platform","OS","logCustomEvent","eventName","values","level","logDialogShowEvent","dialogId","dialogTitle","dialogType","logDialogDismissEvent","dismissReason","logDialogButtonClickEvent","buttonText","buttonIndex","logDialogCustomEvent","eventListenerRegistered","eventListenerUnsubscribe","interceptDialogEvents","dialogListener","DialogListener","getInstance","startIntercepting","addEventListener","stopIntercepting","now","Date","getTime","from","type","data","module","method","args","logTeal","res","dict","ReactLayoutTime","KeyboardListener","_instance","_default","exports"],"sourceRoot":"../../src","sources":["TLTRN.ts"],"mappings":";;;;;;AAWA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,eAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,MAAA,GAAAL,sBAAA,CAAAC,OAAA;AAAwC,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAhBxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAQA;AACAG,MAAM,CAACC,UAAU,CAACC,gBAAgB,CAAC,CAACL,CAAM,EAAEM,QAAiB,KAAK;EAChEC,cAAiB,CAACC,iBAAiB,CAC/BC,IAAI,CAACC,SAAS,CAACV,CAAC,CAAC,EACjBS,IAAI,CAACC,SAAS,CAACV,CAAC,CAAC,EACjB,IACJ,CAAC;AACH,CAAC,CAAC;AAEF,MAAMW,KAAK,CAAC;EACV,OAAOC,aAAa,GAClB,iEAAiE;EACnE,OAAOC,uBAAuB,GAAG,CAAC;EAClC,OAAOC,eAAe,GAAG,CAAC;EAC1B,OAAOC,iBAAiB,GAAG,CAAC;EAC5B,OAAOC,SAAS,GAAG,CAAC;EACpB,OAAOC,cAAc,GAAG,CAAC;EACzB,OAAOC,kBAAkB,GAAG,CAAC;EAC7B,OAAOC,aAAa,GAAG,CAAC;EACxB,OAAOC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AuB,GAAG,CAAC;MACjCF,KAAK,CAACG,eAAe,GAAG,CAAC;IAC3B,CAAC,CAAC,OAAOd,CAAC,EAAE;MACV8C,OAAO,CAACD,KAAK,CAAC7C,CAAC,CAAC;IAClB;EACF,CAAC;AACH;AACA,MAAMwC,WAAW,GAAGsE,yBAAgB,CAACC,SAAS,CAACpG,KAAK,CAAC;AAAC,IAAAqG,QAAA,GAAAC,OAAA,CAAA/G,OAAA,GAEvCS,KAAK","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_MessageQueue","_interopRequireDefault","require","_reactNative","_KeyboardListener","_DialogListener","_index","e","__esModule","default","previousGlobalErrorHandler","global","ErrorUtils","getGlobalHandler","setGlobalHandler","isFatal","AcousticConnectRN","logExceptionEvent","JSON","stringify","loggingError","console","warn","message","TLTRN","currentScreen","lastJSBridgeMessageTime","totalRenderTime","messageRenderTime","countMsgs","messageConsole","lastMessageConsole","isLoggingData","displayDebug","myTimer","handle","started","time","startTimer","setInterval","checkTime","stopTimer","clearInterval","init","initialCurrentScreen","showDebugConsoleMessages","undefined","currentScreenMsg","MessageQueue","spy","listenToBridge","interceptKeyboardEvents","enable","keyListener","logScreenViewPageName","name","result","setCurrentScreenName","error","log","logScreenViewContextLoad","prevName","logScreenLayout","logClickEvent","event","target","__nativeTag","_nativeTag","controlId","fiberId","_targetInst","memoizedProps","id","length","Array","isArray","_dispatchInstances","found","find","node","logTextChangeEvent","text","_ariaLabel","Platform","OS","logCustomEvent","eventName","values","level","logDialogShowEvent","dialogId","dialogTitle","dialogType","logDialogDismissEvent","dismissReason","logDialogButtonClickEvent","buttonText","buttonIndex","logDialogCustomEvent","eventListenerRegistered","eventListenerUnsubscribe","interceptDialogEvents","dialogListener","DialogListener","getInstance","startIntercepting","addEventListener","stopIntercepting","now","Date","getTime","from","type","data","module","method","args","logTeal","res","dict","ReactLayoutTime","KeyboardListener","_instance","_default","exports"],"sourceRoot":"../../src","sources":["TLTRN.ts"],"mappings":";;;;;;AAWA,IAA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T,iBAAiB,GACfnC,KAAK,CAACC,aAAa,GACnB,GAAG,GACH6F,GAAG,GACH,QAAQ,GACR9F,KAAK,CAACG,eACV,CAAC;MACH;MACAH,KAAK,CAACQ,aAAa,GAAG,CAAC;MACvBR,KAAK,CAACE,uBAAuB,GAAG,CAAC;MACjCF,KAAK,CAACG,eAAe,GAAG,CAAC;IAC3B,CAAC,CAAC,OAAOpB,CAAC,EAAE;MACVc,OAAO,CAACqC,KAAK,CAACnD,CAAC,CAAC;IAClB;EACF,CAAC;AACH;AACA,MAAM8C,WAAW,GAAGoE,yBAAgB,CAACC,SAAS,CAAClG,KAAK,CAAC;AAAC,IAAAmG,QAAA,GAAAC,OAAA,CAAAnH,OAAA,GAEvCe,KAAK","ignoreList":[]}
|
|
@@ -29,7 +29,7 @@ const Connect = ({
|
|
|
29
29
|
navigationRef
|
|
30
30
|
}) => {
|
|
31
31
|
const child = children;
|
|
32
|
-
//
|
|
32
|
+
// React 19 moved the ref off `element.ref` onto `element.props.ref`.
|
|
33
33
|
// Read `props.ref` first; the legacy `child.ref` fallback is a defensive
|
|
34
34
|
// guard from the React 18 era — kept to avoid a behavioural change.
|
|
35
35
|
const childProvidedRef = child?.props?.ref ?? child?.ref;
|
package/lib/commonjs/index.js
CHANGED
|
@@ -64,10 +64,21 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
64
64
|
* Acoustic, L.P. Any unauthorized copying or distribution of content from this file is
|
|
65
65
|
* prohibited.
|
|
66
66
|
*
|
|
67
|
-
* Created
|
|
67
|
+
* Created on 5/9/25.
|
|
68
68
|
*
|
|
69
69
|
********************************************************************************************/
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
// Instantiating the native HybridObject is the first thing that fails when the
|
|
72
|
+
// app's `react-native-nitro-modules` runtime does not match the version this SDK
|
|
73
|
+
// was generated against (the generated registration is tightly coupled to the
|
|
74
|
+
// Nitro version — see peerDependencies). Without this guard the failure surfaces
|
|
75
|
+
// as an opaque `ClassNotFoundException` and an `undefined` module far from the
|
|
76
|
+
// cause. Re-throw with an actionable message instead.
|
|
77
|
+
let AcousticConnectRN;
|
|
78
|
+
try {
|
|
79
|
+
AcousticConnectRN = _reactNativeNitroModules.NitroModules.createHybridObject('AcousticConnectRN');
|
|
80
|
+
} catch (error) {
|
|
81
|
+
throw new Error('[AcousticConnectRN] Failed to load the native HybridObject. This almost ' + 'always means a `react-native-nitro-modules` version mismatch: this SDK is ' + 'built against the exact version declared in its peerDependencies, so your ' + 'app must resolve that same version (check `npm ls react-native-nitro-modules`). ' + `Original error: ${String(error)}`);
|
|
82
|
+
}
|
|
72
83
|
var _default = exports.default = AcousticConnectRN;
|
|
73
84
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeNitroModules","require","_Connect","_interopRequireDefault","_KeyboardListener","_DialogListener","_useDialogTracking","_withAcousticAutoDialog","_DialogDebugger","_TLTRN","e","__esModule","default","AcousticConnectRN","NitroModules","createHybridObject","_default","exports"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAAA,wBAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,eAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,kBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,uBAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,MAAA,GAAAN,sBAAA,CAAAF,OAAA;AAA2B,SAAAE,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AArB3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA,
|
|
1
|
+
{"version":3,"names":["_reactNativeNitroModules","require","_Connect","_interopRequireDefault","_KeyboardListener","_DialogListener","_useDialogTracking","_withAcousticAutoDialog","_DialogDebugger","_TLTRN","e","__esModule","default","AcousticConnectRN","NitroModules","createHybridObject","error","Error","String","_default","exports"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAAA,wBAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,eAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,kBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,uBAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,MAAA,GAAAN,sBAAA,CAAAF,OAAA;AAA2B,SAAAE,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AArB3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIG,iBAAwC;AAC5C,IAAI;EACFA,iBAAiB,GAAGC,qCAAY,CAACC,kBAAkB,CAAwB,mBAAmB,CAAC;AACjG,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd,MAAM,IAAIC,KAAK,CACb,0EAA0E,GACxE,4EAA4E,GAC5E,4EAA4E,GAC5E,kFAAkF,GAClF,mBAAmBC,MAAM,CAACF,KAAK,CAAC,EACpC,CAAC;AACH;AAAC,IAAAG,QAAA,GAAAC,OAAA,CAAAR,OAAA,GAGcC,iBAAiB","ignoreList":[]}
|
|
@@ -21,7 +21,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
21
21
|
* Acoustic, L.P. Any unauthorized copying or distribution of content from this file is
|
|
22
22
|
* prohibited.
|
|
23
23
|
*
|
|
24
|
-
* Created
|
|
24
|
+
* Created on 5/9/25.
|
|
25
25
|
*
|
|
26
26
|
********************************************************************************************/
|
|
27
27
|
|
package/lib/module/TLTRN.js
CHANGED
|
@@ -17,9 +17,25 @@ import KeyboardListener from "./utils/KeyboardListener";
|
|
|
17
17
|
import DialogListener from "./utils/DialogListener";
|
|
18
18
|
import AcousticConnectRN from './index';
|
|
19
19
|
|
|
20
|
+
// Preserve any previously-installed handler (e.g. React Native's red-box
|
|
21
|
+
// handler) so we augment rather than replace it.
|
|
20
22
|
// @ts-ignore
|
|
21
|
-
global.ErrorUtils
|
|
22
|
-
|
|
23
|
+
const previousGlobalErrorHandler = global.ErrorUtils?.getGlobalHandler?.();
|
|
24
|
+
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
global.ErrorUtils?.setGlobalHandler?.((e, isFatal) => {
|
|
27
|
+
// A global error handler must never throw — otherwise it masks the ORIGINAL
|
|
28
|
+
// error. `AcousticConnectRN` can be undefined here (e.g. the native module
|
|
29
|
+
// failed to load, or during the module-load circular import), so guard the
|
|
30
|
+
// call and always forward to the previous handler so the real error still
|
|
31
|
+
// surfaces and fatals still crash.
|
|
32
|
+
try {
|
|
33
|
+
AcousticConnectRN?.logExceptionEvent?.(JSON.stringify(e), JSON.stringify(e), true);
|
|
34
|
+
} catch (loggingError) {
|
|
35
|
+
console.warn('TLTRN: failed to log uncaught exception:', loggingError?.message);
|
|
36
|
+
} finally {
|
|
37
|
+
previousGlobalErrorHandler?.(e, isFatal);
|
|
38
|
+
}
|
|
23
39
|
});
|
|
24
40
|
class TLTRN {
|
|
25
41
|
static currentScreen = "***initialCurrentScreen not set in ConnectLogger constructor***";
|
|
@@ -244,7 +260,11 @@ class TLTRN {
|
|
|
244
260
|
console.log("Message data:", data);
|
|
245
261
|
}
|
|
246
262
|
if (message.module === "ExceptionsManager") {
|
|
247
|
-
|
|
263
|
+
try {
|
|
264
|
+
AcousticConnectRN?.logExceptionEvent?.(message.args[0], JSON.stringify(message.args[1]), true);
|
|
265
|
+
} catch (error) {
|
|
266
|
+
console.log('logExceptionEvent (bridge) error: ', error?.message);
|
|
267
|
+
}
|
|
248
268
|
}
|
|
249
269
|
};
|
|
250
270
|
static checkTime = () => {
|
package/lib/module/TLTRN.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MessageQueue","Platform","KeyboardListener","DialogListener","AcousticConnectRN","global","ErrorUtils","setGlobalHandler","e","_isFatal","logExceptionEvent","JSON","stringify","TLTRN","currentScreen","lastJSBridgeMessageTime","totalRenderTime","messageRenderTime","countMsgs","messageConsole","lastMessageConsole","isLoggingData","displayDebug","myTimer","handle","started","time","startTimer","setInterval","checkTime","stopTimer","clearInterval","init","initialCurrentScreen","showDebugConsoleMessages","undefined","currentScreenMsg","spy","listenToBridge","interceptKeyboardEvents","enable","keyListener","logScreenViewPageName","name","result","setCurrentScreenName","error","console","log","message","logScreenViewContextLoad","prevName","logScreenLayout","logClickEvent","event","target","__nativeTag","_nativeTag","controlId","fiberId","_targetInst","memoizedProps","id","length","Array","isArray","_dispatchInstances","found","find","node","logTextChangeEvent","text","_ariaLabel","OS","logCustomEvent","eventName","values","level","logDialogShowEvent","dialogId","dialogTitle","dialogType","logDialogDismissEvent","dismissReason","logDialogButtonClickEvent","buttonText","buttonIndex","logDialogCustomEvent","eventListenerRegistered","eventListenerUnsubscribe","interceptDialogEvents","dialogListener","getInstance","startIntercepting","addEventListener","stopIntercepting","now","Date","getTime","from","type","data","module","method","args","logTeal","res","dict","ReactLayoutTime","_instance"],"sourceRoot":"../../src","sources":["TLTRN.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,OAAOA,YAAY,MAAM,sDAAsD;AAC/E,SAASC,QAAQ,QAAQ,cAAc;A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2E,OAAO,CAAC,CAAC;IAChB;EACF,CAAC;EAED,OAAOA,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC3B,IAAI;MACF5F,KAAK,CAACQ,aAAa,GAAG,CAAC;MACvB,IAAIqF,GAAG,GAAG,MAAMtG,iBAAiB,CAACgD,eAAe,CAACvC,KAAK,CAACC,aAAa,EAAE,CAAC,CAAC,CAAC;MAC1E,IAAI6F,IAAI,GAAG;QAAEC,eAAe,EAAE/F,KAAK,CAACG;MAAgB,CAAC;MACrD,IAAI4B,MAAM,GAAG,MAAMxC,iBAAiB,CAACsE,cAAc,CAAC,aAAa,EAAEiC,IAAI,EAAE,CAAC,CAAC;MAC3E,IAAI9F,KAAK,CAACS,YAAY,EAAE;QACtByB,OAAO,CAACC,GAAG,CACT,iBAAiB,GACfnC,KAAK,CAACC,aAAa,GACnB,GAAG,GACH4F,GAAG,GACH,QAAQ,GACR7F,KAAK,CAACG,eACV,CAAC;MACH;MACAH,KAAK,CAACQ,aAAa,GAAG,CAAC;MACvBR,KAAK,CAACE,uBAAuB,GAAG,CAAC;MACjCF,KAAK,CAACG,eAAe,GAAG,CAAC;IAC3B,CAAC,CAAC,OAAOR,CAAC,EAAE;MACVuC,OAAO,CAACD,KAAK,CAACtC,CAAC,CAAC;IAClB;EACF,CAAC;AACH;AACA,MAAMiC,WAAW,GAAGvC,gBAAgB,CAAC2G,SAAS,CAAChG,KAAK,CAAC;AAErD,eAAeA,KAAK","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["MessageQueue","Platform","KeyboardListener","DialogListener","AcousticConnectRN","previousGlobalErrorHandler","global","ErrorUtils","getGlobalHandler","setGlobalHandler","e","isFatal","logExceptionEvent","JSON","stringify","loggingError","console","warn","message","TLTRN","currentScreen","lastJSBridgeMessageTime","totalRenderTime","messageRenderTime","countMsgs","messageConsole","lastMessageConsole","isLoggingData","displayDebug","myTimer","handle","started","time","startTimer","setInterval","checkTime","stopTimer","clearInterval","init","initialCurrentScreen","showDebugConsoleMessages","undefined","currentScreenMsg","spy","listenToBridge","interceptKeyboardEvents","enable","keyListener","logScreenViewPageName","name","result","setCurrentScreenName","error","log","logScreenViewContextLoad","prevName","logScreenLayout","logClickEvent","event","target","__nativeTag","_nativeTag","controlId","fiberId","_targetInst","memoizedProps","id","length","Array","isArray","_dispatchInstances","found","find","node","logTextChangeEvent","text","_ariaLabel","OS","logCustomEvent","eventName","values","level","logDialogShowEvent","dialogId","dialogTitle","dialogType","logDialogDismissEvent","dismissReason","logDialogButtonClickEvent","buttonText","buttonIndex","logDialogCustomEvent","eventListenerRegistered","eventListenerUnsubscribe","interceptDialogEvents","dialogListener","getInstance","startIntercepting","addEventListener","stopIntercepting","now","Date","getTime","from","type","data","module","method","args","logTeal","res","dict","ReactLayoutTime","_instance"],"sourceRoot":"../../src","sources":["TLTRN.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,OAAOA,YAAY,MAAM,sDAAsD;AAC/E,SAASC,QAAQ,QAAQ,cAAc;AACvC,OAAOC,gBAAgB,MAAM,0BAA0B;AACvD,OAAOC,cAAc,MAAM,wBAAwB;AAEnD,OAAOC,iBAAiB,MAAM,SAAS;;AAEvC;AACA;AACA;AACA,MAAMC,0BAA0B,GAAGC,MAAM,CAACC,UAAU,EAAEC,gBAAgB,GAAG,CAAC;;AAE1E;AACAF,MAAM,CAACC,UAAU,EAAEE,gBAAgB,GAAG,CAACC,CAAM,EAAEC,OAAgB,KAAK;EAClE;EACA;EACA;EACA;EACA;EACA,IAAI;IACFP,iBAAiB,EAAEQ,iBAAiB,GAChCC,IAAI,CAACC,SAAS,CAACJ,CAAC,CAAC,EACjBG,IAAI,CAACC,SAAS,CAACJ,CAAC,CAAC,EACjB,IACJ,CAAC;EACH,CAAC,CAAC,OAAOK,YAAyB,EAAE;IAClCC,OAAO,CAACC,IAAI,CAAC,0CAA0C,EAAEF,YAAY,EAAEG,OAAO,CAAC;EACjF,CAAC,SAAS;IACRb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1F,KAAK,CAACQ,aAAa,GAAG,CAAC;MACvB,IAAImF,GAAG,GAAG,MAAM1G,iBAAiB,CAACoD,eAAe,CAACrC,KAAK,CAACC,aAAa,EAAE,CAAC,CAAC,CAAC;MAC1E,IAAI2F,IAAI,GAAG;QAAEC,eAAe,EAAE7F,KAAK,CAACG;MAAgB,CAAC;MACrD,IAAI4B,MAAM,GAAG,MAAM9C,iBAAiB,CAAC0E,cAAc,CAAC,aAAa,EAAEiC,IAAI,EAAE,CAAC,CAAC;MAC3E,IAAI5F,KAAK,CAACS,YAAY,EAAE;QACtBZ,OAAO,CAACqC,GAAG,CACT,iBAAiB,GACflC,KAAK,CAACC,aAAa,GACnB,GAAG,GACH0F,GAAG,GACH,QAAQ,GACR3F,KAAK,CAACG,eACV,CAAC;MACH;MACAH,KAAK,CAACQ,aAAa,GAAG,CAAC;MACvBR,KAAK,CAACE,uBAAuB,GAAG,CAAC;MACjCF,KAAK,CAACG,eAAe,GAAG,CAAC;IAC3B,CAAC,CAAC,OAAOZ,CAAC,EAAE;MACVM,OAAO,CAACoC,KAAK,CAAC1C,CAAC,CAAC;IAClB;EACF,CAAC;AACH;AACA,MAAMqC,WAAW,GAAG7C,gBAAgB,CAAC+G,SAAS,CAAC9F,KAAK,CAAC;AAErD,eAAeA,KAAK","ignoreList":[]}
|
|
@@ -21,7 +21,7 @@ const Connect = ({
|
|
|
21
21
|
navigationRef
|
|
22
22
|
}) => {
|
|
23
23
|
const child = children;
|
|
24
|
-
//
|
|
24
|
+
// React 19 moved the ref off `element.ref` onto `element.props.ref`.
|
|
25
25
|
// Read `props.ref` first; the legacy `child.ref` fallback is a defensive
|
|
26
26
|
// guard from the React 18 era — kept to avoid a behavioural change.
|
|
27
27
|
const childProvidedRef = child?.props?.ref ?? child?.ref;
|
package/lib/module/index.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Acoustic, L.P. Any unauthorized copying or distribution of content from this file is
|
|
10
10
|
* prohibited.
|
|
11
11
|
*
|
|
12
|
-
* Created
|
|
12
|
+
* Created on 5/9/25.
|
|
13
13
|
*
|
|
14
14
|
********************************************************************************************/
|
|
15
15
|
|
|
@@ -21,7 +21,19 @@ import useDialogTracking from './utils/useDialogTracking';
|
|
|
21
21
|
import { withAcousticAutoDialog } from './utils/withAcousticAutoDialog';
|
|
22
22
|
import DialogDebugger from './utils/DialogDebugger';
|
|
23
23
|
import TLTRN from './TLTRN';
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
// Instantiating the native HybridObject is the first thing that fails when the
|
|
26
|
+
// app's `react-native-nitro-modules` runtime does not match the version this SDK
|
|
27
|
+
// was generated against (the generated registration is tightly coupled to the
|
|
28
|
+
// Nitro version — see peerDependencies). Without this guard the failure surfaces
|
|
29
|
+
// as an opaque `ClassNotFoundException` and an `undefined` module far from the
|
|
30
|
+
// cause. Re-throw with an actionable message instead.
|
|
31
|
+
let AcousticConnectRN;
|
|
32
|
+
try {
|
|
33
|
+
AcousticConnectRN = NitroModules.createHybridObject('AcousticConnectRN');
|
|
34
|
+
} catch (error) {
|
|
35
|
+
throw new Error('[AcousticConnectRN] Failed to load the native HybridObject. This almost ' + 'always means a `react-native-nitro-modules` version mismatch: this SDK is ' + 'built against the exact version declared in its peerDependencies, so your ' + 'app must resolve that same version (check `npm ls react-native-nitro-modules`). ' + `Original error: ${String(error)}`);
|
|
36
|
+
}
|
|
25
37
|
export { Connect, TLTRN, KeyboardListener, DialogListener, useDialogTracking, DialogDebugger, withAcousticAutoDialog };
|
|
26
38
|
export default AcousticConnectRN;
|
|
27
39
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NitroModules","Connect","KeyboardListener","DialogListener","useDialogTracking","withAcousticAutoDialog","DialogDebugger","TLTRN","AcousticConnectRN","createHybridObject"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,YAAY,QAAQ,4BAA4B;AAEzD,OAAOC,OAAO,MAAM,sBAAsB;AAC1C,OAAOC,gBAAgB,MAAM,0BAA0B;AACvD,OAAOC,cAAc,MAAM,wBAAwB;AACnD,OAAOC,iBAAiB,MAAM,2BAA2B;AACzD,SAASC,sBAAsB,QAAQ,gCAAgC;AACvE,OAAOC,cAAc,MAAM,wBAAwB;AACnD,OAAOC,KAAK,MAAM,SAAS;
|
|
1
|
+
{"version":3,"names":["NitroModules","Connect","KeyboardListener","DialogListener","useDialogTracking","withAcousticAutoDialog","DialogDebugger","TLTRN","AcousticConnectRN","createHybridObject","error","Error","String"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,YAAY,QAAQ,4BAA4B;AAEzD,OAAOC,OAAO,MAAM,sBAAsB;AAC1C,OAAOC,gBAAgB,MAAM,0BAA0B;AACvD,OAAOC,cAAc,MAAM,wBAAwB;AACnD,OAAOC,iBAAiB,MAAM,2BAA2B;AACzD,SAASC,sBAAsB,QAAQ,gCAAgC;AACvE,OAAOC,cAAc,MAAM,wBAAwB;AACnD,OAAOC,KAAK,MAAM,SAAS;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA,IAAIC,iBAAwC;AAC5C,IAAI;EACFA,iBAAiB,GAAGR,YAAY,CAACS,kBAAkB,CAAwB,mBAAmB,CAAC;AACjG,CAAC,CAAC,OAAOC,KAAK,EAAE;EACd,MAAM,IAAIC,KAAK,CACb,0EAA0E,GACxE,4EAA4E,GAC5E,4EAA4E,GAC5E,kFAAkF,GAClF,mBAAmBC,MAAM,CAACF,KAAK,CAAC,EACpC,CAAC;AACH;AAEA,SAAST,OAAO,EAAEM,KAAK,EAAEL,gBAAgB,EAAEC,cAAc,EAAEC,iBAAiB,EAAEE,cAAc,EAAED,sBAAsB;AACpH,eAAeG,iBAAiB","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Acoustic, L.P. Any unauthorized copying or distribution of content from this file is
|
|
10
10
|
* prohibited.
|
|
11
11
|
*
|
|
12
|
-
* Created
|
|
12
|
+
* Created on 5/9/25.
|
|
13
13
|
*
|
|
14
14
|
********************************************************************************************/
|
|
15
15
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TLTRN.d.ts","sourceRoot":"","sources":["../../../src/TLTRN.ts"],"names":[],"mappings":"AAAA;;;;;;;;6FAQ6F;;
|
|
1
|
+
{"version":3,"file":"TLTRN.d.ts","sourceRoot":"","sources":["../../../src/TLTRN.ts"],"names":[],"mappings":"AAAA;;;;;;;;6FAQ6F;;AAmC7F,cAAM,KAAK;IACT,MAAM,CAAC,aAAa,SACgD;IACpE,MAAM,CAAC,uBAAuB,SAAK;IACnC,MAAM,CAAC,eAAe,SAAK;IAC3B,MAAM,CAAC,iBAAiB,SAAK;IAC7B,MAAM,CAAC,SAAS,SAAK;IACrB,MAAM,CAAC,cAAc,SAAK;IAC1B,MAAM,CAAC,kBAAkB,SAAK;IAC9B,MAAM,CAAC,aAAa,SAAK;IACzB,MAAM,CAAC,YAAY,UAAS;IAE5B,MAAM,CAAC,OAAO;;;;QAIZ;;WAEG;;QAKH;;WAEG;;MAQH;IAEF,MAAM,CAAC,IAAI,yBAA0B,MAAM,4BAA4B,OAAO,UAQ5E;IAEF,MAAM,CAAC,uBAAuB,WAAY,OAAO,UAE/C;IAEF,MAAM,CAAC,qBAAqB,SAAU,MAAM,GAAG,SAAS,aAQtD;IAEF,MAAM,CAAC,wBAAwB,SAAU,MAAM,YAAY,MAAM,aAQ/D;IAEF,MAAM,CAAC,eAAe,SAAU,MAAM,GAAG,SAAS,aAShD;IAEF,MAAM,CAAC,aAAa,UAAiB,GAAG,sBA+BtC;IAEF,MAAM,CAAC,kBAAkB,WAAkB,MAAM,aAAa,MAAM,QAAQ,MAAM,cAAc,MAAM,sBAYpG;IAEF,MAAM,CAAC,cAAc,cAAqB,MAAM,UAAU,OAAO,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,SAAS,MAAM,sBAQhH;IAGF,MAAM,CAAC,kBAAkB,aAAoB,MAAM,eAAe,MAAM,cAAc,MAAM,sBAQ1F;IAEF,MAAM,CAAC,qBAAqB,aAAoB,MAAM,iBAAiB,MAAM,sBAQ3E;IAEF,MAAM,CAAC,yBAAyB,aAAoB,MAAM,cAAc,MAAM,eAAe,MAAM,sBAQjG;IAEF,MAAM,CAAC,oBAAoB,aAAoB,MAAM,aAAa,MAAM,UAAU,OAAO,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,sBAQzH;IAGF,MAAM,CAAC,uBAAuB,UAAS;IACvC,MAAM,CAAC,wBAAwB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAQ;IAE5D,MAAM,CAAC,qBAAqB,WAAY,OAAO,UA0B7C;IAEF,MAAM,CAAC,cAAc,YAAa,GAAG,UAqEnC;IAEF,MAAM,CAAC,SAAS,aA6Bd;IAEF,MAAM,CAAC,OAAO,sBAsBZ;CACH;AAGD,eAAe,KAAK,CAAC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Acoustic, L.P. Any unauthorized copying or distribution of content from this file is
|
|
8
8
|
* prohibited.
|
|
9
9
|
*
|
|
10
|
-
* Created
|
|
10
|
+
* Created on 5/9/25.
|
|
11
11
|
*
|
|
12
12
|
********************************************************************************************/
|
|
13
13
|
import type { AcousticConnectRN as AcousticConnectRNSpec } from './specs/react-native-acoustic-connect.nitro';
|
|
@@ -18,7 +18,7 @@ import useDialogTracking from './utils/useDialogTracking';
|
|
|
18
18
|
import { withAcousticAutoDialog } from './utils/withAcousticAutoDialog';
|
|
19
19
|
import DialogDebugger from './utils/DialogDebugger';
|
|
20
20
|
import TLTRN from './TLTRN';
|
|
21
|
-
declare
|
|
21
|
+
declare let AcousticConnectRN: AcousticConnectRNSpec;
|
|
22
22
|
export { Connect, TLTRN, KeyboardListener, DialogListener, useDialogTracking, DialogDebugger, withAcousticAutoDialog };
|
|
23
23
|
export default AcousticConnectRN;
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;6FAW6F;AAG7F,OAAO,KAAK,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAC7G,OAAO,OAAO,MAAM,sBAAsB,CAAA;AAC1C,OAAO,gBAAgB,MAAM,0BAA0B,CAAA;AACvD,OAAO,cAAc,MAAM,wBAAwB,CAAA;AACnD,OAAO,iBAAiB,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,cAAc,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;6FAW6F;AAG7F,OAAO,KAAK,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AAC7G,OAAO,OAAO,MAAM,sBAAsB,CAAA;AAC1C,OAAO,gBAAgB,MAAM,0BAA0B,CAAA;AACvD,OAAO,cAAc,MAAM,wBAAwB,CAAA;AACnD,OAAO,iBAAiB,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,cAAc,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,MAAM,SAAS,CAAA;AAQ3B,QAAA,IAAI,iBAAiB,EAAE,qBAAqB,CAAA;AAa5C,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,sBAAsB,EAAE,CAAA;AACtH,eAAe,iBAAiB,CAAA"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Acoustic, L.P. Any unauthorized copying or distribution of content from this file is
|
|
8
8
|
* prohibited.
|
|
9
9
|
*
|
|
10
|
-
* Created
|
|
10
|
+
* Created on 5/9/25.
|
|
11
11
|
*
|
|
12
12
|
********************************************************************************************/
|
|
13
13
|
import React from 'react';
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/acousticconnectrn/PushErrorInfo.kt
CHANGED
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.acousticconnectrn
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -29,6 +30,22 @@ data class PushErrorInfo(
|
|
|
29
30
|
) {
|
|
30
31
|
/* primary constructor */
|
|
31
32
|
|
|
33
|
+
override fun equals(other: Any?): Boolean {
|
|
34
|
+
if (this === other) return true
|
|
35
|
+
if (other !is PushErrorInfo) return false
|
|
36
|
+
return Objects.deepEquals(this.code, other.code)
|
|
37
|
+
&& Objects.deepEquals(this.domain, other.domain)
|
|
38
|
+
&& Objects.deepEquals(this.message, other.message)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
override fun hashCode(): Int {
|
|
42
|
+
return arrayOf<Any?>(
|
|
43
|
+
code,
|
|
44
|
+
domain,
|
|
45
|
+
message
|
|
46
|
+
).contentDeepHashCode()
|
|
47
|
+
}
|
|
48
|
+
|
|
32
49
|
companion object {
|
|
33
50
|
/**
|
|
34
51
|
* Constructor called from C++
|
|
@@ -9,6 +9,7 @@ package com.margelo.nitro.acousticconnectrn
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
12
13
|
import com.margelo.nitro.core.NullType
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -26,6 +27,20 @@ data class PushPermissionResult(
|
|
|
26
27
|
) {
|
|
27
28
|
/* primary constructor */
|
|
28
29
|
|
|
30
|
+
override fun equals(other: Any?): Boolean {
|
|
31
|
+
if (this === other) return true
|
|
32
|
+
if (other !is PushPermissionResult) return false
|
|
33
|
+
return Objects.deepEquals(this.granted, other.granted)
|
|
34
|
+
&& Objects.deepEquals(this.error, other.error)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override fun hashCode(): Int {
|
|
38
|
+
return arrayOf<Any?>(
|
|
39
|
+
granted,
|
|
40
|
+
error
|
|
41
|
+
).contentDeepHashCode()
|
|
42
|
+
}
|
|
43
|
+
|
|
29
44
|
companion object {
|
|
30
45
|
/**
|
|
31
46
|
* Constructor called from C++
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"author": "Acoustic, L.P.,
|
|
2
|
+
"author": "Acoustic, L.P., Radoslaw Serek, Aksana Naskalava",
|
|
3
3
|
"dependencies": {
|
|
4
4
|
"@prettier/plugin-xml": "^2.2.0",
|
|
5
5
|
"fast-xml-parser": "^4.0.8",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"@types/jest": "^29.5.12",
|
|
15
15
|
"@types/react": "^19.0.10",
|
|
16
16
|
"jetifier": "^1.6.3",
|
|
17
|
-
"nitrogen": "0.35.
|
|
17
|
+
"nitrogen": "0.35.9",
|
|
18
18
|
"prettier-plugin-kotlin": "^2.1.0",
|
|
19
19
|
"react": "19.1.1",
|
|
20
20
|
"react-native": "0.82.1",
|
|
21
21
|
"react-native-builder-bob": "^0.37.0",
|
|
22
|
-
"react-native-nitro-modules": "0.35.
|
|
22
|
+
"react-native-nitro-modules": "0.35.9",
|
|
23
23
|
"release-it": "^19.0.2",
|
|
24
24
|
"typescript": "5.0.4"
|
|
25
25
|
},
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"react": ">=19.1.1 <20.0.0",
|
|
101
101
|
"react-native": ">=0.82.0 <0.86.0",
|
|
102
|
-
"react-native-nitro-modules": "
|
|
102
|
+
"react-native-nitro-modules": "0.35.9"
|
|
103
103
|
},
|
|
104
104
|
"prettier": {
|
|
105
105
|
"quoteProps": "consistent",
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"source": "src/index",
|
|
196
196
|
"summary": "react-native ios android tealeaf connect cxa wxca er enhanced-replay",
|
|
197
197
|
"types": "./lib/typescript/src/index.d.ts",
|
|
198
|
-
"version": "18.0.
|
|
198
|
+
"version": "18.0.28",
|
|
199
199
|
"workspaces": [
|
|
200
200
|
"example",
|
|
201
201
|
"Examples/bare-workflow"
|
package/src/TLTRN.ts
CHANGED
|
@@ -16,13 +16,29 @@ import DialogListener from "./utils/DialogListener";
|
|
|
16
16
|
import type { DialogEvent, DialogButtonClickEvent, DialogDismissEvent } from "./utils/DialogListener";
|
|
17
17
|
import AcousticConnectRN from './index';
|
|
18
18
|
|
|
19
|
+
// Preserve any previously-installed handler (e.g. React Native's red-box
|
|
20
|
+
// handler) so we augment rather than replace it.
|
|
19
21
|
// @ts-ignore
|
|
20
|
-
global.ErrorUtils
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
const previousGlobalErrorHandler = global.ErrorUtils?.getGlobalHandler?.();
|
|
23
|
+
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
global.ErrorUtils?.setGlobalHandler?.((e: any, isFatal: boolean) => {
|
|
26
|
+
// A global error handler must never throw — otherwise it masks the ORIGINAL
|
|
27
|
+
// error. `AcousticConnectRN` can be undefined here (e.g. the native module
|
|
28
|
+
// failed to load, or during the module-load circular import), so guard the
|
|
29
|
+
// call and always forward to the previous handler so the real error still
|
|
30
|
+
// surfaces and fatals still crash.
|
|
31
|
+
try {
|
|
32
|
+
AcousticConnectRN?.logExceptionEvent?.(
|
|
33
|
+
JSON.stringify(e),
|
|
34
|
+
JSON.stringify(e),
|
|
35
|
+
true
|
|
36
|
+
);
|
|
37
|
+
} catch (loggingError: Error | any) {
|
|
38
|
+
console.warn('TLTRN: failed to log uncaught exception:', loggingError?.message);
|
|
39
|
+
} finally {
|
|
40
|
+
previousGlobalErrorHandler?.(e, isFatal);
|
|
41
|
+
}
|
|
26
42
|
});
|
|
27
43
|
|
|
28
44
|
class TLTRN {
|
|
@@ -294,11 +310,15 @@ class TLTRN {
|
|
|
294
310
|
}
|
|
295
311
|
|
|
296
312
|
if (message.module === "ExceptionsManager") {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
313
|
+
try {
|
|
314
|
+
AcousticConnectRN?.logExceptionEvent?.(
|
|
315
|
+
message.args[0],
|
|
316
|
+
JSON.stringify(message.args[1]),
|
|
317
|
+
true
|
|
318
|
+
);
|
|
319
|
+
} catch (error: Error | any) {
|
|
320
|
+
console.log('logExceptionEvent (bridge) error: ', error?.message);
|
|
321
|
+
}
|
|
302
322
|
}
|
|
303
323
|
};
|
|
304
324
|
|
|
@@ -37,7 +37,7 @@ const Connect: React.FC<ConnectProps> = ({
|
|
|
37
37
|
navigationRef,
|
|
38
38
|
}) => {
|
|
39
39
|
const child = children as any;
|
|
40
|
-
//
|
|
40
|
+
// React 19 moved the ref off `element.ref` onto `element.props.ref`.
|
|
41
41
|
// Read `props.ref` first; the legacy `child.ref` fallback is a defensive
|
|
42
42
|
// guard from the React 18 era — kept to avoid a behavioural change.
|
|
43
43
|
const childProvidedRef = child?.props?.ref ?? child?.ref;
|
package/src/index.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Acoustic, L.P. Any unauthorized copying or distribution of content from this file is
|
|
8
8
|
* prohibited.
|
|
9
9
|
*
|
|
10
|
-
* Created
|
|
10
|
+
* Created on 5/9/25.
|
|
11
11
|
*
|
|
12
12
|
********************************************************************************************/
|
|
13
13
|
|
|
@@ -21,7 +21,24 @@ import { withAcousticAutoDialog } from './utils/withAcousticAutoDialog'
|
|
|
21
21
|
import DialogDebugger from './utils/DialogDebugger'
|
|
22
22
|
import TLTRN from './TLTRN'
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
// Instantiating the native HybridObject is the first thing that fails when the
|
|
25
|
+
// app's `react-native-nitro-modules` runtime does not match the version this SDK
|
|
26
|
+
// was generated against (the generated registration is tightly coupled to the
|
|
27
|
+
// Nitro version — see peerDependencies). Without this guard the failure surfaces
|
|
28
|
+
// as an opaque `ClassNotFoundException` and an `undefined` module far from the
|
|
29
|
+
// cause. Re-throw with an actionable message instead.
|
|
30
|
+
let AcousticConnectRN: AcousticConnectRNSpec
|
|
31
|
+
try {
|
|
32
|
+
AcousticConnectRN = NitroModules.createHybridObject<AcousticConnectRNSpec>('AcousticConnectRN')
|
|
33
|
+
} catch (error) {
|
|
34
|
+
throw new Error(
|
|
35
|
+
'[AcousticConnectRN] Failed to load the native HybridObject. This almost ' +
|
|
36
|
+
'always means a `react-native-nitro-modules` version mismatch: this SDK is ' +
|
|
37
|
+
'built against the exact version declared in its peerDependencies, so your ' +
|
|
38
|
+
'app must resolve that same version (check `npm ls react-native-nitro-modules`). ' +
|
|
39
|
+
`Original error: ${String(error)}`
|
|
40
|
+
)
|
|
41
|
+
}
|
|
25
42
|
|
|
26
43
|
export { Connect, TLTRN, KeyboardListener, DialogListener, useDialogTracking, DialogDebugger, withAcousticAutoDialog }
|
|
27
44
|
export default AcousticConnectRN
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Acoustic, L.P. Any unauthorized copying or distribution of content from this file is
|
|
8
8
|
* prohibited.
|
|
9
9
|
*
|
|
10
|
-
* Created
|
|
10
|
+
* Created on 5/9/25.
|
|
11
11
|
*
|
|
12
12
|
********************************************************************************************/
|
|
13
13
|
|