From d1a256f51a43f465823bdfb8a70fae5f92473d7c Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Mon, 7 Oct 2024 04:51:45 -0700 Subject: [PATCH] Remove ReactNativeFlipper object (#46839) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46839 The `ReactNativeFlipper` object is not referenced in the template since 0.75. We can safely remove it as users should not reference it anymore. Changelog: [Android] [Breaking] - Remove ReactNativeFlipper object, deprecated in 0.75 Reviewed By: huntie Differential Revision: D63897187 fbshipit-source-id: a7d73a98550518e46f8dbc0c9b859e0afb16e8a9 --- .../react/flipper/ReactNativeFlipper.kt | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/flipper/ReactNativeFlipper.kt diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/flipper/ReactNativeFlipper.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/flipper/ReactNativeFlipper.kt deleted file mode 100644 index 472e3e009eb931..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/flipper/ReactNativeFlipper.kt +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -package com.facebook.react.flipper - -import android.content.Context -import com.facebook.react.ReactInstanceManager - -/** - * Stub class that does nothing to ease the migration out of Flipper. Users should stop calling - * `ReactNativeFlipper.initializeFlipper` in their `MainApplication.java` as this class will be - * removed in React Native 0.75 or future versions. - */ -@Deprecated( - message = - "ReactNative/Flipper integration is deprecated. Please remove the call to initializeFlipper from your MainApplication.java", - replaceWith = ReplaceWith(""), - level = DeprecationLevel.WARNING) -public object ReactNativeFlipper { - @Suppress("UNUSED_PARAMETER") - @JvmStatic - @Deprecated( - message = - "ReactNative/Flipper integration is deprecated. Please remove the call to initializeFlipper from your MainApplication.java", - replaceWith = ReplaceWith(""), - level = DeprecationLevel.WARNING) - public fun initializeFlipper(context: Context, reactInstanceManager: ReactInstanceManager) { - // no-op - } -}