Rename JSCallInvoker{,Holder} to CallInvoker{,Holder}

Summary:
## Motivation
The concept behind JSCallInvoker doesn't necessarily have to apply only to the JS thread. On Android, we need to re-use this abstraction to allow execution of async method calls on the NativeModules thread.

Reviewed By: PeteTheHeat

Differential Revision: D17377313

fbshipit-source-id: 3d9075cbfce0b908d800a366947cfd16a3013d1c
This commit is contained in:
Ramanpreet Nara
2019-09-20 10:52:56 -07:00
committed by Facebook Github Bot
parent 60b57bad54
commit 4c998fd05d
67 changed files with 279 additions and 284 deletions
@@ -36,7 +36,7 @@ namespace facebook {
}
NativeAccessibilityInfoSpecJSI::NativeAccessibilityInfoSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeAccessibilityInfoSpecJSI::NativeAccessibilityInfoSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("AccessibilityInfo", instance, jsInvoker) {
methodMap_["isReduceMotionEnabled"] = MethodMetadata {1, __hostFunction_NativeAccessibilityInfoSpecJSI_isReduceMotionEnabled};
@@ -103,7 +103,7 @@ namespace facebook {
}
NativeAccessibilityManagerSpecJSI::NativeAccessibilityManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeAccessibilityManagerSpecJSI::NativeAccessibilityManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("AccessibilityManager", instance, jsInvoker) {
methodMap_["getCurrentBoldTextState"] = MethodMetadata {2, __hostFunction_NativeAccessibilityManagerSpecJSI_getCurrentBoldTextState};
@@ -170,7 +170,7 @@ namespace facebook {
}
NativeActionSheetManagerSpecJSI::NativeActionSheetManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeActionSheetManagerSpecJSI::NativeActionSheetManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("ActionSheetManager", instance, jsInvoker) {
methodMap_["showActionSheetWithOptions"] = MethodMetadata {2, __hostFunction_NativeActionSheetManagerSpecJSI_showActionSheetWithOptions};
@@ -201,7 +201,7 @@ namespace facebook {
}
NativeAlertManagerSpecJSI::NativeAlertManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeAlertManagerSpecJSI::NativeAlertManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("AlertManager", instance, jsInvoker) {
methodMap_["alertWithArgs"] = MethodMetadata {2, __hostFunction_NativeAlertManagerSpecJSI_alertWithArgs};
@@ -314,7 +314,7 @@ namespace facebook {
}
NativeAnimatedModuleSpecJSI::NativeAnimatedModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeAnimatedModuleSpecJSI::NativeAnimatedModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("AnimatedModule", instance, jsInvoker) {
methodMap_["createAnimatedNode"] = MethodMetadata {2, __hostFunction_NativeAnimatedModuleSpecJSI_createAnimatedNode};
@@ -392,7 +392,7 @@ namespace facebook {
}
NativeAnimationsDebugModuleSpecJSI::NativeAnimationsDebugModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeAnimationsDebugModuleSpecJSI::NativeAnimationsDebugModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("AnimationsDebugModule", instance, jsInvoker) {
methodMap_["startRecordingFps"] = MethodMetadata {0, __hostFunction_NativeAnimationsDebugModuleSpecJSI_startRecordingFps};
@@ -433,7 +433,7 @@ namespace facebook {
}
NativeAppStateSpecJSI::NativeAppStateSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeAppStateSpecJSI::NativeAppStateSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("AppState", instance, jsInvoker) {
methodMap_["getCurrentAppState"] = MethodMetadata {2, __hostFunction_NativeAppStateSpecJSI_getCurrentAppState};
@@ -470,7 +470,7 @@ namespace facebook {
}
NativeAppearanceSpecJSI::NativeAppearanceSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeAppearanceSpecJSI::NativeAppearanceSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("Appearance", instance, jsInvoker) {
methodMap_["getColorScheme"] = MethodMetadata {0, __hostFunction_NativeAppearanceSpecJSI_getColorScheme};
@@ -581,7 +581,7 @@ namespace facebook {
}
NativeAsyncStorageSpecJSI::NativeAsyncStorageSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeAsyncStorageSpecJSI::NativeAsyncStorageSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("AsyncStorage", instance, jsInvoker) {
methodMap_["multiGet"] = MethodMetadata {2, __hostFunction_NativeAsyncStorageSpecJSI_multiGet};
@@ -640,7 +640,7 @@ namespace facebook {
}
NativeBlobModuleSpecJSI::NativeBlobModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeBlobModuleSpecJSI::NativeBlobModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("BlobModule", instance, jsInvoker) {
methodMap_["addNetworkingHandler"] = MethodMetadata {0, __hostFunction_NativeBlobModuleSpecJSI_addNetworkingHandler};
@@ -686,7 +686,7 @@ namespace facebook {
}
NativeBugReportingSpecJSI::NativeBugReportingSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeBugReportingSpecJSI::NativeBugReportingSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("BugReporting", instance, jsInvoker) {
methodMap_["startReportAProblemFlow"] = MethodMetadata {0, __hostFunction_NativeBugReportingSpecJSI_startReportAProblemFlow};
@@ -716,7 +716,7 @@ namespace facebook {
}
NativeClipboardSpecJSI::NativeClipboardSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeClipboardSpecJSI::NativeClipboardSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("Clipboard", instance, jsInvoker) {
methodMap_["getString"] = MethodMetadata {0, __hostFunction_NativeClipboardSpecJSI_getString};
@@ -739,7 +739,7 @@ namespace facebook {
}
NativeDatePickerAndroidSpecJSI::NativeDatePickerAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeDatePickerAndroidSpecJSI::NativeDatePickerAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("DatePickerAndroid", instance, jsInvoker) {
methodMap_["open"] = MethodMetadata {1, __hostFunction_NativeDatePickerAndroidSpecJSI_open};
@@ -763,7 +763,7 @@ namespace facebook {
}
NativeDevLoadingViewSpecJSI::NativeDevLoadingViewSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeDevLoadingViewSpecJSI::NativeDevLoadingViewSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("DevLoadingView", instance, jsInvoker) {
methodMap_["showMessage"] = MethodMetadata {3, __hostFunction_NativeDevLoadingViewSpecJSI_showMessage};
@@ -810,7 +810,7 @@ namespace facebook {
}
NativeDevSettingsSpecJSI::NativeDevSettingsSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeDevSettingsSpecJSI::NativeDevSettingsSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("DevSettings", instance, jsInvoker) {
methodMap_["reload"] = MethodMetadata {0, __hostFunction_NativeDevSettingsSpecJSI_reload};
@@ -848,7 +848,7 @@ namespace facebook {
}
NativeDeviceEventManagerSpecJSI::NativeDeviceEventManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeDeviceEventManagerSpecJSI::NativeDeviceEventManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("DeviceEventManager", instance, jsInvoker) {
methodMap_["invokeDefaultBackPressHandler"] = MethodMetadata {0, __hostFunction_NativeDeviceEventManagerSpecJSI_invokeDefaultBackPressHandler};
@@ -868,7 +868,7 @@ namespace facebook {
}
NativeDeviceInfoSpecJSI::NativeDeviceInfoSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeDeviceInfoSpecJSI::NativeDeviceInfoSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("DeviceInfo", instance, jsInvoker) {
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeDeviceInfoSpecJSI_getConstants};
@@ -898,7 +898,7 @@ namespace facebook {
}
NativeDialogManagerAndroidSpecJSI::NativeDialogManagerAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeDialogManagerAndroidSpecJSI::NativeDialogManagerAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("DialogManagerAndroid", instance, jsInvoker) {
methodMap_["showAlert"] = MethodMetadata {3, __hostFunction_NativeDialogManagerAndroidSpecJSI_showAlert};
@@ -950,7 +950,7 @@ namespace facebook {
}
NativeExceptionsManagerSpecJSI::NativeExceptionsManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeExceptionsManagerSpecJSI::NativeExceptionsManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("ExceptionsManager", instance, jsInvoker) {
methodMap_["reportFatalException"] = MethodMetadata {3, __hostFunction_NativeExceptionsManagerSpecJSI_reportFatalException};
@@ -987,7 +987,7 @@ namespace facebook {
}
NativeFileReaderModuleSpecJSI::NativeFileReaderModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeFileReaderModuleSpecJSI::NativeFileReaderModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("FileReaderModule", instance, jsInvoker) {
methodMap_["readAsDataURL"] = MethodMetadata {1, __hostFunction_NativeFileReaderModuleSpecJSI_readAsDataURL};
@@ -1028,7 +1028,7 @@ namespace facebook {
}
NativeFrameRateLoggerSpecJSI::NativeFrameRateLoggerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeFrameRateLoggerSpecJSI::NativeFrameRateLoggerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("FrameRateLogger", instance, jsInvoker) {
methodMap_["setGlobalOptions"] = MethodMetadata {1, __hostFunction_NativeFrameRateLoggerSpecJSI_setGlobalOptions};
@@ -1062,7 +1062,7 @@ namespace facebook {
}
NativeHeadlessJsTaskSupportSpecJSI::NativeHeadlessJsTaskSupportSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeHeadlessJsTaskSupportSpecJSI::NativeHeadlessJsTaskSupportSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("HeadlessJsTaskSupport", instance, jsInvoker) {
methodMap_["notifyTaskFinished"] = MethodMetadata {1, __hostFunction_NativeHeadlessJsTaskSupportSpecJSI_notifyTaskFinished};
@@ -1089,7 +1089,7 @@ namespace facebook {
}
NativeHeapCaptureSpecJSI::NativeHeapCaptureSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeHeapCaptureSpecJSI::NativeHeapCaptureSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("HeapCapture", instance, jsInvoker) {
methodMap_["captureHeap"] = MethodMetadata {1, __hostFunction_NativeHeapCaptureSpecJSI_captureHeap};
@@ -1124,7 +1124,7 @@ namespace facebook {
}
NativeI18nManagerSpecJSI::NativeI18nManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeI18nManagerSpecJSI::NativeI18nManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("I18nManager", instance, jsInvoker) {
methodMap_["allowRTL"] = MethodMetadata {1, __hostFunction_NativeI18nManagerSpecJSI_allowRTL};
@@ -1149,7 +1149,7 @@ namespace facebook {
NativeImageLoaderSpecJSI::NativeImageLoaderSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeImageLoaderSpecJSI::NativeImageLoaderSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("ImageLoader", instance, jsInvoker) {
@@ -1190,7 +1190,7 @@ namespace facebook {
}
NativeImagePickerIOSSpecJSI::NativeImagePickerIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeImagePickerIOSSpecJSI::NativeImagePickerIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("ImagePickerIOS", instance, jsInvoker) {
methodMap_["canRecordVideos"] = MethodMetadata {1, __hostFunction_NativeImagePickerIOSSpecJSI_canRecordVideos};
@@ -1221,7 +1221,7 @@ namespace facebook {
}
NativeJSCSamplingProfilerSpecJSI::NativeJSCSamplingProfilerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeJSCSamplingProfilerSpecJSI::NativeJSCSamplingProfilerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("JSCSamplingProfiler", instance, jsInvoker) {
methodMap_["operationComplete"] = MethodMetadata {3, __hostFunction_NativeJSCSamplingProfilerSpecJSI_operationComplete};
@@ -1249,7 +1249,7 @@ namespace facebook {
}
NativeJSDevSupportSpecJSI::NativeJSDevSupportSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeJSDevSupportSpecJSI::NativeJSDevSupportSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("JSDevSupport", instance, jsInvoker) {
methodMap_["onSuccess"] = MethodMetadata {1, __hostFunction_NativeJSDevSupportSpecJSI_onSuccess};
@@ -1279,7 +1279,7 @@ namespace facebook {
}
NativeKeyboardObserverSpecJSI::NativeKeyboardObserverSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeKeyboardObserverSpecJSI::NativeKeyboardObserverSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("KeyboardObserver", instance, jsInvoker) {
methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeKeyboardObserverSpecJSI_addListener};
@@ -1332,7 +1332,7 @@ namespace facebook {
}
NativeLinkingSpecJSI::NativeLinkingSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeLinkingSpecJSI::NativeLinkingSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("Linking", instance, jsInvoker) {
methodMap_["getInitialURL"] = MethodMetadata {0, __hostFunction_NativeLinkingSpecJSI_getInitialURL};
@@ -1374,7 +1374,7 @@ namespace facebook {
}
NativeModalManagerSpecJSI::NativeModalManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeModalManagerSpecJSI::NativeModalManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("ModalManager", instance, jsInvoker) {
methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeModalManagerSpecJSI_addListener};
@@ -1419,7 +1419,7 @@ namespace facebook {
}
NativeNetworkingAndroidSpecJSI::NativeNetworkingAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeNetworkingAndroidSpecJSI::NativeNetworkingAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("NetworkingAndroid", instance, jsInvoker) {
methodMap_["sendRequest"] = MethodMetadata {9, __hostFunction_NativeNetworkingAndroidSpecJSI_sendRequest};
@@ -1473,7 +1473,7 @@ namespace facebook {
}
NativeNetworkingIOSSpecJSI::NativeNetworkingIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeNetworkingIOSSpecJSI::NativeNetworkingIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("NetworkingIOS", instance, jsInvoker) {
methodMap_["sendRequest"] = MethodMetadata {2, __hostFunction_NativeNetworkingIOSSpecJSI_sendRequest};
@@ -1518,7 +1518,7 @@ namespace facebook {
}
NativePermissionsAndroidSpecJSI::NativePermissionsAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativePermissionsAndroidSpecJSI::NativePermissionsAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("PermissionsAndroid", instance, jsInvoker) {
methodMap_["checkPermission"] = MethodMetadata {1, __hostFunction_NativePermissionsAndroidSpecJSI_checkPermission};
@@ -1551,7 +1551,7 @@ namespace facebook {
}
NativePlatformConstantsAndroidSpecJSI::NativePlatformConstantsAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativePlatformConstantsAndroidSpecJSI::NativePlatformConstantsAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("PlatformConstantsAndroid", instance, jsInvoker) {
methodMap_["getAndroidID"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsAndroidSpecJSI_getAndroidID};
@@ -1574,7 +1574,7 @@ namespace facebook {
}
NativePlatformConstantsIOSSpecJSI::NativePlatformConstantsIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativePlatformConstantsIOSSpecJSI::NativePlatformConstantsIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("PlatformConstantsIOS", instance, jsInvoker) {
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativePlatformConstantsIOSSpecJSI_getConstants};
@@ -1676,7 +1676,7 @@ namespace facebook {
}
NativePushNotificationManagerIOSSpecJSI::NativePushNotificationManagerIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativePushNotificationManagerIOSSpecJSI::NativePushNotificationManagerIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("PushNotificationManagerIOS", instance, jsInvoker) {
methodMap_["onFinishRemoteNotification"] = MethodMetadata {2, __hostFunction_NativePushNotificationManagerIOSSpecJSI_onFinishRemoteNotification};
@@ -1751,7 +1751,7 @@ namespace facebook {
}
NativeRedBoxSpecJSI::NativeRedBoxSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeRedBoxSpecJSI::NativeRedBoxSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("RedBox", instance, jsInvoker) {
methodMap_["setExtraData"] = MethodMetadata {2, __hostFunction_NativeRedBoxSpecJSI_setExtraData};
@@ -1778,7 +1778,7 @@ namespace facebook {
}
NativeSegmentFetcherSpecJSI::NativeSegmentFetcherSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSegmentFetcherSpecJSI::NativeSegmentFetcherSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("SegmentFetcher", instance, jsInvoker) {
methodMap_["fetchSegment"] = MethodMetadata {3, __hostFunction_NativeSegmentFetcherSpecJSI_fetchSegment};
@@ -1809,7 +1809,7 @@ namespace facebook {
}
NativeSettingsManagerSpecJSI::NativeSettingsManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSettingsManagerSpecJSI::NativeSettingsManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("SettingsManager", instance, jsInvoker) {
methodMap_["setValues"] = MethodMetadata {1, __hostFunction_NativeSettingsManagerSpecJSI_setValues};
@@ -1841,7 +1841,7 @@ namespace facebook {
}
NativeShareModuleSpecJSI::NativeShareModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeShareModuleSpecJSI::NativeShareModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("ShareModule", instance, jsInvoker) {
methodMap_["share"] = MethodMetadata {2, __hostFunction_NativeShareModuleSpecJSI_share};
@@ -1862,7 +1862,7 @@ namespace facebook {
}
NativeSoundManagerSpecJSI::NativeSoundManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSoundManagerSpecJSI::NativeSoundManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("SoundManager", instance, jsInvoker) {
methodMap_["playTouchSound"] = MethodMetadata {0, __hostFunction_NativeSoundManagerSpecJSI_playTouchSound};
@@ -1882,7 +1882,7 @@ namespace facebook {
}
NativeSourceCodeSpecJSI::NativeSourceCodeSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSourceCodeSpecJSI::NativeSourceCodeSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("SourceCode", instance, jsInvoker) {
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeSourceCodeSpecJSI_getConstants};
@@ -1940,7 +1940,7 @@ namespace facebook {
}
NativeStatusBarManagerSpecJSI::NativeStatusBarManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeStatusBarManagerSpecJSI::NativeStatusBarManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("StatusBarManager", instance, jsInvoker) {
methodMap_["setColor"] = MethodMetadata {2, __hostFunction_NativeStatusBarManagerSpecJSI_setColor};
@@ -1988,7 +1988,7 @@ namespace facebook {
}
NativeTVNavigationEventEmitterSpecJSI::NativeTVNavigationEventEmitterSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeTVNavigationEventEmitterSpecJSI::NativeTVNavigationEventEmitterSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("TVNavigationEventEmitter", instance, jsInvoker) {
methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeTVNavigationEventEmitterSpecJSI_addListener};
@@ -2019,7 +2019,7 @@ namespace facebook {
}
NativeTimingSpecJSI::NativeTimingSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeTimingSpecJSI::NativeTimingSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("Timing", instance, jsInvoker) {
methodMap_["createTimer"] = MethodMetadata {4, __hostFunction_NativeTimingSpecJSI_createTimer};
@@ -2057,7 +2057,7 @@ namespace facebook {
}
NativeToastAndroidSpecJSI::NativeToastAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeToastAndroidSpecJSI::NativeToastAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("ToastAndroid", instance, jsInvoker) {
methodMap_["show"] = MethodMetadata {2, __hostFunction_NativeToastAndroidSpecJSI_show};
@@ -2190,7 +2190,7 @@ namespace facebook {
}
NativeUIManagerSpecJSI::NativeUIManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeUIManagerSpecJSI::NativeUIManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("UIManager", instance, jsInvoker) {
methodMap_["getConstantsForViewManager"] = MethodMetadata {1, __hostFunction_NativeUIManagerSpecJSI_getConstantsForViewManager};
@@ -2296,7 +2296,7 @@ namespace facebook {
}
NativeVibrationSpecJSI::NativeVibrationSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeVibrationSpecJSI::NativeVibrationSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("Vibration", instance, jsInvoker) {
methodMap_["vibrate"] = MethodMetadata {1, __hostFunction_NativeVibrationSpecJSI_vibrate};
@@ -2358,7 +2358,7 @@ namespace facebook {
}
NativeWebSocketModuleSpecJSI::NativeWebSocketModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeWebSocketModuleSpecJSI::NativeWebSocketModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("WebSocketModule", instance, jsInvoker) {
methodMap_["connect"] = MethodMetadata {4, __hostFunction_NativeWebSocketModuleSpecJSI_connect};
@@ -42,7 +42,7 @@ namespace facebook {
class JSI_EXPORT NativeAccessibilityInfoSpecJSI : public ObjCTurboModule {
public:
NativeAccessibilityInfoSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeAccessibilityInfoSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -101,7 +101,7 @@ namespace facebook {
class JSI_EXPORT NativeAccessibilityManagerSpecJSI : public ObjCTurboModule {
public:
NativeAccessibilityManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeAccessibilityManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -185,7 +185,7 @@ namespace facebook {
class JSI_EXPORT NativeActionSheetManagerSpecJSI : public ObjCTurboModule {
public:
NativeActionSheetManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeActionSheetManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -227,7 +227,7 @@ namespace facebook {
class JSI_EXPORT NativeAlertManagerSpecJSI : public ObjCTurboModule {
public:
NativeAlertManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeAlertManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -341,7 +341,7 @@ namespace facebook {
class JSI_EXPORT NativeAnimatedModuleSpecJSI : public ObjCTurboModule {
public:
NativeAnimatedModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeAnimatedModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -360,7 +360,7 @@ namespace facebook {
class JSI_EXPORT NativeAnimationsDebugModuleSpecJSI : public ObjCTurboModule {
public:
NativeAnimationsDebugModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeAnimationsDebugModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -427,7 +427,7 @@ namespace facebook {
class JSI_EXPORT NativeAppStateSpecJSI : public ObjCTurboModule {
public:
NativeAppStateSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeAppStateSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -447,7 +447,7 @@ namespace facebook {
class JSI_EXPORT NativeAppearanceSpecJSI : public ObjCTurboModule {
public:
NativeAppearanceSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeAppearanceSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -593,7 +593,7 @@ namespace facebook {
class JSI_EXPORT NativeAsyncStorageSpecJSI : public ObjCTurboModule {
public:
NativeAsyncStorageSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeAsyncStorageSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -649,7 +649,7 @@ namespace facebook {
class JSI_EXPORT NativeBlobModuleSpecJSI : public ObjCTurboModule {
public:
NativeBlobModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeBlobModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -670,7 +670,7 @@ namespace facebook {
class JSI_EXPORT NativeBugReportingSpecJSI : public ObjCTurboModule {
public:
NativeBugReportingSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeBugReportingSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -690,7 +690,7 @@ namespace facebook {
class JSI_EXPORT NativeClipboardSpecJSI : public ObjCTurboModule {
public:
NativeClipboardSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeClipboardSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -710,7 +710,7 @@ namespace facebook {
class JSI_EXPORT NativeDatePickerAndroidSpecJSI : public ObjCTurboModule {
public:
NativeDatePickerAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeDatePickerAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -731,7 +731,7 @@ namespace facebook {
class JSI_EXPORT NativeDevLoadingViewSpecJSI : public ObjCTurboModule {
public:
NativeDevLoadingViewSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeDevLoadingViewSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -755,7 +755,7 @@ namespace facebook {
class JSI_EXPORT NativeDevSettingsSpecJSI : public ObjCTurboModule {
public:
NativeDevSettingsSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeDevSettingsSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -773,7 +773,7 @@ namespace facebook {
class JSI_EXPORT NativeDeviceEventManagerSpecJSI : public ObjCTurboModule {
public:
NativeDeviceEventManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeDeviceEventManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -821,7 +821,7 @@ namespace facebook {
class JSI_EXPORT NativeDeviceInfoSpecJSI : public ObjCTurboModule {
public:
NativeDeviceInfoSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeDeviceInfoSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -897,7 +897,7 @@ namespace facebook {
class JSI_EXPORT NativeDialogManagerAndroidSpecJSI : public ObjCTurboModule {
public:
NativeDialogManagerAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeDialogManagerAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -968,7 +968,7 @@ namespace facebook {
class JSI_EXPORT NativeExceptionsManagerSpecJSI : public ObjCTurboModule {
public:
NativeExceptionsManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeExceptionsManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -992,7 +992,7 @@ namespace facebook {
class JSI_EXPORT NativeFileReaderModuleSpecJSI : public ObjCTurboModule {
public:
NativeFileReaderModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeFileReaderModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1030,7 +1030,7 @@ namespace facebook {
class JSI_EXPORT NativeFrameRateLoggerSpecJSI : public ObjCTurboModule {
public:
NativeFrameRateLoggerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeFrameRateLoggerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1051,7 +1051,7 @@ namespace facebook {
class JSI_EXPORT NativeHeadlessJsTaskSupportSpecJSI : public ObjCTurboModule {
public:
NativeHeadlessJsTaskSupportSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeHeadlessJsTaskSupportSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1071,7 +1071,7 @@ namespace facebook {
class JSI_EXPORT NativeHeapCaptureSpecJSI : public ObjCTurboModule {
public:
NativeHeapCaptureSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeHeapCaptureSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1122,7 +1122,7 @@ namespace facebook {
class JSI_EXPORT NativeI18nManagerSpecJSI : public ObjCTurboModule {
public:
NativeI18nManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeI18nManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1137,7 +1137,7 @@ namespace facebook {
class JSI_EXPORT NativeImageLoaderSpecJSI : public ObjCTurboModule {
public:
NativeImageLoaderSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeImageLoaderSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1196,7 +1196,7 @@ namespace facebook {
class JSI_EXPORT NativeImagePickerIOSSpecJSI : public ObjCTurboModule {
public:
NativeImagePickerIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeImagePickerIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1216,7 +1216,7 @@ namespace facebook {
class JSI_EXPORT NativeJSCSamplingProfilerSpecJSI : public ObjCTurboModule {
public:
NativeJSCSamplingProfilerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeJSCSamplingProfilerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1267,7 +1267,7 @@ namespace facebook {
class JSI_EXPORT NativeJSDevSupportSpecJSI : public ObjCTurboModule {
public:
NativeJSDevSupportSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeJSDevSupportSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1286,7 +1286,7 @@ namespace facebook {
class JSI_EXPORT NativeKeyboardObserverSpecJSI : public ObjCTurboModule {
public:
NativeKeyboardObserverSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeKeyboardObserverSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1336,7 +1336,7 @@ namespace facebook {
class JSI_EXPORT NativeLinkingSpecJSI : public ObjCTurboModule {
public:
NativeLinkingSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeLinkingSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1355,7 +1355,7 @@ namespace facebook {
class JSI_EXPORT NativeModalManagerSpecJSI : public ObjCTurboModule {
public:
NativeModalManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeModalManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1402,7 +1402,7 @@ namespace facebook {
class JSI_EXPORT NativeNetworkingAndroidSpecJSI : public ObjCTurboModule {
public:
NativeNetworkingAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeNetworkingAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1448,7 +1448,7 @@ namespace facebook {
class JSI_EXPORT NativeNetworkingIOSSpecJSI : public ObjCTurboModule {
public:
NativeNetworkingIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeNetworkingIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1477,7 +1477,7 @@ namespace facebook {
class JSI_EXPORT NativePermissionsAndroidSpecJSI : public ObjCTurboModule {
public:
NativePermissionsAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativePermissionsAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1564,7 +1564,7 @@ namespace facebook {
class JSI_EXPORT NativePlatformConstantsAndroidSpecJSI : public ObjCTurboModule {
public:
NativePlatformConstantsAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativePlatformConstantsAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1647,7 +1647,7 @@ namespace facebook {
class JSI_EXPORT NativePlatformConstantsIOSSpecJSI : public ObjCTurboModule {
public:
NativePlatformConstantsIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativePlatformConstantsIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1745,7 +1745,7 @@ namespace facebook {
class JSI_EXPORT NativePushNotificationManagerIOSSpecJSI : public ObjCTurboModule {
public:
NativePushNotificationManagerIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativePushNotificationManagerIOSSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1765,7 +1765,7 @@ namespace facebook {
class JSI_EXPORT NativeRedBoxSpecJSI : public ObjCTurboModule {
public:
NativeRedBoxSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeRedBoxSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1788,7 +1788,7 @@ namespace facebook {
class JSI_EXPORT NativeSegmentFetcherSpecJSI : public ObjCTurboModule {
public:
NativeSegmentFetcherSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSegmentFetcherSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1837,7 +1837,7 @@ namespace facebook {
class JSI_EXPORT NativeSettingsManagerSpecJSI : public ObjCTurboModule {
public:
NativeSettingsManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSettingsManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1875,7 +1875,7 @@ namespace facebook {
class JSI_EXPORT NativeShareModuleSpecJSI : public ObjCTurboModule {
public:
NativeShareModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeShareModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1893,7 +1893,7 @@ namespace facebook {
class JSI_EXPORT NativeSoundManagerSpecJSI : public ObjCTurboModule {
public:
NativeSoundManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSoundManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -1940,7 +1940,7 @@ namespace facebook {
class JSI_EXPORT NativeSourceCodeSpecJSI : public ObjCTurboModule {
public:
NativeSourceCodeSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSourceCodeSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -2015,7 +2015,7 @@ namespace facebook {
class JSI_EXPORT NativeStatusBarManagerSpecJSI : public ObjCTurboModule {
public:
NativeStatusBarManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeStatusBarManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -2034,7 +2034,7 @@ namespace facebook {
class JSI_EXPORT NativeTVNavigationEventEmitterSpecJSI : public ObjCTurboModule {
public:
NativeTVNavigationEventEmitterSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeTVNavigationEventEmitterSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -2057,7 +2057,7 @@ namespace facebook {
class JSI_EXPORT NativeTimingSpecJSI : public ObjCTurboModule {
public:
NativeTimingSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeTimingSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -2118,7 +2118,7 @@ namespace facebook {
class JSI_EXPORT NativeToastAndroidSpecJSI : public ObjCTurboModule {
public:
NativeToastAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeToastAndroidSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -2222,7 +2222,7 @@ namespace facebook {
class JSI_EXPORT NativeUIManagerSpecJSI : public ObjCTurboModule {
public:
NativeUIManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeUIManagerSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -2243,7 +2243,7 @@ namespace facebook {
class JSI_EXPORT NativeVibrationSpecJSI : public ObjCTurboModule {
public:
NativeVibrationSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeVibrationSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -2306,7 +2306,7 @@ namespace facebook {
class JSI_EXPORT NativeWebSocketModuleSpecJSI : public ObjCTurboModule {
public:
NativeWebSocketModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeWebSocketModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
+5 -5
View File
@@ -226,7 +226,7 @@ PODS:
- React-Core/RCTTextHeaders (= 1000.0.0)
- React-RCTVibration (1000.0.0):
- React-Core/RCTVibrationHeaders (= 1000.0.0)
- ReactCommon/jscallinvoker (1000.0.0):
- ReactCommon/callinvoker (1000.0.0):
- DoubleConversion
- Folly (= 2018.10.22.00)
- glog
@@ -238,7 +238,7 @@ PODS:
- React-Core (= 1000.0.0)
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- ReactCommon/jscallinvoker (= 1000.0.0)
- ReactCommon/callinvoker (= 1000.0.0)
- ReactCommon/turbomodule/samples (1000.0.0):
- DoubleConversion
- Folly (= 2018.10.22.00)
@@ -246,7 +246,7 @@ PODS:
- React-Core (= 1000.0.0)
- React-cxxreact (= 1000.0.0)
- React-jsi (= 1000.0.0)
- ReactCommon/jscallinvoker (= 1000.0.0)
- ReactCommon/callinvoker (= 1000.0.0)
- ReactCommon/turbomodule/core (= 1000.0.0)
- Yoga (1.14.0)
@@ -279,7 +279,7 @@ DEPENDENCIES:
- React-RCTTest (from `RCTTest`)
- React-RCTText (from `../Libraries/Text`)
- React-RCTVibration (from `../Libraries/Vibration`)
- ReactCommon/jscallinvoker (from `../ReactCommon`)
- ReactCommon/callinvoker (from `../ReactCommon`)
- ReactCommon/turbomodule/core (from `../ReactCommon`)
- ReactCommon/turbomodule/samples (from `../ReactCommon`)
- Yoga (from `../ReactCommon/yoga`)
@@ -374,7 +374,7 @@ SPEC CHECKSUMS:
React-RCTTest: 73df09ec226fcad6e7e058a313e5dd16cccf86a8
React-RCTText: 9078167d3bc011162326f2d8ef4dd580ec1eca17
React-RCTVibration: 63c20d89204937ff8c7bbc1e712383347e6fbd90
ReactCommon: 63d1a6355d5810a21a61efda9ac93804571a1b8b
ReactCommon: 9d212865526209dc2d01be40340c8d27b53e6bea
Yoga: d88d8b51ee5b247f43211e2edf272438df1b484f
PODFILE CHECKSUM: 060903e270072f1e192b064848e6c34528af1c87
+2 -2
View File
@@ -129,14 +129,14 @@
}
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:(const std::string &)name
jsInvoker:(std::shared_ptr<facebook::react::JSCallInvoker>)jsInvoker
jsInvoker:(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker
{
return facebook::react::RNTesterTurboModuleProvider(name, jsInvoker);
}
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:(const std::string &)name
instance:(id<RCTTurboModule>)instance
jsInvoker:(std::shared_ptr<facebook::react::JSCallInvoker>)jsInvoker
jsInvoker:(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker
{
return facebook::react::RNTesterTurboModuleProvider(name, instance, jsInvoker);
}
@@ -19,14 +19,14 @@ Class RNTesterTurboModuleClassProvider(const char *name);
/**
* Provide a pure C++ instance of a TurboModule, specific to this app.
*/
std::shared_ptr<TurboModule> RNTesterTurboModuleProvider(const std::string &name, std::shared_ptr<JSCallInvoker> jsInvoker);
std::shared_ptr<TurboModule> RNTesterTurboModuleProvider(const std::string &name, std::shared_ptr<CallInvoker> jsInvoker);
/**
* Provide an instance of a ObjCTurboModule, given the ObjC instance, specific to this app.
*/
std::shared_ptr<TurboModule> RNTesterTurboModuleProvider(const std::string &name,
id<RCTTurboModule> instance,
std::shared_ptr<JSCallInvoker> jsInvoker);
std::shared_ptr<CallInvoker> jsInvoker);
} // namespace react
} // namespace facebook
@@ -21,7 +21,7 @@ Class RNTesterTurboModuleClassProvider(const char *name) {
return RCTCoreModulesClassProvider(name);
}
std::shared_ptr<TurboModule> RNTesterTurboModuleProvider(const std::string &name, std::shared_ptr<JSCallInvoker> jsInvoker) {
std::shared_ptr<TurboModule> RNTesterTurboModuleProvider(const std::string &name, std::shared_ptr<CallInvoker> jsInvoker) {
if (name == "SampleTurboCxxModule") {
return std::make_shared<SampleTurboCxxModule>(jsInvoker);
}
@@ -31,7 +31,7 @@ std::shared_ptr<TurboModule> RNTesterTurboModuleProvider(const std::string &name
std::shared_ptr<TurboModule> RNTesterTurboModuleProvider(const std::string &name,
id<RCTTurboModule> instance,
std::shared_ptr<JSCallInvoker> jsInvoker) {
std::shared_ptr<CallInvoker> jsInvoker) {
if (name == "SampleTurboModule") {
return std::make_shared<NativeSampleTurboModuleSpecJSI>(instance, jsInvoker);
}
+1 -1
View File
@@ -334,7 +334,7 @@ RCT_EXPORT_METHOD(getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModuleWithJsInvoker:
(std::shared_ptr<facebook::react::JSCallInvoker>)jsInvoker
(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker
{
return std::make_shared<facebook::react::NativeAccessibilityManagerSpecJSI>(self, jsInvoker);
}
+1 -1
View File
@@ -57,7 +57,7 @@ RCT_EXPORT_MODULE(Appearance)
return dispatch_get_main_queue();
}
- (std::shared_ptr<TurboModule>)getTurboModuleWithJsInvoker:(std::shared_ptr<JSCallInvoker>)jsInvoker
- (std::shared_ptr<TurboModule>)getTurboModuleWithJsInvoker:(std::shared_ptr<CallInvoker>)jsInvoker
{
return std::make_shared<NativeAppearanceSpecJSI>(self, jsInvoker);
}
+1 -1
View File
@@ -212,7 +212,7 @@ static NSDictionary *RCTExportedDimensions(RCTBridge *bridge)
#endif // TARGET_OS_TV
- (std::shared_ptr<TurboModule>)getTurboModuleWithJsInvoker:(std::shared_ptr<JSCallInvoker>)jsInvoker
- (std::shared_ptr<TurboModule>)getTurboModuleWithJsInvoker:(std::shared_ptr<CallInvoker>)jsInvoker
{
return std::make_shared<NativeDeviceInfoSpecJSI>(self, jsInvoker);
}
+1 -1
View File
@@ -122,7 +122,7 @@ RCT_EXPORT_METHOD(reportException:(JS::NativeExceptionsManager::ExceptionData &)
}
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModuleWithJsInvoker:
(std::shared_ptr<facebook::react::JSCallInvoker>)jsInvoker
(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker
{
return std::make_shared<facebook::react::NativeExceptionsManagerSpecJSI>(self, jsInvoker);
}
+1 -1
View File
@@ -944,7 +944,7 @@ static UIImage *RCTResizeImageIfNeeded(UIImage *image,
}
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModuleWithJsInvoker:
(std::shared_ptr<facebook::react::JSCallInvoker>)jsInvoker
(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker
{
return std::make_shared<facebook::react::NativeImageLoaderSpecJSI>(self, jsInvoker);
}
+1 -1
View File
@@ -74,7 +74,7 @@ RCT_EXPORT_MODULE(PlatformConstants)
});
}
- (std::shared_ptr<TurboModule>)getTurboModuleWithJsInvoker:(std::shared_ptr<JSCallInvoker>)jsInvoker
- (std::shared_ptr<TurboModule>)getTurboModuleWithJsInvoker:(std::shared_ptr<CallInvoker>)jsInvoker
{
return std::make_shared<NativePlatformConstantsIOSSpecJSI>(self, jsInvoker);
}
@@ -47,7 +47,7 @@ rn_android_library(
react_native_target("java/com/facebook/react/uimanager/common:common"),
react_native_target("java/com/facebook/react/module/annotations:annotations"),
react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"),
react_native_target("java/com/facebook/react/turbomodule/core:jscallinvokerholder"),
react_native_target("java/com/facebook/react/turbomodule/core:callinvokerholder"),
] + ([react_native_target("jni/react/jni:jni")] if not IS_OSS_BUILD else []),
exported_deps = [
react_native_dep("java/com/facebook/jni:jni"),
@@ -10,7 +10,7 @@ import androidx.annotation.Nullable;
import com.facebook.proguard.annotations.DoNotStrip;
import com.facebook.react.bridge.queue.ReactQueueConfiguration;
import com.facebook.react.common.annotations.VisibleForTesting;
import com.facebook.react.turbomodule.core.interfaces.JSCallInvokerHolder;
import com.facebook.react.turbomodule.core.interfaces.CallInvokerHolder;
import java.util.Collection;
import java.util.List;
@@ -110,7 +110,7 @@ public interface CatalystInstance
* Returns a hybrid object that contains a pointer to JSCallInvoker. Required for
* TurboModuleManager initialization.
*/
JSCallInvokerHolder getJSCallInvokerHolder();
CallInvokerHolder getJSCallInvokerHolder();
/**
* For the time being, we want code relying on the old infra to also work with TurboModules.
@@ -25,7 +25,7 @@ import com.facebook.react.common.ReactConstants;
import com.facebook.react.common.annotations.VisibleForTesting;
import com.facebook.react.config.ReactFeatureFlags;
import com.facebook.react.module.annotations.ReactModule;
import com.facebook.react.turbomodule.core.JSCallInvokerHolderImpl;
import com.facebook.react.turbomodule.core.CallInvokerHolderImpl;
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
import com.facebook.react.turbomodule.core.interfaces.TurboModuleRegistry;
import com.facebook.systrace.Systrace;
@@ -107,7 +107,7 @@ public class CatalystInstanceImpl implements CatalystInstance {
private static native HybridData initHybrid();
public native JSCallInvokerHolderImpl getJSCallInvokerHolder();
public native CallInvokerHolderImpl getJSCallInvokerHolder();
private CatalystInstanceImpl(
final ReactQueueConfigurationSpec reactQueueConfigurationSpec,
@@ -6,7 +6,7 @@ rn_android_library(
[
"*.java",
],
exclude = ["JSCallInvokerHolderImpl.java"],
exclude = ["CallInvokerHolderImpl.java"],
),
required_for_source_only_abi = True,
visibility = [
@@ -25,7 +25,7 @@ rn_android_library(
react_native_target("java/com/facebook/react/bridge:bridge"),
react_native_target("java/com/facebook/react/config:config"),
react_native_target("java/com/facebook/react:react"),
":jscallinvokerholder",
":callinvokerholder",
],
exported_deps = [
react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"),
@@ -33,8 +33,8 @@ rn_android_library(
)
rn_android_library(
name = "jscallinvokerholder",
srcs = ["JSCallInvokerHolderImpl.java"],
name = "callinvokerholder",
srcs = ["CallInvokerHolderImpl.java"],
required_for_source_only_abi = True,
visibility = [
"PUBLIC",
@@ -7,7 +7,7 @@
package com.facebook.react.turbomodule.core;
import com.facebook.jni.HybridData;
import com.facebook.react.turbomodule.core.interfaces.JSCallInvokerHolder;
import com.facebook.react.turbomodule.core.interfaces.CallInvokerHolder;
import com.facebook.soloader.SoLoader;
/**
@@ -15,14 +15,14 @@ import com.facebook.soloader.SoLoader;
* TurboModuleManager. Therefore, we need to wrap JSCallInvoker within a hybrid class so that we may
* pass it from CatalystInstance, through Java, to TurboModuleManager::initHybrid.
*/
public class JSCallInvokerHolderImpl implements JSCallInvokerHolder {
public class CallInvokerHolderImpl implements CallInvokerHolder {
static {
SoLoader.loadLibrary("turbomodulejsijni");
}
private final HybridData mHybridData;
private JSCallInvokerHolderImpl(HybridData hd) {
private CallInvokerHolderImpl(HybridData hd) {
mHybridData = hd;
}
}
@@ -12,7 +12,7 @@ import com.facebook.proguard.annotations.DoNotStrip;
import com.facebook.react.bridge.JSIModule;
import com.facebook.react.bridge.JavaScriptContextHolder;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.turbomodule.core.interfaces.JSCallInvokerHolder;
import com.facebook.react.turbomodule.core.interfaces.CallInvokerHolder;
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
import com.facebook.react.turbomodule.core.interfaces.TurboModuleRegistry;
import com.facebook.soloader.SoLoader;
@@ -39,9 +39,8 @@ public class TurboModuleManager implements JSIModule, TurboModuleRegistry {
public TurboModuleManager(
JavaScriptContextHolder jsContext,
TurboModuleManagerDelegate tmmDelegate,
JSCallInvokerHolder instanceHolder) {
mHybridData =
initHybrid(jsContext.get(), (JSCallInvokerHolderImpl) instanceHolder, tmmDelegate);
CallInvokerHolder instanceHolder) {
mHybridData = initHybrid(jsContext.get(), (CallInvokerHolderImpl) instanceHolder, tmmDelegate);
mTurbomoduleManagerDelegate = tmmDelegate;
}
@@ -79,7 +78,7 @@ public class TurboModuleManager implements JSIModule, TurboModuleRegistry {
}
private native HybridData initHybrid(
long jsContext, JSCallInvokerHolderImpl jsQueue, TurboModuleManagerDelegate tmmDelegate);
long jsContext, CallInvokerHolderImpl jsQueue, TurboModuleManagerDelegate tmmDelegate);
private native void installJSIBindings();
@@ -7,11 +7,11 @@
package com.facebook.react.turbomodule.core.interfaces;
/**
* JSCallInvoker is created by CatalystInstance.cpp, but used by TurboModuleManager.cpp. Both C++
* classes are instantiated at different times/places. Therefore, to pass the JSCallInvoker instance
* from CatalystInstance to TurboModuleManager, we make it take a trip through Java.
* 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.
*
* <p>This interface represents the opaque Java object that contains a pointer to and instance of
* JSCallInvoker.
* CallInvoker.
*/
public interface JSCallInvokerHolder {}
public interface CallInvokerHolder {}
@@ -15,15 +15,15 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
LOCAL_STATIC_LIBRARIES = libjscallinvoker
LOCAL_STATIC_LIBRARIES = libcallinvoker
LOCAL_SHARED_LIBRARIES = libfb
# Name of this module.
LOCAL_MODULE := jscallinvokerholder
LOCAL_MODULE := callinvokerholder
# Compile all local c++ files
LOCAL_SRC_FILES := $(LOCAL_PATH)/ReactCommon/JSCallInvokerHolder.cpp
LOCAL_SRC_FILES := $(LOCAL_PATH)/ReactCommon/CallInvokerHolder.cpp
# Build the files in this directory as a shared library
include $(BUILD_STATIC_LIBRARY)
@@ -32,19 +32,19 @@ rn_xplat_cxx_library(
],
exported_deps = [
"fbsource//xplat/jsi:jsi",
":jscallinvokerholder",
":callinvokerholder",
react_native_xplat_target("turbomodule/core:core"),
],
)
rn_xplat_cxx_library(
name = "jscallinvokerholder",
name = "callinvokerholder",
srcs = [
"ReactCommon/JSCallInvokerHolder.cpp",
"ReactCommon/CallInvokerHolder.cpp",
],
header_namespace = "",
exported_headers = {
"ReactCommon/JSCallInvokerHolder.h": "ReactCommon/JSCallInvokerHolder.h",
"ReactCommon/CallInvokerHolder.h": "ReactCommon/CallInvokerHolder.h",
},
compiler_flags = [
"-fexceptions",
@@ -65,6 +65,6 @@ rn_xplat_cxx_library(
"PUBLIC",
],
exported_deps = [
react_native_xplat_target("jscallinvoker:jscallinvoker"),
react_native_xplat_target("callinvoker:callinvoker"),
],
)
@@ -0,0 +1,17 @@
#include "CallInvokerHolder.h"
namespace facebook {
namespace react {
CallInvokerHolder::CallInvokerHolder(
std::shared_ptr<CallInvoker> callInvoker)
: _callInvoker(callInvoker) {}
std::shared_ptr<CallInvoker> CallInvokerHolder::getCallInvoker() {
return _callInvoker;
}
void CallInvokerHolder::registerNatives() {}
} // namespace react
} // namespace facebook
@@ -8,25 +8,25 @@
#pragma once
#include <fb/fbjni.h>
#include <ReactCommon/JSCallInvoker.h>
#include <ReactCommon/CallInvoker.h>
#include <memory>
namespace facebook {
namespace react {
class JSCallInvokerHolder
: public jni::HybridClass<JSCallInvokerHolder> {
class CallInvokerHolder
: public jni::HybridClass<CallInvokerHolder> {
public:
static auto constexpr kJavaDescriptor =
"Lcom/facebook/react/turbomodule/core/JSCallInvokerHolderImpl;";
"Lcom/facebook/react/turbomodule/core/CallInvokerHolderImpl;";
static void registerNatives();
std::shared_ptr<JSCallInvoker> getJSCallInvoker();
std::shared_ptr<CallInvoker> getCallInvoker();
private:
friend HybridBase;
JSCallInvokerHolder(std::shared_ptr<JSCallInvoker> jsCallInvoker);
std::shared_ptr<JSCallInvoker> _jsCallInvoker;
CallInvokerHolder(std::shared_ptr<CallInvoker> callInvoker);
std::shared_ptr<CallInvoker> _callInvoker;
};
} // namespace react
@@ -1,17 +0,0 @@
#include "JSCallInvokerHolder.h"
namespace facebook {
namespace react {
JSCallInvokerHolder::JSCallInvokerHolder(
std::shared_ptr<JSCallInvoker> jsCallInvoker)
: _jsCallInvoker(jsCallInvoker) {}
std::shared_ptr<JSCallInvoker> JSCallInvokerHolder::getJSCallInvoker() {
return _jsCallInvoker;
}
void JSCallInvokerHolder::registerNatives() {}
} // namespace react
} // namespace facebook
@@ -23,7 +23,7 @@ namespace react {
TurboModuleManager::TurboModuleManager(
jni::alias_ref<TurboModuleManager::javaobject> jThis,
jsi::Runtime* rt,
std::shared_ptr<JSCallInvoker> jsCallInvoker,
std::shared_ptr<CallInvoker> jsCallInvoker,
jni::alias_ref<TurboModuleManagerDelegate::javaobject> delegate
):
javaPart_(jni::make_global(jThis)),
@@ -35,10 +35,10 @@ TurboModuleManager::TurboModuleManager(
jni::local_ref<TurboModuleManager::jhybriddata> TurboModuleManager::initHybrid(
jni::alias_ref<jhybridobject> jThis,
jlong jsContext,
jni::alias_ref<JSCallInvokerHolder::javaobject> jsCallInvokerHolder,
jni::alias_ref<CallInvokerHolder::javaobject> jsCallInvokerHolder,
jni::alias_ref<TurboModuleManagerDelegate::javaobject> delegate
) {
auto jsCallInvoker = jsCallInvokerHolder->cthis()->getJSCallInvoker();
auto jsCallInvoker = jsCallInvokerHolder->cthis()->getCallInvoker();
return makeCxxInstance(jThis, (jsi::Runtime *) jsContext, jsCallInvoker, delegate);
}
@@ -15,7 +15,7 @@
#include <ReactCommon/JavaTurboModule.h>
#include <react/jni/CxxModuleWrapper.h>
#include <react/jni/JMessageQueueThread.h>
#include <ReactCommon/JSCallInvokerHolder.h>
#include <ReactCommon/CallInvokerHolder.h>
#include <ReactCommon/TurboModuleManagerDelegate.h>
namespace facebook {
@@ -27,7 +27,7 @@ public:
static jni::local_ref<jhybriddata> initHybrid(
jni::alias_ref<jhybridobject> jThis,
jlong jsContext,
jni::alias_ref<JSCallInvokerHolder::javaobject> jsCallInvokerHolder,
jni::alias_ref<CallInvokerHolder::javaobject> jsCallInvokerHolder,
jni::alias_ref<TurboModuleManagerDelegate::javaobject> delegate
);
static void registerNatives();
@@ -35,7 +35,7 @@ private:
friend HybridBase;
jni::global_ref<TurboModuleManager::javaobject> javaPart_;
jsi::Runtime* runtime_;
std::shared_ptr<JSCallInvoker> jsCallInvoker_;
std::shared_ptr<CallInvoker> jsCallInvoker_;
jni::global_ref<TurboModuleManagerDelegate::javaobject> delegate_;
/**
@@ -50,7 +50,7 @@ private:
explicit TurboModuleManager(
jni::alias_ref<TurboModuleManager::jhybridobject> jThis,
jsi::Runtime *rt,
std::shared_ptr<JSCallInvoker> jsCallInvoker,
std::shared_ptr<CallInvoker> jsCallInvoker,
jni::alias_ref<TurboModuleManagerDelegate::javaobject> delegate
);
};
@@ -9,7 +9,7 @@
#include <fb/fbjni.h>
#include <ReactCommon/JavaTurboModule.h>
#include <ReactCommon/JSCallInvoker.h>
#include <ReactCommon/CallInvoker.h>
#include <string>
#include <memory>
@@ -20,8 +20,8 @@ class TurboModuleManagerDelegate : public jni::HybridClass<TurboModuleManagerDel
public:
static auto constexpr kJavaDescriptor = "Lcom/facebook/react/turbomodule/core/TurboModuleManagerDelegate;";
virtual std::shared_ptr<TurboModule> getTurboModule(std::string name, jni::alias_ref<JTurboModule> turboModule, std::shared_ptr<JSCallInvoker> jsInvoker) = 0;
virtual std::shared_ptr<TurboModule> getTurboModule(std::string name, std::shared_ptr<JSCallInvoker> jsInvoker) = 0;
virtual std::shared_ptr<TurboModule> getTurboModule(std::string name, jni::alias_ref<JTurboModule> turboModule, std::shared_ptr<CallInvoker> jsInvoker) = 0;
virtual std::shared_ptr<TurboModule> getTurboModule(std::string name, std::shared_ptr<CallInvoker> jsInvoker) = 0;
private:
friend HybridBase;
@@ -25,7 +25,7 @@ LOCAL_LDLIBS += -landroid
LOCAL_SHARED_LIBRARIES := libfolly_json libfb libglog_init libyoga
# The static libraries (.a files) that this module depends on.
LOCAL_STATIC_LIBRARIES := libreactnative libjscallinvokerholder
LOCAL_STATIC_LIBRARIES := libreactnative libcallinvokerholder
# Name of this module.
#
@@ -67,7 +67,7 @@ $(call import-module,yogajni)
$(call import-module,cxxreact)
$(call import-module,jsi)
$(call import-module,jsiexecutor)
$(call import-module,jscallinvoker)
$(call import-module,callinvoker)
$(call import-module,hermes)
include $(REACT_SRC_DIR)/turbomodule/core/jni/Android.mk
+1 -1
View File
@@ -58,7 +58,7 @@ rn_xplat_cxx_library(
"fbsource//xplat/folly:molly",
"//fbandroid/xplat/fbgloginit:fbgloginit",
"fbsource//xplat/fbsystrace:fbsystrace",
react_native_target("java/com/facebook/react/turbomodule/core/jni:jscallinvokerholder"),
react_native_target("java/com/facebook/react/turbomodule/core/jni:callinvokerholder"),
react_native_xplat_target("cxxreact:bridge"),
react_native_xplat_target("cxxreact:jsbigstring"),
react_native_xplat_target("cxxreact:module"),
@@ -10,7 +10,7 @@
#include <sstream>
#include <vector>
#include <ReactCommon/JSCallInvokerHolder.h>
#include <ReactCommon/CallInvokerHolder.h>
#include <cxxreact/CxxNativeModule.h>
#include <cxxreact/Instance.h>
#include <cxxreact/JSBigString.h>
@@ -281,12 +281,12 @@ void CatalystInstanceImpl::handleMemoryPressure(int pressureLevel) {
instance_->handleMemoryPressure(pressureLevel);
}
jni::alias_ref<JSCallInvokerHolder::javaobject>
jni::alias_ref<CallInvokerHolder::javaobject>
CatalystInstanceImpl::getJSCallInvokerHolder() {
if (!javaInstanceHolder_) {
jsCallInvoker_ = std::make_shared<BridgeJSCallInvoker>(instance_);
javaInstanceHolder_ =
jni::make_global(JSCallInvokerHolder::newObjectCxxArgs(jsCallInvoker_));
jni::make_global(CallInvokerHolder::newObjectCxxArgs(jsCallInvoker_));
}
return javaInstanceHolder_;
@@ -6,7 +6,7 @@
#include <string>
#include <ReactCommon/BridgeJSCallInvoker.h>
#include <ReactCommon/JSCallInvokerHolder.h>
#include <ReactCommon/CallInvokerHolder.h>
#include <fb/fbjni.h>
#include <folly/Memory.h>
@@ -89,7 +89,7 @@ class CatalystInstanceImpl : public jni::HybridClass<CatalystInstanceImpl> {
std::string method,
NativeArray *arguments);
void jniCallJSCallback(jint callbackId, NativeArray *arguments);
jni::alias_ref<JSCallInvokerHolder::javaobject> getJSCallInvokerHolder();
jni::alias_ref<CallInvokerHolder::javaobject> getJSCallInvokerHolder();
void setGlobalVariable(std::string propName, std::string &&jsonValue);
jlong getJavaScriptContext();
void handleMemoryPressure(int pressureLevel);
@@ -99,7 +99,7 @@ class CatalystInstanceImpl : public jni::HybridClass<CatalystInstanceImpl> {
std::shared_ptr<Instance> instance_;
std::shared_ptr<ModuleRegistry> moduleRegistry_;
std::shared_ptr<JMessageQueueThread> moduleMessageQueue_;
jni::global_ref<JSCallInvokerHolder::javaobject> javaInstanceHolder_;
jni::global_ref<CallInvokerHolder::javaobject> javaInstanceHolder_;
std::shared_ptr<BridgeJSCallInvoker> jsCallInvoker_;
};
+3 -3
View File
@@ -37,8 +37,8 @@ Pod::Spec.new do |s|
"USE_HEADERMAP" => "YES",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14" }
s.subspec "jscallinvoker" do |ss|
ss.source_files = "jscallinvoker/**/*.{cpp,h}"
s.subspec "callinvoker" do |ss|
ss.source_files = "callinvoker/**/*.{cpp,h}"
ss.dependency "React-cxxreact", version
ss.dependency "DoubleConversion"
@@ -47,7 +47,7 @@ Pod::Spec.new do |s|
end
s.subspec "turbomodule" do |ss|
ss.dependency "ReactCommon/jscallinvoker", version
ss.dependency "ReactCommon/callinvoker", version
ss.dependency "React-Core", version
ss.dependency "React-cxxreact", version
ss.dependency "React-jsi", version
@@ -18,7 +18,7 @@ LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
LOCAL_STATIC_LIBRARIES = libreactnative
# Name of this module.
LOCAL_MODULE := jscallinvoker
LOCAL_MODULE := callinvoker
# Compile all local c++ files under ./ReactCommon
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/ReactCommon/*.cpp)
@@ -1,7 +1,7 @@
load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "react_native_xplat_target", "rn_xplat_cxx_library", "subdir_glob")
rn_xplat_cxx_library(
name = "jscallinvoker",
name = "callinvoker",
srcs = glob(["**/*.cpp"]),
header_namespace = "",
exported_headers = subdir_glob(
@@ -10,7 +10,7 @@
#include <functional>
#include <memory>
#include <ReactCommon/JSCallInvoker.h>
#include <ReactCommon/CallInvoker.h>
namespace facebook {
namespace react {
@@ -27,7 +27,7 @@ class Instance;
* API to call JS from native, whether synchronously or asynchronously.
* Also, this class should not depend on `Instance` in the future.
*/
class BridgeJSCallInvoker : public JSCallInvoker {
class BridgeJSCallInvoker : public CallInvoker {
public:
BridgeJSCallInvoker(std::weak_ptr<Instance> reactInstance);
@@ -17,11 +17,11 @@ namespace react {
* An interface for a generic native-to-JS call invoker. See BridgeJSCallInvoker
* for an implementation.
*/
class JSCallInvoker {
class CallInvoker {
public:
virtual void invokeAsync(std::function<void()> &&func) = 0;
// TODO: add sync support
virtual ~JSCallInvoker() {}
virtual ~CallInvoker() {}
};
} // namespace react
+1 -1
View File
@@ -78,7 +78,7 @@ rn_xplat_cxx_library(
"fbsource//xplat/third-party/glog:glog",
react_native_xplat_target("cxxreact:bridge"),
react_native_xplat_target("cxxreact:module"),
react_native_xplat_target("jscallinvoker:jscallinvoker"),
react_native_xplat_target("callinvoker:callinvoker"),
],
exported_deps = [
"fbsource//xplat/jsi:jsi",
@@ -38,7 +38,7 @@ static CxxModule::Callback makeTurboCxxModuleCallback(
TurboCxxModule::TurboCxxModule(
std::unique_ptr<CxxModule> cxxModule,
std::shared_ptr<JSCallInvoker> jsInvoker)
std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule(cxxModule->getName(), jsInvoker),
cxxMethods_(cxxModule->getMethods()),
cxxModule_(std::move(cxxModule)) {}
@@ -27,7 +27,7 @@ class JSI_EXPORT TurboCxxModule : public TurboModule {
public:
TurboCxxModule(
std::unique_ptr<facebook::xplat::module::CxxModule> cxxModule,
std::shared_ptr<JSCallInvoker> jsInvoker);
std::shared_ptr<CallInvoker> jsInvoker);
virtual facebook::jsi::Value get(
facebook::jsi::Runtime &runtime,
+1 -1
View File
@@ -14,7 +14,7 @@ namespace react {
TurboModule::TurboModule(
const std::string &name,
std::shared_ptr<JSCallInvoker> jsInvoker)
std::shared_ptr<CallInvoker> jsInvoker)
: name_(name), jsInvoker_(jsInvoker) {}
TurboModule::~TurboModule() {}
+3 -5
View File
@@ -12,7 +12,7 @@
#include <jsi/jsi.h>
#include <ReactCommon/JSCallInvoker.h>
#include <ReactCommon/CallInvoker.h>
namespace facebook {
namespace react {
@@ -37,9 +37,7 @@ enum TurboModuleMethodValueKind {
*/
class JSI_EXPORT TurboModule : public facebook::jsi::HostObject {
public:
TurboModule(
const std::string &name,
std::shared_ptr<JSCallInvoker> jsInvoker);
TurboModule(const std::string &name, std::shared_ptr<CallInvoker> jsInvoker);
virtual ~TurboModule();
virtual facebook::jsi::Value get(
@@ -47,7 +45,7 @@ class JSI_EXPORT TurboModule : public facebook::jsi::HostObject {
const facebook::jsi::PropNameID &propName) override;
const std::string name_;
std::shared_ptr<JSCallInvoker> jsInvoker_;
std::shared_ptr<CallInvoker> jsInvoker_;
protected:
struct MethodMetadata {
@@ -13,7 +13,7 @@
#include <folly/Optional.h>
#include <jsi/jsi.h>
#include <ReactCommon/JSCallInvoker.h>
#include <ReactCommon/CallInvoker.h>
#include <ReactCommon/LongLivedObject.h>
using namespace facebook;
@@ -49,14 +49,14 @@ class CallbackWrapper : public LongLivedObject {
Data(
jsi::Function callback,
jsi::Runtime &runtime,
std::shared_ptr<react::JSCallInvoker> jsInvoker)
std::shared_ptr<react::CallInvoker> jsInvoker)
: callback(std::move(callback)),
runtime(runtime),
jsInvoker(std::move(jsInvoker)) {}
jsi::Function callback;
jsi::Runtime &runtime;
std::shared_ptr<react::JSCallInvoker> jsInvoker;
std::shared_ptr<react::CallInvoker> jsInvoker;
};
folly::Optional<Data> data_;
@@ -65,7 +65,7 @@ class CallbackWrapper : public LongLivedObject {
static std::weak_ptr<CallbackWrapper> createWeak(
jsi::Function callback,
jsi::Runtime &runtime,
std::shared_ptr<react::JSCallInvoker> jsInvoker) {
std::shared_ptr<react::CallInvoker> jsInvoker) {
auto wrapper = std::make_shared<CallbackWrapper>(
std::move(callback), runtime, jsInvoker);
LongLivedObjectCollection::get().add(wrapper);
@@ -75,7 +75,7 @@ class CallbackWrapper : public LongLivedObject {
CallbackWrapper(
jsi::Function callback,
jsi::Runtime &runtime,
std::shared_ptr<react::JSCallInvoker> jsInvoker)
std::shared_ptr<react::CallInvoker> jsInvoker)
: data_(Data{std::move(callback), runtime, jsInvoker}) {}
// Delete the enclosed jsi::Function
@@ -98,7 +98,7 @@ class CallbackWrapper : public LongLivedObject {
return data_->runtime;
}
react::JSCallInvoker &jsInvoker() {
react::CallInvoker &jsInvoker() {
assert(!isDestroyed());
return *(data_->jsInvoker);
}
@@ -26,14 +26,14 @@ namespace react {
JavaTurboModule::JavaTurboModule(
const std::string &name,
jni::alias_ref<JTurboModule> instance,
std::shared_ptr<JSCallInvoker> jsInvoker)
std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule(name, jsInvoker), instance_(jni::make_global(instance)) {}
jni::local_ref<JCxxCallbackImpl::JavaPart>
JavaTurboModule::createJavaCallbackFromJSIFunction(
jsi::Function &function,
jsi::Runtime &rt,
std::shared_ptr<JSCallInvoker> jsInvoker) {
std::shared_ptr<CallInvoker> jsInvoker) {
auto wrapper = std::make_shared<react::CallbackWrapper>(
std::move(function), rt, jsInvoker);
callbackWrappers_.insert(wrapper);
@@ -223,7 +223,7 @@ std::vector<jvalue> JavaTurboModule::convertJSIArgsToJNIArgs(
std::vector<std::string> methodArgTypes,
const jsi::Value *args,
size_t count,
std::shared_ptr<JSCallInvoker> jsInvoker,
std::shared_ptr<CallInvoker> jsInvoker,
TurboModuleMethodValueKind valueKind) {
unsigned int expectedArgumentCount = valueKind == PromiseKind
? methodArgTypes.size() - 1
@@ -29,7 +29,7 @@ class JSI_EXPORT JavaTurboModule : public TurboModule {
JavaTurboModule(
const std::string &name,
jni::alias_ref<JTurboModule> instance,
std::shared_ptr<JSCallInvoker> jsInvoker);
std::shared_ptr<CallInvoker> jsInvoker);
jsi::Value invokeJavaMethod(
jsi::Runtime &runtime,
TurboModuleMethodValueKind valueKind,
@@ -56,7 +56,7 @@ class JSI_EXPORT JavaTurboModule : public TurboModule {
jni::local_ref<JCxxCallbackImpl::JavaPart> createJavaCallbackFromJSIFunction(
jsi::Function &function,
jsi::Runtime &rt,
std::shared_ptr<JSCallInvoker> jsInvoker);
std::shared_ptr<CallInvoker> jsInvoker);
std::vector<jvalue> convertJSIArgsToJNIArgs(
JNIEnv *env,
jsi::Runtime &rt,
@@ -64,7 +64,7 @@ class JSI_EXPORT JavaTurboModule : public TurboModule {
std::vector<std::string> methodArgTypes,
const jsi::Value *args,
size_t count,
std::shared_ptr<JSCallInvoker> jsInvoker,
std::shared_ptr<CallInvoker> jsInvoker,
TurboModuleMethodValueKind valueKind);
};
@@ -12,7 +12,7 @@
#import <React/RCTBridge.h>
#import <React/RCTBridgeModule.h>
#import <React/RCTModuleMethod.h>
#import <ReactCommon/JSCallInvoker.h>
#import <ReactCommon/CallInvoker.h>
#import <ReactCommon/TurboModule.h>
#import <ReactCommon/TurboModuleUtils.h>
#import <cxxreact/MessageQueueThread.h>
@@ -33,7 +33,7 @@ class Instance;
*/
class JSI_EXPORT ObjCTurboModule : public TurboModule {
public:
ObjCTurboModule(const std::string &name, id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
ObjCTurboModule(const std::string &name, id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
jsi::Value invokeObjCMethod(
jsi::Runtime &runtime,
@@ -61,7 +61,7 @@ class JSI_EXPORT ObjCTurboModule : public TurboModule {
jsi::Runtime &runtime,
TurboModuleMethodValueKind valueKind,
const id<RCTTurboModule> module,
std::shared_ptr<JSCallInvoker> jsInvoker,
std::shared_ptr<CallInvoker> jsInvoker,
const std::string &methodName,
SEL selector,
const jsi::Value *args,
@@ -74,7 +74,7 @@ class JSI_EXPORT ObjCTurboModule : public TurboModule {
using PromiseInvocationBlock =
void (^)(jsi::Runtime &rt, RCTPromiseResolveBlock resolveWrapper, RCTPromiseRejectBlock rejectWrapper);
jsi::Value
createPromise(jsi::Runtime &runtime, std::shared_ptr<react::JSCallInvoker> jsInvoker, PromiseInvocationBlock invoke);
createPromise(jsi::Runtime &runtime, std::shared_ptr<react::CallInvoker> jsInvoker, PromiseInvocationBlock invoke);
};
} // namespace react
@@ -94,7 +94,7 @@ class JSI_EXPORT ObjCTurboModule : public TurboModule {
@optional
// This should be required, after migration is done.
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModuleWithJsInvoker:
(std::shared_ptr<facebook::react::JSCallInvoker>)jsInvoker;
(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker;
@end
@@ -18,7 +18,7 @@
#import <React/RCTManagedPointer.h>
#import <React/RCTModuleMethod.h>
#import <React/RCTUtils.h>
#import <ReactCommon/JSCallInvoker.h>
#import <ReactCommon/CallInvoker.h>
#import <ReactCommon/LongLivedObject.h>
#import <ReactCommon/TurboModule.h>
#import <ReactCommon/TurboModuleUtils.h>
@@ -93,16 +93,14 @@ static jsi::Value convertObjCObjectToJSIValue(jsi::Runtime &runtime, id value)
static id convertJSIValueToObjCObject(
jsi::Runtime &runtime,
const jsi::Value &value,
std::shared_ptr<react::JSCallInvoker> jsInvoker);
std::shared_ptr<react::CallInvoker> jsInvoker);
static NSString *convertJSIStringToNSString(jsi::Runtime &runtime, const jsi::String &value)
{
return [NSString stringWithUTF8String:value.utf8(runtime).c_str()];
}
static NSArray *convertJSIArrayToNSArray(
jsi::Runtime &runtime,
const jsi::Array &value,
std::shared_ptr<react::JSCallInvoker> jsInvoker)
static NSArray *
convertJSIArrayToNSArray(jsi::Runtime &runtime, const jsi::Array &value, std::shared_ptr<react::CallInvoker> jsInvoker)
{
size_t size = value.size(runtime);
NSMutableArray *result = [NSMutableArray new];
@@ -117,7 +115,7 @@ static NSArray *convertJSIArrayToNSArray(
static NSDictionary *convertJSIObjectToNSDictionary(
jsi::Runtime &runtime,
const jsi::Object &value,
std::shared_ptr<react::JSCallInvoker> jsInvoker)
std::shared_ptr<react::CallInvoker> jsInvoker)
{
jsi::Array propertyNames = value.getPropertyNames(runtime);
size_t size = propertyNames.size(runtime);
@@ -136,11 +134,11 @@ static NSDictionary *convertJSIObjectToNSDictionary(
static RCTResponseSenderBlock convertJSIFunctionToCallback(
jsi::Runtime &runtime,
const jsi::Function &value,
std::shared_ptr<react::JSCallInvoker> jsInvoker);
std::shared_ptr<react::CallInvoker> jsInvoker);
static id convertJSIValueToObjCObject(
jsi::Runtime &runtime,
const jsi::Value &value,
std::shared_ptr<react::JSCallInvoker> jsInvoker)
std::shared_ptr<react::CallInvoker> jsInvoker)
{
if (value.isUndefined() || value.isNull()) {
return nil;
@@ -171,7 +169,7 @@ static id convertJSIValueToObjCObject(
static RCTResponseSenderBlock convertJSIFunctionToCallback(
jsi::Runtime &runtime,
const jsi::Function &value,
std::shared_ptr<react::JSCallInvoker> jsInvoker)
std::shared_ptr<react::CallInvoker> jsInvoker)
{
auto weakWrapper = react::CallbackWrapper::createWeak(value.getFunction(runtime), runtime, jsInvoker);
BOOL __block wrapperWasCalled = NO;
@@ -205,7 +203,7 @@ namespace react {
jsi::Value ObjCTurboModule::createPromise(
jsi::Runtime &runtime,
std::shared_ptr<react::JSCallInvoker> jsInvoker,
std::shared_ptr<react::CallInvoker> jsInvoker,
PromiseInvocationBlock invoke)
{
if (!invoke) {
@@ -328,7 +326,7 @@ jsi::Value performMethodInvocation(
NSInvocation *inv,
TurboModuleMethodValueKind valueKind,
const id<RCTTurboModule> module,
std::shared_ptr<JSCallInvoker> jsInvoker,
std::shared_ptr<CallInvoker> jsInvoker,
NSMutableArray *retainedObjectsForInvocation)
{
__block id result;
@@ -464,7 +462,7 @@ NSInvocation *ObjCTurboModule::getMethodInvocation(
jsi::Runtime &runtime,
TurboModuleMethodValueKind valueKind,
const id<RCTTurboModule> module,
std::shared_ptr<JSCallInvoker> jsInvoker,
std::shared_ptr<CallInvoker> jsInvoker,
const std::string &methodName,
SEL selector,
const jsi::Value *args,
@@ -601,7 +599,7 @@ NSInvocation *ObjCTurboModule::getMethodInvocation(
ObjCTurboModule::ObjCTurboModule(
const std::string &name,
id<RCTTurboModule> instance,
std::shared_ptr<JSCallInvoker> jsInvoker)
std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule(name, jsInvoker), instance_(instance)
{
}
@@ -13,7 +13,7 @@
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:(const std::string &)name
instance:(id<RCTTurboModule>)instance
jsInvoker:
(std::shared_ptr<facebook::react::JSCallInvoker>)jsInvoker;
(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker;
@optional
@@ -32,7 +32,7 @@
*/
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:(const std::string &)name
jsInvoker:
(std::shared_ptr<facebook::react::JSCallInvoker>)jsInvoker;
(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker;
@end
@@ -35,7 +35,7 @@ static Class getFallbackClassFromName(const char *name)
@implementation RCTTurboModuleManager {
jsi::Runtime *_runtime;
std::shared_ptr<facebook::react::JSCallInvoker> _jsInvoker;
std::shared_ptr<facebook::react::CallInvoker> _jsInvoker;
std::shared_ptr<react::TurboModuleBinding> _binding;
__weak id<RCTTurboModuleManagerDelegate> _delegate;
__weak RCTBridge *_bridge;
@@ -113,7 +113,7 @@ static jsi::Value __hostFunction_NativeSampleTurboCxxModuleSpecJSI_getConstants(
}
NativeSampleTurboCxxModuleSpecJSI::NativeSampleTurboCxxModuleSpecJSI(
std::shared_ptr<JSCallInvoker> jsInvoker)
std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule("SampleTurboCxxModule", jsInvoker) {
methodMap_["voidFunc"] = MethodMetadata{
0, __hostFunction_NativeSampleTurboCxxModuleSpecJSI_voidFunc};
@@ -18,7 +18,7 @@ namespace react {
// TODO: This definition should be codegen'ed for type-safety purpose.
class JSI_EXPORT NativeSampleTurboCxxModuleSpecJSI : public TurboModule {
protected:
NativeSampleTurboCxxModuleSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSampleTurboCxxModuleSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
public:
virtual void voidFunc(jsi::Runtime &rt) = 0;
@@ -15,7 +15,7 @@ namespace facebook {
namespace react {
SampleTurboCxxModule::SampleTurboCxxModule(
std::shared_ptr<JSCallInvoker> jsInvoker)
std::shared_ptr<CallInvoker> jsInvoker)
: NativeSampleTurboCxxModuleSpecJSI(jsInvoker) {}
void SampleTurboCxxModule::voidFunc(jsi::Runtime &rt) {
@@ -21,7 +21,7 @@ namespace react {
*/
class SampleTurboCxxModule : public NativeSampleTurboCxxModuleSpecJSI {
public:
SampleTurboCxxModule(std::shared_ptr<JSCallInvoker> jsInvoker);
SampleTurboCxxModule(std::shared_ptr<CallInvoker> jsInvoker);
void voidFunc(jsi::Runtime &rt) override;
bool getBool(jsi::Runtime &rt, bool arg) override;
@@ -42,7 +42,7 @@ namespace react {
*/
class JSI_EXPORT NativeSampleTurboModuleSpecJSI : public ObjCTurboModule {
public:
NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -113,7 +113,7 @@ static facebook::jsi::Value __hostFunction_NativeSampleTurboModuleSpecJSI_getCon
NativeSampleTurboModuleSpecJSI::NativeSampleTurboModuleSpecJSI(
id<RCTTurboModule> instance,
std::shared_ptr<JSCallInvoker> jsInvoker)
std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("SampleTurboModule", instance, jsInvoker)
{
methodMap_["voidFunc"] = MethodMetadata{0, __hostFunction_NativeSampleTurboModuleSpecJSI_voidFunc};
@@ -18,7 +18,7 @@ using namespace facebook;
RCT_EXPORT_MODULE();
- (std::shared_ptr<react::TurboModule>)getTurboModuleWithJsInvoker:(std::shared_ptr<react::JSCallInvoker>)jsInvoker
- (std::shared_ptr<react::TurboModule>)getTurboModuleWithJsInvoker:(std::shared_ptr<react::CallInvoker>)jsInvoker
{
return std::make_shared<react::SampleTurboCxxModule>(jsInvoker);
}
@@ -31,7 +31,7 @@ RCT_EXPORT_MODULE()
}
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModuleWithJsInvoker:
(std::shared_ptr<facebook::react::JSCallInvoker>)jsInvoker
(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker
{
return std::make_shared<NativeSampleTurboModuleSpecJSI>(self, jsInvoker);
}
@@ -37,7 +37,7 @@ const proprertyDefTemplate =
const moduleTemplate = `
::_MODULE_PROPERTIES_::
Native::_MODULE_NAME_::CxxSpecJSI::Native::_MODULE_NAME_::CxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker)
Native::_MODULE_NAME_::CxxSpecJSI::Native::_MODULE_NAME_::CxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule("::_MODULE_NAME_::", jsInvoker) {
::_PROPERTIES_MAP_::
}`.trim();
@@ -21,7 +21,7 @@ type FilesOutput = Map<string, string>;
const moduleTemplate = `
class JSI_EXPORT Native::_MODULE_NAME_::CxxSpecJSI : public TurboModule {
protected:
Native::_MODULE_NAME_::CxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker);
Native::_MODULE_NAME_::CxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
public:
::_MODULE_PROPERTIES_::
@@ -27,7 +27,7 @@ type FilesOutput = Map<string, string>;
const moduleTemplate = `
class JSI_EXPORT Native::_MODULE_NAME_::SpecJSI : public ObjCTurboModule {
public:
Native::_MODULE_NAME_::SpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
Native::_MODULE_NAME_::SpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};`;
const protocolTemplate = `
@@ -34,7 +34,7 @@ const proprertyDefTemplate =
const moduleTemplate = `
::_TURBOMODULE_METHOD_INVOKERS_::
Native::_MODULE_NAME_::SpecJSI::Native::_MODULE_NAME_::SpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
Native::_MODULE_NAME_::SpecJSI::Native::_MODULE_NAME_::SpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule("::_MODULE_NAME_::", instance, jsInvoker) {
::_PROPERTIES_MAP_::::_CONVERSION_SELECTORS_::
}`.trim();
@@ -19,7 +19,7 @@ static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_difficult(jsi
return static_cast<NativeSampleTurboModuleCxxSpecJSI *>(&turboModule)->difficult(rt, args[0].getObject(rt));
}
NativeSampleTurboModuleCxxSpecJSI::NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSampleTurboModuleCxxSpecJSI::NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule(\\"SampleTurboModule\\", jsInvoker) {
methodMap_[\\"difficult\\"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_difficult};
}
@@ -48,7 +48,7 @@ namespace react {
NativeSampleTurboModuleCxxSpecJSI::NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSampleTurboModuleCxxSpecJSI::NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule(\\"SampleTurboModule\\", jsInvoker) {
}
@@ -110,7 +110,7 @@ static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getValueWithP
return static_cast<NativeSampleTurboModuleCxxSpecJSI *>(&turboModule)->getValueWithPromise(rt, args[0].getBool());
}
NativeSampleTurboModuleCxxSpecJSI::NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSampleTurboModuleCxxSpecJSI::NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule(\\"SampleTurboModule\\", jsInvoker) {
methodMap_[\\"getConstants\\"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_getConstants};
methodMap_[\\"voidFunc\\"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFunc};
@@ -152,7 +152,7 @@ static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFunc(jsi:
return jsi::Value::undefined();
}
NativeSampleTurboModuleCxxSpecJSI::NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSampleTurboModuleCxxSpecJSI::NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule(\\"SampleTurboModule\\", jsInvoker) {
methodMap_[\\"voidFunc\\"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFunc};
}
@@ -165,7 +165,7 @@ static jsi::Value __hostFunction_NativeSample2TurboModuleCxxSpecJSI_voidFunc(jsi
return jsi::Value::undefined();
}
NativeSample2TurboModuleCxxSpecJSI::NativeSample2TurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSample2TurboModuleCxxSpecJSI::NativeSample2TurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule(\\"Sample2TurboModule\\", jsInvoker) {
methodMap_[\\"getConstants\\"] = MethodMetadata {0, __hostFunction_NativeSample2TurboModuleCxxSpecJSI_getConstants};
methodMap_[\\"voidFunc\\"] = MethodMetadata {0, __hostFunction_NativeSample2TurboModuleCxxSpecJSI_voidFunc};
@@ -199,7 +199,7 @@ static jsi::Value __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFunc(jsi:
return jsi::Value::undefined();
}
NativeSampleTurboModuleCxxSpecJSI::NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSampleTurboModuleCxxSpecJSI::NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule(\\"SampleTurboModule\\", jsInvoker) {
methodMap_[\\"voidFunc\\"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleCxxSpecJSI_voidFunc};
}
@@ -209,7 +209,7 @@ static jsi::Value __hostFunction_NativeSample2TurboModuleCxxSpecJSI_voidFunc(jsi
return jsi::Value::undefined();
}
NativeSample2TurboModuleCxxSpecJSI::NativeSample2TurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSample2TurboModuleCxxSpecJSI::NativeSample2TurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule(\\"Sample2TurboModule\\", jsInvoker) {
methodMap_[\\"voidFunc\\"] = MethodMetadata {0, __hostFunction_NativeSample2TurboModuleCxxSpecJSI_voidFunc};
}
@@ -19,7 +19,7 @@ namespace react {
class JSI_EXPORT NativeSampleTurboModuleCxxSpecJSI : public TurboModule {
protected:
NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
public:
virtual jsi::Object difficult(jsi::Runtime &rt, const jsi::Object &A) = 0;
@@ -51,7 +51,7 @@ namespace react {
class JSI_EXPORT NativeSampleTurboModuleCxxSpecJSI : public TurboModule {
protected:
NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
public:
@@ -83,7 +83,7 @@ namespace react {
class JSI_EXPORT NativeSampleTurboModuleCxxSpecJSI : public TurboModule {
protected:
NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
public:
virtual jsi::Object getConstants(jsi::Runtime &rt) = 0;
@@ -124,7 +124,7 @@ namespace react {
class JSI_EXPORT NativeSampleTurboModuleCxxSpecJSI : public TurboModule {
protected:
NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
public:
virtual void voidFunc(jsi::Runtime &rt) = 0;
@@ -133,7 +133,7 @@ virtual void voidFunc(jsi::Runtime &rt) = 0;
class JSI_EXPORT NativeSample2TurboModuleCxxSpecJSI : public TurboModule {
protected:
NativeSample2TurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSample2TurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
public:
virtual jsi::Object getConstants(jsi::Runtime &rt) = 0;
@@ -166,7 +166,7 @@ namespace react {
class JSI_EXPORT NativeSampleTurboModuleCxxSpecJSI : public TurboModule {
protected:
NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSampleTurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
public:
virtual void voidFunc(jsi::Runtime &rt) = 0;
@@ -175,7 +175,7 @@ virtual void voidFunc(jsi::Runtime &rt) = 0;
class JSI_EXPORT NativeSample2TurboModuleCxxSpecJSI : public TurboModule {
protected:
NativeSample2TurboModuleCxxSpecJSI(std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSample2TurboModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
public:
virtual void voidFunc(jsi::Runtime &rt) = 0;
@@ -158,7 +158,7 @@ namespace react {
class JSI_EXPORT NativeSampleTurboModuleSpecJSI : public ObjCTurboModule {
public:
NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -207,7 +207,7 @@ namespace react {
class JSI_EXPORT NativeSampleTurboModuleSpecJSI : public ObjCTurboModule {
public:
NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -313,7 +313,7 @@ namespace react {
class JSI_EXPORT NativeSampleTurboModuleSpecJSI : public ObjCTurboModule {
public:
NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -372,12 +372,12 @@ namespace react {
class JSI_EXPORT NativeSampleTurboModuleSpecJSI : public ObjCTurboModule {
public:
NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
class JSI_EXPORT NativeSample2TurboModuleSpecJSI : public ObjCTurboModule {
public:
NativeSample2TurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSample2TurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -435,12 +435,12 @@ namespace react {
class JSI_EXPORT NativeSampleTurboModuleSpecJSI : public ObjCTurboModule {
public:
NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
class JSI_EXPORT NativeSample2TurboModuleSpecJSI : public ObjCTurboModule {
public:
NativeSample2TurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker);
NativeSample2TurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker);
};
} // namespace react
@@ -37,7 +37,7 @@ static facebook::jsi::Value __hostFunction_NativeSampleTurboModuleSpecJSI_diffic
.invokeObjCMethod(rt, ObjectKind, \\"difficult\\", @selector(difficult:), args, count);
}
NativeSampleTurboModuleSpecJSI::NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSampleTurboModuleSpecJSI::NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule(\\"SampleTurboModule\\", instance, jsInvoker) {
methodMap_[\\"difficult\\"] = MethodMetadata {1, __hostFunction_NativeSampleTurboModuleSpecJSI_difficult};
setMethodArgConversionSelector(@\\"difficult\\", 0, @\\"JS_NativeSampleTurboModule_SpecDifficultA:\\");
@@ -67,7 +67,7 @@ namespace react {
NativeSampleTurboModuleSpecJSI::NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSampleTurboModuleSpecJSI::NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule(\\"SampleTurboModule\\", instance, jsInvoker) {
}
@@ -135,7 +135,7 @@ static facebook::jsi::Value __hostFunction_NativeSampleTurboModuleSpecJSI_getVal
.invokeObjCMethod(rt, PromiseKind, \\"getValueWithPromise\\", @selector(getValueWithPromise:resolve:reject:), args, count);
}
NativeSampleTurboModuleSpecJSI::NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSampleTurboModuleSpecJSI::NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule(\\"SampleTurboModule\\", instance, jsInvoker) {
methodMap_[\\"getConstants\\"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleSpecJSI_getConstants};
methodMap_[\\"voidFunc\\"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleSpecJSI_voidFunc};
@@ -177,7 +177,7 @@ static facebook::jsi::Value __hostFunction_NativeSampleTurboModuleSpecJSI_voidFu
.invokeObjCMethod(rt, VoidKind, \\"voidFunc\\", @selector(voidFunc), args, count);
}
NativeSampleTurboModuleSpecJSI::NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSampleTurboModuleSpecJSI::NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule(\\"SampleTurboModule\\", instance, jsInvoker) {
methodMap_[\\"voidFunc\\"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleSpecJSI_voidFunc};
}
@@ -187,7 +187,7 @@ static facebook::jsi::Value __hostFunction_NativeSample2TurboModuleSpecJSI_voidF
.invokeObjCMethod(rt, VoidKind, \\"voidFunc\\", @selector(voidFunc), args, count);
}
NativeSample2TurboModuleSpecJSI::NativeSample2TurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSample2TurboModuleSpecJSI::NativeSample2TurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule(\\"Sample2TurboModule\\", instance, jsInvoker) {
methodMap_[\\"voidFunc\\"] = MethodMetadata {0, __hostFunction_NativeSample2TurboModuleSpecJSI_voidFunc};
@@ -221,7 +221,7 @@ static facebook::jsi::Value __hostFunction_NativeSampleTurboModuleSpecJSI_voidFu
.invokeObjCMethod(rt, VoidKind, \\"voidFunc\\", @selector(voidFunc), args, count);
}
NativeSampleTurboModuleSpecJSI::NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSampleTurboModuleSpecJSI::NativeSampleTurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule(\\"SampleTurboModule\\", instance, jsInvoker) {
methodMap_[\\"voidFunc\\"] = MethodMetadata {0, __hostFunction_NativeSampleTurboModuleSpecJSI_voidFunc};
}
@@ -230,7 +230,7 @@ static facebook::jsi::Value __hostFunction_NativeSample2TurboModuleSpecJSI_voidF
.invokeObjCMethod(rt, VoidKind, \\"voidFunc\\", @selector(voidFunc), args, count);
}
NativeSample2TurboModuleSpecJSI::NativeSample2TurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<JSCallInvoker> jsInvoker)
NativeSample2TurboModuleSpecJSI::NativeSample2TurboModuleSpecJSI(id<RCTTurboModule> instance, std::shared_ptr<CallInvoker> jsInvoker)
: ObjCTurboModule(\\"Sample2TurboModule\\", instance, jsInvoker) {
methodMap_[\\"voidFunc\\"] = MethodMetadata {0, __hostFunction_NativeSample2TurboModuleSpecJSI_voidFunc};
}
+1 -1
View File
@@ -36,7 +36,7 @@ def use_react_native! (options={})
pod 'React-jsi', :path => "#{prefix}/ReactCommon/jsi"
pod 'React-jsiexecutor', :path => "#{prefix}/ReactCommon/jsiexecutor"
pod 'React-jsinspector', :path => "#{prefix}/ReactCommon/jsinspector"
pod 'ReactCommon/jscallinvoker', :path => "#{prefix}/ReactCommon"
pod 'ReactCommon/callinvoker', :path => "#{prefix}/ReactCommon"
pod 'ReactCommon/turbomodule/core', :path => "#{prefix}/ReactCommon"
pod 'Yoga', :path => "#{prefix}/ReactCommon/yoga"
+1 -1
View File
@@ -62,7 +62,7 @@ target 'HelloWorld' do
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'