diff --git a/CHANGELOG.md b/CHANGELOG.md index c9926370c..a090a0b0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Unreleased * Uses Cocoapods for Instabug iOS SDK +* Fixes a compilation error on projects with Java version prior to 8. ## 11.2.0 (2022-09-19) diff --git a/android/src/main/java/com/instabug/reactlibrary/RNInstabugBugReportingModule.java b/android/src/main/java/com/instabug/reactlibrary/RNInstabugBugReportingModule.java index d587e16b8..c4365aba0 100644 --- a/android/src/main/java/com/instabug/reactlibrary/RNInstabugBugReportingModule.java +++ b/android/src/main/java/com/instabug/reactlibrary/RNInstabugBugReportingModule.java @@ -180,7 +180,7 @@ public void run() { * @see InstabugInvocationEvent */ @ReactMethod - public void setInvocationEvents(ReadableArray invocationEventValues) { + public void setInvocationEvents(final ReadableArray invocationEventValues) { MainThreadHandler.runOnMainThread(new Runnable() { @Override public void run() { @@ -324,7 +324,7 @@ public void run() { * @see BugReporting.ReportType */ @ReactMethod - public void setReportTypes(ReadableArray types) { + public void setReportTypes(final ReadableArray types) { MainThreadHandler.runOnMainThread(new Runnable() { @SuppressLint("WrongConstant") @Override diff --git a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java index a1db7e14f..ab109be66 100644 --- a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java +++ b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java @@ -553,7 +553,7 @@ public void run() { * @see InstabugInvocationEvent */ @ReactMethod - public void setInvocationEvents(ReadableArray invocationEventValues) { + public void setInvocationEvents(final ReadableArray invocationEventValues) { MainThreadHandler.runOnMainThread(new Runnable() { @Override public void run() {