@customerglu/react-native-customerglu 2.1.2-1.0-beta → 3.0.0-beta-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.
Files changed (81) hide show
  1. package/LICENSE +20 -15
  2. package/README.md +2 -2
  3. package/ReactNativeCustomerglu.podspec +42 -0
  4. package/android/build.gradle +78 -33
  5. package/android/generated/java/com/customerglu/reactnativecustomerglu/NativeReactNativeCustomergluSpec.java +144 -0
  6. package/android/generated/jni/CMakeLists.txt +36 -0
  7. package/android/generated/jni/RNReactNativeCustomergluSpec-generated.cpp +188 -0
  8. package/android/generated/jni/RNReactNativeCustomergluSpec.h +31 -0
  9. package/android/generated/jni/react/renderer/components/RNReactNativeCustomergluSpec/RNReactNativeCustomergluSpecJSI-generated.cpp +237 -0
  10. package/android/generated/jni/react/renderer/components/RNReactNativeCustomergluSpec/RNReactNativeCustomergluSpecJSI.h +305 -0
  11. package/android/gradle.properties +5 -0
  12. package/android/src/main/AndroidManifest.xml +1 -6
  13. package/android/src/main/AndroidManifestNew.xml +2 -0
  14. package/android/src/main/java/com/customerglu/reactnativecustomerglu/BannerView.kt +76 -0
  15. package/android/src/main/java/com/customerglu/reactnativecustomerglu/BannerViewManager.kt +19 -0
  16. package/android/src/main/java/com/customerglu/reactnativecustomerglu/CGEmbededView.kt +102 -0
  17. package/android/src/main/java/com/customerglu/reactnativecustomerglu/CGEmbededViewManager.kt +18 -0
  18. package/android/src/main/java/com/customerglu/reactnativecustomerglu/RnCustomergluModule.kt +698 -0
  19. package/android/src/main/java/com/customerglu/reactnativecustomerglu/RnCustomergluPackage.kt +41 -0
  20. package/ios/Rncustomerglu.h +6 -0
  21. package/ios/Rncustomerglu.mm +18 -0
  22. package/ios/generated/RNReactNativeCustomergluSpec/RNReactNativeCustomergluSpec-generated.mm +221 -0
  23. package/ios/generated/RNReactNativeCustomergluSpec/RNReactNativeCustomergluSpec.h +106 -0
  24. package/ios/generated/RNReactNativeCustomergluSpecJSI-generated.cpp +237 -0
  25. package/ios/generated/RNReactNativeCustomergluSpecJSI.h +305 -0
  26. package/lib/commonjs/NativeReactNativeCustomerglu.js +9 -0
  27. package/lib/commonjs/NativeReactNativeCustomerglu.js.map +1 -0
  28. package/lib/commonjs/index.js +28 -191
  29. package/lib/commonjs/index.js.map +1 -1
  30. package/lib/module/NativeReactNativeCustomerglu.js +5 -0
  31. package/lib/module/NativeReactNativeCustomerglu.js.map +1 -0
  32. package/lib/module/index.js +30 -164
  33. package/lib/module/index.js.map +1 -1
  34. package/lib/typescript/commonjs/package.json +1 -0
  35. package/lib/typescript/commonjs/src/NativeReactNativeCustomerglu.d.ts +33 -0
  36. package/lib/typescript/commonjs/src/NativeReactNativeCustomerglu.d.ts.map +1 -0
  37. package/lib/typescript/commonjs/src/index.d.ts +35 -0
  38. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  39. package/lib/typescript/module/package.json +1 -0
  40. package/lib/typescript/module/src/NativeReactNativeCustomerglu.d.ts +33 -0
  41. package/lib/typescript/module/src/NativeReactNativeCustomerglu.d.ts.map +1 -0
  42. package/lib/typescript/module/src/index.d.ts +35 -0
  43. package/lib/typescript/module/src/index.d.ts.map +1 -0
  44. package/package.json +91 -45
  45. package/react-native.config.js +12 -0
  46. package/src/NativeReactNativeCustomerglu.ts +36 -0
  47. package/src/index.tsx +73 -217
  48. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  49. package/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  50. package/android/gradlew +0 -185
  51. package/android/gradlew.bat +0 -89
  52. package/android/src/main/java/com/reactnativerncustomerglu/Bannerwidget/Bannerwidget/BannerWidgetViewGroupManager.java +0 -40
  53. package/android/src/main/java/com/reactnativerncustomerglu/Bannerwidget/Bannerwidget/bannerWidget.java +0 -43
  54. package/android/src/main/java/com/reactnativerncustomerglu/Bannerwidget/wrapperview/WrapperView.java +0 -61
  55. package/android/src/main/java/com/reactnativerncustomerglu/CGUtils.java +0 -13
  56. package/android/src/main/java/com/reactnativerncustomerglu/EmbedBannerwidget/EWrapperview/EWrapperView.java +0 -61
  57. package/android/src/main/java/com/reactnativerncustomerglu/EmbedBannerwidget/EmbedBannerwidget/EBannerWidget.java +0 -35
  58. package/android/src/main/java/com/reactnativerncustomerglu/EmbedBannerwidget/EmbedBannerwidget/EBannerWidgetVGManager.java +0 -40
  59. package/android/src/main/java/com/reactnativerncustomerglu/RncustomergluModule.java +0 -1033
  60. package/android/src/main/java/com/reactnativerncustomerglu/RncustomergluPackage.java +0 -35
  61. package/android/src/main/res/drawable/bottom_sheet_edges.xml +0 -7
  62. package/android/src/main/res/drawable/floating_close_layout.xml +0 -10
  63. package/android/src/main/res/drawable/ic_arrow_back.xml +0 -5
  64. package/android/src/main/res/drawable/ic_back.xml +0 -10
  65. package/android/src/main/res/drawable/ic_delete_bin.xml +0 -5
  66. package/android/src/main/res/drawable/ic_delete_bin_red.xml +0 -5
  67. package/android/src/main/res/drawable/ij.png +0 -0
  68. package/android/src/main/res/drawable/notification.png +0 -0
  69. package/android/src/main/res/drawable/progress_bg.xml +0 -33
  70. package/android/src/main/res/values/colors.xml +0 -13
  71. package/android/src/main/res/values/themes.xml +0 -15
  72. package/android/src/main/res/xml/provider_path.xml +0 -4
  73. package/ios/CustomPlayer.m +0 -30
  74. package/ios/Rncustomerglu-Bridging-Header.h +0 -4
  75. package/ios/Rncustomerglu.m +0 -83
  76. package/ios/Rncustomerglu.swift +0 -647
  77. package/ios/Rncustomerglu.xcodeproj/project.pbxproj +0 -293
  78. package/ios/Rncustomerglu.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -4
  79. package/ios/Rncustomerglu.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  80. package/lib/typescript/index.d.ts +0 -62
  81. package/react-native-customerglu.podspec +0 -23
