From 710f2e3bdbfa05e7bea0da03c162f8070cb4992d Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 28 Jul 2023 06:08:53 -0700 Subject: [PATCH] Migrate CallInvokerHolder to kotlin (#38504) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38504 In this diff I'm migrating CallInvokerHolder to kotlin changelog: [internal] internal Reviewed By: christophpurrer Differential Revision: D47382873 fbshipit-source-id: 7641c0685e3716f9d3b2db6c5ba837b4a47e7d08 --- .../{CallInvokerHolder.java => CallInvokerHolder.kt} | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/{CallInvokerHolder.java => CallInvokerHolder.kt} (72%) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/CallInvokerHolder.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/CallInvokerHolder.kt similarity index 72% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/CallInvokerHolder.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/CallInvokerHolder.kt index 42073a555e4..12ac4792a01 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/CallInvokerHolder.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/CallInvokerHolder.kt @@ -5,14 +5,13 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.turbomodule.core.interfaces; - +package com.facebook.react.turbomodule.core.interfaces /** * JS CallInvoker is created by CatalystInstance.cpp, but used by TurboModuleManager.cpp. Both C++ * classes are instantiated at different times/places. Therefore, to pass the JS CallInvoker * instance from CatalystInstance to TurboModuleManager, we make it take a trip through Java. * - *

This interface represents the opaque Java object that contains a pointer to and instance of + * This interface represents the opaque Java object that contains a pointer to and instance of * CallInvoker. */ -public interface CallInvokerHolder {} +interface CallInvokerHolder