@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,39 +0,0 @@
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: GeneratePropsCpp.js
9
- */
10
-
11
- #include "Props.h"
12
- #include <react/renderer/core/PropsParserContext.h>
13
- #include <react/renderer/core/propsConversions.h>
14
-
15
- namespace facebook::react {
16
-
17
- GamificationBannerViewProps::GamificationBannerViewProps(
18
- const PropsParserContext &context,
19
- const GamificationBannerViewProps &sourceProps,
20
- const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
21
-
22
- bannerId(convertRawProp(context, rawProps, "bannerId", sourceProps.bannerId, {}))
23
- {}
24
- GamificationEmbedViewProps::GamificationEmbedViewProps(
25
- const PropsParserContext &context,
26
- const GamificationEmbedViewProps &sourceProps,
27
- const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
28
-
29
- embedId(convertRawProp(context, rawProps, "embedId", sourceProps.embedId, {}))
30
- {}
31
- GamificationLoyaltyViewProps::GamificationLoyaltyViewProps(
32
- const PropsParserContext &context,
33
- const GamificationLoyaltyViewProps &sourceProps,
34
- const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
35
-
36
- loyaltyId(convertRawProp(context, rawProps, "loyaltyId", sourceProps.loyaltyId, {}))
37
- {}
38
-
39
- } // namespace facebook::react
@@ -1,47 +0,0 @@
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: GeneratePropsH.js
9
- */
10
- #pragma once
11
-
12
- #include <react/renderer/components/view/ViewProps.h>
13
- #include <react/renderer/core/PropsParserContext.h>
14
-
15
- namespace facebook::react {
16
-
17
- class GamificationBannerViewProps final : public ViewProps {
18
- public:
19
- GamificationBannerViewProps() = default;
20
- GamificationBannerViewProps(const PropsParserContext& context, const GamificationBannerViewProps &sourceProps, const RawProps &rawProps);
21
-
22
- #pragma mark - Props
23
-
24
- std::string bannerId{};
25
- };
26
-
27
- class GamificationEmbedViewProps final : public ViewProps {
28
- public:
29
- GamificationEmbedViewProps() = default;
30
- GamificationEmbedViewProps(const PropsParserContext& context, const GamificationEmbedViewProps &sourceProps, const RawProps &rawProps);
31
-
32
- #pragma mark - Props
33
-
34
- std::string embedId{};
35
- };
36
-
37
- class GamificationLoyaltyViewProps final : public ViewProps {
38
- public:
39
- GamificationLoyaltyViewProps() = default;
40
- GamificationLoyaltyViewProps(const PropsParserContext& context, const GamificationLoyaltyViewProps &sourceProps, const RawProps &rawProps);
41
-
42
- #pragma mark - Props
43
-
44
- std::string loyaltyId{};
45
- };
46
-
47
- } // namespace facebook::react
@@ -1,28 +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: GenerateComponentHObjCpp.js
8
- */
9
-
10
- #import <Foundation/Foundation.h>
11
- #import <React/RCTDefines.h>
12
- #import <React/RCTLog.h>
13
-
14
- NS_ASSUME_NONNULL_BEGIN
15
-
16
- @protocol RCTGamificationBannerViewViewProtocol <NSObject>
17
-
18
- @end
19
-
20
- @protocol RCTGamificationEmbedViewViewProtocol <NSObject>
21
-
22
- @end
23
-
24
- @protocol RCTGamificationLoyaltyViewViewProtocol <NSObject>
25
-
26
- @end
27
-
28
- NS_ASSUME_NONNULL_END
@@ -1,291 +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: 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 "RNHydraLibSpec.h"
15
-
16
-
17
- @implementation NativeHydraLibSpecBase
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_NativeHydraLibSpecJSI_setHydraAccountConfig(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
30
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "setHydraAccountConfig", @selector(setHydraAccountConfig:resolve:reject:), args, count);
31
- }
32
-
33
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_setFirebaseRemoteConfigKeys(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
34
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "setFirebaseRemoteConfigKeys", @selector(setFirebaseRemoteConfigKeys:resolve:reject:), args, count);
35
- }
36
-
37
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_updateGeoConfig(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
38
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "updateGeoConfig", @selector(updateGeoConfig:resolve:reject:), args, count);
39
- }
40
-
41
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_signUp(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
42
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "signUp", @selector(signUp:customData:resolve:reject:), args, count);
43
- }
44
-
45
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_signIn(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
46
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "signIn", @selector(signIn:customData:resolve:reject:), args, count);
47
- }
48
-
49
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_updateUser(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
50
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "updateUser", @selector(updateUser:customData:subscriptions:resolve:reject:), args, count);
51
- }
52
-
53
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_signOut(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
54
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "signOut", @selector(signOut:resolve:reject:), args, count);
55
- }
56
-
57
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_updatePushPreferences(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
58
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "updatePushPreferences", @selector(updatePushPreferences:preferences:resolve:reject:), args, count);
59
- }
60
-
61
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_reportUserEvent(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
62
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "reportUserEvent", @selector(reportUserEvent:attributes:resolve:reject:), args, count);
63
- }
64
-
65
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_isSdkInitialized(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
66
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "isSdkInitialized", @selector(isSdkInitialized:reject:), args, count);
67
- }
68
-
69
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_getCurrentUserState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
70
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getCurrentUserState", @selector(getCurrentUserState:reject:), args, count);
71
- }
72
-
73
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_getVisitorDetails(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
74
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getVisitorDetails", @selector(getVisitorDetails:reject:), args, count);
75
- }
76
-
77
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_isVisitorFlowEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
78
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "isVisitorFlowEnabled", @selector(isVisitorFlowEnabled:reject:), args, count);
79
- }
80
-
81
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_gamificationScreenAppeared(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
82
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "gamificationScreenAppeared", @selector(gamificationScreenAppeared:resolve:reject:), args, count);
83
- }
84
-
85
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_gamificationScreenDisappeared(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
86
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "gamificationScreenDisappeared", @selector(gamificationScreenDisappeared:resolve:reject:), args, count);
87
- }
88
-
89
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_setCapToken(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
90
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "setCapToken", @selector(setCapToken:resolve:reject:), args, count);
91
- }
92
-
93
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_identify(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
94
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "identify", @selector(identify:customData:resolve:reject:), args, count);
95
- }
96
-
97
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_track(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
98
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "track", @selector(track:attributes:resolve:reject:), args, count);
99
- }
100
-
101
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_reset(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
102
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "reset", @selector(reset:resolve:reject:), args, count);
103
- }
104
-
105
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_openExternalUrl(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
106
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "openExternalUrl", @selector(openExternalUrl:resolve:reject:), args, count);
107
- }
108
-
109
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_getFCMToken(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
110
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getFCMToken", @selector(getFCMToken:reject:), args, count);
111
- }
112
-
113
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_requestPermission(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
114
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "requestPermission", @selector(requestPermission:reject:), args, count);
115
- }
116
-
117
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_showNotificationCenter(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
118
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "showNotificationCenter", @selector(showNotificationCenter:reject:), args, count);
119
- }
120
-
121
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_hideNotificationCenterIfShowing(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
122
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "hideNotificationCenterIfShowing", @selector(hideNotificationCenterIfShowing:reject:), args, count);
123
- }
124
-
125
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_getInboxMessages(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
126
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getInboxMessages", @selector(getInboxMessages:reject:), args, count);
127
- }
128
-
129
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_getUnreadInboxMessagesCount(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
130
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getUnreadInboxMessagesCount", @selector(getUnreadInboxMessagesCount:reject:), args, count);
131
- }
132
-
133
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_markInboxMessageAsRead(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
134
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "markInboxMessageAsRead", @selector(markInboxMessageAsRead:resolve:reject:), args, count);
135
- }
136
-
137
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_deleteInboxMessage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
138
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "deleteInboxMessage", @selector(deleteInboxMessage:resolve:reject:), args, count);
139
- }
140
-
141
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_deleteAllInboxMessages(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
142
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "deleteAllInboxMessages", @selector(deleteAllInboxMessages:reject:), args, count);
143
- }
144
-
145
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_selfHandledInAppResponse(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
146
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "selfHandledInAppResponse", @selector(selfHandledInAppResponse:handled:resolve:reject:), args, count);
147
- }
148
-
149
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_reportMessageClicked(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
150
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "reportMessageClicked", @selector(reportMessageClicked:resolve:reject:), args, count);
151
- }
152
-
153
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_reportMessageRating(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
154
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "reportMessageRating", @selector(reportMessageRating:rating:resolve:reject:), args, count);
155
- }
156
-
157
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_reportMessageFeedback(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
158
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "reportMessageFeedback", @selector(reportMessageFeedback:feedback:feedbackOptions:resolve:reject:), args, count);
159
- }
160
-
161
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_reportMessageDismissed(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
162
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "reportMessageDismissed", @selector(reportMessageDismissed:resolve:reject:), args, count);
163
- }
164
-
165
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_addListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
166
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "addListener", @selector(addListener:), args, count);
167
- }
168
-
169
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_removeListener(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
170
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "removeListener", @selector(removeListener:), args, count);
171
- }
172
-
173
- static facebook::jsi::Value __hostFunction_NativeHydraLibSpecJSI_removeListeners(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
174
- return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "removeListeners", @selector(removeListeners:), args, count);
175
- }
176
-
177
- NativeHydraLibSpecJSI::NativeHydraLibSpecJSI(const ObjCTurboModule::InitParams &params)
178
- : ObjCTurboModule(params) {
179
-
180
- methodMap_["setHydraAccountConfig"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_setHydraAccountConfig};
181
-
182
-
183
- methodMap_["setFirebaseRemoteConfigKeys"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_setFirebaseRemoteConfigKeys};
184
-
185
-
186
- methodMap_["updateGeoConfig"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_updateGeoConfig};
187
-
188
-
189
- methodMap_["signUp"] = MethodMetadata {2, __hostFunction_NativeHydraLibSpecJSI_signUp};
190
-
191
-
192
- methodMap_["signIn"] = MethodMetadata {2, __hostFunction_NativeHydraLibSpecJSI_signIn};
193
-
194
-
195
- methodMap_["updateUser"] = MethodMetadata {3, __hostFunction_NativeHydraLibSpecJSI_updateUser};
196
-
197
-
198
- methodMap_["signOut"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_signOut};
199
-
200
-
201
- methodMap_["updatePushPreferences"] = MethodMetadata {2, __hostFunction_NativeHydraLibSpecJSI_updatePushPreferences};
202
-
203
-
204
- methodMap_["reportUserEvent"] = MethodMetadata {2, __hostFunction_NativeHydraLibSpecJSI_reportUserEvent};
205
-
206
-
207
- methodMap_["isSdkInitialized"] = MethodMetadata {0, __hostFunction_NativeHydraLibSpecJSI_isSdkInitialized};
208
-
209
-
210
- methodMap_["getCurrentUserState"] = MethodMetadata {0, __hostFunction_NativeHydraLibSpecJSI_getCurrentUserState};
211
-
212
-
213
- methodMap_["getVisitorDetails"] = MethodMetadata {0, __hostFunction_NativeHydraLibSpecJSI_getVisitorDetails};
214
-
215
-
216
- methodMap_["isVisitorFlowEnabled"] = MethodMetadata {0, __hostFunction_NativeHydraLibSpecJSI_isVisitorFlowEnabled};
217
-
218
-
219
- methodMap_["gamificationScreenAppeared"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_gamificationScreenAppeared};
220
-
221
-
222
- methodMap_["gamificationScreenDisappeared"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_gamificationScreenDisappeared};
223
-
224
-
225
- methodMap_["setCapToken"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_setCapToken};
226
-
227
-
228
- methodMap_["identify"] = MethodMetadata {2, __hostFunction_NativeHydraLibSpecJSI_identify};
229
-
230
-
231
- methodMap_["track"] = MethodMetadata {2, __hostFunction_NativeHydraLibSpecJSI_track};
232
-
233
-
234
- methodMap_["reset"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_reset};
235
-
236
-
237
- methodMap_["openExternalUrl"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_openExternalUrl};
238
-
239
-
240
- methodMap_["getFCMToken"] = MethodMetadata {0, __hostFunction_NativeHydraLibSpecJSI_getFCMToken};
241
-
242
-
243
- methodMap_["requestPermission"] = MethodMetadata {0, __hostFunction_NativeHydraLibSpecJSI_requestPermission};
244
-
245
-
246
- methodMap_["showNotificationCenter"] = MethodMetadata {0, __hostFunction_NativeHydraLibSpecJSI_showNotificationCenter};
247
-
248
-
249
- methodMap_["hideNotificationCenterIfShowing"] = MethodMetadata {0, __hostFunction_NativeHydraLibSpecJSI_hideNotificationCenterIfShowing};
250
-
251
-
252
- methodMap_["getInboxMessages"] = MethodMetadata {0, __hostFunction_NativeHydraLibSpecJSI_getInboxMessages};
253
-
254
-
255
- methodMap_["getUnreadInboxMessagesCount"] = MethodMetadata {0, __hostFunction_NativeHydraLibSpecJSI_getUnreadInboxMessagesCount};
256
-
257
-
258
- methodMap_["markInboxMessageAsRead"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_markInboxMessageAsRead};
259
-
260
-
261
- methodMap_["deleteInboxMessage"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_deleteInboxMessage};
262
-
263
-
264
- methodMap_["deleteAllInboxMessages"] = MethodMetadata {0, __hostFunction_NativeHydraLibSpecJSI_deleteAllInboxMessages};
265
-
266
-
267
- methodMap_["selfHandledInAppResponse"] = MethodMetadata {2, __hostFunction_NativeHydraLibSpecJSI_selfHandledInAppResponse};
268
-
269
-
270
- methodMap_["reportMessageClicked"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_reportMessageClicked};
271
-
272
-
273
- methodMap_["reportMessageRating"] = MethodMetadata {2, __hostFunction_NativeHydraLibSpecJSI_reportMessageRating};
274
-
275
-
276
- methodMap_["reportMessageFeedback"] = MethodMetadata {3, __hostFunction_NativeHydraLibSpecJSI_reportMessageFeedback};
277
-
278
-
279
- methodMap_["reportMessageDismissed"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_reportMessageDismissed};
280
-
281
-
282
- methodMap_["addListener"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_addListener};
283
-
284
-
285
- methodMap_["removeListener"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_removeListener};
286
-
287
-
288
- methodMap_["removeListeners"] = MethodMetadata {1, __hostFunction_NativeHydraLibSpecJSI_removeListeners};
289
-
290
- }
291
- } // namespace facebook::react
@@ -1,167 +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: 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 RNHydraLibSpec symbols
19
- #ifndef RNHydraLibSpec_H
20
- #define RNHydraLibSpec_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 NativeHydraLibSpec <RCTBridgeModule, RCTTurboModule>
37
-
38
- - (void)setHydraAccountConfig:(NSDictionary *)hydraAccountConfig
39
- resolve:(RCTPromiseResolveBlock)resolve
40
- reject:(RCTPromiseRejectBlock)reject;
41
- - (void)setFirebaseRemoteConfigKeys:(NSDictionary *)remoteConfigKeys
42
- resolve:(RCTPromiseResolveBlock)resolve
43
- reject:(RCTPromiseRejectBlock)reject;
44
- - (void)updateGeoConfig:(NSDictionary *)geoConfig
45
- resolve:(RCTPromiseResolveBlock)resolve
46
- reject:(RCTPromiseRejectBlock)reject;
47
- - (void)signUp:(NSDictionary *)userDetails
48
- customData:(NSDictionary * _Nullable)customData
49
- resolve:(RCTPromiseResolveBlock)resolve
50
- reject:(RCTPromiseRejectBlock)reject;
51
- - (void)signIn:(NSDictionary *)userDetails
52
- customData:(NSDictionary * _Nullable)customData
53
- resolve:(RCTPromiseResolveBlock)resolve
54
- reject:(RCTPromiseRejectBlock)reject;
55
- - (void)updateUser:(NSDictionary *)userDetails
56
- customData:(NSDictionary * _Nullable)customData
57
- subscriptions:(NSArray * _Nullable)subscriptions
58
- resolve:(RCTPromiseResolveBlock)resolve
59
- reject:(RCTPromiseRejectBlock)reject;
60
- - (void)signOut:(NSString *)customerId
61
- resolve:(RCTPromiseResolveBlock)resolve
62
- reject:(RCTPromiseRejectBlock)reject;
63
- - (void)updatePushPreferences:(NSString *)customerId
64
- preferences:(NSDictionary *)preferences
65
- resolve:(RCTPromiseResolveBlock)resolve
66
- reject:(RCTPromiseRejectBlock)reject;
67
- - (void)reportUserEvent:(NSString *)eventName
68
- attributes:(NSDictionary * _Nullable)attributes
69
- resolve:(RCTPromiseResolveBlock)resolve
70
- reject:(RCTPromiseRejectBlock)reject;
71
- - (void)isSdkInitialized:(RCTPromiseResolveBlock)resolve
72
- reject:(RCTPromiseRejectBlock)reject;
73
- - (void)getCurrentUserState:(RCTPromiseResolveBlock)resolve
74
- reject:(RCTPromiseRejectBlock)reject;
75
- - (void)getVisitorDetails:(RCTPromiseResolveBlock)resolve
76
- reject:(RCTPromiseRejectBlock)reject;
77
- - (void)isVisitorFlowEnabled:(RCTPromiseResolveBlock)resolve
78
- reject:(RCTPromiseRejectBlock)reject;
79
- - (void)gamificationScreenAppeared:(NSString *)screenName
80
- resolve:(RCTPromiseResolveBlock)resolve
81
- reject:(RCTPromiseRejectBlock)reject;
82
- - (void)gamificationScreenDisappeared:(NSString *)screenName
83
- resolve:(RCTPromiseResolveBlock)resolve
84
- reject:(RCTPromiseRejectBlock)reject;
85
- - (void)setCapToken:(NSString *)token
86
- resolve:(RCTPromiseResolveBlock)resolve
87
- reject:(RCTPromiseRejectBlock)reject;
88
- - (void)identify:(NSDictionary *)userDetails
89
- customData:(NSDictionary * _Nullable)customData
90
- resolve:(RCTPromiseResolveBlock)resolve
91
- reject:(RCTPromiseRejectBlock)reject;
92
- - (void)track:(NSString *)eventName
93
- attributes:(NSDictionary * _Nullable)attributes
94
- resolve:(RCTPromiseResolveBlock)resolve
95
- reject:(RCTPromiseRejectBlock)reject;
96
- - (void)reset:(NSString *)customerId
97
- resolve:(RCTPromiseResolveBlock)resolve
98
- reject:(RCTPromiseRejectBlock)reject;
99
- - (void)openExternalUrl:(NSString *)url
100
- resolve:(RCTPromiseResolveBlock)resolve
101
- reject:(RCTPromiseRejectBlock)reject;
102
- - (void)getFCMToken:(RCTPromiseResolveBlock)resolve
103
- reject:(RCTPromiseRejectBlock)reject;
104
- - (void)requestPermission:(RCTPromiseResolveBlock)resolve
105
- reject:(RCTPromiseRejectBlock)reject;
106
- - (void)showNotificationCenter:(RCTPromiseResolveBlock)resolve
107
- reject:(RCTPromiseRejectBlock)reject;
108
- - (void)hideNotificationCenterIfShowing:(RCTPromiseResolveBlock)resolve
109
- reject:(RCTPromiseRejectBlock)reject;
110
- - (void)getInboxMessages:(RCTPromiseResolveBlock)resolve
111
- reject:(RCTPromiseRejectBlock)reject;
112
- - (void)getUnreadInboxMessagesCount:(RCTPromiseResolveBlock)resolve
113
- reject:(RCTPromiseRejectBlock)reject;
114
- - (void)markInboxMessageAsRead:(NSDictionary *)inboxMessage
115
- resolve:(RCTPromiseResolveBlock)resolve
116
- reject:(RCTPromiseRejectBlock)reject;
117
- - (void)deleteInboxMessage:(NSDictionary *)inboxMessage
118
- resolve:(RCTPromiseResolveBlock)resolve
119
- reject:(RCTPromiseRejectBlock)reject;
120
- - (void)deleteAllInboxMessages:(RCTPromiseResolveBlock)resolve
121
- reject:(RCTPromiseRejectBlock)reject;
122
- - (void)selfHandledInAppResponse:(NSDictionary *)message
123
- handled:(BOOL)handled
124
- resolve:(RCTPromiseResolveBlock)resolve
125
- reject:(RCTPromiseRejectBlock)reject;
126
- - (void)reportMessageClicked:(NSDictionary *)message
127
- resolve:(RCTPromiseResolveBlock)resolve
128
- reject:(RCTPromiseRejectBlock)reject;
129
- - (void)reportMessageRating:(NSDictionary *)message
130
- rating:(double)rating
131
- resolve:(RCTPromiseResolveBlock)resolve
132
- reject:(RCTPromiseRejectBlock)reject;
133
- - (void)reportMessageFeedback:(NSDictionary *)message
134
- feedback:(NSString *)feedback
135
- feedbackOptions:(NSArray *)feedbackOptions
136
- resolve:(RCTPromiseResolveBlock)resolve
137
- reject:(RCTPromiseRejectBlock)reject;
138
- - (void)reportMessageDismissed:(NSDictionary *)message
139
- resolve:(RCTPromiseResolveBlock)resolve
140
- reject:(RCTPromiseRejectBlock)reject;
141
- - (void)addListener:(NSString *)eventName;
142
- - (void)removeListener:(NSString *)eventName;
143
- - (void)removeListeners:(double)count;
144
-
145
- @end
146
-
147
- @interface NativeHydraLibSpecBase : NSObject {
148
- @protected
149
- facebook::react::EventEmitterCallback _eventEmitterCallback;
150
- }
151
- - (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper;
152
-
153
-
154
- @end
155
-
156
- namespace facebook::react {
157
- /**
158
- * ObjC++ class for module 'NativeHydraLib'
159
- */
160
- class JSI_EXPORT NativeHydraLibSpecJSI : public ObjCTurboModule {
161
- public:
162
- NativeHydraLibSpecJSI(const ObjCTurboModule::InitParams &params);
163
- };
164
- } // namespace facebook::react
165
-
166
- NS_ASSUME_NONNULL_END
167
- #endif // RNHydraLibSpec_H
@@ -1,19 +0,0 @@
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: GenerateShadowNodeCpp.js
9
- */
10
-
11
- #include "ShadowNodes.h"
12
-
13
- namespace facebook::react {
14
-
15
- extern const char GamificationBannerViewComponentName[] = "GamificationBannerView";
16
- extern const char GamificationEmbedViewComponentName[] = "GamificationEmbedView";
17
- extern const char GamificationLoyaltyViewComponentName[] = "GamificationLoyaltyView";
18
-
19
- } // namespace facebook::react
@@ -1,54 +0,0 @@
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: GenerateShadowNodeH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include "EventEmitters.h"
14
- #include "Props.h"
15
- #include "States.h"
16
- #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
- #include <jsi/jsi.h>
18
-
19
- namespace facebook::react {
20
-
21
- JSI_EXPORT extern const char GamificationBannerViewComponentName[];
22
-
23
- /*
24
- * `ShadowNode` for <GamificationBannerView> component.
25
- */
26
- using GamificationBannerViewShadowNode = ConcreteViewShadowNode<
27
- GamificationBannerViewComponentName,
28
- GamificationBannerViewProps,
29
- GamificationBannerViewEventEmitter,
30
- GamificationBannerViewState>;
31
-
32
- JSI_EXPORT extern const char GamificationEmbedViewComponentName[];
33
-
34
- /*
35
- * `ShadowNode` for <GamificationEmbedView> component.
36
- */
37
- using GamificationEmbedViewShadowNode = ConcreteViewShadowNode<
38
- GamificationEmbedViewComponentName,
39
- GamificationEmbedViewProps,
40
- GamificationEmbedViewEventEmitter,
41
- GamificationEmbedViewState>;
42
-
43
- JSI_EXPORT extern const char GamificationLoyaltyViewComponentName[];
44
-
45
- /*
46
- * `ShadowNode` for <GamificationLoyaltyView> component.
47
- */
48
- using GamificationLoyaltyViewShadowNode = ConcreteViewShadowNode<
49
- GamificationLoyaltyViewComponentName,
50
- GamificationLoyaltyViewProps,
51
- GamificationLoyaltyViewEventEmitter,
52
- GamificationLoyaltyViewState>;
53
-
54
- } // namespace facebook::react
@@ -1,16 +0,0 @@
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: GenerateStateCpp.js
9
- */
10
- #include "States.h"
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
- } // namespace facebook::react