@@ -0,0 +1,41 @@
1
+ package com.customerglu.reactnativecustomerglu
2
+
3
+ import com.facebook.react.BaseReactPackage
4
+ import com.facebook.react.bridge.NativeModule
5
+ import com.facebook.react.bridge.ReactApplicationContext
6
+ import com.facebook.react.module.model.ReactModuleInfo
7
+ import com.facebook.react.module.model.ReactModuleInfoProvider
8
+ import com.facebook.react.uimanager.ViewManager
9
+ import java.util.HashMap
10
+
11
+ class RnCustomergluPackage : BaseReactPackage() {
12
+ override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
13
+ return if (name == RnCustomergluModule.NAME) {
14
+ RnCustomergluModule(reactContext)
15
+ } else {
16
+ null
17
+ }
18
+ }
19
+
20
+ override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
21
+ return listOf(
22
+ BannerViewManager(),
23
+ CGEmbededViewManager()
24
+ )
25
+ }
26
+
27
+ override fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
28
+ return ReactModuleInfoProvider {
29
+ val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
30
+ moduleInfos[RnCustomergluModule.NAME] = ReactModuleInfo(
31
+ RnCustomergluModule.NAME,
32
+ RnCustomergluModule.NAME,
33
+ false, // canOverrideExistingModule
34
+ false, // needsEagerInit
35
+ false, // isCxxModule
36
+ true // isTurboModule
37
+ )
38
+ moduleInfos
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,6 @@
1
+
2
+ #import "generated/RNReactNativeCustomergluSpec/RNReactNativeCustomergluSpec.h"
3
+
4
+ @interface Rncustomerglu : NSObject <NativeRncustomergluSpec>
5
+
6
+ @end
@@ -0,0 +1,18 @@
1
+ #import "Rncustomerglu.h"
2
+
3
+ @implementation Rncustomerglu
4
+ RCT_EXPORT_MODULE()
5
+
6
+ - (NSNumber *)multiply:(double)a b:(double)b {
7
+ NSNumber *result = @(a * b);
8
+
9
+ return result;
10
+ }
11
+
12
+ - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
13
+ (const facebook::react::ObjCTurboModule::InitParams &)params
14
+ {
15
+ return std::make_shared<facebook::react::NativeRncustomergluSpecJSI>(params);
16
+ }
17
+
18
+ @end
@@ -0,0 +1,221 @@
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: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #import "RNReactNativeCustomergluSpec.h"
15
+
16
+
17
+ @implementation NativeReactNativeCustomergluSpecBase
18
+
19
+
20
+ - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
21
+ {
22
+ _eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
23
+ }
24
+ @end
25
+
26
+
27
+ namespace facebook::react {
28
+
29
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
30
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count);
31
+ }
32
+
33
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
34
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count);
35
+ }
36
+
37
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_registerDevice(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
38
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "registerDevice", @selector(registerDevice:resolve:reject:), args, count);
39
+ }
40
+
41
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_UpdateUserAttributes(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
42
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "UpdateUserAttributes", @selector(UpdateUserAttributes:), args, count);
43
+ }
44
+
45
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_dataClear(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
46
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "dataClear", @selector(dataClear), args, count);
47
+ }
48
+
49
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_sendData(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
50
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "sendData", @selector(sendData:), args, count);
51
+ }
52
+
53
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_openWallet(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
54
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "openWallet", @selector(openWallet:), args, count);
55
+ }
56
+
57
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_initCGSDK(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
58
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "initCGSDK", @selector(initCGSDK:), args, count);
59
+ }
60
+
61
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_loadCampaignById(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
62
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "loadCampaignById", @selector(loadCampaignById:obj:), args, count);
63
+ }
64
+
65
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_loadCampaignWithUrl(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
66
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "loadCampaignWithUrl", @selector(loadCampaignWithUrl:obj:), args, count);
67
+ }
68
+
69
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_enableAnalytic(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
70
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "enableAnalytic", @selector(enableAnalytic:), args, count);
71
+ }
72
+
73
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_allowAnonymousRegistration(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
74
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "allowAnonymousRegistration", @selector(allowAnonymousRegistration:), args, count);
75
+ }
76
+
77
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_gluSDKDebuggingMode(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
78
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "gluSDKDebuggingMode", @selector(gluSDKDebuggingMode:), args, count);
79
+ }
80
+
81
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_enableEntryPoints(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
82
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "enableEntryPoints", @selector(enableEntryPoints:), args, count);
83
+ }
84
+
85
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_isFcmApn(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
86
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "isFcmApn", @selector(isFcmApn:), args, count);
87
+ }
88
+
89
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_UpdateProfile(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
90
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "UpdateProfile", @selector(UpdateProfile:), args, count);
91
+ }
92
+
93
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_DisplayCustomerGluNotification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
94
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "DisplayCustomerGluNotification", @selector(DisplayCustomerGluNotification), args, count);
95
+ }
96
+
97
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_DisplayCGNotification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
98
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "DisplayCGNotification", @selector(DisplayCGNotification:autoclosewebview:), args, count);
99
+ }
100
+
101
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_DisplayCGBackgroundNotification(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
102
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "DisplayCGBackgroundNotification", @selector(DisplayCGBackgroundNotification:autoclosewebview:), args, count);
103
+ }
104
+
105
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_SetCurrentClassName(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
106
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "SetCurrentClassName", @selector(SetCurrentClassName:resolve:reject:), args, count);
107
+ }
108
+
109
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_setApnFcmToken(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
110
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "setApnFcmToken", @selector(setApnFcmToken:b:), args, count);
111
+ }
112
+
113
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_getBannerHeight(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
114
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getBannerHeight", @selector(getBannerHeight:reject:), args, count);
115
+ }
116
+
117
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_addMarginsForPIP(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
118
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "addMarginsForPIP", @selector(addMarginsForPIP:vertical:type:), args, count);
119
+ }
120
+
121
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_addDelayForPIP(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
122
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "addDelayForPIP", @selector(addDelayForPIP:), args, count);
123
+ }
124
+
125
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_setOpenWalletAsFallback(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
126
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "setOpenWalletAsFallback", @selector(setOpenWalletAsFallback:), args, count);
127
+ }
128
+
129
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_isCampaignValid(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
130
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "isCampaignValid", @selector(isCampaignValid:dataFlag:resolve:reject:), args, count);
131
+ }
132
+
133
+ static facebook::jsi::Value __hostFunction_NativeReactNativeCustomergluSpecJSI_getCampaignStatus(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
134
+ return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getCampaignStatus", @selector(getCampaignStatus:dataFlag:resolve:reject:), args, count);
135
+ }
136
+
137
+ NativeReactNativeCustomergluSpecJSI::NativeReactNativeCustomergluSpecJSI(const ObjCTurboModule::InitParams &params)
138
+ : ObjCTurboModule(params) {
139
+
140
+ methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_addListener};
141
+
142
+
143
+ methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_removeListeners};
144
+
145
+
146
+ methodMap_["registerDevice"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_registerDevice};
147
+
148
+
149
+ methodMap_["UpdateUserAttributes"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_UpdateUserAttributes};
150
+
151
+
152
+ methodMap_["dataClear"] = MethodMetadata {0, __hostFunction_NativeReactNativeCustomergluSpecJSI_dataClear};
153
+
154
+
155
+ methodMap_["sendData"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_sendData};
156
+
157
+
158
+ methodMap_["openWallet"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_openWallet};
159
+
160
+
161
+ methodMap_["initCGSDK"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_initCGSDK};
162
+
163
+
164
+ methodMap_["loadCampaignById"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluSpecJSI_loadCampaignById};
165
+
166
+
167
+ methodMap_["loadCampaignWithUrl"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluSpecJSI_loadCampaignWithUrl};
168
+
169
+
170
+ methodMap_["enableAnalytic"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_enableAnalytic};
171
+
172
+
173
+ methodMap_["allowAnonymousRegistration"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_allowAnonymousRegistration};
174
+
175
+
176
+ methodMap_["gluSDKDebuggingMode"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_gluSDKDebuggingMode};
177
+
178
+
179
+ methodMap_["enableEntryPoints"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_enableEntryPoints};
180
+
181
+
182
+ methodMap_["isFcmApn"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_isFcmApn};
183
+
184
+
185
+ methodMap_["UpdateProfile"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_UpdateProfile};
186
+
187
+
188
+ methodMap_["DisplayCustomerGluNotification"] = MethodMetadata {0, __hostFunction_NativeReactNativeCustomergluSpecJSI_DisplayCustomerGluNotification};
189
+
190
+
191
+ methodMap_["DisplayCGNotification"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluSpecJSI_DisplayCGNotification};
192
+
193
+
194
+ methodMap_["DisplayCGBackgroundNotification"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluSpecJSI_DisplayCGBackgroundNotification};
195
+
196
+
197
+ methodMap_["SetCurrentClassName"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_SetCurrentClassName};
198
+
199
+
200
+ methodMap_["setApnFcmToken"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluSpecJSI_setApnFcmToken};
201
+
202
+
203
+ methodMap_["getBannerHeight"] = MethodMetadata {0, __hostFunction_NativeReactNativeCustomergluSpecJSI_getBannerHeight};
204
+
205
+
206
+ methodMap_["addMarginsForPIP"] = MethodMetadata {3, __hostFunction_NativeReactNativeCustomergluSpecJSI_addMarginsForPIP};
207
+
208
+
209
+ methodMap_["addDelayForPIP"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_addDelayForPIP};
210
+
211
+
212
+ methodMap_["setOpenWalletAsFallback"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluSpecJSI_setOpenWalletAsFallback};
213
+
214
+
215
+ methodMap_["isCampaignValid"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluSpecJSI_isCampaignValid};
216
+
217
+
218
+ methodMap_["getCampaignStatus"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluSpecJSI_getCampaignStatus};
219
+
220
+ }
221
+ } // namespace facebook::react
@@ -0,0 +1,106 @@
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: GenerateModuleObjCpp
8
+ *
9
+ * We create an umbrella header (and corresponding implementation) here since
10
+ * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
+ * must have a single output. More files => more genrule()s => slower builds.
12
+ */
13
+
14
+ #ifndef __cplusplus
15
+ #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16
+ #endif
17
+
18
+ // Avoid multiple includes of RNReactNativeCustomergluSpec symbols
19
+ #ifndef RNReactNativeCustomergluSpec_H
20
+ #define RNReactNativeCustomergluSpec_H
21
+
22
+ #import <Foundation/Foundation.h>
23
+ #import <RCTRequired/RCTRequired.h>
24
+ #import <RCTTypeSafety/RCTConvertHelpers.h>
25
+ #import <RCTTypeSafety/RCTTypedModuleConstants.h>
26
+ #import <React/RCTBridgeModule.h>
27
+ #import <React/RCTCxxConvert.h>
28
+ #import <React/RCTManagedPointer.h>
29
+ #import <ReactCommon/RCTTurboModule.h>
30
+ #import <optional>
31
+ #import <vector>
32
+
33
+
34
+ NS_ASSUME_NONNULL_BEGIN
35
+
36
+ @protocol NativeReactNativeCustomergluSpec <RCTBridgeModule, RCTTurboModule>
37
+
38
+ - (void)addListener:(NSString *)eventType;
39
+ - (void)removeListeners:(double)count;
40
+ - (void)registerDevice:(NSDictionary *)data
41
+ resolve:(RCTPromiseResolveBlock)resolve
42
+ reject:(RCTPromiseRejectBlock)reject;
43
+ - (void)UpdateUserAttributes:(NSDictionary *)userdata;
44
+ - (void)dataClear;
45
+ - (void)sendData:(NSDictionary *)obj;
46
+ - (void)openWallet:(NSDictionary *)obj;
47
+ - (void)initCGSDK:(NSString *)obj;
48
+ - (void)loadCampaignById:(NSString *)id
49
+ obj:(NSDictionary *)obj;
50
+ - (void)loadCampaignWithUrl:(NSString *)url
51
+ obj:(NSDictionary *)obj;
52
+ - (void)enableAnalytic:(BOOL)b;
53
+ - (void)allowAnonymousRegistration:(BOOL)b;
54
+ - (void)gluSDKDebuggingMode:(BOOL)b;
55
+ - (void)enableEntryPoints:(BOOL)b;
56
+ - (void)isFcmApn:(BOOL)id;
57
+ - (void)UpdateProfile:(NSDictionary *)obj;
58
+ - (void)DisplayCustomerGluNotification;
59
+ - (void)DisplayCGNotification:(NSDictionary *)obj
60
+ autoclosewebview:(NSNumber *)autoclosewebview;
61
+ - (void)DisplayCGBackgroundNotification:(NSDictionary *)obj
62
+ autoclosewebview:(NSNumber *)autoclosewebview;
63
+ - (void)SetCurrentClassName:(NSString *)clname
64
+ resolve:(RCTPromiseResolveBlock)resolve
65
+ reject:(RCTPromiseRejectBlock)reject;
66
+ - (void)setApnFcmToken:(NSString *)a
67
+ b:(NSString *)b;
68
+ - (void)getBannerHeight:(RCTPromiseResolveBlock)resolve
69
+ reject:(RCTPromiseRejectBlock)reject;
70
+ - (void)addMarginsForPIP:(double)horizontal
71
+ vertical:(double)vertical
72
+ type:(NSString *)type;
73
+ - (void)addDelayForPIP:(double)delay;
74
+ - (void)setOpenWalletAsFallback:(BOOL)value;
75
+ - (void)isCampaignValid:(NSString *)campaignId
76
+ dataFlag:(NSString *)dataFlag
77
+ resolve:(RCTPromiseResolveBlock)resolve
78
+ reject:(RCTPromiseRejectBlock)reject;
79
+ - (void)getCampaignStatus:(NSString *)campaignId
80
+ dataFlag:(NSString *)dataFlag
81
+ resolve:(RCTPromiseResolveBlock)resolve
82
+ reject:(RCTPromiseRejectBlock)reject;
83
+
84
+ @end
85
+
86
+ @interface NativeReactNativeCustomergluSpecBase : NSObject {
87
+ @protected
88
+ facebook::react::EventEmitterCallback _eventEmitterCallback;
89
+ }
90
+ - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper;
91
+
92
+
93
+ @end
94
+
95
+ namespace facebook::react {
96
+ /**
97
+ * ObjC++ class for module 'NativeReactNativeCustomerglu'
98
+ */
99
+ class JSI_EXPORT NativeReactNativeCustomergluSpecJSI : public ObjCTurboModule {
100
+ public:
101
+ NativeReactNativeCustomergluSpecJSI(const ObjCTurboModule::InitParams &params);
102
+ };
103
+ } // namespace facebook::react
104
+
105
+ NS_ASSUME_NONNULL_END
106
+ #endif // RNReactNativeCustomergluSpec_H
@@ -0,0 +1,237 @@
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 "RNReactNativeCustomergluSpecJSI.h"
11
+
12
+ namespace facebook::react {
13
+
14
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->addListener(
16
+ rt,
17
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
18
+ );
19
+ return jsi::Value::undefined();
20
+ }
21
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
22
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->removeListeners(
23
+ rt,
24
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
25
+ );
26
+ return jsi::Value::undefined();
27
+ }
28
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_registerDevice(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
29
+ return static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->registerDevice(
30
+ rt,
31
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
32
+ );
33
+ }
34
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_UpdateUserAttributes(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
35
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->UpdateUserAttributes(
36
+ rt,
37
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
38
+ );
39
+ return jsi::Value::undefined();
40
+ }
41
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_dataClear(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
42
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->dataClear(
43
+ rt
44
+ );
45
+ return jsi::Value::undefined();
46
+ }
47
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_sendData(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
48
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->sendData(
49
+ rt,
50
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
51
+ );
52
+ return jsi::Value::undefined();
53
+ }
54
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_openWallet(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
55
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->openWallet(
56
+ rt,
57
+ count <= 0 || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asObject(rt))
58
+ );
59
+ return jsi::Value::undefined();
60
+ }
61
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_initCGSDK(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
62
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->initCGSDK(
63
+ rt,
64
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
65
+ );
66
+ return jsi::Value::undefined();
67
+ }
68
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_loadCampaignById(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
69
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->loadCampaignById(
70
+ rt,
71
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
72
+ count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt))
73
+ );
74
+ return jsi::Value::undefined();
75
+ }
76
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_loadCampaignWithUrl(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
77
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->loadCampaignWithUrl(
78
+ rt,
79
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
80
+ count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt)
81
+ );
82
+ return jsi::Value::undefined();
83
+ }
84
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_enableAnalytic(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
85
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->enableAnalytic(
86
+ rt,
87
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool()
88
+ );
89
+ return jsi::Value::undefined();
90
+ }
91
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_allowAnonymousRegistration(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
92
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->allowAnonymousRegistration(
93
+ rt,
94
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool()
95
+ );
96
+ return jsi::Value::undefined();
97
+ }
98
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_gluSDKDebuggingMode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
99
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->gluSDKDebuggingMode(
100
+ rt,
101
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool()
102
+ );
103
+ return jsi::Value::undefined();
104
+ }
105
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_enableEntryPoints(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
106
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->enableEntryPoints(
107
+ rt,
108
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool()
109
+ );
110
+ return jsi::Value::undefined();
111
+ }
112
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_isFcmApn(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
113
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->isFcmApn(
114
+ rt,
115
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool()
116
+ );
117
+ return jsi::Value::undefined();
118
+ }
119
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_UpdateProfile(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
120
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->UpdateProfile(
121
+ rt,
122
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
123
+ );
124
+ return jsi::Value::undefined();
125
+ }
126
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_DisplayCustomerGluNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
127
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->DisplayCustomerGluNotification(
128
+ rt
129
+ );
130
+ return jsi::Value::undefined();
131
+ }
132
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_DisplayCGNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
133
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->DisplayCGNotification(
134
+ rt,
135
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt),
136
+ count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asBool())
137
+ );
138
+ return jsi::Value::undefined();
139
+ }
140
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_DisplayCGBackgroundNotification(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
141
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->DisplayCGBackgroundNotification(
142
+ rt,
143
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt),
144
+ count <= 1 || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asBool())
145
+ );
146
+ return jsi::Value::undefined();
147
+ }
148
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_SetCurrentClassName(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
149
+ return static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->SetCurrentClassName(
150
+ rt,
151
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
152
+ );
153
+ }
154
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_setApnFcmToken(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
155
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->setApnFcmToken(
156
+ rt,
157
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
158
+ count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
159
+ );
160
+ return jsi::Value::undefined();
161
+ }
162
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_getBannerHeight(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
163
+ return static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->getBannerHeight(
164
+ rt
165
+ );
166
+ }
167
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_addMarginsForPIP(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
168
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->addMarginsForPIP(
169
+ rt,
170
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber(),
171
+ count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber(),
172
+ count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
173
+ );
174
+ return jsi::Value::undefined();
175
+ }
176
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_addDelayForPIP(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
177
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->addDelayForPIP(
178
+ rt,
179
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
180
+ );
181
+ return jsi::Value::undefined();
182
+ }
183
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_setOpenWalletAsFallback(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
184
+ static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->setOpenWalletAsFallback(
185
+ rt,
186
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool()
187
+ );
188
+ return jsi::Value::undefined();
189
+ }
190
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_isCampaignValid(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
191
+ return static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->isCampaignValid(
192
+ rt,
193
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
194
+ count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
195
+ );
196
+ }
197
+ static jsi::Value __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_getCampaignStatus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
198
+ return static_cast<NativeReactNativeCustomergluCxxSpecJSI *>(&turboModule)->getCampaignStatus(
199
+ rt,
200
+ count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
201
+ count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
202
+ );
203
+ }
204
+
205
+ NativeReactNativeCustomergluCxxSpecJSI::NativeReactNativeCustomergluCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
206
+ : TurboModule("Rncustomerglu", jsInvoker) {
207
+ methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_addListener};
208
+ methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_removeListeners};
209
+ methodMap_["registerDevice"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_registerDevice};
210
+ methodMap_["UpdateUserAttributes"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_UpdateUserAttributes};
211
+ methodMap_["dataClear"] = MethodMetadata {0, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_dataClear};
212
+ methodMap_["sendData"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_sendData};
213
+ methodMap_["openWallet"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_openWallet};
214
+ methodMap_["initCGSDK"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_initCGSDK};
215
+ methodMap_["loadCampaignById"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_loadCampaignById};
216
+ methodMap_["loadCampaignWithUrl"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_loadCampaignWithUrl};
217
+ methodMap_["enableAnalytic"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_enableAnalytic};
218
+ methodMap_["allowAnonymousRegistration"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_allowAnonymousRegistration};
219
+ methodMap_["gluSDKDebuggingMode"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_gluSDKDebuggingMode};
220
+ methodMap_["enableEntryPoints"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_enableEntryPoints};
221
+ methodMap_["isFcmApn"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_isFcmApn};
222
+ methodMap_["UpdateProfile"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_UpdateProfile};
223
+ methodMap_["DisplayCustomerGluNotification"] = MethodMetadata {0, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_DisplayCustomerGluNotification};
224
+ methodMap_["DisplayCGNotification"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_DisplayCGNotification};
225
+ methodMap_["DisplayCGBackgroundNotification"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_DisplayCGBackgroundNotification};
226
+ methodMap_["SetCurrentClassName"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_SetCurrentClassName};
227
+ methodMap_["setApnFcmToken"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_setApnFcmToken};
228
+ methodMap_["getBannerHeight"] = MethodMetadata {0, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_getBannerHeight};
229
+ methodMap_["addMarginsForPIP"] = MethodMetadata {3, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_addMarginsForPIP};
230
+ methodMap_["addDelayForPIP"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_addDelayForPIP};
231
+ methodMap_["setOpenWalletAsFallback"] = MethodMetadata {1, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_setOpenWalletAsFallback};
232
+ methodMap_["isCampaignValid"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_isCampaignValid};
233
+ methodMap_["getCampaignStatus"] = MethodMetadata {2, __hostFunction_NativeReactNativeCustomergluCxxSpecJSI_getCampaignStatus};
234
+ }
235
+
236
+
237
+ } // namespace facebook::react