diff --git a/docs/design/plans/2026-09-16-implementation-plan.md b/docs/design/plans/2026-09-16-implementation-plan.md index 0a898f40..e4f94268 100644 --- a/docs/design/plans/2026-09-16-implementation-plan.md +++ b/docs/design/plans/2026-09-16-implementation-plan.md @@ -17,7 +17,7 @@ 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.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. +- 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.1.1** (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; 4.1.0 requires AGP 8.6 and Gradle 8.7 or newer; 4.1.1 keeps native crash capture working when the SDK is declared in another module), 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. diff --git a/docs/release-notes.md b/docs/release-notes.md index e7013f7a..abdfe5b3 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -4,6 +4,27 @@ Newest first. The npm packages `@bugsee/react-native` and `@bugsee/react-native- the same version. Each version also has a GitHub release with the packed tarballs and the generated list of merged pull requests. +## 7.0.0-beta5 + +Native SDKs: **Android 7.6.0** (Gradle plugin **4.1.1**), **iOS 7.1.0**. npm dist-tags `beta` and `latest`. + +### Gradle plugin 4.1.1 + +The package now builds against Bugsee Gradle plugin 4.1.1 (it was 4.0.8). This is what the Expo config +plugin declares by default and what the README tells bare apps to apply. + +- The plugin requires **AGP 8.6 or newer and Gradle 8.7 or newer** (Gradle 9 is supported) and fails + early with a readable message otherwise. +- Native symbols are still uploaded from the unstripped libraries, and an upload that did not change is + skipped on the next build. +- Opt in to failing the build when an upload does not complete with `failOnUploadError` in the `bugsee { }` + block. +- Uploads honour the JVM proxy settings, secrets such as the app token stay out of build logs, and the + plugin falls back to an installed `bugsee-cli` when the download fails. +- Native crash capture keeps working when the Bugsee SDK is declared in another module. + +If you pin the plugin yourself, use 4.1.1: `id 'com.bugsee.android.gradle' version '4.1.1' apply false`. + ## 7.0.0-beta4 Native SDKs: **Android 7.6.0** (Gradle plugin 4.0.8), **iOS 7.1.0**. npm dist-tags `beta` and `latest`. diff --git a/examples/bare/android/build.gradle b/examples/bare/android/build.gradle index 8442bc85..ff959d92 100644 --- a/examples/bare/android/build.gradle +++ b/examples/bare/android/build.gradle @@ -30,7 +30,7 @@ plugins { // 'com.android.library' first!", since it hangs its tasks off an Android // variant. The token file still belongs to this directory, the root // project, not to app/. - id 'com.bugsee.android.gradle' version '4.0.8' apply false + id 'com.bugsee.android.gradle' version '4.1.1' apply false } // The token lives in bugsee.properties next to this file — the *root* Gradle @@ -40,7 +40,7 @@ plugins { def nativeVersions = new groovy.json.JsonSlurper().parse(file("../../../native-versions.json")) def pinned = nativeVersions.android.gradlePlugin -def applied = '4.0.8' +def applied = '4.1.1' if (pinned != applied) { throw new GradleException( "Bugsee Gradle plugin is pinned to ${pinned} in native-versions.json " + diff --git a/native-versions.json b/native-versions.json index a0f42f36..cfc19f01 100644 --- a/native-versions.json +++ b/native-versions.json @@ -1,7 +1,7 @@ { "android": { "sdk": "7.6.0", - "gradlePlugin": "4.0.8" + "gradlePlugin": "4.1.1" }, "ios": { "sdk": "7.1.0", diff --git a/packages/react-native-feedback/README.md b/packages/react-native-feedback/README.md index 24fa1331..9507afed 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-beta4`); the npm `latest` and `beta` tags +At the same version as `@bugsee/react-native` (`7.0.0-beta5`); 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. diff --git a/packages/react-native-feedback/package.json b/packages/react-native-feedback/package.json index 5100c1c7..7de62766 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-beta4", + "version": "7.0.0-beta5", "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-beta4", + "@bugsee/react-native": "^7.0.0-beta5", "react": "*", "react-native": ">=0.81.0" }, diff --git a/packages/react-native/README.md b/packages/react-native/README.md index 631f4602..690e3497 100644 --- a/packages/react-native/README.md +++ b/packages/react-native/README.md @@ -9,7 +9,7 @@ added. ## Status: beta -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 +This is a beta (`7.0.0-beta5`), 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. @@ -599,10 +599,13 @@ against (`android.gradlePlugin` in ```groovy plugins { - id 'com.bugsee.android.gradle' version '4.0.8' apply false + id 'com.bugsee.android.gradle' version '4.1.1' apply false } ``` +Plugin 4.1.x needs the Android Gradle Plugin 8.6 or newer and Gradle 8.7 or newer (Gradle 9 is +supported); on older ones the build fails early with a message saying so. + `android/app/build.gradle` — apply it, and for native crash symbols add the NDK module at the SDK version the package pins. No `ndk.debugSymbolLevel` is needed for Bugsee ([Native symbols](#native-symbols-android)); set one only diff --git a/packages/react-native/ios/Support/Sources/BugseeRNSupport/BGSRNWrapper.m b/packages/react-native/ios/Support/Sources/BugseeRNSupport/BGSRNWrapper.m index 812ab696..59685f2f 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-beta4", + @"version" : @"7.0.0-beta5", @"context" : @{}, }]; } diff --git a/packages/react-native/ios/Support/Tests/BugseeRNSupportTests/BGSRNWrapperTests.m b/packages/react-native/ios/Support/Tests/BugseeRNSupportTests/BGSRNWrapperTests.m index f85392c7..8b66f47a 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-beta4"); + XCTAssertEqualObjects(wrapper.wrapperVersion, @"7.0.0-beta5"); XCTAssertNil(wrapper.wrapperBuild); XCTAssertEqual(wrapper.context.count, (NSUInteger)0); } diff --git a/packages/react-native/package.json b/packages/react-native/package.json index c79c40ec..79fd2b94 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-beta4", + "version": "7.0.0-beta5", "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 1bae0294..cb94d088 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-beta4'); +exports.default = (0, config_plugins_1.createRunOncePlugin)(withBugsee, '@bugsee/react-native', '7.0.0-beta5'); //# 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 c5cfd2e5..1f2e61c9 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.6.0", - "gradlePlugin": "4.0.8" + "gradlePlugin": "4.1.1" } diff --git a/packages/react-native/plugin/src/index.ts b/packages/react-native/plugin/src/index.ts index 519b58ea..78a5c915 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-beta4'); +export default createRunOncePlugin(withBugsee, '@bugsee/react-native', '7.0.0-beta5'); diff --git a/scripts/__tests__/github-release.test.ts b/scripts/__tests__/github-release.test.ts index b6f9389f..b2281da8 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.6.0', gradlePlugin: '4.0.8' }, ios: { sdk: '7.1.0' } }), + JSON.stringify({ android: { sdk: '7.6.0', gradlePlugin: '4.1.1' }, 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.6.0 (Gradle plugin 4.0.8), iOS SDK 7.1.0'); + expect(notes).toContain('Android SDK 7.6.0 (Gradle plugin 4.1.1), 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 00838522..4973b5c3 100644 --- a/scripts/__tests__/native-versions.test.ts +++ b/scripts/__tests__/native-versions.test.ts @@ -12,7 +12,7 @@ describe('readNativeVersions', () => { it('exposes the pinned native versions', () => { const v = readNativeVersions(); expect(v.android.sdk).toBe('7.6.0'); - expect(v.android.gradlePlugin).toBe('4.0.8'); + expect(v.android.gradlePlugin).toBe('4.1.1'); // A released pin carries no snapshot provenance. expect(v.android).not.toHaveProperty('snapshotCommit'); expect(v.ios.sdk).toBe('7.1.0'); diff --git a/yarn.lock b/yarn.lock index 528a3a2e..39a2087a 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-beta4 + "@bugsee/react-native": ^7.0.0-beta5 react: "*" react-native: ">=0.81.0" languageName: unknown