From 515694663d78dec6fbcfc1721979ca4f5d2b0f48 Mon Sep 17 00:00:00 2001 From: Andrew Datsenko Date: Mon, 8 Apr 2024 14:28:46 -0700 Subject: [PATCH] //xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry:appregistryAndroid (#43858) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43858 Changelog: [Internal] Reviewed By: cortinico Differential Revision: D55725317 fbshipit-source-id: eb0b583070dea1bc7ccac5dfd5d5d983c59c1b6b --- .../modules/appregistry/AppRegistry.java | 21 ------------------- .../react/modules/appregistry/AppRegistry.kt | 21 +++++++++++++++++++ 2 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.java create mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.kt diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.java deleted file mode 100644 index 25d10174fd76cb..00000000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.java +++ /dev/null @@ -1,21 +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.modules.appregistry; - -import com.facebook.react.bridge.JavaScriptModule; -import com.facebook.react.bridge.WritableMap; - -/** JS module interface - main entry point for launching React application for a given key. */ -public interface AppRegistry extends JavaScriptModule { - - void runApplication(String appKey, WritableMap appParameters); - - void unmountApplicationComponentAtRootTag(int rootNodeTag); - - void startHeadlessTask(int taskId, String taskKey, WritableMap data); -} diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.kt new file mode 100644 index 00000000000000..63191c4717b967 --- /dev/null +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.kt @@ -0,0 +1,21 @@ +/* + * 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.modules.appregistry + +import com.facebook.react.bridge.JavaScriptModule +import com.facebook.react.bridge.WritableMap + +/** JS module interface - main entry point for launching React application for a given key. */ +public interface AppRegistry : JavaScriptModule { + + public fun runApplication(appKey: String, appParameters: WritableMap) + + public fun unmountApplicationComponentAtRootTag(rootNodeTag: Int) + + public fun startHeadlessTask(taskId: Int, taskKey: String, data: WritableMap) +}