From 0f251b95d83e13e1bf5135112ffd541d259860d8 Mon Sep 17 00:00:00 2001 From: Alexey Karimov Date: Tue, 17 Nov 2026 03:19:23 +0500 Subject: [PATCH 1/2] Version 7.0.0-beta4: adopt iOS SDK 7.1.0 and Android SDK 7.6.0 Pin bugsee/spm and feedback-spm to 7.1.0 (Package.resolved regenerated) and Android to 7.6.0. Launch options are synchronized from the published manifests of both SDKs: the shake trigger (both) and the notification-bar trigger (Android) now default to off, and crash-signals is registered by both SDKs, so its accessor moves to the shared options class. The README no longer calls the bundled iOS SDK a beta. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Ws1LS4EaUy9s7QaKsfyvb4 --- docs/design/2026-09-15-sdk-design.md | 2 +- .../plans/2026-09-16-implementation-plan.md | 4 ++-- docs/launch-options.md | 8 ++++---- examples/playground/VALIDATION.md | 4 ++-- native-versions.json | 4 ++-- packages/react-native-feedback/README.md | 4 ++-- .../react-native-feedback/ios/Package.swift | 4 ++-- packages/react-native-feedback/package.json | 4 ++-- .../src/__tests__/pins.test.ts | 2 +- packages/react-native/README.md | 5 ++--- .../react-native/ios/Support/Package.resolved | 4 ++-- .../react-native/ios/Support/Package.swift | 2 +- .../Sources/BugseeRNSupport/BGSRNWrapper.m | 2 +- .../BugseeRNSupportTests/BGSRNWrapperTests.m | 2 +- packages/react-native/package.json | 2 +- packages/react-native/plugin/build/index.js | 2 +- .../plugin/build/native-versions.baked.json | 2 +- packages/react-native/plugin/src/index.ts | 2 +- .../src/options/AndroidLaunchOptions.ts | 2 +- .../src/options/BugseeLaunchOptions.ts | 18 ++++++++++++++++-- .../src/options/IOSLaunchOptions.ts | 12 ------------ .../src/options/__tests__/accessors.test.ts | 2 +- .../src/options/android-options-manifest.json | 15 +++++++++++---- .../src/options/ios-options-manifest.json | 6 +++--- .../react-native/src/options/option-keys.json | 2 +- scripts/__tests__/github-release.test.ts | 4 ++-- scripts/__tests__/native-versions.test.ts | 4 ++-- yarn.lock | 2 +- 28 files changed, 67 insertions(+), 59 deletions(-) diff --git a/docs/design/2026-09-15-sdk-design.md b/docs/design/2026-09-15-sdk-design.md index a103c928..9589bdae 100644 --- a/docs/design/2026-09-15-sdk-design.md +++ b/docs/design/2026-09-15-sdk-design.md @@ -14,7 +14,7 @@ The single most important finding behind this design: **iOS 7.x and Android 7.x ## 2. Goals -- Ship a 7.x-native React Native SDK for the two current native lines: Android **7.4.2** (7.3.0 first, pinned transitionally as `7.3.0-SNAPSHOT` while that release was pending — see the plan's Phase 3 rulings; 7.3.1 fixes bugsee-android #214–#221 found by the beta campaign; beta validation pinned `7.3.2-SNAPSHOT` (bugsee-android main plus PR #265), released as 7.4.0; 7.4.1 adds the touch-capture fix for bugsee-android #267; 7.4.2 adds the lifecycle and secure-rectangle work the beta campaign ran against) and iOS **7.0.0** (SPM only, iOS deployment target 15.0). +- Ship a 7.x-native React Native SDK for the two current native lines: Android **7.6.0** (7.3.0 first, pinned transitionally as `7.3.0-SNAPSHOT` while that release was pending — see the plan's Phase 3 rulings; 7.3.1 fixes bugsee-android #214–#221 found by the beta campaign; beta validation pinned `7.3.2-SNAPSHOT` (bugsee-android main plus PR #265), released as 7.4.0; 7.4.1 adds the touch-capture fix for bugsee-android #267; 7.4.2 adds the lifecycle and secure-rectangle work the beta campaign ran against; 7.6.0 turns the shake and notification-bar triggers off by default and registers the shared `crash-signals` option, which iOS 7.1.0 also takes, with its own shake trigger off) and iOS **7.1.0** (SPM only, iOS deployment target 15.0). - Expose the capabilities 7.x added and 6.x never had: breadcrumbs, notification relay, APM, user identity, hang/HTTP-error/frustration/anomaly detection, SDK status, report handlers. - Make the wrapper's option surface **provably** consistent with the native SDKs, enforced in CI rather than by review. - Work on bare React Native and on Expo, including Expo apps that regenerate native projects with `prebuild`. diff --git a/docs/design/plans/2026-09-16-implementation-plan.md b/docs/design/plans/2026-09-16-implementation-plan.md index 31895c0d..0a898f40 100644 --- a/docs/design/plans/2026-09-16-implementation-plan.md +++ b/docs/design/plans/2026-09-16-implementation-plan.md @@ -17,8 +17,8 @@ Every phase's requirements implicitly include this section. - React Native floor **0.81.0**, New Architecture required. No `oldarch` source set, no legacy bridge fallback. 0.81 still allows opting out of the New Architecture; that is a documented requirement on the consumer, not a second code path. Hard technical floor is 0.80 (`codegenConfig.ios.modulesProvider`). -- Android SDK **7.4.2** (7.3.0 first, pinned transitionally as `7.3.0-SNAPSHOT` while that release was pending — see Phase 3's rulings; 7.3.1 fixes bugsee-android #214–#221; beta validation pinned `7.3.2-SNAPSHOT`, bugsee-android main plus PR #265, released as 7.4.0; 7.4.1 adds the touch-capture fix for bugsee-android #267; 7.4.2 adds the lifecycle and secure-rectangle work the beta campaign ran against), Gradle plugin **4.0.8** (4.0.7 first; 4.0.8 uploads native symbols from the unstripped `merged_native_libs`, independent of `debugSymbolLevel`, with a bugsee-cli floor of 0.8.1), pinned exactly. Neither older pin carries what this wrapper needs: 7.2.0 has no wrapper channel, report-contract methods, `BugseeReportHandlerThread` or `com.bugsee.option.$$WRAPPER` consumer, and 4.0.6 strips every extension's provider (workbook 1.4). The plugin marker resolves from **Maven Central**, not the Gradle Plugin Portal. -- iOS SDK **7.0.0** from `https://github.com/bugsee/spm`, requirement `exact`. SwiftPM will not admit a prerelease into a range. iOS deployment target **15.0**. +- Android SDK **7.6.0** (7.3.0 first, pinned transitionally as `7.3.0-SNAPSHOT` while that release was pending — see Phase 3's rulings; 7.3.1 fixes bugsee-android #214–#221; beta validation pinned `7.3.2-SNAPSHOT`, bugsee-android main plus PR #265, released as 7.4.0; 7.4.1 adds the touch-capture fix for bugsee-android #267; 7.4.2 adds the lifecycle and secure-rectangle work the beta campaign ran against), Gradle plugin **4.0.8** (4.0.7 first; 4.0.8 uploads native symbols from the unstripped `merged_native_libs`, independent of `debugSymbolLevel`, with a bugsee-cli floor of 0.8.1), pinned exactly. Neither older pin carries what this wrapper needs: 7.2.0 has no wrapper channel, report-contract methods, `BugseeReportHandlerThread` or `com.bugsee.option.$$WRAPPER` consumer, and 4.0.6 strips every extension's provider (workbook 1.4). The plugin marker resolves from **Maven Central**, not the Gradle Plugin Portal. +- iOS SDK **7.1.0** from `https://github.com/bugsee/spm`, requirement `exact`. SwiftPM will not admit a prerelease into a range. iOS deployment target **15.0**. - Package `@bugsee/react-native`. `toSwiftName` maps it to `ReactNative`, which is **reserved**, so `react-native.config.js` pins `spm: { name: 'BugseeReactNative' }` and the SPM product name must match exactly. - All native versions live in **one** file, `native-versions.json`, consumed by the podspec, `Package.swift` and the Gradle module. The SPM pin and podspec URL must never disagree. - Every SDK entry point is called on the **main thread** on iOS. `launchWithToken:` off-main logs *"Incorrect bugsee launch…"* and misbehaves. diff --git a/docs/launch-options.md b/docs/launch-options.md index c6ebaf5e..5e4958f1 100644 --- a/docs/launch-options.md +++ b/docs/launch-options.md @@ -12,7 +12,7 @@ options.triggerByShake = false; // shake-to-report is ON by default in both SDKs await Bugsee.launch('', options); ``` -The tables are checked against the SDK versions pinned in `native-versions.json` (Android 7.4.2, iOS 7.0.0): +The tables are checked against the SDK versions pinned in `native-versions.json` (Android 7.6.0, iOS 7.1.0): a test fails when either SDK registers an option this package has no accessor for, and `yarn check:options-manifests` (run in CI and before every publish) compares the option manifest each SDK release published at `download.bugsee.com/sdk/options//.json` with this package. It fails when an SDK publishes an option @@ -49,9 +49,9 @@ iOS, does nothing on Android, and reports nothing on either. `launch()` and `rel | `reportingDefaultCrashPriority` | `com.bugsee.option.reporting.defaults.crash-priority` | `enum IssueSeverity` | iOS, Android | `Blocker` | Default priority of crash reports; see `IssueSeverity`. | | `reportingDefaultErrorPriority` | `com.bugsee.option.reporting.defaults.error-priority` | `enum IssueSeverity` | iOS, Android | `High` | Default priority of error reports; see `IssueSeverity`. | | `triggerByBroadcast` | `com.bugsee.option.reporting.triggers.broadcast` | `boolean` | Android | `false` | Let a broadcast open the report dialog. | -| `triggerByNotification` | `com.bugsee.option.reporting.triggers.notification-bar` | `boolean` | Android | `true` | Let the user open the report dialog from the notification bar. The SDK default is on. | +| `triggerByNotification` | `com.bugsee.option.reporting.triggers.notification-bar` | `boolean` | Android | `false` | Let the user open the report dialog from the notification bar. The SDK default is on. | | `triggerByScreenshot` | `com.bugsee.option.reporting.triggers.screenshot` | `boolean` | iOS, Android | `false` | Let the user open the report dialog by taking a screenshot. | -| `triggerByShake` | `com.bugsee.option.reporting.triggers.shake` | `boolean` | iOS, Android | `true` | Let the user open the report dialog by shaking the device. **The SDK default is on:** set this to `false` to turn shake-to-report off. | +| `triggerByShake` | `com.bugsee.option.reporting.triggers.shake` | `boolean` | iOS, Android | `false` | Let the user open the report dialog by shaking the device. **The SDK default is on:** set this to `false` to turn shake-to-report off. | | `reportingUIDescriptionRequired` | `com.bugsee.option.reporting.ui.description-required` | `boolean` | iOS, Android | `false` | Make the Description field mandatory in the report dialog. | | `reportingUIEmailRequired` | `com.bugsee.option.reporting.ui.email-required` | `boolean` | iOS, Android | `false` | Make the Email field mandatory in the report dialog. | | `reportingUILabelsEnabled` | `com.bugsee.option.reporting.ui.labels-enabled` | `boolean` | iOS, Android | `false` | Show the Labels field in the report dialog. | @@ -70,7 +70,7 @@ iOS, does nothing on Android, and reports nothing on either. `launch()` and `rel | `captureBreadcrumbsExtras` | `com.bugsee.option.capture.breadcrumbs.extras` | `boolean` | iOS, Android | `false` | Attach the extra detail of automatically collected device-event breadcrumbs. | | `captureCameraPreview` | `com.bugsee.option.capture.camera-preview` | `boolean` | iOS | `false` | Capture camera preview layers. Read the iOS SDK's privacy and overhead notes before enabling. | | `crashHandlerType` | `com.bugsee.option.capture.crash-handler-type` | `enum BugseeCrashHandlerType` | iOS | `MachAndBSD` | How the crash reporter intercepts crashes; see `CrashHandlerType`. Unset leaves the SDK default, `CrashHandlerType.MachAndBSD`. | -| `crashSignals` | `com.bugsee.option.capture.crash-signals` | `int` | iOS | `128` | The fatal signals the crash reporter intercepts, as the iOS SDK's `BugseeCrashSignals` bit set: ABRT 1, SEGV 2, BUS 4, ILL 8, FPE 16, TRAP 32. Unset leaves the SDK default (every signal). Added in 7.0.0-beta7. | +| `crashSignals` | `com.bugsee.option.capture.crash-signals` | `int` | iOS, Android | `128` | The fatal signals the native crash handler intercepts, as a bit set: ABRT 1, SEGV 2, BUS 4, ILL 8, FPE 16, TRAP 32 (the same layout on both platforms). Unset leaves the SDK default (every signal). Leave SEGV and BUS out when the app hosts a Mono runtime. On Android it is read once, when the native handler is first armed in the process. iOS 7.0.0-beta7, Android 7.6.0. | | `captureDeviceAndNetworkNames` | `com.bugsee.option.capture.device-network-names` | `boolean` | iOS | `false` | Record the device and network names. | | `captureDiskSpace` | `com.bugsee.option.capture.disk-space` | `boolean` | iOS | `false` | Record free disk space. | | `captureLogs` | `com.bugsee.option.capture.logs` | `boolean` | iOS, Android | `true` | Capture logs. Lines sent with `Bugsee.log()` are always recorded. | diff --git a/examples/playground/VALIDATION.md b/examples/playground/VALIDATION.md index 95b712bf..3f8a38b6 100644 --- a/examples/playground/VALIDATION.md +++ b/examples/playground/VALIDATION.md @@ -30,10 +30,10 @@ has symbols uploaded (see [README.md](./README.md)). | M-A3 / M-B3 | Android / iOS | Setup → Advanced options | Set `reporting.ui.summary-required`, `description-required`, `email-required` and `labels-required` to `true`, tap **Launch**. Reports → Report → **Show report dialog (empty)**. Tap Send with empty fields (refused). Fill `x`, `x`, `a@b.co`, label `l1`, tap Send | Send is refused while empty. The report carries all four values | Issues → newest report: summary, description, e-mail, label | | | M-B3 (cont.) | iOS | Setup → Advanced options | Also set `reporting.ui.labels-enabled=false` and `reporting.ui.priority-selector-enabled=false`, **relaunch**, **Show report dialog (empty)** | The labels field and the priority selector are hidden | | | | M-B3 (style) | iOS | Setup → Advanced options | Set `reporting.ui.style` (iOS), **relaunch**, **Show report dialog (empty)**, take a screenshot | The dialog uses the chosen style | | | -| M-A4 / M-B4 | Android / iOS | Any tab | Default options (`reporting.triggers.shake` on). Shake the device | The report dialog opens. Back / Cancel closes it | | | +| M-A4 / M-B4 | Android / iOS | Any tab | Set `reporting.triggers.shake=true` (off by default), **relaunch**. Shake the device | The report dialog opens. Back / Cancel closes it | | | | M-A5 / M-B5 | Android / iOS | Setup → Advanced options | Set `reporting.triggers.screenshot=true`, **relaunch**, take a hardware screenshot | The report dialog opens | | | | M-A6 | Android | Setup → Advanced options, then Reports → Report | Set `capture.video.mode=20` (Fullscreen, Android), **relaunch**. At the prompt tap "Start now". Go to the Home screen of the phone, wait 10 s, reopen. Reports → **Upload report (no UI)**. Then **relaunch**: no prompt. Set `capture.video.fullscreen-remember-decision=false` (Android), **relaunch**, Cancel at the prompt, then **Upload report (no UI)** | The video shows the status bar and continues across the background. No prompt on the second launch. After Cancel the app keeps running and Upload works | Issues → report → video | | -| M-A7 | Android | Setup → Advanced options | Set `reporting.triggers.notification-bar=true` (Android), **relaunch**, pull down the notification shade, tap the Bugsee notification | The report dialog opens | | | +| M-A7 | Android | Setup → Advanced options | Set `reporting.triggers.notification-bar=true` (Android; off by default), **relaunch**, pull down the notification shade, tap the Bugsee notification | The report dialog opens | | | | M-A8 / M-B6 | Android / iOS | Reports → Feedback | Fresh install (Android: clear the app's storage. iOS: delete and reinstall). Launch from Setup. Tap **Set greeting**, then **Show feedback UI** | The e-mail screen appears. Skip it and the chat opens. Both platforms show the greeting | Feedback in your Bugsee instance | | | M-B7 | iOS | Setup → Advanced options | Set `capture.video.privacy-blur=true` (iOS), **relaunch**. Open the app switcher for 3 s, go back. Reports → **Upload report (no UI)** | Blurred frames in the video | Issues → report → video | | | M-A10 / M-B9 | Android / iOS | Setup → Advanced options, then Privacy → BugseeSecure | Set `detect.frustration=true`, **relaunch**. Tap the "This box is redacted" box 6 times within 2 s (it does nothing). Reports → **Upload report (no UI)** | A frustration event in the report | Issues → report → events | | diff --git a/native-versions.json b/native-versions.json index 30bb9e8a..a0f42f36 100644 --- a/native-versions.json +++ b/native-versions.json @@ -1,10 +1,10 @@ { "android": { - "sdk": "7.4.2", + "sdk": "7.6.0", "gradlePlugin": "4.0.8" }, "ios": { - "sdk": "7.0.0", + "sdk": "7.1.0", "spmUrl": "https://github.com/bugsee/spm" } } diff --git a/packages/react-native-feedback/README.md b/packages/react-native-feedback/README.md index fcfcbc02..24fa1331 100644 --- a/packages/react-native-feedback/README.md +++ b/packages/react-native-feedback/README.md @@ -5,7 +5,7 @@ do not have to depend on this package. ## Status: beta -At the same version as `@bugsee/react-native` (`7.0.0-beta3`); the npm `latest` and `beta` tags +At the same version as `@bugsee/react-native` (`7.0.0-beta4`); the npm `latest` and `beta` tags both point at it for now. Install both with `@beta` to keep following betas. The two must be the same release. @@ -25,7 +25,7 @@ yarn add @bugsee/react-native@beta @bugsee/react-native-feedback@beta No Expo config plugin. Autolinking adds `bugsee-android-feedback` on Android. On iOS the podspec vendors the `bugsee/feedback-spm` sources for the same -`7.0.0` pin as the core SDK, and React Native 0.87 resolves that +`7.1.0` pin as the core SDK, and React Native 0.87 resolves that package through Swift Package Manager. There is no `spm_dependency`: that helper does not embed the framework. diff --git a/packages/react-native-feedback/ios/Package.swift b/packages/react-native-feedback/ios/Package.swift index 7e5e674b..4799fbc8 100644 --- a/packages/react-native-feedback/ios/Package.swift +++ b/packages/react-native-feedback/ios/Package.swift @@ -22,8 +22,8 @@ let package = Package( dependencies: [ .package(name: "ReactNative", path: "../../../../xcframeworks"), .package(name: "React-GeneratedCode", path: "../../../ios"), - .package(url: "https://github.com/bugsee/spm", exact: "7.0.0"), - .package(url: "https://github.com/bugsee/feedback-spm", exact: "7.0.0"), + .package(url: "https://github.com/bugsee/spm", exact: "7.1.0"), + .package(url: "https://github.com/bugsee/feedback-spm", exact: "7.1.0"), ], targets: [ .target( diff --git a/packages/react-native-feedback/package.json b/packages/react-native-feedback/package.json index e174b983..5100c1c7 100644 --- a/packages/react-native-feedback/package.json +++ b/packages/react-native-feedback/package.json @@ -1,6 +1,6 @@ { "name": "@bugsee/react-native-feedback", - "version": "7.0.0-beta3", + "version": "7.0.0-beta4", "description": "In-app feedback UI for the Bugsee React Native SDK", "license": "MIT", "homepage": "https://www.bugsee.com", @@ -19,7 +19,7 @@ "README.md" ], "peerDependencies": { - "@bugsee/react-native": "^7.0.0-beta3", + "@bugsee/react-native": "^7.0.0-beta4", "react": "*", "react-native": ">=0.81.0" }, diff --git a/packages/react-native-feedback/src/__tests__/pins.test.ts b/packages/react-native-feedback/src/__tests__/pins.test.ts index 5ea3d599..c6c1db8b 100644 --- a/packages/react-native-feedback/src/__tests__/pins.test.ts +++ b/packages/react-native-feedback/src/__tests__/pins.test.ts @@ -55,7 +55,7 @@ describe('the feedback package pins the same native versions as the core', () => expect(gradle).toMatch( /api\s+"com\.bugsee:bugsee-android:\$\{nativeVersions\.android\.sdk\}"/, ); - expect(versions.android.sdk).toBe('7.4.2'); + expect(versions.android.sdk).toBe('7.6.0'); }); it('reaches Android feedback through Bugsee.ext(Feedback.class)', () => { diff --git a/packages/react-native/README.md b/packages/react-native/README.md index e7a292fe..631f4602 100644 --- a/packages/react-native/README.md +++ b/packages/react-native/README.md @@ -9,8 +9,7 @@ added. ## Status: beta -This is a beta (`7.0.0-beta3`), built on the 7.x native SDKs, and the iOS SDK it -bundles is itself a beta. `latest` and `beta` both point at it for now, so a plain +This is a beta (`7.0.0-beta4`), built on the 7.x native SDKs (Android 7.6.0, iOS 7.1.0). `latest` and `beta` both point at it for now, so a plain `yarn add @bugsee/react-native` installs it; the `@beta` form in [Install](#install) keeps following betas once a stable release exists. The API can still change between betas. @@ -103,7 +102,7 @@ option you leave unset takes the SDK's own default. ```ts const options = createDefaultLaunchOptions(); -options.triggerByShake = false; // shake-to-report is ON by default in both SDKs +options.triggerByShake = true; // shake-to-report is OFF by default (iOS 7.1.0, Android 7.6.0) options.triggerByScreenshot = false; options.reportingUIEmailRequired = true; ``` diff --git a/packages/react-native/ios/Support/Package.resolved b/packages/react-native/ios/Support/Package.resolved index 7652b6d3..c28930a3 100644 --- a/packages/react-native/ios/Support/Package.resolved +++ b/packages/react-native/ios/Support/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/bugsee/spm", "state" : { - "revision" : "bbfdda2a9f1d7aadf73be6e94793b83d7a907aba", - "version" : "7.0.0" + "revision" : "465ec10d05313bca91254a0c8b7adf266d456c93", + "version" : "7.1.0" } } ], diff --git a/packages/react-native/ios/Support/Package.swift b/packages/react-native/ios/Support/Package.swift index c809cfcc..91f82eb5 100644 --- a/packages/react-native/ios/Support/Package.swift +++ b/packages/react-native/ios/Support/Package.swift @@ -28,7 +28,7 @@ let package = Package( ], dependencies: [ // Exact, not a range: SwiftPM will not admit a prerelease into one. - .package(url: "https://github.com/bugsee/spm", exact: "7.0.0") + .package(url: "https://github.com/bugsee/spm", exact: "7.1.0") ], targets: [ .target( diff --git a/packages/react-native/ios/Support/Sources/BugseeRNSupport/BGSRNWrapper.m b/packages/react-native/ios/Support/Sources/BugseeRNSupport/BGSRNWrapper.m index f8826cd4..812ab696 100644 --- a/packages/react-native/ios/Support/Sources/BugseeRNSupport/BGSRNWrapper.m +++ b/packages/react-native/ios/Support/Sources/BugseeRNSupport/BGSRNWrapper.m @@ -46,7 +46,7 @@ + (instancetype)wrapperWithoutJsRuntime { // test compares the three so they cannot drift. return [self wrapperWithIdentity:@{ @"type" : @"react_native", - @"version" : @"7.0.0-beta3", + @"version" : @"7.0.0-beta4", @"context" : @{}, }]; } diff --git a/packages/react-native/ios/Support/Tests/BugseeRNSupportTests/BGSRNWrapperTests.m b/packages/react-native/ios/Support/Tests/BugseeRNSupportTests/BGSRNWrapperTests.m index 80cf6efd..f85392c7 100644 --- a/packages/react-native/ios/Support/Tests/BugseeRNSupportTests/BGSRNWrapperTests.m +++ b/packages/react-native/ios/Support/Tests/BugseeRNSupportTests/BGSRNWrapperTests.m @@ -58,7 +58,7 @@ - (void)testHasNoContextWhenNoneWasSupplied { - (void)testWithoutJsRuntimeCarriesOnlyTypeAndVersion { BGSRNWrapper *wrapper = [BGSRNWrapper wrapperWithoutJsRuntime]; XCTAssertEqualObjects(wrapper.wrapperType, @"react_native"); - XCTAssertEqualObjects(wrapper.wrapperVersion, @"7.0.0-beta3"); + XCTAssertEqualObjects(wrapper.wrapperVersion, @"7.0.0-beta4"); XCTAssertNil(wrapper.wrapperBuild); XCTAssertEqual(wrapper.context.count, (NSUInteger)0); } diff --git a/packages/react-native/package.json b/packages/react-native/package.json index ed993ccc..c79c40ec 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@bugsee/react-native", - "version": "7.0.0-beta3", + "version": "7.0.0-beta4", "description": "Bugsee SDK for React Native", "license": "MIT", "homepage": "https://www.bugsee.com", diff --git a/packages/react-native/plugin/build/index.js b/packages/react-native/plugin/build/index.js index 7f30e822..1bae0294 100644 --- a/packages/react-native/plugin/build/index.js +++ b/packages/react-native/plugin/build/index.js @@ -225,5 +225,5 @@ function listSchemes(iosRoot) { } return schemes; } -exports.default = (0, config_plugins_1.createRunOncePlugin)(withBugsee, '@bugsee/react-native', '7.0.0-beta3'); +exports.default = (0, config_plugins_1.createRunOncePlugin)(withBugsee, '@bugsee/react-native', '7.0.0-beta4'); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/packages/react-native/plugin/build/native-versions.baked.json b/packages/react-native/plugin/build/native-versions.baked.json index c040528a..c5cfd2e5 100644 --- a/packages/react-native/plugin/build/native-versions.baked.json +++ b/packages/react-native/plugin/build/native-versions.baked.json @@ -1,4 +1,4 @@ { - "sdk": "7.4.2", + "sdk": "7.6.0", "gradlePlugin": "4.0.8" } diff --git a/packages/react-native/plugin/src/index.ts b/packages/react-native/plugin/src/index.ts index 9d3792c3..519b58ea 100644 --- a/packages/react-native/plugin/src/index.ts +++ b/packages/react-native/plugin/src/index.ts @@ -387,4 +387,4 @@ export function listSchemes(iosRoot: string): string[] { return schemes; } -export default createRunOncePlugin(withBugsee, '@bugsee/react-native', '7.0.0-beta3'); +export default createRunOncePlugin(withBugsee, '@bugsee/react-native', '7.0.0-beta4'); diff --git a/packages/react-native/src/options/AndroidLaunchOptions.ts b/packages/react-native/src/options/AndroidLaunchOptions.ts index 98c66b9e..c0871a97 100644 --- a/packages/react-native/src/options/AndroidLaunchOptions.ts +++ b/packages/react-native/src/options/AndroidLaunchOptions.ts @@ -293,7 +293,7 @@ export class AndroidLaunchOptions extends BugseeLaunchOptions { } /** - * Let the user open the report dialog from the notification bar. The SDK default is on. + * Let the user open the report dialog from the notification bar. The SDK default is off (Android 7.6.0; on before). */ get triggerByNotification(): boolean | undefined { return this.$get('com.bugsee.option.reporting.triggers.notification-bar'); diff --git a/packages/react-native/src/options/BugseeLaunchOptions.ts b/packages/react-native/src/options/BugseeLaunchOptions.ts index 41c19f6f..516bf634 100644 --- a/packages/react-native/src/options/BugseeLaunchOptions.ts +++ b/packages/react-native/src/options/BugseeLaunchOptions.ts @@ -289,6 +289,20 @@ export abstract class BugseeLaunchOptions { this.$set('com.bugsee.option.config.max-data-size', value); } + /** + * The fatal signals the native crash handler intercepts, as a bit set: ABRT 1, SEGV 2, + * BUS 4, ILL 8, FPE 16, TRAP 32 (the same layout on both platforms). Unset leaves the SDK + * default (every signal). Leave SEGV and BUS out when the app hosts a Mono runtime. On Android + * it is read once, when the native handler is first armed in the process. iOS 7.0.0-beta7, + * Android 7.6.0. + */ + get crashSignals(): number | undefined { + return this.$get('com.bugsee.option.capture.crash-signals'); + } + set crashSignals(value: number | undefined) { + this.$set('com.bugsee.option.capture.crash-signals', value); + } + /** * Most reports kept waiting to be sent. Android 7.3.0, iOS 7.0.0. */ @@ -501,8 +515,8 @@ export abstract class BugseeLaunchOptions { } /** - * Let the user open the report dialog by shaking the device. **The SDK default is on:** - * set this to `false` to turn shake-to-report off. + * Let the user open the report dialog by shaking the device. **The SDK default is off + * (Android 7.6.0, iOS 7.1.0; on before):** set this to `true` to turn shake-to-report on. */ get triggerByShake(): boolean | undefined { return this.$get('com.bugsee.option.reporting.triggers.shake'); diff --git a/packages/react-native/src/options/IOSLaunchOptions.ts b/packages/react-native/src/options/IOSLaunchOptions.ts index 30396fb9..dd0d11e8 100644 --- a/packages/react-native/src/options/IOSLaunchOptions.ts +++ b/packages/react-native/src/options/IOSLaunchOptions.ts @@ -59,18 +59,6 @@ export class IOSLaunchOptions extends BugseeLaunchOptions { this.$set('com.bugsee.option.capture.crash-handler-type', value); } - /** - * The fatal signals the crash reporter intercepts, as the iOS SDK's - * `BugseeCrashSignals` bit set: ABRT 1, SEGV 2, BUS 4, ILL 8, FPE 16, TRAP 32. Unset - * leaves the SDK default (every signal). Added in 7.0.0-beta7. - */ - get crashSignals(): number | undefined { - return this.$get('com.bugsee.option.capture.crash-signals'); - } - set crashSignals(value: number | undefined) { - this.$set('com.bugsee.option.capture.crash-signals', value); - } - /** * Record the device and network names. */ diff --git a/packages/react-native/src/options/__tests__/accessors.test.ts b/packages/react-native/src/options/__tests__/accessors.test.ts index 653efa9a..6891f1ce 100644 --- a/packages/react-native/src/options/__tests__/accessors.test.ts +++ b/packages/react-native/src/options/__tests__/accessors.test.ts @@ -13,6 +13,7 @@ import { ANDROID_ONLY_KEYS, IOS_ONLY_KEYS, SHARED_KEYS } from '../keys'; */ const SHARED: [string, string, unknown][] = [ ['captureLogs', 'com.bugsee.option.capture.logs', false], + ['crashSignals', 'com.bugsee.option.capture.crash-signals', 7], ['captureLogsLevel', 'com.bugsee.option.capture.logs.level', 2], ['captureNetwork', 'com.bugsee.option.capture.network', false], ['captureNetworkBodySizeLimit', 'com.bugsee.option.capture.network.body-size-limit', 7], @@ -69,7 +70,6 @@ const IOS: [string, string, unknown][] = [ ['captureBluetoothStatus', 'com.bugsee.option.capture.bluetooth-status', false], ['captureCameraPreview', 'com.bugsee.option.capture.camera-preview', false], ['crashHandlerType', 'com.bugsee.option.capture.crash-handler-type', 2], - ['crashSignals', 'com.bugsee.option.capture.crash-signals', 7], ['captureDeviceAndNetworkNames', 'com.bugsee.option.capture.device-network-names', false], ['captureDiskSpace', 'com.bugsee.option.capture.disk-space', false], ['captureOSLogs', 'com.bugsee.option.capture.logs.oslog', false], diff --git a/packages/react-native/src/options/android-options-manifest.json b/packages/react-native/src/options/android-options-manifest.json index 4c5f44ed..afedc784 100644 --- a/packages/react-native/src/options/android-options-manifest.json +++ b/packages/react-native/src/options/android-options-manifest.json @@ -1,9 +1,9 @@ { "manifestVersion": 1, "sdk": "android", - "sdkVersion": "7.4.2", + "sdkVersion": "7.6.0", "buildConfiguration": "release", - "generatedAt": "2026-11-16T08:35:15Z", + "generatedAt": "2026-11-16T22:14:00Z", "options": [ { "key": "com.bugsee.option.config.duration", @@ -493,7 +493,7 @@ { "key": "com.bugsee.option.reporting.triggers.shake", "type": "boolean", - "default": true, + "default": false, "module": "bugsee-android", "hidden": false }, @@ -507,7 +507,7 @@ { "key": "com.bugsee.option.reporting.triggers.notification-bar", "type": "boolean", - "default": true, + "default": false, "module": "bugsee-android", "hidden": false }, @@ -642,6 +642,13 @@ "since": "7.1.2" } }, + { + "default": 128, + "hidden": false, + "key": "com.bugsee.option.capture.crash-signals", + "module": "bugsee-android-ndk", + "type": "int" + }, { "default": false, "hidden": false, diff --git a/packages/react-native/src/options/ios-options-manifest.json b/packages/react-native/src/options/ios-options-manifest.json index fa545d3f..1066812c 100644 --- a/packages/react-native/src/options/ios-options-manifest.json +++ b/packages/react-native/src/options/ios-options-manifest.json @@ -1,6 +1,6 @@ { "buildConfiguration": "release", - "generatedAt": "2026-10-30T19:10:39Z", + "generatedAt": "2026-11-16T19:43:51Z", "manifestVersion": 1, "options": [ { @@ -524,7 +524,7 @@ "type": "boolean" }, { - "default": true, + "default": false, "hidden": false, "key": "com.bugsee.option.reporting.triggers.shake", "module": "Bugsee", @@ -590,5 +590,5 @@ } ], "sdk": "ios", - "sdkVersion": "7.0.0" + "sdkVersion": "7.1.0" } diff --git a/packages/react-native/src/options/option-keys.json b/packages/react-native/src/options/option-keys.json index 2ba71c09..c63b802b 100644 --- a/packages/react-native/src/options/option-keys.json +++ b/packages/react-native/src/options/option-keys.json @@ -2,6 +2,7 @@ "shared": [ "com.bugsee.option.capture.breadcrumbs", "com.bugsee.option.capture.breadcrumbs.extras", + "com.bugsee.option.capture.crash-signals", "com.bugsee.option.capture.logs", "com.bugsee.option.capture.logs.level", "com.bugsee.option.capture.network", @@ -56,7 +57,6 @@ "com.bugsee.option.capture.bluetooth-status", "com.bugsee.option.capture.camera-preview", "com.bugsee.option.capture.crash-handler-type", - "com.bugsee.option.capture.crash-signals", "com.bugsee.option.capture.device-network-names", "com.bugsee.option.capture.disk-space", "com.bugsee.option.capture.logs.oslog", diff --git a/scripts/__tests__/github-release.test.ts b/scripts/__tests__/github-release.test.ts index 3aa6f34e..b6f9389f 100644 --- a/scripts/__tests__/github-release.test.ts +++ b/scripts/__tests__/github-release.test.ts @@ -47,7 +47,7 @@ function run(setup: Setup = {}) { }); writeFileSync( join(root, 'native-versions.json'), - JSON.stringify({ android: { sdk: '7.4.2', gradlePlugin: '4.0.8' }, ios: { sdk: '7.0.0' } }), + JSON.stringify({ android: { sdk: '7.6.0', gradlePlugin: '4.0.8' }, ios: { sdk: '7.1.0' } }), ); const tarballs = join(dir, 'tarballs'); mkdirSync(tarballs); @@ -148,7 +148,7 @@ describe('github-release.mjs', () => { expect(notes).toContain('@bugsee/react-native@7.0.0-beta3'); expect(notes).toContain('@bugsee/react-native-feedback@7.0.0-beta3'); expect(notes).toContain('`beta`, `latest`'); - expect(notes).toContain('Android SDK 7.4.2 (Gradle plugin 4.0.8), iOS SDK 7.0.0'); + expect(notes).toContain('Android SDK 7.6.0 (Gradle plugin 4.0.8), iOS SDK 7.1.0'); }); it('does not mark a stable version as a prerelease', () => { diff --git a/scripts/__tests__/native-versions.test.ts b/scripts/__tests__/native-versions.test.ts index de0c2a20..00838522 100644 --- a/scripts/__tests__/native-versions.test.ts +++ b/scripts/__tests__/native-versions.test.ts @@ -11,11 +11,11 @@ const valid: NativeVersions = { describe('readNativeVersions', () => { it('exposes the pinned native versions', () => { const v = readNativeVersions(); - expect(v.android.sdk).toBe('7.4.2'); + expect(v.android.sdk).toBe('7.6.0'); expect(v.android.gradlePlugin).toBe('4.0.8'); // A released pin carries no snapshot provenance. expect(v.android).not.toHaveProperty('snapshotCommit'); - expect(v.ios.sdk).toBe('7.0.0'); + expect(v.ios.sdk).toBe('7.1.0'); expect(v.ios.spmUrl).toBe('https://github.com/bugsee/spm'); }); diff --git a/yarn.lock b/yarn.lock index b43a3a17..528a3a2e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2037,7 +2037,7 @@ __metadata: dependencies: react-native: "npm:0.87.1" peerDependencies: - "@bugsee/react-native": ^7.0.0-beta3 + "@bugsee/react-native": ^7.0.0-beta4 react: "*" react-native: ">=0.81.0" languageName: unknown From f7c2c137d27f118b27be6a2385a398145c250f16 Mon Sep 17 00:00:00 2001 From: Alexey Karimov Date: Tue, 17 Nov 2026 03:23:21 +0500 Subject: [PATCH 2/2] Review fixes: regenerate launch-options doc, flip readback fixtures to the new defaults, crash-signals shared Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Ws1LS4EaUy9s7QaKsfyvb4 --- docs/launch-options.md | 8 ++++---- examples/bare/scenarios/api-constants.ts | 12 +++++++----- .../react-native/src/options/BugseeLaunchOptions.ts | 3 ++- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/docs/launch-options.md b/docs/launch-options.md index 5e4958f1..6f5fc2ec 100644 --- a/docs/launch-options.md +++ b/docs/launch-options.md @@ -8,7 +8,7 @@ takes the native SDK's own default, and `Bugsee.getLaunchOptions()` reports what import Bugsee, { createDefaultLaunchOptions } from '@bugsee/react-native'; const options = createDefaultLaunchOptions(); -options.triggerByShake = false; // shake-to-report is ON by default in both SDKs +options.triggerByShake = true; // shake-to-report is OFF by default (iOS 7.1.0, Android 7.6.0) await Bugsee.launch('', options); ``` @@ -49,9 +49,9 @@ iOS, does nothing on Android, and reports nothing on either. `launch()` and `rel | `reportingDefaultCrashPriority` | `com.bugsee.option.reporting.defaults.crash-priority` | `enum IssueSeverity` | iOS, Android | `Blocker` | Default priority of crash reports; see `IssueSeverity`. | | `reportingDefaultErrorPriority` | `com.bugsee.option.reporting.defaults.error-priority` | `enum IssueSeverity` | iOS, Android | `High` | Default priority of error reports; see `IssueSeverity`. | | `triggerByBroadcast` | `com.bugsee.option.reporting.triggers.broadcast` | `boolean` | Android | `false` | Let a broadcast open the report dialog. | -| `triggerByNotification` | `com.bugsee.option.reporting.triggers.notification-bar` | `boolean` | Android | `false` | Let the user open the report dialog from the notification bar. The SDK default is on. | +| `triggerByNotification` | `com.bugsee.option.reporting.triggers.notification-bar` | `boolean` | Android | `false` | Let the user open the report dialog from the notification bar. The SDK default is off (Android 7.6.0; on before). | | `triggerByScreenshot` | `com.bugsee.option.reporting.triggers.screenshot` | `boolean` | iOS, Android | `false` | Let the user open the report dialog by taking a screenshot. | -| `triggerByShake` | `com.bugsee.option.reporting.triggers.shake` | `boolean` | iOS, Android | `false` | Let the user open the report dialog by shaking the device. **The SDK default is on:** set this to `false` to turn shake-to-report off. | +| `triggerByShake` | `com.bugsee.option.reporting.triggers.shake` | `boolean` | iOS, Android | `false` | Let the user open the report dialog by shaking the device. **The SDK default is off (Android 7.6.0, iOS 7.1.0; on before):** set this to `true` to turn shake-to-report on. | | `reportingUIDescriptionRequired` | `com.bugsee.option.reporting.ui.description-required` | `boolean` | iOS, Android | `false` | Make the Description field mandatory in the report dialog. | | `reportingUIEmailRequired` | `com.bugsee.option.reporting.ui.email-required` | `boolean` | iOS, Android | `false` | Make the Email field mandatory in the report dialog. | | `reportingUILabelsEnabled` | `com.bugsee.option.reporting.ui.labels-enabled` | `boolean` | iOS, Android | `false` | Show the Labels field in the report dialog. | @@ -70,7 +70,7 @@ iOS, does nothing on Android, and reports nothing on either. `launch()` and `rel | `captureBreadcrumbsExtras` | `com.bugsee.option.capture.breadcrumbs.extras` | `boolean` | iOS, Android | `false` | Attach the extra detail of automatically collected device-event breadcrumbs. | | `captureCameraPreview` | `com.bugsee.option.capture.camera-preview` | `boolean` | iOS | `false` | Capture camera preview layers. Read the iOS SDK's privacy and overhead notes before enabling. | | `crashHandlerType` | `com.bugsee.option.capture.crash-handler-type` | `enum BugseeCrashHandlerType` | iOS | `MachAndBSD` | How the crash reporter intercepts crashes; see `CrashHandlerType`. Unset leaves the SDK default, `CrashHandlerType.MachAndBSD`. | -| `crashSignals` | `com.bugsee.option.capture.crash-signals` | `int` | iOS, Android | `128` | The fatal signals the native crash handler intercepts, as a bit set: ABRT 1, SEGV 2, BUS 4, ILL 8, FPE 16, TRAP 32 (the same layout on both platforms). Unset leaves the SDK default (every signal). Leave SEGV and BUS out when the app hosts a Mono runtime. On Android it is read once, when the native handler is first armed in the process. iOS 7.0.0-beta7, Android 7.6.0. | +| `crashSignals` | `com.bugsee.option.capture.crash-signals` | `int` | iOS, Android | `128` | The fatal signals the native crash handler intercepts, as a bit set: ABRT 1, SEGV 2, BUS 4, ILL 8, FPE 16, TRAP 32 (the same layout on both platforms). Unset leaves the SDK default, 128 (the "let the SDK choose" bit, which resolves to every signal; it counts only on its own). Leave SEGV and BUS out when the app hosts a Mono runtime. On Android it is read once, when the native handler is first armed in the process. iOS 7.0.0-beta7, Android 7.6.0. | | `captureDeviceAndNetworkNames` | `com.bugsee.option.capture.device-network-names` | `boolean` | iOS | `false` | Record the device and network names. | | `captureDiskSpace` | `com.bugsee.option.capture.disk-space` | `boolean` | iOS | `false` | Record free disk space. | | `captureLogs` | `com.bugsee.option.capture.logs` | `boolean` | iOS, Android | `true` | Capture logs. Lines sent with `Bugsee.log()` are always recorded. | diff --git a/examples/bare/scenarios/api-constants.ts b/examples/bare/scenarios/api-constants.ts index b4cd84b7..4b5d9d95 100644 --- a/examples/bare/scenarios/api-constants.ts +++ b/examples/bare/scenarios/api-constants.ts @@ -19,6 +19,8 @@ const P = 'com.bugsee.option.'; export const READBACK_SHARED: Readonly> = { [`${P}capture.breadcrumbs`]: true, [`${P}capture.breadcrumbs.extras`]: true, + /** ABRT | SEGV | ILL; the SDK default is 128, the "let the SDK choose" bit (every signal). */ + [`${P}capture.crash-signals`]: 11, [`${P}capture.logs`]: false, [`${P}capture.logs.level`]: 2, [`${P}capture.network`]: false, @@ -60,7 +62,8 @@ export const READBACK_SHARED: Readonly> = { [`${P}reporting.defaults.crash-priority`]: 2, [`${P}reporting.defaults.error-priority`]: 1, [`${P}reporting.triggers.screenshot`]: true, - [`${P}reporting.triggers.shake`]: false, + /** Off by default since iOS 7.1.0 and Android 7.6.0: flipped here. */ + [`${P}reporting.triggers.shake`]: true, [`${P}reporting.ui.description-required`]: true, [`${P}reporting.ui.email-required`]: true, [`${P}reporting.ui.labels-enabled`]: true, @@ -99,7 +102,8 @@ export const READBACK_ANDROID: Readonly> = { [`${P}detect.hang.sampling`]: false, [`${P}performance.upload-mode`]: 'realtime', [`${P}reporting.triggers.broadcast`]: true, - [`${P}reporting.triggers.notification-bar`]: false, + /** Off by default since Android 7.6.0: flipped here. */ + [`${P}reporting.triggers.notification-bar`]: true, }; export const READBACK_IOS: Readonly> = { @@ -110,8 +114,6 @@ export const READBACK_IOS: Readonly> = { [`${P}capture.camera-preview`]: true, /** BSD: the SDK default is MachAndBSD (3). */ [`${P}capture.crash-handler-type`]: 1, - /** ABRT | SEGV | ILL; the SDK default is every signal. */ - [`${P}capture.crash-signals`]: 11, [`${P}capture.device-network-names`]: true, [`${P}capture.disk-space`]: true, [`${P}capture.logs.oslog`]: true, @@ -143,6 +145,7 @@ export const ACCESSOR_KEYS = { captureLogsLevel: `${P}capture.logs.level`, captureNetwork: `${P}capture.network`, captureBreadcrumbs: `${P}capture.breadcrumbs`, + crashSignals: `${P}capture.crash-signals`, captureVideo: `${P}capture.video`, detectAndReportCrash: `${P}detect.crash`, detectAndReportHang: `${P}detect.hang`, @@ -161,7 +164,6 @@ export const ACCESSOR_KEYS = { }, ios: { captureAVPlayer: `${P}capture.avplayer`, - crashSignals: `${P}capture.crash-signals`, crashHandlerType: `${P}capture.crash-handler-type`, captureDiskSpace: `${P}capture.disk-space`, }, diff --git a/packages/react-native/src/options/BugseeLaunchOptions.ts b/packages/react-native/src/options/BugseeLaunchOptions.ts index 516bf634..b3bb4446 100644 --- a/packages/react-native/src/options/BugseeLaunchOptions.ts +++ b/packages/react-native/src/options/BugseeLaunchOptions.ts @@ -292,7 +292,8 @@ export abstract class BugseeLaunchOptions { /** * The fatal signals the native crash handler intercepts, as a bit set: ABRT 1, SEGV 2, * BUS 4, ILL 8, FPE 16, TRAP 32 (the same layout on both platforms). Unset leaves the SDK - * default (every signal). Leave SEGV and BUS out when the app hosts a Mono runtime. On Android + * default, 128 (the "let the SDK choose" bit, which resolves to every signal; it counts only on + * its own). Leave SEGV and BUS out when the app hosts a Mono runtime. On Android * it is read once, when the native handler is first armed in the process. iOS 7.0.0-beta7, * Android 7.6.0. */