diff --git a/CHANGELOG.md b/CHANGELOG.md index ec409f8732..c45ff4f515 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [Unreleased](https://github.com/Instabug/Instabug-React-Native/compare/v13.1.1...dev) + +### Fixed + +- Change parameters used inside inner classes to `final` in Android code to maintain compatibility with Java 7 and earlier ([#1239](https://github.com/Instabug/Instabug-React-Native/pull/1239)). + ## [13.1.1](https://github.com/Instabug/Instabug-React-Native/compare/v13.0.4...dev) (JUN 6, 2024) ### Fixed diff --git a/android/src/main/java/com/instabug/reactlibrary/RNInstabugCrashReportingModule.java b/android/src/main/java/com/instabug/reactlibrary/RNInstabugCrashReportingModule.java index 080e6cf078..f7c076253e 100644 --- a/android/src/main/java/com/instabug/reactlibrary/RNInstabugCrashReportingModule.java +++ b/android/src/main/java/com/instabug/reactlibrary/RNInstabugCrashReportingModule.java @@ -90,9 +90,9 @@ public void run() { * @param level different severity levels for errors */ @ReactMethod - public void sendHandledJSCrash(final String exceptionObject, @Nullable ReadableMap userAttributes, @Nullable String fingerprint, @Nullable String level) { + public void sendHandledJSCrash(final String exceptionObject, @Nullable final ReadableMap userAttributes, @Nullable final String fingerprint, @Nullable final String level) { try { - JSONObject jsonObject = new JSONObject(exceptionObject); + final JSONObject jsonObject = new JSONObject(exceptionObject); MainThreadHandler.runOnMainThread(new Runnable() { @Override public void run() { diff --git a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java index 0cd0a3940a..c056f15831 100644 --- a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java +++ b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java @@ -161,7 +161,7 @@ public void run() { } @ReactMethod - public void setCodePushVersion(@Nullable String version) { + public void setCodePushVersion(@Nullable final String version) { MainThreadHandler.runOnMainThread(new Runnable() { @Override public void run() { diff --git a/android/src/main/java/com/instabug/reactlibrary/RNInstabugSessionReplayModule.java b/android/src/main/java/com/instabug/reactlibrary/RNInstabugSessionReplayModule.java index 1c3967502e..5024c61804 100644 --- a/android/src/main/java/com/instabug/reactlibrary/RNInstabugSessionReplayModule.java +++ b/android/src/main/java/com/instabug/reactlibrary/RNInstabugSessionReplayModule.java @@ -83,7 +83,7 @@ public void run() { } @ReactMethod - public void getSessionReplayLink(Promise promise) { + public void getSessionReplayLink(final Promise promise) { MainThreadHandler.runOnMainThread(new Runnable() { @Override public void run() {