diff --git a/CHANGELOG.md b/CHANGELOG.md index 3061ca6..d8b6a8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.7.1 + +This release fixes an Android build failure for consumers whose Kotlin compiler is older than the version `raygun4android` was compiled against (notably Expo SDK 55 / React Native 0.81, which pin Kotlin 2.1.20). + +- fix: exclude `kotlin-stdlib` from `raygun4android` to avoid forcing a stdlib upgrade on the host app (#237) + ## 1.7.0 This release adds a new `RaygunErrorBoundary` React component for capturing render-time errors with the React `componentStack`, upgrades the underlying native SDKs (`raygun4android` 5.2.1, `raygun4apple` 2.1.6), modernises the Android build for Gradle 9 / AGP 8.x (`compileSdkVersion 36`), and refreshes the demo projects to React Native 0.84. diff --git a/demo/package-lock.json b/demo/package-lock.json index ca1d797..1ea4578 100644 --- a/demo/package-lock.json +++ b/demo/package-lock.json @@ -12,7 +12,7 @@ "@react-native-community/checkbox": "^0.5.20", "@react-navigation/bottom-tabs": "^7.15.2", "@react-navigation/native": "^7.2.2", - "raygun4reactnative": "file:raygun4reactnative-1.7.0.tgz", + "raygun4reactnative": "file:raygun4reactnative-1.7.1.tgz", "react": "19.2.3", "react-native": "^0.84.1", "react-native-safe-area-context": "^5.4.1", diff --git a/demo/package.json b/demo/package.json index 640d868..017c77f 100644 --- a/demo/package.json +++ b/demo/package.json @@ -13,7 +13,7 @@ "@react-native-community/checkbox": "^0.5.20", "@react-navigation/bottom-tabs": "^7.15.2", "@react-navigation/native": "^7.2.2", - "raygun4reactnative": "file:raygun4reactnative-1.7.0.tgz", + "raygun4reactnative": "file:raygun4reactnative-1.7.1.tgz", "react": "19.2.3", "react-native": "^0.84.1", "react-native-safe-area-context": "^5.4.1", diff --git a/sdk/android/build.gradle b/sdk/android/build.gradle index 246667d..e1b75df 100644 --- a/sdk/android/build.gradle +++ b/sdk/android/build.gradle @@ -47,7 +47,14 @@ repositories { dependencies { //noinspection GradleDynamicVersion implementation 'com.facebook.react:react-android:+' - implementation 'com.raygun:raygun4android:5.2.1' + // Exclude kotlin-stdlib so the host app's Kotlin version wins conflict resolution. + // raygun4android's stdlib (currently 2.3.0) would otherwise force-upgrade stdlib for + // every other module in the graph, breaking builds whose Kotlin compiler is older + // (e.g. React Native 0.81 / Expo SDK 55 pin Kotlin 2.1.20, which cannot read 2.3.0 + // metadata). See https://github.com/MindscapeHQ/raygun4reactnative/issues/237. + implementation('com.raygun:raygun4android:5.2.1') { + exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib' + } implementation 'com.jakewharton.timber:timber:4.7.1' } diff --git a/sdk/package.json b/sdk/package.json index 09d0594..8cc0dbf 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -1,7 +1,7 @@ { "name": "raygun4reactnative", "title": "Raygun4reactnative", - "version": "1.7.0", + "version": "1.7.1", "description": "Raygun React Native SDK", "main": "dist/index.js", "typescript": {