@capillarytech/react-native-hydra-lib 1.7.0-beta.1 → 1.7.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +12 -13
- package/android/src/main/java/com/hydralib/delegates/NonHydraNotificationActivity.kt +22 -10
- package/android/src/main/java/com/hydralib/eventemitter/HydraEventEmitter.kt +34 -4
- package/android/src/main/java/com/hydralib/eventemitter/HydraEventType.kt +5 -1
- package/android/src/main/java/com/hydralib/gamification/GamificationBannerViewManager.kt +34 -3
- package/android/src/main/java/com/hydralib/gamification/GamificationEmbedViewManager.kt +25 -4
- package/android/src/main/java/com/hydralib/gamification/GamificationLoyaltyViewManager.kt +41 -6
- package/android/src/main/java/com/hydralib/hydrasdk/HydraCore.kt +109 -6
- package/android/src/main/java/com/hydralib/hydrasdk/HydraInAppMessages.kt +68 -41
- package/android/src/main/java/com/hydralib/hydrasdk/HydraInbox.kt +2 -2
- package/android/src/main/java/com/hydralib/hydrasdk/HydraPushNotification.kt +29 -1
- package/android/src/newarch/HydraLibModule.kt +16 -0
- package/android/src/oldarch/HydraLibModule.kt +20 -0
- package/ios/Delegates/HydraApplicationDelegate.swift +8 -0
- package/ios/EventEmitter/HydraEventType.swift +2 -0
- package/ios/GamificationViews/GamificationBannerViewComponentView.mm +43 -6
- package/ios/GamificationViews/GamificationEmbedViewComponentView.mm +37 -6
- package/ios/GamificationViews/GamificationLoyaltyViewComponentView.mm +45 -5
- package/ios/HydraLib.h +3 -4
- package/ios/HydraLib.mm +16 -0
- package/ios/HydraSDK/HydraInAppMessages.swift +35 -8
- package/ios/HydraSDK/HydraInbox.swift +36 -9
- package/ios/HydraSDK/HydraInboxUI.swift +5 -1
- package/ios/HydraSDK/HydraPushNotification.swift +2 -2
- package/ios/HydraSDK/HydraSDKCore.swift +185 -82
- package/ios/Utils/HydraExtensions.swift +1 -1
- package/lib/commonjs/GamificationBannerViewNativeComponent.ts +10 -0
- package/lib/commonjs/GamificationEmbedViewNativeComponent.ts +10 -0
- package/lib/commonjs/GamificationLoyaltyViewNativeComponent.ts +10 -0
- package/lib/commonjs/NativeHydraLib.ts +85 -0
- package/lib/commonjs/components/GamificationBannerView.js +1 -1
- package/lib/commonjs/components/GamificationEmbedView.js +1 -1
- package/lib/commonjs/components/GamificationLoyaltyView.js +1 -1
- package/lib/commonjs/hydra-apis/Hydra.js +14 -1
- package/lib/commonjs/hydra-apis/Hydra.js.map +1 -1
- package/lib/commonjs/hydra-apis/HydraCore.js +1 -1
- package/lib/commonjs/hydra-apis/HydraInAppMessaging.js +1 -1
- package/lib/commonjs/hydra-apis/HydraInbox.js +1 -1
- package/lib/commonjs/hydra-apis/HydraInboxUI.js +1 -1
- package/lib/commonjs/hydra-apis/HydraNativeEventEmitter.js +11 -1
- package/lib/commonjs/hydra-apis/HydraNativeEventEmitter.js.map +1 -1
- package/lib/commonjs/hydra-apis/HydraPushNotification.js +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/HydraNativeEvent.js +2 -0
- package/lib/commonjs/models/HydraNativeEvent.js.map +1 -1
- package/lib/commonjs/models/ThemeMode.js +14 -0
- package/lib/commonjs/models/ThemeMode.js.map +1 -0
- package/lib/module/GamificationBannerViewNativeComponent.ts +10 -0
- package/lib/module/GamificationEmbedViewNativeComponent.ts +10 -0
- package/lib/module/GamificationLoyaltyViewNativeComponent.ts +10 -0
- package/lib/module/NativeHydraLib.ts +85 -0
- package/lib/module/components/GamificationBannerView.js +1 -1
- package/lib/module/components/GamificationEmbedView.js +1 -1
- package/lib/module/components/GamificationLoyaltyView.js +1 -1
- package/lib/module/hydra-apis/Hydra.js +14 -1
- package/lib/module/hydra-apis/Hydra.js.map +1 -1
- package/lib/module/hydra-apis/HydraCore.js +1 -1
- package/lib/module/hydra-apis/HydraInAppMessaging.js +1 -1
- package/lib/module/hydra-apis/HydraInbox.js +1 -1
- package/lib/module/hydra-apis/HydraInboxUI.js +1 -1
- package/lib/module/hydra-apis/HydraNativeEventEmitter.js +11 -1
- package/lib/module/hydra-apis/HydraNativeEventEmitter.js.map +1 -1
- package/lib/module/hydra-apis/HydraPushNotification.js +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/HydraNativeEvent.js +2 -0
- package/lib/module/models/HydraNativeEvent.js.map +1 -1
- package/lib/module/models/ThemeMode.js +10 -0
- package/lib/module/models/ThemeMode.js.map +1 -0
- package/lib/typescript/commonjs/src/NativeHydraLib.d.ts +4 -0
- package/lib/typescript/commonjs/src/NativeHydraLib.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hydra-apis/Hydra.d.ts +5 -0
- package/lib/typescript/commonjs/src/hydra-apis/Hydra.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hydra-apis/HydraNativeEventEmitter.d.ts +2 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraNativeEventEmitter.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/HydraNativeEvent.d.ts +3 -1
- package/lib/typescript/commonjs/src/models/HydraNativeEvent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/ThemeMode.d.ts +7 -0
- package/lib/typescript/commonjs/src/models/ThemeMode.d.ts.map +1 -0
- package/lib/typescript/module/src/NativeHydraLib.d.ts +4 -0
- package/lib/typescript/module/src/NativeHydraLib.d.ts.map +1 -1
- package/lib/typescript/module/src/hydra-apis/Hydra.d.ts +5 -0
- package/lib/typescript/module/src/hydra-apis/Hydra.d.ts.map +1 -1
- package/lib/typescript/module/src/hydra-apis/HydraNativeEventEmitter.d.ts +2 -0
- package/lib/typescript/module/src/hydra-apis/HydraNativeEventEmitter.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +2 -1
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/HydraNativeEvent.d.ts +3 -1
- package/lib/typescript/module/src/models/HydraNativeEvent.d.ts.map +1 -1
- package/lib/typescript/module/src/models/ThemeMode.d.ts +7 -0
- package/lib/typescript/module/src/models/ThemeMode.d.ts.map +1 -0
- package/package.json +13 -4
- package/react-native-hydra-lib.podspec +9 -1
- package/react-native.config.js +9 -23
- package/sbom.spdx.json +4 -4
- package/scripts/HydraPods.rb +1 -1
- package/scripts/preserve-codegen-specs.js +117 -0
- package/src/NativeHydraLib.ts +4 -0
- package/src/hydra-apis/Hydra.ts +18 -0
- package/src/hydra-apis/HydraNativeEventEmitter.ts +20 -0
- package/src/index.tsx +2 -0
- package/src/models/HydraNativeEvent.ts +2 -0
- package/src/models/ThemeMode.ts +6 -0
- package/android/generated/java/com/hydralib/NativeHydraLibSpec.java +0 -185
- package/android/generated/jni/CMakeLists.txt +0 -36
- package/android/generated/jni/RNHydraLibSpec-generated.cpp +0 -248
- package/android/generated/jni/RNHydraLibSpec.h +0 -31
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/ComponentDescriptors.cpp +0 -24
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/ComponentDescriptors.h +0 -26
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/EventEmitters.cpp +0 -18
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/EventEmitters.h +0 -37
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/Props.cpp +0 -39
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/Props.h +0 -47
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/RNHydraLibSpecJSI-generated.cpp +0 -283
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/RNHydraLibSpecJSI.h +0 -395
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/ShadowNodes.cpp +0 -19
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/ShadowNodes.h +0 -54
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/States.cpp +0 -16
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/States.h +0 -53
- package/ios/generated/RNHydraLibSpec/ComponentDescriptors.cpp +0 -24
- package/ios/generated/RNHydraLibSpec/ComponentDescriptors.h +0 -26
- package/ios/generated/RNHydraLibSpec/EventEmitters.cpp +0 -18
- package/ios/generated/RNHydraLibSpec/EventEmitters.h +0 -37
- package/ios/generated/RNHydraLibSpec/Props.cpp +0 -39
- package/ios/generated/RNHydraLibSpec/Props.h +0 -47
- package/ios/generated/RNHydraLibSpec/RCTComponentViewHelpers.h +0 -28
- package/ios/generated/RNHydraLibSpec/RNHydraLibSpec-generated.mm +0 -291
- package/ios/generated/RNHydraLibSpec/RNHydraLibSpec.h +0 -167
- package/ios/generated/RNHydraLibSpec/ShadowNodes.cpp +0 -19
- package/ios/generated/RNHydraLibSpec/ShadowNodes.h +0 -54
- package/ios/generated/RNHydraLibSpec/States.cpp +0 -16
- package/ios/generated/RNHydraLibSpec/States.h +0 -53
- package/ios/generated/RNHydraLibSpecJSI-generated.cpp +0 -283
- package/ios/generated/RNHydraLibSpecJSI.h +0 -395
- package/lib/commonjs/GamificationBannerViewNativeComponent.js +0 -10
- package/lib/commonjs/GamificationBannerViewNativeComponent.js.map +0 -1
- package/lib/commonjs/GamificationEmbedViewNativeComponent.js +0 -10
- package/lib/commonjs/GamificationEmbedViewNativeComponent.js.map +0 -1
- package/lib/commonjs/GamificationLoyaltyViewNativeComponent.js +0 -10
- package/lib/commonjs/GamificationLoyaltyViewNativeComponent.js.map +0 -1
- package/lib/commonjs/NativeHydraLib.js +0 -11
- package/lib/commonjs/NativeHydraLib.js.map +0 -1
- package/lib/module/GamificationBannerViewNativeComponent.js +0 -5
- package/lib/module/GamificationBannerViewNativeComponent.js.map +0 -1
- package/lib/module/GamificationEmbedViewNativeComponent.js +0 -5
- package/lib/module/GamificationEmbedViewNativeComponent.js.map +0 -1
- package/lib/module/GamificationLoyaltyViewNativeComponent.js +0 -5
- package/lib/module/GamificationLoyaltyViewNativeComponent.js.map +0 -1
- package/lib/module/NativeHydraLib.js +0 -7
- package/lib/module/NativeHydraLib.js.map +0 -1
|
@@ -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,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
|