From c4e40897ea81bdc74e5df42d58fbc672d35d0070 Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Tue, 23 Aug 2022 10:23:26 +0200 Subject: [PATCH] Remove deprecated `ReanimatedJSIModulePackage` (#3481) ## Description This PR removes `ReanimatedJSIModulePackage` class which was used for initializing Reanimated 2.4.1 and below. Since 2.5.0, Reanimated automatically installs itself on Android. You can remove `getJSIModulePackage()` method in `MainApplication.java` of your app. --- .../ReanimatedJSIModulePackage.java | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 android/src/main/java/com/swmansion/reanimated/ReanimatedJSIModulePackage.java diff --git a/android/src/main/java/com/swmansion/reanimated/ReanimatedJSIModulePackage.java b/android/src/main/java/com/swmansion/reanimated/ReanimatedJSIModulePackage.java deleted file mode 100644 index 7d1a1652b01..00000000000 --- a/android/src/main/java/com/swmansion/reanimated/ReanimatedJSIModulePackage.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.swmansion.reanimated; - -import android.util.Log; -import com.facebook.react.bridge.JSIModulePackage; -import com.facebook.react.bridge.JSIModuleSpec; -import com.facebook.react.bridge.JavaScriptContextHolder; -import com.facebook.react.bridge.ReactApplicationContext; -import java.util.Arrays; -import java.util.List; - -public class ReanimatedJSIModulePackage implements JSIModulePackage { - /** - * @deprecated Since 2.5.0, Reanimated autoinstalls on Android - you can remove - * getJSIModulePackage() override in MainApplication.java. - */ - @Deprecated - public ReanimatedJSIModulePackage() { - super(); - } - - @Override - public List getJSIModules( - ReactApplicationContext reactApplicationContext, JavaScriptContextHolder jsContext) { - Log.w( - "[REANIMATED]", - "Since 2.5.0, Reanimated autoinstalls on Android - you can remove getJSIModulePackage() override in MainApplication.java."); - return Arrays.asList(); - } -}