@capillarytech/react-native-hydra-lib 1.7.0-beta.4 → 1.7.0-beta.5
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/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 +83 -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 +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 +1 -1
- package/lib/commonjs/hydra-apis/HydraPushNotification.js +1 -1
- 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 +83 -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 +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 +1 -1
- package/lib/module/hydra-apis/HydraPushNotification.js +1 -1
- package/package.json +11 -3
- package/react-native-hydra-lib.podspec +4 -1
- package/sbom.spdx.json +4 -4
- package/scripts/HydraPods.rb +1 -1
- package/scripts/preserve-codegen-specs.js +117 -0
- 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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
|
|
4
|
+
export interface NativeProps extends ViewProps {
|
|
5
|
+
bannerId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default codegenNativeComponent<NativeProps>(
|
|
9
|
+
'GamificationBannerView'
|
|
10
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
|
|
4
|
+
export interface NativeProps extends ViewProps {
|
|
5
|
+
embedId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default codegenNativeComponent<NativeProps>(
|
|
9
|
+
'GamificationEmbedView'
|
|
10
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
|
|
4
|
+
export interface NativeProps extends ViewProps {
|
|
5
|
+
loyaltyId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default codegenNativeComponent<NativeProps>(
|
|
9
|
+
'GamificationLoyaltyView'
|
|
10
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
|
+
import { NativeModules, TurboModuleRegistry } from 'react-native';
|
|
3
|
+
|
|
4
|
+
export interface Spec extends TurboModule {
|
|
5
|
+
//HydraCore Methods
|
|
6
|
+
setHydraAccountConfig(hydraAccountConfig: Object): Promise<boolean>;
|
|
7
|
+
setFirebaseRemoteConfigKeys(remoteConfigKeys: Object): Promise<boolean>;
|
|
8
|
+
updateGeoConfig(geoConfig: Object): Promise<boolean>;
|
|
9
|
+
signUp(userDetails: Object, customData: Object | null): Promise<boolean>;
|
|
10
|
+
signIn(userDetails: Object, customData: Object | null): Promise<boolean>;
|
|
11
|
+
updateUser(
|
|
12
|
+
userDetails: Object,
|
|
13
|
+
customData: Object | null,
|
|
14
|
+
subscriptions: Object[] | null
|
|
15
|
+
): Promise<boolean>;
|
|
16
|
+
signOut(customerId: string): Promise<boolean>;
|
|
17
|
+
updatePushPreferences(
|
|
18
|
+
customerId: string,
|
|
19
|
+
preferences: Object
|
|
20
|
+
): Promise<boolean>;
|
|
21
|
+
reportUserEvent(
|
|
22
|
+
eventName: string,
|
|
23
|
+
attributes: Object | null
|
|
24
|
+
): Promise<boolean>;
|
|
25
|
+
isSdkInitialized(): Promise<boolean>;
|
|
26
|
+
getCurrentUserState(): Promise<string | null>;
|
|
27
|
+
getVisitorDetails(): Promise<Object | null>;
|
|
28
|
+
isVisitorFlowEnabled(): Promise<boolean>;
|
|
29
|
+
|
|
30
|
+
//Gamification Methods
|
|
31
|
+
gamificationScreenAppeared(screenName: string): Promise<void>;
|
|
32
|
+
gamificationScreenDisappeared(screenName: string): Promise<void>;
|
|
33
|
+
setCapToken(token: string): Promise<void>;
|
|
34
|
+
setGamificationSuppressed(suppressed: boolean): Promise<void>;
|
|
35
|
+
isGamificationSuppressed(): Promise<boolean>;
|
|
36
|
+
//Hydra Methods
|
|
37
|
+
identify(userDetails: Object, customData: Object | null): Promise<boolean>;
|
|
38
|
+
track(eventName: string, attributes: Object | null): Promise<boolean>;
|
|
39
|
+
reset(customerId: string): Promise<boolean>;
|
|
40
|
+
|
|
41
|
+
//HydraPushNotification Methods
|
|
42
|
+
openExternalUrl(url: string): Promise<void>;
|
|
43
|
+
getFCMToken(): Promise<string>;
|
|
44
|
+
requestPermission(): Promise<boolean>;
|
|
45
|
+
|
|
46
|
+
//HydraInboxUI Methods
|
|
47
|
+
showNotificationCenter(): Promise<void>;
|
|
48
|
+
hideNotificationCenterIfShowing(): Promise<void>;
|
|
49
|
+
|
|
50
|
+
//HydraInbox Methods
|
|
51
|
+
getInboxMessages(): Promise<Object[]>;
|
|
52
|
+
getUnreadInboxMessagesCount(): Promise<number>;
|
|
53
|
+
markInboxMessageAsRead(inboxMessage: Object): Promise<boolean>;
|
|
54
|
+
deleteInboxMessage(inboxMessage: Object): Promise<boolean>;
|
|
55
|
+
deleteAllInboxMessages(): Promise<boolean>;
|
|
56
|
+
|
|
57
|
+
//HydraInAppMessage Methods
|
|
58
|
+
selfHandledInAppResponse(message: Object, handled: boolean): Promise<void>;
|
|
59
|
+
reportMessageClicked(message: Object): Promise<void>;
|
|
60
|
+
reportMessageRating(message: Object, rating: number): Promise<void>;
|
|
61
|
+
reportMessageFeedback(
|
|
62
|
+
message: Object,
|
|
63
|
+
feedback: string,
|
|
64
|
+
feedbackOptions: number[]
|
|
65
|
+
): Promise<void>;
|
|
66
|
+
reportMessageDismissed(message: Object): Promise<void>;
|
|
67
|
+
//HydraNativeEventEmitter Methods
|
|
68
|
+
addListener(eventName: string): void;
|
|
69
|
+
removeListener(eventName: string): void;
|
|
70
|
+
removeListeners(count: number): void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare global {
|
|
74
|
+
var __turboModuleProxy: any;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
78
|
+
|
|
79
|
+
const NativeHydraLib: Spec = isTurboModuleEnabled
|
|
80
|
+
? TurboModuleRegistry.getEnforcing<Spec>('HydraLib')
|
|
81
|
+
: NativeModules.HydraLib;
|
|
82
|
+
|
|
83
|
+
export default NativeHydraLib;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.GamificationBannerView = GamificationBannerView;
|
|
7
|
-
var _GamificationBannerViewNativeComponent = _interopRequireDefault(require("../GamificationBannerViewNativeComponent.
|
|
7
|
+
var _GamificationBannerViewNativeComponent = _interopRequireDefault(require("../GamificationBannerViewNativeComponent.ts"));
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
function GamificationBannerView(props) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.GamificationEmbedView = GamificationEmbedView;
|
|
7
|
-
var _GamificationEmbedViewNativeComponent = _interopRequireDefault(require("../GamificationEmbedViewNativeComponent.
|
|
7
|
+
var _GamificationEmbedViewNativeComponent = _interopRequireDefault(require("../GamificationEmbedViewNativeComponent.ts"));
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
function GamificationEmbedView(props) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.GamificationLoyaltyView = GamificationLoyaltyView;
|
|
7
|
-
var _GamificationLoyaltyViewNativeComponent = _interopRequireDefault(require("../GamificationLoyaltyViewNativeComponent.
|
|
7
|
+
var _GamificationLoyaltyViewNativeComponent = _interopRequireDefault(require("../GamificationLoyaltyViewNativeComponent.ts"));
|
|
8
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
function GamificationLoyaltyView(props) {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Hydra = void 0;
|
|
7
7
|
var _HydraVisitorInfo = require("../models/HydraVisitorInfo.js");
|
|
8
8
|
var _UserState = require("../models/UserState.js");
|
|
9
|
-
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.
|
|
9
|
+
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.ts"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
class Hydra {
|
|
12
12
|
static identify(userDetails, customAttributes = null) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HydraCore = void 0;
|
|
7
|
-
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.
|
|
7
|
+
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.ts"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
class HydraCore {
|
|
10
10
|
static setHydraAccountConfig(hydraAccountConfig) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HydraInAppMessaging = void 0;
|
|
7
|
-
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.
|
|
7
|
+
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.ts"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
class HydraInAppMessaging {
|
|
10
10
|
static reportMessageClicked(message) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HydraInbox = void 0;
|
|
7
|
-
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.
|
|
7
|
+
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.ts"));
|
|
8
8
|
var _HydraNotification = require("../models/HydraNotification/HydraNotification.js");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
class HydraInbox {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HydraInboxUI = void 0;
|
|
7
|
-
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.
|
|
7
|
+
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.ts"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
class HydraInboxUI {
|
|
10
10
|
static showNotificationCenter() {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HydraNativeEventEmitter = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.
|
|
8
|
+
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.ts"));
|
|
9
9
|
var _HydraNativeEvent = require("../models/HydraNativeEvent.js");
|
|
10
10
|
var _HydraNotification = require("../models/HydraNotification/HydraNotification.js");
|
|
11
11
|
var _NonHydraNotification = require("../models/NonHydraNotification.js");
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HydraPushNotification = void 0;
|
|
7
|
-
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.
|
|
7
|
+
var _NativeHydraLib = _interopRequireDefault(require("../NativeHydraLib.ts"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
class HydraPushNotification {
|
|
10
10
|
static openExternalUrl(url) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
|
|
4
|
+
export interface NativeProps extends ViewProps {
|
|
5
|
+
bannerId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default codegenNativeComponent<NativeProps>(
|
|
9
|
+
'GamificationBannerView'
|
|
10
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
|
|
4
|
+
export interface NativeProps extends ViewProps {
|
|
5
|
+
embedId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default codegenNativeComponent<NativeProps>(
|
|
9
|
+
'GamificationEmbedView'
|
|
10
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
|
|
4
|
+
export interface NativeProps extends ViewProps {
|
|
5
|
+
loyaltyId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default codegenNativeComponent<NativeProps>(
|
|
9
|
+
'GamificationLoyaltyView'
|
|
10
|
+
) as HostComponent<NativeProps>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
|
+
import { NativeModules, TurboModuleRegistry } from 'react-native';
|
|
3
|
+
|
|
4
|
+
export interface Spec extends TurboModule {
|
|
5
|
+
//HydraCore Methods
|
|
6
|
+
setHydraAccountConfig(hydraAccountConfig: Object): Promise<boolean>;
|
|
7
|
+
setFirebaseRemoteConfigKeys(remoteConfigKeys: Object): Promise<boolean>;
|
|
8
|
+
updateGeoConfig(geoConfig: Object): Promise<boolean>;
|
|
9
|
+
signUp(userDetails: Object, customData: Object | null): Promise<boolean>;
|
|
10
|
+
signIn(userDetails: Object, customData: Object | null): Promise<boolean>;
|
|
11
|
+
updateUser(
|
|
12
|
+
userDetails: Object,
|
|
13
|
+
customData: Object | null,
|
|
14
|
+
subscriptions: Object[] | null
|
|
15
|
+
): Promise<boolean>;
|
|
16
|
+
signOut(customerId: string): Promise<boolean>;
|
|
17
|
+
updatePushPreferences(
|
|
18
|
+
customerId: string,
|
|
19
|
+
preferences: Object
|
|
20
|
+
): Promise<boolean>;
|
|
21
|
+
reportUserEvent(
|
|
22
|
+
eventName: string,
|
|
23
|
+
attributes: Object | null
|
|
24
|
+
): Promise<boolean>;
|
|
25
|
+
isSdkInitialized(): Promise<boolean>;
|
|
26
|
+
getCurrentUserState(): Promise<string | null>;
|
|
27
|
+
getVisitorDetails(): Promise<Object | null>;
|
|
28
|
+
isVisitorFlowEnabled(): Promise<boolean>;
|
|
29
|
+
|
|
30
|
+
//Gamification Methods
|
|
31
|
+
gamificationScreenAppeared(screenName: string): Promise<void>;
|
|
32
|
+
gamificationScreenDisappeared(screenName: string): Promise<void>;
|
|
33
|
+
setCapToken(token: string): Promise<void>;
|
|
34
|
+
setGamificationSuppressed(suppressed: boolean): Promise<void>;
|
|
35
|
+
isGamificationSuppressed(): Promise<boolean>;
|
|
36
|
+
//Hydra Methods
|
|
37
|
+
identify(userDetails: Object, customData: Object | null): Promise<boolean>;
|
|
38
|
+
track(eventName: string, attributes: Object | null): Promise<boolean>;
|
|
39
|
+
reset(customerId: string): Promise<boolean>;
|
|
40
|
+
|
|
41
|
+
//HydraPushNotification Methods
|
|
42
|
+
openExternalUrl(url: string): Promise<void>;
|
|
43
|
+
getFCMToken(): Promise<string>;
|
|
44
|
+
requestPermission(): Promise<boolean>;
|
|
45
|
+
|
|
46
|
+
//HydraInboxUI Methods
|
|
47
|
+
showNotificationCenter(): Promise<void>;
|
|
48
|
+
hideNotificationCenterIfShowing(): Promise<void>;
|
|
49
|
+
|
|
50
|
+
//HydraInbox Methods
|
|
51
|
+
getInboxMessages(): Promise<Object[]>;
|
|
52
|
+
getUnreadInboxMessagesCount(): Promise<number>;
|
|
53
|
+
markInboxMessageAsRead(inboxMessage: Object): Promise<boolean>;
|
|
54
|
+
deleteInboxMessage(inboxMessage: Object): Promise<boolean>;
|
|
55
|
+
deleteAllInboxMessages(): Promise<boolean>;
|
|
56
|
+
|
|
57
|
+
//HydraInAppMessage Methods
|
|
58
|
+
selfHandledInAppResponse(message: Object, handled: boolean): Promise<void>;
|
|
59
|
+
reportMessageClicked(message: Object): Promise<void>;
|
|
60
|
+
reportMessageRating(message: Object, rating: number): Promise<void>;
|
|
61
|
+
reportMessageFeedback(
|
|
62
|
+
message: Object,
|
|
63
|
+
feedback: string,
|
|
64
|
+
feedbackOptions: number[]
|
|
65
|
+
): Promise<void>;
|
|
66
|
+
reportMessageDismissed(message: Object): Promise<void>;
|
|
67
|
+
//HydraNativeEventEmitter Methods
|
|
68
|
+
addListener(eventName: string): void;
|
|
69
|
+
removeListener(eventName: string): void;
|
|
70
|
+
removeListeners(count: number): void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare global {
|
|
74
|
+
var __turboModuleProxy: any;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
78
|
+
|
|
79
|
+
const NativeHydraLib: Spec = isTurboModuleEnabled
|
|
80
|
+
? TurboModuleRegistry.getEnforcing<Spec>('HydraLib')
|
|
81
|
+
: NativeModules.HydraLib;
|
|
82
|
+
|
|
83
|
+
export default NativeHydraLib;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import NativeHydraBannerView from "../GamificationBannerViewNativeComponent.
|
|
3
|
+
import NativeHydraBannerView from "../GamificationBannerViewNativeComponent.ts";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export function GamificationBannerView(props) {
|
|
6
6
|
return /*#__PURE__*/_jsx(NativeHydraBannerView, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import NativeHydraEmbedView from "../GamificationEmbedViewNativeComponent.
|
|
3
|
+
import NativeHydraEmbedView from "../GamificationEmbedViewNativeComponent.ts";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export function GamificationEmbedView(props) {
|
|
6
6
|
return /*#__PURE__*/_jsx(NativeHydraEmbedView, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import NativeHydraLoyaltyView from "../GamificationLoyaltyViewNativeComponent.
|
|
3
|
+
import NativeHydraLoyaltyView from "../GamificationLoyaltyViewNativeComponent.ts";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export function GamificationLoyaltyView(props) {
|
|
6
6
|
return /*#__PURE__*/_jsx(NativeHydraLoyaltyView, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { HydraVisitorInfo } from "../models/HydraVisitorInfo.js";
|
|
4
4
|
import { UserState } from "../models/UserState.js";
|
|
5
|
-
import NativeHydraLib from "../NativeHydraLib.
|
|
5
|
+
import NativeHydraLib from "../NativeHydraLib.ts";
|
|
6
6
|
export class Hydra {
|
|
7
7
|
static identify(userDetails, customAttributes = null) {
|
|
8
8
|
return NativeHydraLib.identify(userDetails.toJson(), customAttributes);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import NativeHydraLib from "../NativeHydraLib.
|
|
3
|
+
import NativeHydraLib from "../NativeHydraLib.ts";
|
|
4
4
|
export class HydraCore {
|
|
5
5
|
static setHydraAccountConfig(hydraAccountConfig) {
|
|
6
6
|
return NativeHydraLib.setHydraAccountConfig(hydraAccountConfig.toJson());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import NativeHydraLib from "../NativeHydraLib.
|
|
3
|
+
import NativeHydraLib from "../NativeHydraLib.ts";
|
|
4
4
|
import { HydraNotification } from "../models/HydraNotification/HydraNotification.js";
|
|
5
5
|
export class HydraInbox {
|
|
6
6
|
static async getInboxMessages() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { NativeEventEmitter } from 'react-native';
|
|
4
|
-
import NativeHydraLib from "../NativeHydraLib.
|
|
4
|
+
import NativeHydraLib from "../NativeHydraLib.ts";
|
|
5
5
|
import { HydraNativeEvent } from "../models/HydraNativeEvent.js";
|
|
6
6
|
import { HydraNotification } from "../models/HydraNotification/HydraNotification.js";
|
|
7
7
|
import { NonHydraNotification } from "../models/NonHydraNotification.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capillarytech/react-native-hydra-lib",
|
|
3
|
-
"version": "1.7.0-beta.
|
|
3
|
+
"version": "1.7.0-beta.5",
|
|
4
4
|
"description": "Library to use Hydra native iOS and Native Android SDKs in React Native",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"default": "./lib/commonjs/index.js"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
"./scripts/HydraPods.rb": "./scripts/HydraPods.rb"
|
|
19
|
+
"./scripts/HydraPods.rb": "./scripts/HydraPods.rb",
|
|
20
|
+
"./package.json": "./package.json"
|
|
20
21
|
},
|
|
21
22
|
"files": [
|
|
22
23
|
"src",
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
"typecheck": "tsc",
|
|
54
55
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
55
56
|
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
56
|
-
"prepare": "bob build",
|
|
57
|
+
"prepare": "bob build && node scripts/preserve-codegen-specs.js",
|
|
57
58
|
"release": "release-it",
|
|
58
59
|
"postinstall": "node scripts/generate-sbom.js",
|
|
59
60
|
"generate-sbom": "node scripts/generate-sbom.js"
|
|
@@ -216,6 +217,13 @@
|
|
|
216
217
|
},
|
|
217
218
|
"android": {
|
|
218
219
|
"javaPackageName": "com.hydralib"
|
|
220
|
+
},
|
|
221
|
+
"ios": {
|
|
222
|
+
"componentProvider": {
|
|
223
|
+
"GamificationBannerView": "GamificationBannerViewComponentView",
|
|
224
|
+
"GamificationEmbedView": "GamificationEmbedViewComponentView",
|
|
225
|
+
"GamificationLoyaltyView": "GamificationLoyaltyViewComponentView"
|
|
226
|
+
}
|
|
219
227
|
}
|
|
220
228
|
},
|
|
221
229
|
"create-react-native-library": {
|
|
@@ -23,7 +23,10 @@ Pod::Spec.new do |s|
|
|
|
23
23
|
s.authors = package["author"]
|
|
24
24
|
|
|
25
25
|
# s.platforms = { :ios => min_ios_version_supported }
|
|
26
|
-
|
|
26
|
+
# Firebase 12.x (FirebaseRemoteConfig in particular) raised its own minimum
|
|
27
|
+
# to iOS 15.0, so 13.2 no longer builds - see the deployment-target
|
|
28
|
+
# mismatch this produced with FirebaseRemoteConfig (12.15.0) on RN 0.80.
|
|
29
|
+
s.platforms = { :ios => "15.0" } # Minimum iOS version supported by the library
|
|
27
30
|
s.source = { :git => "https://github.com/Capillary/rn-hydra-sdk-example-app.git", :tag => "#{s.version}" }
|
|
28
31
|
|
|
29
32
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' && minor_version >= 76 then
|
package/sbom.spdx.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
5
|
"name": "capillarytech-react-native-hydra-lib-sbom",
|
|
6
|
-
"documentNamespace": "https://github.com/Capillary/react-native-hydra-lib/sbom-
|
|
6
|
+
"documentNamespace": "https://github.com/Capillary/react-native-hydra-lib/sbom-57f61864",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-08-
|
|
8
|
+
"created": "2026-08-27T22:17:35.142Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Tool: react-native-hydra-lib-sbom-generator-v1.0.0",
|
|
11
|
-
"Tool: @capillarytech/react-native-hydra-lib@1.7.0-beta.
|
|
11
|
+
"Tool: @capillarytech/react-native-hydra-lib@1.7.0-beta.5"
|
|
12
12
|
],
|
|
13
13
|
"licenseListVersion": "3.19"
|
|
14
14
|
},
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"licenseConcluded": "MIT",
|
|
22
22
|
"licenseDeclared": "MIT",
|
|
23
23
|
"copyrightText": "Copyright (c) Sandesh Jain <sandesh.Jain@capillarytech.com> (https://docs.capillarytech.com/reference/setting-up-react-native-project-for-hydra-sdk)",
|
|
24
|
-
"versionInfo": "1.7.0-beta.
|
|
24
|
+
"versionInfo": "1.7.0-beta.5",
|
|
25
25
|
"supplier": "Person: Sandesh Jain <sandesh.Jain@capillarytech.com> (https://docs.capillarytech.com/reference/setting-up-react-native-project-for-hydra-sdk)",
|
|
26
26
|
"homepage": "https://github.com/Capillary/react-native-hydra-lib#readme",
|
|
27
27
|
"description": "Library to use Hydra native iOS and Native Android SDKs in React Native",
|
package/scripts/HydraPods.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
HYDRA_SPM_URL = "https://github.com/Capillary/hydra-ios-sdk-spm.git"
|
|
2
|
-
HYDRA_SPM_REQUIREMENT = { kind: "exactVersion", version: "1.7.5-preprod.
|
|
2
|
+
HYDRA_SPM_REQUIREMENT = { kind: "exactVersion", version: "1.7.5-preprod.6" }
|
|
3
3
|
# hydra-ios-sdk-spm doesn't commit the xcframeworks into git - each pod's own
|
|
4
4
|
# podspec fetches its real content via a per-pod :http zip (matching
|
|
5
5
|
# Package.swift's binaryTarget URLs for SPM). A Podfile `:git` external
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* bob's "commonjs"/"module" targets strip TypeScript's generic type
|
|
4
|
+
* arguments and `as X` casts when compiling *NativeComponent.ts and the
|
|
5
|
+
* TurboModule spec NativeHydraLib.ts down to plain JS. That's fine for
|
|
6
|
+
* every other consumer, but RN's own Metro codegen
|
|
7
|
+
* (@react-native/babel-plugin-codegen, which generates Fabric's "static
|
|
8
|
+
* view configs") re-parses the raw text of whichever compiled file Metro
|
|
9
|
+
* actually resolves, and needs those generics to rebuild each
|
|
10
|
+
* component's prop schema. Without them it throws "Could not find
|
|
11
|
+
* component config for native component" at bundle time.
|
|
12
|
+
*
|
|
13
|
+
* This only reproduces via the ESM ("module") build: its compiled call to
|
|
14
|
+
* codegenNativeComponent is still a bare identifier the plugin recognizes,
|
|
15
|
+
* so it tries and fails to rebuild the schema. The CommonJS build's interop
|
|
16
|
+
* wrapper (`(0, _codegenNativeComponent.default)(...)`) happens to keep the
|
|
17
|
+
* plugin from recognizing the call at all, silently falling back to the old
|
|
18
|
+
* runtime UIManager path instead - which is why this was easy to miss.
|
|
19
|
+
*
|
|
20
|
+
* NOTE: don't write `codegenNativeComponent(<quoted string>` anywhere in
|
|
21
|
+
* this file (comments included) - RN's Android autolinking crawls every
|
|
22
|
+
* .js/.ts file this package ships (see findComponentDescriptors in
|
|
23
|
+
* @react-native-community/cli-config-android) with a bare regex looking for
|
|
24
|
+
* exactly that shape, with no awareness of comments or which file is an
|
|
25
|
+
* actual spec. A stray example in a comment here previously produced a
|
|
26
|
+
* bogus ComponentDescriptor entry and broke the Android C++ build.
|
|
27
|
+
*
|
|
28
|
+
* Fix: after bob compiles everything normally, overwrite its output for
|
|
29
|
+
* just these codegen spec files with the pristine, typed src/ copies,
|
|
30
|
+
* and repoint every compiled sibling that imports them at the .ts file
|
|
31
|
+
* instead of the now-nonexistent, type-erased .js one bob produced.
|
|
32
|
+
* Metro resolves the .ts extension and transforms it like any other
|
|
33
|
+
* TypeScript source file, generics intact, regardless of which build
|
|
34
|
+
* ("module" or "commonjs") a consumer's app resolves to.
|
|
35
|
+
*/
|
|
36
|
+
'use strict';
|
|
37
|
+
|
|
38
|
+
const fs = require('fs');
|
|
39
|
+
const path = require('path');
|
|
40
|
+
|
|
41
|
+
const root = path.resolve(__dirname, '..');
|
|
42
|
+
|
|
43
|
+
// Relative to src/, lib/commonjs/, and lib/module/ alike.
|
|
44
|
+
const SPEC_FILES = [
|
|
45
|
+
'NativeHydraLib.ts',
|
|
46
|
+
'GamificationBannerViewNativeComponent.ts',
|
|
47
|
+
'GamificationEmbedViewNativeComponent.ts',
|
|
48
|
+
'GamificationLoyaltyViewNativeComponent.ts',
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
const TARGET_DIRS = ['lib/commonjs', 'lib/module'];
|
|
52
|
+
|
|
53
|
+
function* walk(dir) {
|
|
54
|
+
for (const name of fs.readdirSync(dir)) {
|
|
55
|
+
const full = path.join(dir, name);
|
|
56
|
+
if (fs.statSync(full).isDirectory()) {
|
|
57
|
+
yield* walk(full);
|
|
58
|
+
} else {
|
|
59
|
+
yield full;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function rewriteImporters(dir, specBases) {
|
|
65
|
+
for (const file of walk(dir)) {
|
|
66
|
+
if (!file.endsWith('.js')) continue;
|
|
67
|
+
let content = fs.readFileSync(file, 'utf8');
|
|
68
|
+
let changed = false;
|
|
69
|
+
for (const base of specBases) {
|
|
70
|
+
for (const quote of ['"', "'"]) {
|
|
71
|
+
const from = `${base}.js${quote}`;
|
|
72
|
+
const to = `${base}.ts${quote}`;
|
|
73
|
+
if (content.includes(from)) {
|
|
74
|
+
content = content.split(from).join(to);
|
|
75
|
+
changed = true;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
if (changed) fs.writeFileSync(file, content);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
let touchedAnyDir = false;
|
|
84
|
+
|
|
85
|
+
for (const targetDir of TARGET_DIRS) {
|
|
86
|
+
const outDir = path.join(root, targetDir);
|
|
87
|
+
if (!fs.existsSync(outDir)) continue;
|
|
88
|
+
touchedAnyDir = true;
|
|
89
|
+
|
|
90
|
+
for (const specFile of SPEC_FILES) {
|
|
91
|
+
const srcPath = path.join(root, 'src', specFile);
|
|
92
|
+
const compiledBase = path.join(outDir, specFile.replace(/\.ts$/, ''));
|
|
93
|
+
|
|
94
|
+
for (const ext of ['.js', '.js.map']) {
|
|
95
|
+
const compiledPath = compiledBase + ext;
|
|
96
|
+
if (fs.existsSync(compiledPath)) fs.unlinkSync(compiledPath);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
fs.copyFileSync(srcPath, compiledBase + '.ts');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
rewriteImporters(
|
|
103
|
+
outDir,
|
|
104
|
+
SPEC_FILES.map((f) => f.replace(/\.ts$/, ''))
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
console.log(
|
|
108
|
+
`[preserve-codegen-specs] Preserved typed codegen specs in ${path.relative(root, outDir)}`
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (!touchedAnyDir) {
|
|
113
|
+
console.warn(
|
|
114
|
+
'[preserve-codegen-specs] Neither lib/commonjs nor lib/module exist - did `bob build` run first?'
|
|
115
|
+
);
|
|
116
|
+
process.exit(1);
|
|
117
|
+
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
var _default = exports.default = (0, _codegenNativeComponent.default)('GamificationBannerView');
|
|
10
|
-
//# sourceMappingURL=GamificationBannerViewNativeComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","e","__esModule","default","_default","exports","codegenNativeComponent"],"sourceRoot":"../../src","sources":["GamificationBannerViewNativeComponent.ts"],"mappings":";;;;;;AACA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAM9E,IAAAG,+BAAsB,EACnC,wBACF,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
var _default = exports.default = (0, _codegenNativeComponent.default)('GamificationEmbedView');
|
|
10
|
-
//# sourceMappingURL=GamificationEmbedViewNativeComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","e","__esModule","default","_default","exports","codegenNativeComponent"],"sourceRoot":"../../src","sources":["GamificationEmbedViewNativeComponent.ts"],"mappings":";;;;;;AACA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAM9E,IAAAG,+BAAsB,EACnC,uBACF,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
var _default = exports.default = (0, _codegenNativeComponent.default)('GamificationLoyaltyView');
|
|
10
|
-
//# sourceMappingURL=GamificationLoyaltyViewNativeComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","e","__esModule","default","_default","exports","codegenNativeComponent"],"sourceRoot":"../../src","sources":["GamificationLoyaltyViewNativeComponent.ts"],"mappings":";;;;;;AACA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAM9E,IAAAG,+BAAsB,EACnC,yBACF,CAAC","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
9
|
-
const NativeHydraLib = isTurboModuleEnabled ? _reactNative.TurboModuleRegistry.getEnforcing('HydraLib') : _reactNative.NativeModules.HydraLib;
|
|
10
|
-
var _default = exports.default = NativeHydraLib;
|
|
11
|
-
//# sourceMappingURL=NativeHydraLib.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","isTurboModuleEnabled","global","__turboModuleProxy","NativeHydraLib","TurboModuleRegistry","getEnforcing","NativeModules","HydraLib","_default","exports","default"],"sourceRoot":"../../src","sources":["NativeHydraLib.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AA2EA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,cAAoB,GAAGH,oBAAoB,GAC7CI,gCAAmB,CAACC,YAAY,CAAO,UAAU,CAAC,GAClDC,0BAAa,CAACC,QAAQ;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEZP,cAAc","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../src","sources":["GamificationBannerViewNativeComponent.ts"],"mappings":";;AACA,OAAOA,sBAAsB,MAAM,yDAAyD;AAM5F,eAAeA,sBAAsB,CACnC,wBACF,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../src","sources":["GamificationEmbedViewNativeComponent.ts"],"mappings":";;AACA,OAAOA,sBAAsB,MAAM,yDAAyD;AAM5F,eAAeA,sBAAsB,CACnC,uBACF,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../src","sources":["GamificationLoyaltyViewNativeComponent.ts"],"mappings":";;AACA,OAAOA,sBAAsB,MAAM,yDAAyD;AAM5F,eAAeA,sBAAsB,CACnC,yBACF,CAAC","ignoreList":[]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { NativeModules, TurboModuleRegistry } from 'react-native';
|
|
4
|
-
const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
5
|
-
const NativeHydraLib = isTurboModuleEnabled ? TurboModuleRegistry.getEnforcing('HydraLib') : NativeModules.HydraLib;
|
|
6
|
-
export default NativeHydraLib;
|
|
7
|
-
//# sourceMappingURL=NativeHydraLib.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","TurboModuleRegistry","isTurboModuleEnabled","global","__turboModuleProxy","NativeHydraLib","getEnforcing","HydraLib"],"sourceRoot":"../../src","sources":["NativeHydraLib.ts"],"mappings":";;AACA,SAASA,aAAa,EAAEC,mBAAmB,QAAQ,cAAc;AA2EjE,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,cAAoB,GAAGH,oBAAoB,GAC7CD,mBAAmB,CAACK,YAAY,CAAO,UAAU,CAAC,GAClDN,aAAa,CAACO,QAAQ;AAE1B,eAAeF,cAAc","ignoreList":[]}
|