@capillarytech/react-native-hydra-lib 1.7.0-beta.1 → 1.7.0-beta.2

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 (61) hide show
  1. package/android/build.gradle +4 -6
  2. package/android/src/main/java/com/hydralib/hydrasdk/HydraCore.kt +31 -0
  3. package/android/src/newarch/HydraLibModule.kt +8 -0
  4. package/android/src/oldarch/HydraLibModule.kt +10 -0
  5. package/ios/GamificationViews/GamificationBannerViewComponentView.mm +4 -4
  6. package/ios/GamificationViews/GamificationEmbedViewComponentView.mm +4 -4
  7. package/ios/GamificationViews/GamificationLoyaltyViewComponentView.mm +4 -4
  8. package/ios/HydraLib.h +3 -4
  9. package/ios/HydraLib.mm +8 -0
  10. package/ios/HydraSDK/HydraSDKCore.swift +21 -0
  11. package/lib/commonjs/NativeHydraLib.js.map +1 -1
  12. package/lib/commonjs/hydra-apis/Hydra.js +6 -0
  13. package/lib/commonjs/hydra-apis/Hydra.js.map +1 -1
  14. package/lib/module/NativeHydraLib.js.map +1 -1
  15. package/lib/module/hydra-apis/Hydra.js +6 -0
  16. package/lib/module/hydra-apis/Hydra.js.map +1 -1
  17. package/lib/typescript/commonjs/src/NativeHydraLib.d.ts +2 -0
  18. package/lib/typescript/commonjs/src/NativeHydraLib.d.ts.map +1 -1
  19. package/lib/typescript/commonjs/src/hydra-apis/Hydra.d.ts +2 -0
  20. package/lib/typescript/commonjs/src/hydra-apis/Hydra.d.ts.map +1 -1
  21. package/lib/typescript/module/src/NativeHydraLib.d.ts +2 -0
  22. package/lib/typescript/module/src/NativeHydraLib.d.ts.map +1 -1
  23. package/lib/typescript/module/src/hydra-apis/Hydra.d.ts +2 -0
  24. package/lib/typescript/module/src/hydra-apis/Hydra.d.ts.map +1 -1
  25. package/package.json +4 -3
  26. package/react-native-hydra-lib.podspec +5 -0
  27. package/react-native.config.js +9 -23
  28. package/sbom.spdx.json +2 -2
  29. package/src/NativeHydraLib.ts +2 -0
  30. package/src/hydra-apis/Hydra.ts +8 -0
  31. package/android/generated/java/com/hydralib/NativeHydraLibSpec.java +0 -185
  32. package/android/generated/jni/CMakeLists.txt +0 -36
  33. package/android/generated/jni/RNHydraLibSpec-generated.cpp +0 -248
  34. package/android/generated/jni/RNHydraLibSpec.h +0 -31
  35. package/android/generated/jni/react/renderer/components/RNHydraLibSpec/ComponentDescriptors.cpp +0 -24
  36. package/android/generated/jni/react/renderer/components/RNHydraLibSpec/ComponentDescriptors.h +0 -26
  37. package/android/generated/jni/react/renderer/components/RNHydraLibSpec/EventEmitters.cpp +0 -18
  38. package/android/generated/jni/react/renderer/components/RNHydraLibSpec/EventEmitters.h +0 -37
  39. package/android/generated/jni/react/renderer/components/RNHydraLibSpec/Props.cpp +0 -39
  40. package/android/generated/jni/react/renderer/components/RNHydraLibSpec/Props.h +0 -47
  41. package/android/generated/jni/react/renderer/components/RNHydraLibSpec/RNHydraLibSpecJSI-generated.cpp +0 -283
  42. package/android/generated/jni/react/renderer/components/RNHydraLibSpec/RNHydraLibSpecJSI.h +0 -395
  43. package/android/generated/jni/react/renderer/components/RNHydraLibSpec/ShadowNodes.cpp +0 -19
  44. package/android/generated/jni/react/renderer/components/RNHydraLibSpec/ShadowNodes.h +0 -54
  45. package/android/generated/jni/react/renderer/components/RNHydraLibSpec/States.cpp +0 -16
  46. package/android/generated/jni/react/renderer/components/RNHydraLibSpec/States.h +0 -53
  47. package/ios/generated/RNHydraLibSpec/ComponentDescriptors.cpp +0 -24
  48. package/ios/generated/RNHydraLibSpec/ComponentDescriptors.h +0 -26
  49. package/ios/generated/RNHydraLibSpec/EventEmitters.cpp +0 -18
  50. package/ios/generated/RNHydraLibSpec/EventEmitters.h +0 -37
  51. package/ios/generated/RNHydraLibSpec/Props.cpp +0 -39
  52. package/ios/generated/RNHydraLibSpec/Props.h +0 -47
  53. package/ios/generated/RNHydraLibSpec/RCTComponentViewHelpers.h +0 -28
  54. package/ios/generated/RNHydraLibSpec/RNHydraLibSpec-generated.mm +0 -291
  55. package/ios/generated/RNHydraLibSpec/RNHydraLibSpec.h +0 -167
  56. package/ios/generated/RNHydraLibSpec/ShadowNodes.cpp +0 -19
  57. package/ios/generated/RNHydraLibSpec/ShadowNodes.h +0 -54
  58. package/ios/generated/RNHydraLibSpec/States.cpp +0 -16
  59. package/ios/generated/RNHydraLibSpec/States.h +0 -53
  60. package/ios/generated/RNHydraLibSpecJSI-generated.cpp +0 -283
  61. package/ios/generated/RNHydraLibSpecJSI.h +0 -395
