@react-native-firebase/app 25.1.0 → 26.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/README.md +21 -0
- package/RNFBApp.podspec +20 -15
- package/android/build.gradle +25 -6
- package/android/src/reactnative/java/io/invertase/firebase/app/{ReactNativeFirebaseAppModule.java → NativeRNFBTurboApp.java} +81 -45
- package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseAppPackage.java +3 -3
- package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java +2 -2
- package/android/src/reactnative/java/io/invertase/firebase/app/generated/java/com/facebook/fbreact/specs/NativeRNFBTurboAppSpec.java +136 -0
- package/android/src/reactnative/java/io/invertase/firebase/app/generated/java/com/facebook/fbreact/specs/NativeRNFBTurboUtilsSpec.java +94 -0
- package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/CMakeLists.txt +36 -0
- package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/RNFBAppTurboModules-generated.cpp +170 -0
- package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/RNFBAppTurboModules.h +39 -0
- package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/react/renderer/components/RNFBAppTurboModules/RNFBAppTurboModulesJSI-generated.cpp +187 -0
- package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/react/renderer/components/RNFBAppTurboModules/RNFBAppTurboModulesJSI.h +606 -0
- package/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java +3 -3
- package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitter.java +475 -20
- package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebaseMeta.java +8 -0
- package/android/src/reactnative/java/io/invertase/firebase/common/ReactNativeFirebasePreferences.java +8 -0
- package/android/src/reactnative/java/io/invertase/firebase/utils/{ReactNativeFirebaseUtilsModule.java → NativeRNFBTurboUtils.java} +57 -40
- package/android/src/test/java/io/invertase/firebase/app/NativeRNFBTurboAppTest.java +400 -0
- package/android/src/test/java/io/invertase/firebase/common/ReactNativeFirebaseEventEmitterTest.java +1823 -0
- package/app.plugin.js +1 -1
- package/dist/module/FirebaseApp.js +0 -9
- package/dist/module/FirebaseApp.js.map +1 -1
- package/dist/module/common/index.js +0 -645
- package/dist/module/common/index.js.map +1 -1
- package/dist/module/common/unitTestUtils.js +18 -54
- package/dist/module/common/unitTestUtils.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/internal/RNFBNativeEventEmitter.js +12 -6
- package/dist/module/internal/RNFBNativeEventEmitter.js.map +1 -1
- package/dist/module/internal/constants.js +2 -2
- package/dist/module/internal/constants.js.map +1 -1
- package/dist/module/internal/index.js +1 -1
- package/dist/module/internal/index.js.map +1 -1
- package/dist/module/internal/nativeModuleAndroidIos.js +50 -10
- package/dist/module/internal/nativeModuleAndroidIos.js.map +1 -1
- package/dist/module/internal/nativeModuleWeb.js +12 -4
- package/dist/module/internal/nativeModuleWeb.js.map +1 -1
- package/dist/module/internal/registry/app.js +20 -12
- package/dist/module/internal/registry/app.js.map +1 -1
- package/dist/module/internal/registry/modular.js +73 -0
- package/dist/module/internal/registry/modular.js.map +1 -0
- package/dist/module/internal/registry/nativeModule.js +116 -95
- package/dist/module/internal/registry/nativeModule.js.map +1 -1
- package/dist/module/internal/web/RNFBAppModule.js +16 -3
- package/dist/module/internal/web/RNFBAppModule.js.map +1 -1
- package/dist/module/internal/web/utils.js +6 -1
- package/dist/module/internal/web/utils.js.map +1 -1
- package/dist/module/modular.js +44 -37
- package/dist/module/modular.js.map +1 -1
- package/dist/module/types/app.js +0 -3
- package/dist/module/types/app.js.map +1 -1
- package/dist/module/types/internal.js +0 -2
- package/dist/module/utils/UtilsStatics.js +2 -2
- package/dist/module/utils/UtilsStatics.js.map +1 -1
- package/dist/module/utils/index.js +21 -17
- package/dist/module/utils/index.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/lib/FirebaseApp.d.ts +1 -2
- package/dist/typescript/lib/FirebaseApp.d.ts.map +1 -1
- package/dist/typescript/lib/common/index.d.ts +0 -8
- package/dist/typescript/lib/common/index.d.ts.map +1 -1
- package/dist/typescript/lib/common/unitTestUtils.d.ts +1 -4
- package/dist/typescript/lib/common/unitTestUtils.d.ts.map +1 -1
- package/dist/typescript/lib/index.d.ts +0 -1
- package/dist/typescript/lib/index.d.ts.map +1 -1
- package/dist/typescript/lib/internal/NativeFirebaseError.d.ts +1 -1
- package/dist/typescript/lib/internal/NativeFirebaseError.d.ts.map +1 -1
- package/dist/typescript/lib/internal/RNFBNativeEventEmitter.d.ts.map +1 -1
- package/dist/typescript/lib/internal/constants.d.ts +2 -3
- package/dist/typescript/lib/internal/constants.d.ts.map +1 -1
- package/dist/typescript/lib/internal/index.d.ts +1 -1
- package/dist/typescript/lib/internal/index.d.ts.map +1 -1
- package/dist/typescript/lib/internal/nativeModuleAndroidIos.d.ts +2 -6
- package/dist/typescript/lib/internal/nativeModuleAndroidIos.d.ts.map +1 -1
- package/dist/typescript/lib/internal/nativeModuleWeb.d.ts.map +1 -1
- package/dist/typescript/lib/internal/registry/app.d.ts +2 -2
- package/dist/typescript/lib/internal/registry/app.d.ts.map +1 -1
- package/dist/typescript/lib/internal/registry/modular.d.ts +22 -0
- package/dist/typescript/lib/internal/registry/modular.d.ts.map +1 -0
- package/dist/typescript/lib/internal/registry/nativeModule.d.ts +3 -11
- package/dist/typescript/lib/internal/registry/nativeModule.d.ts.map +1 -1
- package/dist/typescript/lib/internal/web/RNFBAppModule.d.ts.map +1 -1
- package/dist/typescript/lib/internal/web/utils.d.ts.map +1 -1
- package/dist/typescript/lib/modular.d.ts +21 -7
- package/dist/typescript/lib/modular.d.ts.map +1 -1
- package/dist/typescript/lib/types/app.d.ts +4 -4
- package/dist/typescript/lib/types/app.d.ts.map +1 -1
- package/dist/typescript/lib/types/internal.d.ts +1 -33
- package/dist/typescript/lib/types/internal.d.ts.map +1 -1
- package/dist/typescript/lib/utils/index.d.ts +7 -3
- package/dist/typescript/lib/utils/index.d.ts.map +1 -1
- package/dist/typescript/lib/version.d.ts +1 -1
- package/firebase-schema.json +5 -1
- package/firebase_spm.rb +1016 -0
- package/ios/RNFBApp/RCTConvert+FIRApp.h +4 -0
- package/ios/RNFBApp/RCTConvert+FIROptions.h +4 -0
- package/ios/RNFBApp/RNFBAppModule.h +1 -3
- package/ios/RNFBApp/{RNFBAppModule.m → RNFBAppModule.mm} +80 -77
- package/ios/RNFBApp/RNFBSharedUtils.h +4 -0
- package/ios/RNFBApp/RNFBUtilsModule.h +1 -3
- package/ios/RNFBApp/{RNFBUtilsModule.m → RNFBUtilsModule.mm} +68 -25
- package/ios/RNFBApp/RNFBVersion.m +1 -1
- package/ios/RNFBApp.xcodeproj/project.pbxproj +12 -12
- package/ios/generated/RCTAppDependencyProvider.h +25 -0
- package/ios/generated/RCTAppDependencyProvider.mm +55 -0
- package/ios/generated/RCTModuleProviders.h +16 -0
- package/ios/generated/RCTModuleProviders.mm +52 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.mm +23 -0
- package/ios/generated/RCTUnstableModulesRequiringMainQueueSetupProvider.h +14 -0
- package/ios/generated/RCTUnstableModulesRequiringMainQueueSetupProvider.mm +19 -0
- package/ios/generated/RNFBAppTurboModules/RNFBAppTurboModules-generated.mm +210 -0
- package/ios/generated/RNFBAppTurboModules/RNFBAppTurboModules.h +399 -0
- package/ios/generated/RNFBAppTurboModulesJSI-generated.cpp +187 -0
- package/ios/generated/RNFBAppTurboModulesJSI.h +606 -0
- package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
- package/ios/generated/ReactCodegen.podspec +111 -0
- package/lib/FirebaseApp.ts +1 -10
- package/lib/common/index.ts +0 -742
- package/lib/common/unitTestUtils.ts +17 -73
- package/lib/index.ts +0 -1
- package/lib/internal/NativeFirebaseError.ts +1 -1
- package/lib/internal/RNFBNativeEventEmitter.ts +12 -6
- package/lib/internal/constants.ts +3 -25
- package/lib/internal/global.d.ts +0 -4
- package/lib/internal/index.ts +1 -1
- package/lib/internal/nativeModuleAndroidIos.ts +69 -12
- package/lib/internal/nativeModuleWeb.ts +11 -5
- package/lib/internal/registry/app.ts +24 -22
- package/lib/internal/registry/modular.ts +97 -0
- package/lib/internal/registry/nativeModule.ts +136 -107
- package/lib/internal/web/RNFBAppModule.ts +16 -3
- package/lib/internal/web/utils.ts +6 -1
- package/lib/modular.ts +47 -72
- package/lib/types/app.ts +6 -11
- package/lib/types/internal.ts +1 -46
- package/lib/utils/UtilsStatics.ts +2 -2
- package/lib/utils/index.ts +24 -18
- package/lib/version.ts +1 -1
- package/package.json +45 -6
- package/plugin/build/app.plugin.d.ts +2 -0
- package/plugin/build/app.plugin.js +6 -0
- package/plugin/src/app.plugin.ts +3 -0
- package/plugin/tsconfig.tsbuildinfo +1 -1
- package/react-native.config.js +2 -0
- package/specs/NativeRNFBTurboApp.ts +57 -0
- package/specs/NativeRNFBTurboUtils.ts +34 -0
- package/typedoc.json +1 -2
- package/dist/module/internal/registry/namespace.js +0 -262
- package/dist/module/internal/registry/namespace.js.map +0 -1
- package/dist/module/namespaced.js +0 -25
- package/dist/module/namespaced.js.map +0 -1
- package/dist/typescript/lib/internal/registry/namespace.d.ts +0 -26
- package/dist/typescript/lib/internal/registry/namespace.d.ts.map +0 -1
- package/dist/typescript/lib/namespaced.d.ts +0 -5
- package/dist/typescript/lib/namespaced.d.ts.map +0 -1
- package/lib/internal/registry/namespace.ts +0 -338
- package/lib/namespaced.ts +0 -24
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateModuleJavaSpec.js
|
|
9
|
+
*
|
|
10
|
+
* @nolint
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
package com.facebook.fbreact.specs;
|
|
14
|
+
|
|
15
|
+
import com.facebook.proguard.annotations.DoNotStrip;
|
|
16
|
+
import com.facebook.react.bridge.Promise;
|
|
17
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
18
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
19
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
20
|
+
import com.facebook.react.common.build.ReactBuildConfig;
|
|
21
|
+
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
|
22
|
+
import java.util.Arrays;
|
|
23
|
+
import java.util.HashSet;
|
|
24
|
+
import java.util.Map;
|
|
25
|
+
import java.util.Set;
|
|
26
|
+
import javax.annotation.Nonnull;
|
|
27
|
+
import javax.annotation.Nullable;
|
|
28
|
+
|
|
29
|
+
public abstract class NativeRNFBTurboUtilsSpec extends ReactContextBaseJavaModule implements TurboModule {
|
|
30
|
+
public static final String NAME = "NativeRNFBTurboUtils";
|
|
31
|
+
|
|
32
|
+
public NativeRNFBTurboUtilsSpec(ReactApplicationContext reactContext) {
|
|
33
|
+
super(reactContext);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@Override
|
|
37
|
+
public @Nonnull String getName() {
|
|
38
|
+
return NAME;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
protected abstract Map<String, Object> getTypedExportedConstants();
|
|
42
|
+
|
|
43
|
+
@Override
|
|
44
|
+
@DoNotStrip
|
|
45
|
+
public final @Nullable Map<String, Object> getConstants() {
|
|
46
|
+
Map<String, Object> constants = getTypedExportedConstants();
|
|
47
|
+
if (ReactBuildConfig.DEBUG || ReactBuildConfig.IS_INTERNAL_BUILD) {
|
|
48
|
+
Set<String> obligatoryFlowConstants = new HashSet<>(Arrays.asList(
|
|
49
|
+
"CACHES_DIRECTORY",
|
|
50
|
+
"DOCUMENT_DIRECTORY",
|
|
51
|
+
"LIBRARY_DIRECTORY",
|
|
52
|
+
"MAIN_BUNDLE",
|
|
53
|
+
"MOVIES_DIRECTORY",
|
|
54
|
+
"PICTURES_DIRECTORY",
|
|
55
|
+
"TEMP_DIRECTORY",
|
|
56
|
+
"isRunningInTestLab"
|
|
57
|
+
));
|
|
58
|
+
Set<String> optionalFlowConstants = new HashSet<>(Arrays.asList(
|
|
59
|
+
"EXTERNAL_DIRECTORY",
|
|
60
|
+
"EXTERNAL_STORAGE_DIRECTORY",
|
|
61
|
+
"FILE_TYPE_DIRECTORY",
|
|
62
|
+
"FILE_TYPE_REGULAR"
|
|
63
|
+
));
|
|
64
|
+
Set<String> undeclaredConstants = new HashSet<>(constants.keySet());
|
|
65
|
+
undeclaredConstants.removeAll(obligatoryFlowConstants);
|
|
66
|
+
undeclaredConstants.removeAll(optionalFlowConstants);
|
|
67
|
+
if (!undeclaredConstants.isEmpty()) {
|
|
68
|
+
throw new IllegalStateException(String.format("Native Module Flow doesn't declare constants: %s", undeclaredConstants));
|
|
69
|
+
}
|
|
70
|
+
undeclaredConstants = obligatoryFlowConstants;
|
|
71
|
+
undeclaredConstants.removeAll(constants.keySet());
|
|
72
|
+
if (!undeclaredConstants.isEmpty()) {
|
|
73
|
+
throw new IllegalStateException(String.format("Native Module doesn't fill in constants: %s", undeclaredConstants));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return constants;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@ReactMethod
|
|
80
|
+
@DoNotStrip
|
|
81
|
+
public abstract void androidGetPlayServicesStatus(Promise promise);
|
|
82
|
+
|
|
83
|
+
@ReactMethod
|
|
84
|
+
@DoNotStrip
|
|
85
|
+
public abstract void androidPromptForPlayServices(Promise promise);
|
|
86
|
+
|
|
87
|
+
@ReactMethod
|
|
88
|
+
@DoNotStrip
|
|
89
|
+
public abstract void androidResolutionForPlayServices(Promise promise);
|
|
90
|
+
|
|
91
|
+
@ReactMethod
|
|
92
|
+
@DoNotStrip
|
|
93
|
+
public abstract void androidMakePlayServicesAvailable(Promise promise);
|
|
94
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
cmake_minimum_required(VERSION 3.13)
|
|
7
|
+
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
8
|
+
|
|
9
|
+
file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/RNFBAppTurboModules/*.cpp)
|
|
10
|
+
|
|
11
|
+
add_library(
|
|
12
|
+
react_codegen_RNFBAppTurboModules
|
|
13
|
+
OBJECT
|
|
14
|
+
${react_codegen_SRCS}
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
target_include_directories(react_codegen_RNFBAppTurboModules PUBLIC . react/renderer/components/RNFBAppTurboModules)
|
|
18
|
+
|
|
19
|
+
target_link_libraries(
|
|
20
|
+
react_codegen_RNFBAppTurboModules
|
|
21
|
+
fbjni
|
|
22
|
+
jsi
|
|
23
|
+
# We need to link different libraries based on whether we are building rncore or not, that's necessary
|
|
24
|
+
# because we want to break a circular dependency between react_codegen_rncore and reactnative
|
|
25
|
+
reactnative
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
target_compile_options(
|
|
29
|
+
react_codegen_RNFBAppTurboModules
|
|
30
|
+
PRIVATE
|
|
31
|
+
-DLOG_TAG=\"ReactNative\"
|
|
32
|
+
-fexceptions
|
|
33
|
+
-frtti
|
|
34
|
+
-std=c++20
|
|
35
|
+
-Wall
|
|
36
|
+
)
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateModuleJniCpp.js
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#include "RNFBAppTurboModules.h"
|
|
12
|
+
|
|
13
|
+
namespace facebook::react {
|
|
14
|
+
|
|
15
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
16
|
+
static jmethodID cachedMethodId = nullptr;
|
|
17
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, ObjectKind, "getConstants", "()Ljava/util/Map;", args, count, cachedMethodId);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_initializeApp(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
21
|
+
static jmethodID cachedMethodId = nullptr;
|
|
22
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "initializeApp", "(Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_setAutomaticDataCollectionEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
26
|
+
static jmethodID cachedMethodId = nullptr;
|
|
27
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "setAutomaticDataCollectionEnabled", "(Ljava/lang/String;Z)V", args, count, cachedMethodId);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_deleteApp(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
31
|
+
static jmethodID cachedMethodId = nullptr;
|
|
32
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "deleteApp", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_eventsNotifyReady(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
36
|
+
static jmethodID cachedMethodId = nullptr;
|
|
37
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "eventsNotifyReady", "(Z)V", args, count, cachedMethodId);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_eventsGetListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
41
|
+
static jmethodID cachedMethodId = nullptr;
|
|
42
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "eventsGetListeners", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_eventsPing(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
46
|
+
static jmethodID cachedMethodId = nullptr;
|
|
47
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "eventsPing", "(Ljava/lang/String;Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_eventsAddListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
51
|
+
static jmethodID cachedMethodId = nullptr;
|
|
52
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "eventsAddListener", "(Ljava/lang/String;)V", args, count, cachedMethodId);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_eventsRemoveListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
56
|
+
static jmethodID cachedMethodId = nullptr;
|
|
57
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "eventsRemoveListener", "(Ljava/lang/String;Z)V", args, count, cachedMethodId);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
61
|
+
static jmethodID cachedMethodId = nullptr;
|
|
62
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "addListener", "(Ljava/lang/String;)V", args, count, cachedMethodId);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
66
|
+
static jmethodID cachedMethodId = nullptr;
|
|
67
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "removeListeners", "(D)V", args, count, cachedMethodId);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_metaGetAll(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
71
|
+
static jmethodID cachedMethodId = nullptr;
|
|
72
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "metaGetAll", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_jsonGetAll(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
76
|
+
static jmethodID cachedMethodId = nullptr;
|
|
77
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "jsonGetAll", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_preferencesSetBool(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
81
|
+
static jmethodID cachedMethodId = nullptr;
|
|
82
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "preferencesSetBool", "(Ljava/lang/String;ZLcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_preferencesSetString(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
86
|
+
static jmethodID cachedMethodId = nullptr;
|
|
87
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "preferencesSetString", "(Ljava/lang/String;Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_preferencesGetAll(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
91
|
+
static jmethodID cachedMethodId = nullptr;
|
|
92
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "preferencesGetAll", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_preferencesClearAll(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
96
|
+
static jmethodID cachedMethodId = nullptr;
|
|
97
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "preferencesClearAll", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboAppSpecJSI_setLogLevel(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
101
|
+
static jmethodID cachedMethodId = nullptr;
|
|
102
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "setLogLevel", "(Ljava/lang/String;)V", args, count, cachedMethodId);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
NativeRNFBTurboAppSpecJSI::NativeRNFBTurboAppSpecJSI(const JavaTurboModule::InitParams ¶ms)
|
|
106
|
+
: JavaTurboModule(params) {
|
|
107
|
+
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppSpecJSI_getConstants};
|
|
108
|
+
methodMap_["initializeApp"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppSpecJSI_initializeApp};
|
|
109
|
+
methodMap_["setAutomaticDataCollectionEnabled"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppSpecJSI_setAutomaticDataCollectionEnabled};
|
|
110
|
+
methodMap_["deleteApp"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppSpecJSI_deleteApp};
|
|
111
|
+
methodMap_["eventsNotifyReady"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppSpecJSI_eventsNotifyReady};
|
|
112
|
+
methodMap_["eventsGetListeners"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppSpecJSI_eventsGetListeners};
|
|
113
|
+
methodMap_["eventsPing"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppSpecJSI_eventsPing};
|
|
114
|
+
methodMap_["eventsAddListener"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppSpecJSI_eventsAddListener};
|
|
115
|
+
methodMap_["eventsRemoveListener"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppSpecJSI_eventsRemoveListener};
|
|
116
|
+
methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppSpecJSI_addListener};
|
|
117
|
+
methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppSpecJSI_removeListeners};
|
|
118
|
+
methodMap_["metaGetAll"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppSpecJSI_metaGetAll};
|
|
119
|
+
methodMap_["jsonGetAll"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppSpecJSI_jsonGetAll};
|
|
120
|
+
methodMap_["preferencesSetBool"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppSpecJSI_preferencesSetBool};
|
|
121
|
+
methodMap_["preferencesSetString"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppSpecJSI_preferencesSetString};
|
|
122
|
+
methodMap_["preferencesGetAll"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppSpecJSI_preferencesGetAll};
|
|
123
|
+
methodMap_["preferencesClearAll"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppSpecJSI_preferencesClearAll};
|
|
124
|
+
methodMap_["setLogLevel"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppSpecJSI_setLogLevel};
|
|
125
|
+
}
|
|
126
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboUtilsSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
127
|
+
static jmethodID cachedMethodId = nullptr;
|
|
128
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, ObjectKind, "getConstants", "()Ljava/util/Map;", args, count, cachedMethodId);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboUtilsSpecJSI_androidGetPlayServicesStatus(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
132
|
+
static jmethodID cachedMethodId = nullptr;
|
|
133
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "androidGetPlayServicesStatus", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboUtilsSpecJSI_androidPromptForPlayServices(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
137
|
+
static jmethodID cachedMethodId = nullptr;
|
|
138
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "androidPromptForPlayServices", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboUtilsSpecJSI_androidResolutionForPlayServices(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
142
|
+
static jmethodID cachedMethodId = nullptr;
|
|
143
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "androidResolutionForPlayServices", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
static facebook::jsi::Value __hostFunction_NativeRNFBTurboUtilsSpecJSI_androidMakePlayServicesAvailable(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
147
|
+
static jmethodID cachedMethodId = nullptr;
|
|
148
|
+
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "androidMakePlayServicesAvailable", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
NativeRNFBTurboUtilsSpecJSI::NativeRNFBTurboUtilsSpecJSI(const JavaTurboModule::InitParams ¶ms)
|
|
152
|
+
: JavaTurboModule(params) {
|
|
153
|
+
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsSpecJSI_getConstants};
|
|
154
|
+
methodMap_["androidGetPlayServicesStatus"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsSpecJSI_androidGetPlayServicesStatus};
|
|
155
|
+
methodMap_["androidPromptForPlayServices"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsSpecJSI_androidPromptForPlayServices};
|
|
156
|
+
methodMap_["androidResolutionForPlayServices"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsSpecJSI_androidResolutionForPlayServices};
|
|
157
|
+
methodMap_["androidMakePlayServicesAvailable"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsSpecJSI_androidMakePlayServicesAvailable};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
std::shared_ptr<TurboModule> RNFBAppTurboModules_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams ¶ms) {
|
|
161
|
+
if (moduleName == "NativeRNFBTurboApp") {
|
|
162
|
+
return std::make_shared<NativeRNFBTurboAppSpecJSI>(params);
|
|
163
|
+
}
|
|
164
|
+
if (moduleName == "NativeRNFBTurboUtils") {
|
|
165
|
+
return std::make_shared<NativeRNFBTurboUtilsSpecJSI>(params);
|
|
166
|
+
}
|
|
167
|
+
return nullptr;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
} // namespace facebook::react
|
package/android/src/reactnative/java/io/invertase/firebase/app/generated/jni/RNFBAppTurboModules.h
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateModuleJniH.js
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#pragma once
|
|
12
|
+
|
|
13
|
+
#include <ReactCommon/JavaTurboModule.h>
|
|
14
|
+
#include <ReactCommon/TurboModule.h>
|
|
15
|
+
#include <jsi/jsi.h>
|
|
16
|
+
|
|
17
|
+
namespace facebook::react {
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* JNI C++ class for module 'NativeRNFBTurboApp'
|
|
21
|
+
*/
|
|
22
|
+
class JSI_EXPORT NativeRNFBTurboAppSpecJSI : public JavaTurboModule {
|
|
23
|
+
public:
|
|
24
|
+
NativeRNFBTurboAppSpecJSI(const JavaTurboModule::InitParams ¶ms);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* JNI C++ class for module 'NativeRNFBTurboUtils'
|
|
29
|
+
*/
|
|
30
|
+
class JSI_EXPORT NativeRNFBTurboUtilsSpecJSI : public JavaTurboModule {
|
|
31
|
+
public:
|
|
32
|
+
NativeRNFBTurboUtilsSpecJSI(const JavaTurboModule::InitParams ¶ms);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
JSI_EXPORT
|
|
37
|
+
std::shared_ptr<TurboModule> RNFBAppTurboModules_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams ¶ms);
|
|
38
|
+
|
|
39
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleCpp.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#include "RNFBAppTurboModulesJSI.h"
|
|
11
|
+
|
|
12
|
+
namespace facebook::react {
|
|
13
|
+
|
|
14
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
15
|
+
return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->getConstants(
|
|
16
|
+
rt
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_initializeApp(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
20
|
+
return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->initializeApp(
|
|
21
|
+
rt,
|
|
22
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt),
|
|
23
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt)
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_setAutomaticDataCollectionEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
27
|
+
static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->setAutomaticDataCollectionEnabled(
|
|
28
|
+
rt,
|
|
29
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
30
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool()
|
|
31
|
+
);
|
|
32
|
+
return jsi::Value::undefined();
|
|
33
|
+
}
|
|
34
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_deleteApp(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
35
|
+
return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->deleteApp(
|
|
36
|
+
rt,
|
|
37
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsNotifyReady(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
41
|
+
static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->eventsNotifyReady(
|
|
42
|
+
rt,
|
|
43
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool()
|
|
44
|
+
);
|
|
45
|
+
return jsi::Value::undefined();
|
|
46
|
+
}
|
|
47
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsGetListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
48
|
+
return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->eventsGetListeners(
|
|
49
|
+
rt
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsPing(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
53
|
+
return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->eventsPing(
|
|
54
|
+
rt,
|
|
55
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
56
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt)
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsAddListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
60
|
+
static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->eventsAddListener(
|
|
61
|
+
rt,
|
|
62
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
|
|
63
|
+
);
|
|
64
|
+
return jsi::Value::undefined();
|
|
65
|
+
}
|
|
66
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsRemoveListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
67
|
+
static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->eventsRemoveListener(
|
|
68
|
+
rt,
|
|
69
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
70
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool()
|
|
71
|
+
);
|
|
72
|
+
return jsi::Value::undefined();
|
|
73
|
+
}
|
|
74
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
75
|
+
static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->addListener(
|
|
76
|
+
rt,
|
|
77
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
|
|
78
|
+
);
|
|
79
|
+
return jsi::Value::undefined();
|
|
80
|
+
}
|
|
81
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
82
|
+
static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->removeListeners(
|
|
83
|
+
rt,
|
|
84
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
|
|
85
|
+
);
|
|
86
|
+
return jsi::Value::undefined();
|
|
87
|
+
}
|
|
88
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_metaGetAll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
89
|
+
return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->metaGetAll(
|
|
90
|
+
rt
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_jsonGetAll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
94
|
+
return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->jsonGetAll(
|
|
95
|
+
rt
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesSetBool(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
99
|
+
return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->preferencesSetBool(
|
|
100
|
+
rt,
|
|
101
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
102
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool()
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesSetString(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
106
|
+
return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->preferencesSetString(
|
|
107
|
+
rt,
|
|
108
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
|
|
109
|
+
count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesGetAll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
113
|
+
return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->preferencesGetAll(
|
|
114
|
+
rt
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesClearAll(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
118
|
+
return static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->preferencesClearAll(
|
|
119
|
+
rt
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
static jsi::Value __hostFunction_NativeRNFBTurboAppCxxSpecJSI_setLogLevel(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
123
|
+
static_cast<NativeRNFBTurboAppCxxSpecJSI *>(&turboModule)->setLogLevel(
|
|
124
|
+
rt,
|
|
125
|
+
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
|
|
126
|
+
);
|
|
127
|
+
return jsi::Value::undefined();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
NativeRNFBTurboAppCxxSpecJSI::NativeRNFBTurboAppCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
|
|
131
|
+
: TurboModule("NativeRNFBTurboApp", jsInvoker) {
|
|
132
|
+
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_getConstants};
|
|
133
|
+
methodMap_["initializeApp"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_initializeApp};
|
|
134
|
+
methodMap_["setAutomaticDataCollectionEnabled"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_setAutomaticDataCollectionEnabled};
|
|
135
|
+
methodMap_["deleteApp"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_deleteApp};
|
|
136
|
+
methodMap_["eventsNotifyReady"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsNotifyReady};
|
|
137
|
+
methodMap_["eventsGetListeners"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsGetListeners};
|
|
138
|
+
methodMap_["eventsPing"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsPing};
|
|
139
|
+
methodMap_["eventsAddListener"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsAddListener};
|
|
140
|
+
methodMap_["eventsRemoveListener"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_eventsRemoveListener};
|
|
141
|
+
methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_addListener};
|
|
142
|
+
methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_removeListeners};
|
|
143
|
+
methodMap_["metaGetAll"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_metaGetAll};
|
|
144
|
+
methodMap_["jsonGetAll"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_jsonGetAll};
|
|
145
|
+
methodMap_["preferencesSetBool"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesSetBool};
|
|
146
|
+
methodMap_["preferencesSetString"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesSetString};
|
|
147
|
+
methodMap_["preferencesGetAll"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesGetAll};
|
|
148
|
+
methodMap_["preferencesClearAll"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_preferencesClearAll};
|
|
149
|
+
methodMap_["setLogLevel"] = MethodMetadata {1, __hostFunction_NativeRNFBTurboAppCxxSpecJSI_setLogLevel};
|
|
150
|
+
}
|
|
151
|
+
static jsi::Value __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_getConstants(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
152
|
+
return static_cast<NativeRNFBTurboUtilsCxxSpecJSI *>(&turboModule)->getConstants(
|
|
153
|
+
rt
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
static jsi::Value __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidGetPlayServicesStatus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
157
|
+
return static_cast<NativeRNFBTurboUtilsCxxSpecJSI *>(&turboModule)->androidGetPlayServicesStatus(
|
|
158
|
+
rt
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
static jsi::Value __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidPromptForPlayServices(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
162
|
+
return static_cast<NativeRNFBTurboUtilsCxxSpecJSI *>(&turboModule)->androidPromptForPlayServices(
|
|
163
|
+
rt
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
static jsi::Value __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidResolutionForPlayServices(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
167
|
+
return static_cast<NativeRNFBTurboUtilsCxxSpecJSI *>(&turboModule)->androidResolutionForPlayServices(
|
|
168
|
+
rt
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
static jsi::Value __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidMakePlayServicesAvailable(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
172
|
+
return static_cast<NativeRNFBTurboUtilsCxxSpecJSI *>(&turboModule)->androidMakePlayServicesAvailable(
|
|
173
|
+
rt
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
NativeRNFBTurboUtilsCxxSpecJSI::NativeRNFBTurboUtilsCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
|
|
178
|
+
: TurboModule("NativeRNFBTurboUtils", jsInvoker) {
|
|
179
|
+
methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_getConstants};
|
|
180
|
+
methodMap_["androidGetPlayServicesStatus"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidGetPlayServicesStatus};
|
|
181
|
+
methodMap_["androidPromptForPlayServices"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidPromptForPlayServices};
|
|
182
|
+
methodMap_["androidResolutionForPlayServices"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidResolutionForPlayServices};
|
|
183
|
+
methodMap_["androidMakePlayServicesAvailable"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboUtilsCxxSpecJSI_androidMakePlayServicesAvailable};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
} // namespace facebook::react
|