Skip to content

Commit

Permalink
Stable API - Make AppStateModule internal (#47121)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #47121

This class should be internal. I've verified this API is not used in OSS so this is technically breaking but not really affecting anyone in OSS.

Changelog:
[Android] [Breaking] - Stable API - Make AppStateModule internal

Reviewed By: Abbondanzo

Differential Revision: D64598660

fbshipit-source-id: aebc385c741e2e1f352d473db2be87d918f0ef65
  • Loading branch information
cortinico authored and facebook-github-bot committed Oct 21, 2024
1 parent 1aaedc7 commit dbf09fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
20 changes: 0 additions & 20 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -3056,26 +3056,6 @@ public abstract interface class com/facebook/react/modules/appregistry/AppRegist
public abstract fun unmountApplicationComponentAtRootTag (I)V
}

public final class com/facebook/react/modules/appstate/AppStateModule : com/facebook/fbreact/specs/NativeAppStateSpec, com/facebook/react/bridge/LifecycleEventListener, com/facebook/react/bridge/WindowFocusChangeListener {
public static final field APP_STATE_ACTIVE Ljava/lang/String;
public static final field APP_STATE_BACKGROUND Ljava/lang/String;
public static final field Companion Lcom/facebook/react/modules/appstate/AppStateModule$Companion;
public static final field NAME Ljava/lang/String;
public fun <init> (Lcom/facebook/react/bridge/ReactApplicationContext;)V
public fun addListener (Ljava/lang/String;)V
public fun getCurrentAppState (Lcom/facebook/react/bridge/Callback;Lcom/facebook/react/bridge/Callback;)V
public fun getTypedExportedConstants ()Ljava/util/Map;
public fun invalidate ()V
public fun onHostDestroy ()V
public fun onHostPause ()V
public fun onHostResume ()V
public fun onWindowFocusChange (Z)V
public fun removeListeners (D)V
}

public final class com/facebook/react/modules/appstate/AppStateModule$Companion {
}

public class com/facebook/react/modules/blob/BlobModule : com/facebook/fbreact/specs/NativeBlobModuleSpec {
public fun <init> (Lcom/facebook/react/bridge/ReactApplicationContext;)V
public fun addNetworkingHandler ()V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.facebook.react.common.LifecycleState
import com.facebook.react.module.annotations.ReactModule

@ReactModule(name = NativeAppStateSpec.NAME)
public class AppStateModule(reactContext: ReactApplicationContext) :
internal class AppStateModule(reactContext: ReactApplicationContext) :
NativeAppStateSpec(reactContext), LifecycleEventListener, WindowFocusChangeListener {

private var appState: String
Expand Down

0 comments on commit dbf09fb

Please sign in to comment.