diff --git a/js/react_native/e2e/android/app/src/main/java/com/example/reactnativeonnxruntimemodule/MainApplication.java b/js/react_native/e2e/android/app/src/main/java/com/example/reactnativeonnxruntimemodule/MainApplication.java index 2d0ae5ba8f31a..f5585304d6fcf 100644 --- a/js/react_native/e2e/android/app/src/main/java/com/example/reactnativeonnxruntimemodule/MainApplication.java +++ b/js/react_native/e2e/android/app/src/main/java/com/example/reactnativeonnxruntimemodule/MainApplication.java @@ -51,14 +51,6 @@ public void onCreate() { initializeFlipper( this, getReactNativeHost().getReactInstanceManager()); // Remove this line if you don't want Flipper enabled } - @Override - public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter) { - if (Build.VERSION.SDK_INT >= 34 && getApplicationInfo().targetSdkVersion >= 34) { - return super.registerReceiver(receiver, filter, Context.RECEIVER_EXPORTED); // or RECEIVER_NOT_EXPORTED - } else { - return super.registerReceiver(receiver, filter); - } - } public static Context getAppContext() { return appContext; } /**