@@ -1,53 +0,0 @@
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: GenerateStateH.js
8
- */
9
- #pragma once
10
-
11
- #ifdef ANDROID
12
- #include <folly/dynamic.h>
13
- #endif
14
-
15
- namespace facebook::react {
16
-
17
- class GamificationBannerViewState {
18
- public:
19
- GamificationBannerViewState() = default;
20
-
21
- #ifdef ANDROID
22
- GamificationBannerViewState(GamificationBannerViewState const &previousState, folly::dynamic data){};
23
- folly::dynamic getDynamic() const {
24
- return {};
25
- };
26
- #endif
27
- };
28
-
29
- class GamificationEmbedViewState {
30
- public:
31
- GamificationEmbedViewState() = default;
32
-
33
- #ifdef ANDROID
34
- GamificationEmbedViewState(GamificationEmbedViewState const &previousState, folly::dynamic data){};
35
- folly::dynamic getDynamic() const {
36
- return {};
37
- };
38
- #endif
39
- };
40
-
41
- class GamificationLoyaltyViewState {
42
- public:
43
- GamificationLoyaltyViewState() = default;
44
-
45
- #ifdef ANDROID
46
- GamificationLoyaltyViewState(GamificationLoyaltyViewState const &previousState, folly::dynamic data){};
47
- folly::dynamic getDynamic() const {
48
- return {};
49
- };
50
- #endif
51
- };
52
-
53
- } // namespace facebook::react
@@ -1,283 +0,0 @@
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 "RNHydraLibSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_setHydraAccountConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->setHydraAccountConfig(
16
- rt,
17
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
18
- );
19
- }
20
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_setFirebaseRemoteConfigKeys(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
21
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->setFirebaseRemoteConfigKeys(
22
- rt,
23
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
24
- );
25
- }
26
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_updateGeoConfig(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
27
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->updateGeoConfig(
28
- rt,
29
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
30
- );
31
- }
32
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_signUp(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
33
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->signUp(
34
- rt,
35
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt),
36
- count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt))
37
- );
38
- }
39
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_signIn(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
40
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->signIn(
41
- rt,
42
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt),
43
- count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt))
44
- );
45
- }
46
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_updateUser(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
47
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->updateUser(
48
- rt,
49
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt),
50
- count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt)),
51
- count <= 2 || args[2].isNull() || args[2].isUndefined() ? std::nullopt : std::make_optional(args[2].asObject(rt).asArray(rt))
52
- );
53
- }
54
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_signOut(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
55
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->signOut(
56
- rt,
57
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
58
- );
59
- }
60
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_updatePushPreferences(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
61
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->updatePushPreferences(
62
- rt,
63
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
64
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt)
65
- );
66
- }
67
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_reportUserEvent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
68
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->reportUserEvent(
69
- rt,
70
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
71
- count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt))
72
- );
73
- }
74
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_isSdkInitialized(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
75
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->isSdkInitialized(
76
- rt
77
- );
78
- }
79
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_getCurrentUserState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
80
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->getCurrentUserState(
81
- rt
82
- );
83
- }
84
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_getVisitorDetails(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
85
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->getVisitorDetails(
86
- rt
87
- );
88
- }
89
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_isVisitorFlowEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
90
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->isVisitorFlowEnabled(
91
- rt
92
- );
93
- }
94
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_gamificationScreenAppeared(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
95
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->gamificationScreenAppeared(
96
- rt,
97
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
98
- );
99
- }
100
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_gamificationScreenDisappeared(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
101
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->gamificationScreenDisappeared(
102
- rt,
103
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
104
- );
105
- }
106
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_setCapToken(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
107
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->setCapToken(
108
- rt,
109
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
110
- );
111
- }
112
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_identify(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
113
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->identify(
114
- rt,
115
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt),
116
- count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt))
117
- );
118
- }
119
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_track(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
120
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->track(
121
- rt,
122
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
123
- count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asObject(rt))
124
- );
125
- }
126
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_reset(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
127
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->reset(
128
- rt,
129
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
130
- );
131
- }
132
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_openExternalUrl(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
133
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->openExternalUrl(
134
- rt,
135
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
136
- );
137
- }
138
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_getFCMToken(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
139
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->getFCMToken(
140
- rt
141
- );
142
- }
143
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_requestPermission(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
144
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->requestPermission(
145
- rt
146
- );
147
- }
148
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_showNotificationCenter(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
149
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->showNotificationCenter(
150
- rt
151
- );
152
- }
153
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_hideNotificationCenterIfShowing(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
154
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->hideNotificationCenterIfShowing(
155
- rt
156
- );
157
- }
158
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_getInboxMessages(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
159
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->getInboxMessages(
160
- rt
161
- );
162
- }
163
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_getUnreadInboxMessagesCount(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
164
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->getUnreadInboxMessagesCount(
165
- rt
166
- );
167
- }
168
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_markInboxMessageAsRead(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
169
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->markInboxMessageAsRead(
170
- rt,
171
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
172
- );
173
- }
174
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_deleteInboxMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
175
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->deleteInboxMessage(
176
- rt,
177
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
178
- );
179
- }
180
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_deleteAllInboxMessages(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
181
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->deleteAllInboxMessages(
182
- rt
183
- );
184
- }
185
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_selfHandledInAppResponse(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
186
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->selfHandledInAppResponse(
187
- rt,
188
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt),
189
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asBool()
190
- );
191
- }
192
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_reportMessageClicked(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
193
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->reportMessageClicked(
194
- rt,
195
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
196
- );
197
- }
198
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_reportMessageRating(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
199
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->reportMessageRating(
200
- rt,
201
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt),
202
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber()
203
- );
204
- }
205
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_reportMessageFeedback(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
206
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->reportMessageFeedback(
207
- rt,
208
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt),
209
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
210
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asObject(rt).asArray(rt)
211
- );
212
- }
213
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_reportMessageDismissed(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
214
- return static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->reportMessageDismissed(
215
- rt,
216
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt)
217
- );
218
- }
219
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_addListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
220
- static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->addListener(
221
- rt,
222
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
223
- );
224
- return jsi::Value::undefined();
225
- }
226
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_removeListener(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
227
- static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->removeListener(
228
- rt,
229
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
230
- );
231
- return jsi::Value::undefined();
232
- }
233
- static jsi::Value __hostFunction_NativeHydraLibCxxSpecJSI_removeListeners(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
234
- static_cast<NativeHydraLibCxxSpecJSI *>(&turboModule)->removeListeners(
235
- rt,
236
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
237
- );
238
- return jsi::Value::undefined();
239
- }
240
-
241
- NativeHydraLibCxxSpecJSI::NativeHydraLibCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
242
- : TurboModule("HydraLib", jsInvoker) {
243
- methodMap_["setHydraAccountConfig"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_setHydraAccountConfig};
244
- methodMap_["setFirebaseRemoteConfigKeys"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_setFirebaseRemoteConfigKeys};
245
- methodMap_["updateGeoConfig"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_updateGeoConfig};
246
- methodMap_["signUp"] = MethodMetadata {2, __hostFunction_NativeHydraLibCxxSpecJSI_signUp};
247
- methodMap_["signIn"] = MethodMetadata {2, __hostFunction_NativeHydraLibCxxSpecJSI_signIn};
248
- methodMap_["updateUser"] = MethodMetadata {3, __hostFunction_NativeHydraLibCxxSpecJSI_updateUser};
249
- methodMap_["signOut"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_signOut};
250
- methodMap_["updatePushPreferences"] = MethodMetadata {2, __hostFunction_NativeHydraLibCxxSpecJSI_updatePushPreferences};
251
- methodMap_["reportUserEvent"] = MethodMetadata {2, __hostFunction_NativeHydraLibCxxSpecJSI_reportUserEvent};
252
- methodMap_["isSdkInitialized"] = MethodMetadata {0, __hostFunction_NativeHydraLibCxxSpecJSI_isSdkInitialized};
253
- methodMap_["getCurrentUserState"] = MethodMetadata {0, __hostFunction_NativeHydraLibCxxSpecJSI_getCurrentUserState};
254
- methodMap_["getVisitorDetails"] = MethodMetadata {0, __hostFunction_NativeHydraLibCxxSpecJSI_getVisitorDetails};
255
- methodMap_["isVisitorFlowEnabled"] = MethodMetadata {0, __hostFunction_NativeHydraLibCxxSpecJSI_isVisitorFlowEnabled};
256
- methodMap_["gamificationScreenAppeared"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_gamificationScreenAppeared};
257
- methodMap_["gamificationScreenDisappeared"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_gamificationScreenDisappeared};
258
- methodMap_["setCapToken"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_setCapToken};
259
- methodMap_["identify"] = MethodMetadata {2, __hostFunction_NativeHydraLibCxxSpecJSI_identify};
260
- methodMap_["track"] = MethodMetadata {2, __hostFunction_NativeHydraLibCxxSpecJSI_track};
261
- methodMap_["reset"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_reset};
262
- methodMap_["openExternalUrl"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_openExternalUrl};
263
- methodMap_["getFCMToken"] = MethodMetadata {0, __hostFunction_NativeHydraLibCxxSpecJSI_getFCMToken};
264
- methodMap_["requestPermission"] = MethodMetadata {0, __hostFunction_NativeHydraLibCxxSpecJSI_requestPermission};
265
- methodMap_["showNotificationCenter"] = MethodMetadata {0, __hostFunction_NativeHydraLibCxxSpecJSI_showNotificationCenter};
266
- methodMap_["hideNotificationCenterIfShowing"] = MethodMetadata {0, __hostFunction_NativeHydraLibCxxSpecJSI_hideNotificationCenterIfShowing};
267
- methodMap_["getInboxMessages"] = MethodMetadata {0, __hostFunction_NativeHydraLibCxxSpecJSI_getInboxMessages};
268
- methodMap_["getUnreadInboxMessagesCount"] = MethodMetadata {0, __hostFunction_NativeHydraLibCxxSpecJSI_getUnreadInboxMessagesCount};
269
- methodMap_["markInboxMessageAsRead"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_markInboxMessageAsRead};
270
- methodMap_["deleteInboxMessage"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_deleteInboxMessage};
271
- methodMap_["deleteAllInboxMessages"] = MethodMetadata {0, __hostFunction_NativeHydraLibCxxSpecJSI_deleteAllInboxMessages};
272
- methodMap_["selfHandledInAppResponse"] = MethodMetadata {2, __hostFunction_NativeHydraLibCxxSpecJSI_selfHandledInAppResponse};
273
- methodMap_["reportMessageClicked"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_reportMessageClicked};
274
- methodMap_["reportMessageRating"] = MethodMetadata {2, __hostFunction_NativeHydraLibCxxSpecJSI_reportMessageRating};
275
- methodMap_["reportMessageFeedback"] = MethodMetadata {3, __hostFunction_NativeHydraLibCxxSpecJSI_reportMessageFeedback};
276
- methodMap_["reportMessageDismissed"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_reportMessageDismissed};
277
- methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_addListener};
278
- methodMap_["removeListener"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_removeListener};
279
- methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeHydraLibCxxSpecJSI_removeListeners};
280
- }
281
-
282
-
283
- } // namespace facebook::react