@capillarytech/react-native-hydra-lib 1.7.0-beta.1
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/CHANGELOG.md +252 -0
- package/DEPRECATION_POLICY.md +220 -0
- package/LICENSE +20 -0
- package/MIGRATION.md +361 -0
- package/README.md +491 -0
- package/RELEASE_NOTES.md +528 -0
- package/android/build.gradle +565 -0
- package/android/generated/java/com/hydralib/NativeHydraLibSpec.java +185 -0
- package/android/generated/jni/CMakeLists.txt +36 -0
- package/android/generated/jni/RNHydraLibSpec-generated.cpp +248 -0
- package/android/generated/jni/RNHydraLibSpec.h +31 -0
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/ComponentDescriptors.cpp +24 -0
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/ComponentDescriptors.h +26 -0
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/EventEmitters.cpp +18 -0
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/EventEmitters.h +37 -0
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/Props.cpp +39 -0
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/Props.h +47 -0
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/RNHydraLibSpecJSI-generated.cpp +283 -0
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/RNHydraLibSpecJSI.h +395 -0
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/ShadowNodes.cpp +19 -0
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/ShadowNodes.h +54 -0
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/States.cpp +16 -0
- package/android/generated/jni/react/renderer/components/RNHydraLibSpec/States.h +53 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +11 -0
- package/android/src/main/AndroidManifestNew.xml +16 -0
- package/android/src/main/AndroidManifestNoFirebaseIcon.xml +5 -0
- package/android/src/main/java/com/hydralib/delegates/HydraActivityCallbacks.kt +90 -0
- package/android/src/main/java/com/hydralib/delegates/NonHydraNotificationActivity.kt +43 -0
- package/android/src/main/java/com/hydralib/eventemitter/HydraEventEmitter.kt +150 -0
- package/android/src/main/java/com/hydralib/eventemitter/HydraEventType.kt +44 -0
- package/android/src/main/java/com/hydralib/gamification/GamificationBannerViewManager.kt +121 -0
- package/android/src/main/java/com/hydralib/gamification/GamificationEmbedViewManager.kt +153 -0
- package/android/src/main/java/com/hydralib/gamification/GamificationLoyaltyViewManager.kt +95 -0
- package/android/src/main/java/com/hydralib/hydrasdk/HydraCore.kt +860 -0
- package/android/src/main/java/com/hydralib/hydrasdk/HydraExtenstions.kt +331 -0
- package/android/src/main/java/com/hydralib/hydrasdk/HydraInAppMessages.kt +136 -0
- package/android/src/main/java/com/hydralib/hydrasdk/HydraInbox.kt +70 -0
- package/android/src/main/java/com/hydralib/hydrasdk/HydraInboxUI.kt +54 -0
- package/android/src/main/java/com/hydralib/hydrasdk/HydraPushNotification.kt +299 -0
- package/android/src/main/java/com/hydralib/nativeapis/Hydra.kt +28 -0
- package/android/src/main/java/com/hydralib/nativeapis/HydraFirebaseRemoteConfigKeys.kt +76 -0
- package/android/src/main/java/com/hydralib/nativeapis/HydraInitializer.kt +130 -0
- package/android/src/main/java/com/hydralib/nativeapis/HydraNativeMessaging.kt +18 -0
- package/android/src/main/java/com/hydralib/nativeapis/HydraRemoteConfig.kt +59 -0
- package/android/src/main/java/com/hydralib/utils/RNHydraPreferencesManager.kt +154 -0
- package/android/src/main/java/com/hydralib/utils/ResourceUtil.kt +10 -0
- package/android/src/newarch/HydraLibModule.kt +218 -0
- package/android/src/oldarch/HydraLibModule.kt +258 -0
- package/android/src/rn72OrLess/HydraLibPackage.kt +43 -0
- package/android/src/rn73OrMore/HydraLibPackage.kt +53 -0
- package/ios/Delegates/HydraApplicationDelegate.swift +196 -0
- package/ios/Delegates/HydraFirebaseMessagingDelegate.swift +20 -0
- package/ios/Delegates/HydraUNUserNotificationCenterDelegate.swift +26 -0
- package/ios/EventEmitter/HydraEventEmitter.swift +98 -0
- package/ios/EventEmitter/HydraEventType.swift +28 -0
- package/ios/EventEmitter/HydraNativeEmitterBrigde.h +15 -0
- package/ios/EventEmitter/HydraNativeEmitterBrigde.mm +48 -0
- package/ios/GamificationViews/GamificationBannerViewComponentView.h +14 -0
- package/ios/GamificationViews/GamificationBannerViewComponentView.mm +125 -0
- package/ios/GamificationViews/GamificationEmbedViewComponentView.h +14 -0
- package/ios/GamificationViews/GamificationEmbedViewComponentView.mm +131 -0
- package/ios/GamificationViews/GamificationLoyaltyViewComponentView.h +14 -0
- package/ios/GamificationViews/GamificationLoyaltyViewComponentView.mm +120 -0
- package/ios/HydraLib.h +16 -0
- package/ios/HydraLib.mm +207 -0
- package/ios/HydraSDK/HydraInAppMessages.swift +93 -0
- package/ios/HydraSDK/HydraInbox.swift +97 -0
- package/ios/HydraSDK/HydraInboxUI.swift +105 -0
- package/ios/HydraSDK/HydraPushNotification.swift +476 -0
- package/ios/HydraSDK/HydraSDKCore.swift +707 -0
- package/ios/NativeAPIs/Hydra.h +34 -0
- package/ios/NativeAPIs/Hydra.mm +47 -0
- package/ios/NativeAPIs/HydraNativeFirebaseRemoteConfigKeys.h +23 -0
- package/ios/NativeAPIs/HydraNativeFirebaseRemoteConfigKeys.mm +80 -0
- package/ios/NativeAPIs/HydraNativeInitializer.h +16 -0
- package/ios/NativeAPIs/HydraNativeInitializer.mm +39 -0
- package/ios/NativeAPIs/HydraNativeMessaging.h +24 -0
- package/ios/NativeAPIs/HydraNativeMessaging.mm +53 -0
- package/ios/NativeAPIs/HydraNativeRemoteConfig.h +27 -0
- package/ios/NativeAPIs/HydraNativeRemoteConfig.mm +89 -0
- package/ios/Utils/HydraExtensions.swift +322 -0
- package/ios/Utils/HydraRNConstants.swift +13 -0
- package/ios/Utils/RNHydraLogger.swift +31 -0
- package/ios/generated/RNHydraLibSpec/ComponentDescriptors.cpp +24 -0
- package/ios/generated/RNHydraLibSpec/ComponentDescriptors.h +26 -0
- package/ios/generated/RNHydraLibSpec/EventEmitters.cpp +18 -0
- package/ios/generated/RNHydraLibSpec/EventEmitters.h +37 -0
- package/ios/generated/RNHydraLibSpec/Props.cpp +39 -0
- package/ios/generated/RNHydraLibSpec/Props.h +47 -0
- package/ios/generated/RNHydraLibSpec/RCTComponentViewHelpers.h +28 -0
- package/ios/generated/RNHydraLibSpec/RNHydraLibSpec-generated.mm +291 -0
- package/ios/generated/RNHydraLibSpec/RNHydraLibSpec.h +167 -0
- package/ios/generated/RNHydraLibSpec/ShadowNodes.cpp +19 -0
- package/ios/generated/RNHydraLibSpec/ShadowNodes.h +54 -0
- package/ios/generated/RNHydraLibSpec/States.cpp +16 -0
- package/ios/generated/RNHydraLibSpec/States.h +53 -0
- package/ios/generated/RNHydraLibSpecJSI-generated.cpp +283 -0
- package/ios/generated/RNHydraLibSpecJSI.h +395 -0
- package/lib/commonjs/GamificationBannerViewNativeComponent.js +10 -0
- package/lib/commonjs/GamificationBannerViewNativeComponent.js.map +1 -0
- package/lib/commonjs/GamificationEmbedViewNativeComponent.js +10 -0
- package/lib/commonjs/GamificationEmbedViewNativeComponent.js.map +1 -0
- package/lib/commonjs/GamificationLoyaltyViewNativeComponent.js +10 -0
- package/lib/commonjs/GamificationLoyaltyViewNativeComponent.js.map +1 -0
- package/lib/commonjs/NativeHydraLib.js +11 -0
- package/lib/commonjs/NativeHydraLib.js.map +1 -0
- package/lib/commonjs/components/GamificationBannerView.js +15 -0
- package/lib/commonjs/components/GamificationBannerView.js.map +1 -0
- package/lib/commonjs/components/GamificationEmbedView.js +15 -0
- package/lib/commonjs/components/GamificationEmbedView.js.map +1 -0
- package/lib/commonjs/components/GamificationLoyaltyView.js +15 -0
- package/lib/commonjs/components/GamificationLoyaltyView.js.map +1 -0
- package/lib/commonjs/hydra-apis/Hydra.js +43 -0
- package/lib/commonjs/hydra-apis/Hydra.js.map +1 -0
- package/lib/commonjs/hydra-apis/HydraCore.js +42 -0
- package/lib/commonjs/hydra-apis/HydraCore.js.map +1 -0
- package/lib/commonjs/hydra-apis/HydraInAppMessaging.js +24 -0
- package/lib/commonjs/hydra-apis/HydraInAppMessaging.js.map +1 -0
- package/lib/commonjs/hydra-apis/HydraInbox.js +29 -0
- package/lib/commonjs/hydra-apis/HydraInbox.js.map +1 -0
- package/lib/commonjs/hydra-apis/HydraInboxUI.js +18 -0
- package/lib/commonjs/hydra-apis/HydraInboxUI.js.map +1 -0
- package/lib/commonjs/hydra-apis/HydraNativeEventEmitter.js +133 -0
- package/lib/commonjs/hydra-apis/HydraNativeEventEmitter.js.map +1 -0
- package/lib/commonjs/hydra-apis/HydraPushNotification.js +21 -0
- package/lib/commonjs/hydra-apis/HydraPushNotification.js.map +1 -0
- package/lib/commonjs/index.js +230 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/models/HydraAccountConfig.js +41 -0
- package/lib/commonjs/models/HydraAccountConfig.js.map +1 -0
- package/lib/commonjs/models/HydraFirebaseRemoteConfigKeys.js +40 -0
- package/lib/commonjs/models/HydraFirebaseRemoteConfigKeys.js.map +1 -0
- package/lib/commonjs/models/HydraGeoConfig.js +24 -0
- package/lib/commonjs/models/HydraGeoConfig.js.map +1 -0
- package/lib/commonjs/models/HydraInAppMessage/HydraInAppButtonComponent.js +26 -0
- package/lib/commonjs/models/HydraInAppMessage/HydraInAppButtonComponent.js.map +1 -0
- package/lib/commonjs/models/HydraInAppMessage/HydraInAppComponentStyle.js +26 -0
- package/lib/commonjs/models/HydraInAppMessage/HydraInAppComponentStyle.js.map +1 -0
- package/lib/commonjs/models/HydraInAppMessage/HydraInAppFeedbackSelectionType.js +39 -0
- package/lib/commonjs/models/HydraInAppMessage/HydraInAppFeedbackSelectionType.js.map +1 -0
- package/lib/commonjs/models/HydraInAppMessage/HydraInAppMessage.js +60 -0
- package/lib/commonjs/models/HydraInAppMessage/HydraInAppMessage.js.map +1 -0
- package/lib/commonjs/models/HydraInAppMessage/HydraInAppTemplateType.js +66 -0
- package/lib/commonjs/models/HydraInAppMessage/HydraInAppTemplateType.js.map +1 -0
- package/lib/commonjs/models/HydraInAppMessage/HydraInAppTextComponent.js +21 -0
- package/lib/commonjs/models/HydraInAppMessage/HydraInAppTextComponent.js.map +1 -0
- package/lib/commonjs/models/HydraLogLevel.js +16 -0
- package/lib/commonjs/models/HydraLogLevel.js.map +1 -0
- package/lib/commonjs/models/HydraNativeEvent.js +27 -0
- package/lib/commonjs/models/HydraNativeEvent.js.map +1 -0
- package/lib/commonjs/models/HydraNotification/HydraNotification.js +70 -0
- package/lib/commonjs/models/HydraNotification/HydraNotification.js.map +1 -0
- package/lib/commonjs/models/HydraNotification/HydraNotificationBody.js +25 -0
- package/lib/commonjs/models/HydraNotification/HydraNotificationBody.js.map +1 -0
- package/lib/commonjs/models/HydraNotification/HydraNotificationCta.js +23 -0
- package/lib/commonjs/models/HydraNotification/HydraNotificationCta.js.map +1 -0
- package/lib/commonjs/models/HydraNotification/HydraNotificationCtaType.js +62 -0
- package/lib/commonjs/models/HydraNotification/HydraNotificationCtaType.js.map +1 -0
- package/lib/commonjs/models/HydraNotification/HydraNotificationExpandedDetails.js +25 -0
- package/lib/commonjs/models/HydraNotification/HydraNotificationExpandedDetails.js.map +1 -0
- package/lib/commonjs/models/HydraNotification/HydraNotificationGateway.js +13 -0
- package/lib/commonjs/models/HydraNotification/HydraNotificationGateway.js.map +1 -0
- package/lib/commonjs/models/HydraPushPreferences.js +20 -0
- package/lib/commonjs/models/HydraPushPreferences.js.map +1 -0
- package/lib/commonjs/models/HydraUserDetails.js +26 -0
- package/lib/commonjs/models/HydraUserDetails.js.map +1 -0
- package/lib/commonjs/models/HydraVisitorInfo.js +19 -0
- package/lib/commonjs/models/HydraVisitorInfo.js.map +1 -0
- package/lib/commonjs/models/NonHydraNotification.js +18 -0
- package/lib/commonjs/models/NonHydraNotification.js.map +1 -0
- package/lib/commonjs/models/UserState.js +41 -0
- package/lib/commonjs/models/UserState.js.map +1 -0
- package/lib/module/GamificationBannerViewNativeComponent.js +5 -0
- package/lib/module/GamificationBannerViewNativeComponent.js.map +1 -0
- package/lib/module/GamificationEmbedViewNativeComponent.js +5 -0
- package/lib/module/GamificationEmbedViewNativeComponent.js.map +1 -0
- package/lib/module/GamificationLoyaltyViewNativeComponent.js +5 -0
- package/lib/module/GamificationLoyaltyViewNativeComponent.js.map +1 -0
- package/lib/module/NativeHydraLib.js +7 -0
- package/lib/module/NativeHydraLib.js.map +1 -0
- package/lib/module/components/GamificationBannerView.js +10 -0
- package/lib/module/components/GamificationBannerView.js.map +1 -0
- package/lib/module/components/GamificationEmbedView.js +10 -0
- package/lib/module/components/GamificationEmbedView.js.map +1 -0
- package/lib/module/components/GamificationLoyaltyView.js +10 -0
- package/lib/module/components/GamificationLoyaltyView.js.map +1 -0
- package/lib/module/hydra-apis/Hydra.js +37 -0
- package/lib/module/hydra-apis/Hydra.js.map +1 -0
- package/lib/module/hydra-apis/HydraCore.js +36 -0
- package/lib/module/hydra-apis/HydraCore.js.map +1 -0
- package/lib/module/hydra-apis/HydraInAppMessaging.js +18 -0
- package/lib/module/hydra-apis/HydraInAppMessaging.js.map +1 -0
- package/lib/module/hydra-apis/HydraInbox.js +23 -0
- package/lib/module/hydra-apis/HydraInbox.js.map +1 -0
- package/lib/module/hydra-apis/HydraInboxUI.js +12 -0
- package/lib/module/hydra-apis/HydraInboxUI.js.map +1 -0
- package/lib/module/hydra-apis/HydraNativeEventEmitter.js +127 -0
- package/lib/module/hydra-apis/HydraNativeEventEmitter.js.map +1 -0
- package/lib/module/hydra-apis/HydraPushNotification.js +15 -0
- package/lib/module/hydra-apis/HydraPushNotification.js.map +1 -0
- package/lib/module/index.js +36 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/models/HydraAccountConfig.js +36 -0
- package/lib/module/models/HydraAccountConfig.js.map +1 -0
- package/lib/module/models/HydraFirebaseRemoteConfigKeys.js +35 -0
- package/lib/module/models/HydraFirebaseRemoteConfigKeys.js.map +1 -0
- package/lib/module/models/HydraGeoConfig.js +19 -0
- package/lib/module/models/HydraGeoConfig.js.map +1 -0
- package/lib/module/models/HydraInAppMessage/HydraInAppButtonComponent.js +21 -0
- package/lib/module/models/HydraInAppMessage/HydraInAppButtonComponent.js.map +1 -0
- package/lib/module/models/HydraInAppMessage/HydraInAppComponentStyle.js +21 -0
- package/lib/module/models/HydraInAppMessage/HydraInAppComponentStyle.js.map +1 -0
- package/lib/module/models/HydraInAppMessage/HydraInAppFeedbackSelectionType.js +35 -0
- package/lib/module/models/HydraInAppMessage/HydraInAppFeedbackSelectionType.js.map +1 -0
- package/lib/module/models/HydraInAppMessage/HydraInAppMessage.js +55 -0
- package/lib/module/models/HydraInAppMessage/HydraInAppMessage.js.map +1 -0
- package/lib/module/models/HydraInAppMessage/HydraInAppTemplateType.js +62 -0
- package/lib/module/models/HydraInAppMessage/HydraInAppTemplateType.js.map +1 -0
- package/lib/module/models/HydraInAppMessage/HydraInAppTextComponent.js +16 -0
- package/lib/module/models/HydraInAppMessage/HydraInAppTextComponent.js.map +1 -0
- package/lib/module/models/HydraLogLevel.js +12 -0
- package/lib/module/models/HydraLogLevel.js.map +1 -0
- package/lib/module/models/HydraNativeEvent.js +23 -0
- package/lib/module/models/HydraNativeEvent.js.map +1 -0
- package/lib/module/models/HydraNotification/HydraNotification.js +65 -0
- package/lib/module/models/HydraNotification/HydraNotification.js.map +1 -0
- package/lib/module/models/HydraNotification/HydraNotificationBody.js +20 -0
- package/lib/module/models/HydraNotification/HydraNotificationBody.js.map +1 -0
- package/lib/module/models/HydraNotification/HydraNotificationCta.js +18 -0
- package/lib/module/models/HydraNotification/HydraNotificationCta.js.map +1 -0
- package/lib/module/models/HydraNotification/HydraNotificationCtaType.js +58 -0
- package/lib/module/models/HydraNotification/HydraNotificationCtaType.js.map +1 -0
- package/lib/module/models/HydraNotification/HydraNotificationExpandedDetails.js +20 -0
- package/lib/module/models/HydraNotification/HydraNotificationExpandedDetails.js.map +1 -0
- package/lib/module/models/HydraNotification/HydraNotificationGateway.js +9 -0
- package/lib/module/models/HydraNotification/HydraNotificationGateway.js.map +1 -0
- package/lib/module/models/HydraPushPreferences.js +15 -0
- package/lib/module/models/HydraPushPreferences.js.map +1 -0
- package/lib/module/models/HydraUserDetails.js +21 -0
- package/lib/module/models/HydraUserDetails.js.map +1 -0
- package/lib/module/models/HydraVisitorInfo.js +14 -0
- package/lib/module/models/HydraVisitorInfo.js.map +1 -0
- package/lib/module/models/NonHydraNotification.js +13 -0
- package/lib/module/models/NonHydraNotification.js.map +1 -0
- package/lib/module/models/UserState.js +37 -0
- package/lib/module/models/UserState.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/GamificationBannerViewNativeComponent.d.ts +7 -0
- package/lib/typescript/commonjs/src/GamificationBannerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/GamificationEmbedViewNativeComponent.d.ts +7 -0
- package/lib/typescript/commonjs/src/GamificationEmbedViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/GamificationLoyaltyViewNativeComponent.d.ts +7 -0
- package/lib/typescript/commonjs/src/GamificationLoyaltyViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/NativeHydraLib.d.ts +46 -0
- package/lib/typescript/commonjs/src/NativeHydraLib.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/GamificationBannerView.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/GamificationBannerView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/GamificationEmbedView.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/GamificationEmbedView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/GamificationLoyaltyView.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/GamificationLoyaltyView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hydra-apis/Hydra.d.ts +15 -0
- package/lib/typescript/commonjs/src/hydra-apis/Hydra.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraCore.d.ts +18 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraCore.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraInAppMessaging.d.ts +8 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraInAppMessaging.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraInbox.d.ts +9 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraInbox.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraInboxUI.d.ts +5 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraInboxUI.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraNativeEventEmitter.d.ts +35 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraNativeEventEmitter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraPushNotification.d.ts +6 -0
- package/lib/typescript/commonjs/src/hydra-apis/HydraPushNotification.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +37 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraAccountConfig.d.ts +14 -0
- package/lib/typescript/commonjs/src/models/HydraAccountConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraFirebaseRemoteConfigKeys.d.ts +13 -0
- package/lib/typescript/commonjs/src/models/HydraFirebaseRemoteConfigKeys.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraGeoConfig.d.ts +14 -0
- package/lib/typescript/commonjs/src/models/HydraGeoConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraInAppMessage/HydraInAppButtonComponent.d.ts +16 -0
- package/lib/typescript/commonjs/src/models/HydraInAppMessage/HydraInAppButtonComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraInAppMessage/HydraInAppComponentStyle.d.ts +10 -0
- package/lib/typescript/commonjs/src/models/HydraInAppMessage/HydraInAppComponentStyle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraInAppMessage/HydraInAppFeedbackSelectionType.d.ts +9 -0
- package/lib/typescript/commonjs/src/models/HydraInAppMessage/HydraInAppFeedbackSelectionType.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraInAppMessage/HydraInAppMessage.d.ts +29 -0
- package/lib/typescript/commonjs/src/models/HydraInAppMessage/HydraInAppMessage.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraInAppMessage/HydraInAppTemplateType.d.ts +15 -0
- package/lib/typescript/commonjs/src/models/HydraInAppMessage/HydraInAppTemplateType.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraInAppMessage/HydraInAppTextComponent.d.ts +11 -0
- package/lib/typescript/commonjs/src/models/HydraInAppMessage/HydraInAppTextComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraLogLevel.d.ts +9 -0
- package/lib/typescript/commonjs/src/models/HydraLogLevel.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraNativeEvent.d.ts +20 -0
- package/lib/typescript/commonjs/src/models/HydraNativeEvent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraNotification/HydraNotification.d.ts +32 -0
- package/lib/typescript/commonjs/src/models/HydraNotification/HydraNotification.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraNotification/HydraNotificationBody.d.ts +19 -0
- package/lib/typescript/commonjs/src/models/HydraNotification/HydraNotificationBody.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraNotification/HydraNotificationCta.d.ts +13 -0
- package/lib/typescript/commonjs/src/models/HydraNotification/HydraNotificationCta.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraNotification/HydraNotificationCtaType.d.ts +13 -0
- package/lib/typescript/commonjs/src/models/HydraNotification/HydraNotificationCtaType.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraNotification/HydraNotificationExpandedDetails.d.ts +19 -0
- package/lib/typescript/commonjs/src/models/HydraNotification/HydraNotificationExpandedDetails.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraNotification/HydraNotificationGateway.d.ts +6 -0
- package/lib/typescript/commonjs/src/models/HydraNotification/HydraNotificationGateway.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraPushPreferences.d.ts +10 -0
- package/lib/typescript/commonjs/src/models/HydraPushPreferences.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraUserDetails.d.ts +16 -0
- package/lib/typescript/commonjs/src/models/HydraUserDetails.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/HydraVisitorInfo.d.ts +6 -0
- package/lib/typescript/commonjs/src/models/HydraVisitorInfo.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/NonHydraNotification.d.ts +9 -0
- package/lib/typescript/commonjs/src/models/NonHydraNotification.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/UserState.d.ts +11 -0
- package/lib/typescript/commonjs/src/models/UserState.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/GamificationBannerViewNativeComponent.d.ts +7 -0
- package/lib/typescript/module/src/GamificationBannerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/GamificationEmbedViewNativeComponent.d.ts +7 -0
- package/lib/typescript/module/src/GamificationEmbedViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/GamificationLoyaltyViewNativeComponent.d.ts +7 -0
- package/lib/typescript/module/src/GamificationLoyaltyViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/NativeHydraLib.d.ts +46 -0
- package/lib/typescript/module/src/NativeHydraLib.d.ts.map +1 -0
- package/lib/typescript/module/src/components/GamificationBannerView.d.ts +6 -0
- package/lib/typescript/module/src/components/GamificationBannerView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/GamificationEmbedView.d.ts +6 -0
- package/lib/typescript/module/src/components/GamificationEmbedView.d.ts.map +1 -0
- package/lib/typescript/module/src/components/GamificationLoyaltyView.d.ts +6 -0
- package/lib/typescript/module/src/components/GamificationLoyaltyView.d.ts.map +1 -0
- package/lib/typescript/module/src/hydra-apis/Hydra.d.ts +15 -0
- package/lib/typescript/module/src/hydra-apis/Hydra.d.ts.map +1 -0
- package/lib/typescript/module/src/hydra-apis/HydraCore.d.ts +18 -0
- package/lib/typescript/module/src/hydra-apis/HydraCore.d.ts.map +1 -0
- package/lib/typescript/module/src/hydra-apis/HydraInAppMessaging.d.ts +8 -0
- package/lib/typescript/module/src/hydra-apis/HydraInAppMessaging.d.ts.map +1 -0
- package/lib/typescript/module/src/hydra-apis/HydraInbox.d.ts +9 -0
- package/lib/typescript/module/src/hydra-apis/HydraInbox.d.ts.map +1 -0
- package/lib/typescript/module/src/hydra-apis/HydraInboxUI.d.ts +5 -0
- package/lib/typescript/module/src/hydra-apis/HydraInboxUI.d.ts.map +1 -0
- package/lib/typescript/module/src/hydra-apis/HydraNativeEventEmitter.d.ts +35 -0
- package/lib/typescript/module/src/hydra-apis/HydraNativeEventEmitter.d.ts.map +1 -0
- package/lib/typescript/module/src/hydra-apis/HydraPushNotification.d.ts +6 -0
- package/lib/typescript/module/src/hydra-apis/HydraPushNotification.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +37 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraAccountConfig.d.ts +14 -0
- package/lib/typescript/module/src/models/HydraAccountConfig.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraFirebaseRemoteConfigKeys.d.ts +13 -0
- package/lib/typescript/module/src/models/HydraFirebaseRemoteConfigKeys.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraGeoConfig.d.ts +14 -0
- package/lib/typescript/module/src/models/HydraGeoConfig.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraInAppMessage/HydraInAppButtonComponent.d.ts +16 -0
- package/lib/typescript/module/src/models/HydraInAppMessage/HydraInAppButtonComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraInAppMessage/HydraInAppComponentStyle.d.ts +10 -0
- package/lib/typescript/module/src/models/HydraInAppMessage/HydraInAppComponentStyle.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraInAppMessage/HydraInAppFeedbackSelectionType.d.ts +9 -0
- package/lib/typescript/module/src/models/HydraInAppMessage/HydraInAppFeedbackSelectionType.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraInAppMessage/HydraInAppMessage.d.ts +29 -0
- package/lib/typescript/module/src/models/HydraInAppMessage/HydraInAppMessage.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraInAppMessage/HydraInAppTemplateType.d.ts +15 -0
- package/lib/typescript/module/src/models/HydraInAppMessage/HydraInAppTemplateType.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraInAppMessage/HydraInAppTextComponent.d.ts +11 -0
- package/lib/typescript/module/src/models/HydraInAppMessage/HydraInAppTextComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraLogLevel.d.ts +9 -0
- package/lib/typescript/module/src/models/HydraLogLevel.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraNativeEvent.d.ts +20 -0
- package/lib/typescript/module/src/models/HydraNativeEvent.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraNotification/HydraNotification.d.ts +32 -0
- package/lib/typescript/module/src/models/HydraNotification/HydraNotification.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraNotification/HydraNotificationBody.d.ts +19 -0
- package/lib/typescript/module/src/models/HydraNotification/HydraNotificationBody.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraNotification/HydraNotificationCta.d.ts +13 -0
- package/lib/typescript/module/src/models/HydraNotification/HydraNotificationCta.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraNotification/HydraNotificationCtaType.d.ts +13 -0
- package/lib/typescript/module/src/models/HydraNotification/HydraNotificationCtaType.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraNotification/HydraNotificationExpandedDetails.d.ts +19 -0
- package/lib/typescript/module/src/models/HydraNotification/HydraNotificationExpandedDetails.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraNotification/HydraNotificationGateway.d.ts +6 -0
- package/lib/typescript/module/src/models/HydraNotification/HydraNotificationGateway.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraPushPreferences.d.ts +10 -0
- package/lib/typescript/module/src/models/HydraPushPreferences.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraUserDetails.d.ts +16 -0
- package/lib/typescript/module/src/models/HydraUserDetails.d.ts.map +1 -0
- package/lib/typescript/module/src/models/HydraVisitorInfo.d.ts +6 -0
- package/lib/typescript/module/src/models/HydraVisitorInfo.d.ts.map +1 -0
- package/lib/typescript/module/src/models/NonHydraNotification.d.ts +9 -0
- package/lib/typescript/module/src/models/NonHydraNotification.d.ts.map +1 -0
- package/lib/typescript/module/src/models/UserState.d.ts +11 -0
- package/lib/typescript/module/src/models/UserState.d.ts.map +1 -0
- package/package.json +225 -0
- package/react-native-hydra-lib.podspec +256 -0
- package/react-native.config.js +33 -0
- package/sbom.spdx.json +544 -0
- package/scripts/HydraPods.rb +151 -0
- package/scripts/generate-sbom.js +367 -0
- package/scripts/hydra-podspecs/HydraCore.podspec +13 -0
- package/scripts/hydra-podspecs/HydraInAppMessage.podspec +15 -0
- package/scripts/hydra-podspecs/HydraInboxCore.podspec +15 -0
- package/scripts/hydra-podspecs/HydraInboxUI.podspec +15 -0
- package/scripts/hydra-podspecs/HydraPushNotification.podspec +14 -0
- package/scripts/hydra-podspecs/HydraPushNotificationServiceExtension.podspec +15 -0
- package/src/GamificationBannerViewNativeComponent.ts +10 -0
- package/src/GamificationEmbedViewNativeComponent.ts +10 -0
- package/src/GamificationLoyaltyViewNativeComponent.ts +10 -0
- package/src/NativeHydraLib.ts +81 -0
- package/src/components/GamificationBannerView.tsx +10 -0
- package/src/components/GamificationEmbedView.tsx +10 -0
- package/src/components/GamificationLoyaltyView.tsx +10 -0
- package/src/hydra-apis/Hydra.ts +52 -0
- package/src/hydra-apis/HydraCore.ts +76 -0
- package/src/hydra-apis/HydraInAppMessaging.ts +25 -0
- package/src/hydra-apis/HydraInbox.ts +33 -0
- package/src/hydra-apis/HydraInboxUI.ts +10 -0
- package/src/hydra-apis/HydraNativeEventEmitter.ts +216 -0
- package/src/hydra-apis/HydraPushNotification.ts +15 -0
- package/src/index.tsx +71 -0
- package/src/models/HydraAccountConfig.ts +45 -0
- package/src/models/HydraFirebaseRemoteConfigKeys.ts +43 -0
- package/src/models/HydraGeoConfig.ts +27 -0
- package/src/models/HydraInAppMessage/HydraInAppButtonComponent.ts +27 -0
- package/src/models/HydraInAppMessage/HydraInAppComponentStyle.ts +24 -0
- package/src/models/HydraInAppMessage/HydraInAppFeedbackSelectionType.ts +35 -0
- package/src/models/HydraInAppMessage/HydraInAppMessage.ts +89 -0
- package/src/models/HydraInAppMessage/HydraInAppTemplateType.ts +57 -0
- package/src/models/HydraInAppMessage/HydraInAppTextComponent.ts +18 -0
- package/src/models/HydraLogLevel.ts +8 -0
- package/src/models/HydraNativeEvent.ts +19 -0
- package/src/models/HydraNotification/HydraNotification.ts +97 -0
- package/src/models/HydraNotification/HydraNotificationBody.ts +23 -0
- package/src/models/HydraNotification/HydraNotificationCta.ts +20 -0
- package/src/models/HydraNotification/HydraNotificationCtaType.ts +59 -0
- package/src/models/HydraNotification/HydraNotificationExpandedDetails.ts +28 -0
- package/src/models/HydraNotification/HydraNotificationGateway.ts +5 -0
- package/src/models/HydraPushPreferences.ts +16 -0
- package/src/models/HydraUserDetails.ts +31 -0
- package/src/models/HydraVisitorInfo.ts +14 -0
- package/src/models/NonHydraNotification.ts +15 -0
- package/src/models/UserState.ts +33 -0
package/RELEASE_NOTES.md
ADDED
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
# Release Notes
|
|
2
|
+
|
|
3
|
+
This document provides detailed release notes for `@capillary/react-native-hydra-lib`, including features, breaking changes, migration instructions, and technical details for each version.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Latest Release](#latest-release)
|
|
8
|
+
- [Version 1.3.x](#version-13x)
|
|
9
|
+
- [Version 1.2.x](#version-12x)
|
|
10
|
+
- [Version 1.1.x](#version-11x)
|
|
11
|
+
- [Release Schedule](#release-schedule)
|
|
12
|
+
- [Support Policy](#support-policy)
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Latest Release
|
|
17
|
+
|
|
18
|
+
### [1.3.0] - "Enterprise & Security" - June 16, 2024
|
|
19
|
+
|
|
20
|
+
> **🎉 Major Feature Release**: This release introduces enterprise-grade security features and multi-instance support.
|
|
21
|
+
|
|
22
|
+
#### 🆕 **New Features**
|
|
23
|
+
|
|
24
|
+
##### Multi-Instance Support
|
|
25
|
+
```typescript
|
|
26
|
+
// Initialize multiple Hydra instances
|
|
27
|
+
const instance1 = await HydraLib.initializeInstance('account1', config1);
|
|
28
|
+
const instance2 = await HydraLib.initializeInstance('account2', config2);
|
|
29
|
+
|
|
30
|
+
// Use specific instance
|
|
31
|
+
await instance1.trackEvent('user_action', { ... });
|
|
32
|
+
await instance2.showInbox();
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
##### SBOM (Software Bill of Materials)
|
|
36
|
+
- **Automatic Generation**: SPDX 2.3 compliant SBOM files
|
|
37
|
+
- **Security Compliance**: Enterprise-ready supply chain security
|
|
38
|
+
- **Dual Project Support**: Main project + example project SBOMs
|
|
39
|
+
- **Smart Updates**: Only regenerates when dependencies change
|
|
40
|
+
|
|
41
|
+
##### Enhanced Configuration
|
|
42
|
+
```typescript
|
|
43
|
+
// Read from environment files
|
|
44
|
+
const config = HydraLib.createConfigFromEnv();
|
|
45
|
+
await HydraLib.initialize(config);
|
|
46
|
+
|
|
47
|
+
// Clear persistent data
|
|
48
|
+
await HydraLib.clearPersistentData();
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### 🔄 **Improvements**
|
|
52
|
+
|
|
53
|
+
- **Dependabot Integration**: Automated security updates
|
|
54
|
+
- **Enhanced Error Handling**: Better error messages and debugging
|
|
55
|
+
- **Code Quality**: Improved linting and formatting standards
|
|
56
|
+
- **Documentation**: Comprehensive documentation system
|
|
57
|
+
|
|
58
|
+
#### 🛠️ **Technical Changes**
|
|
59
|
+
|
|
60
|
+
- **Build Process**: Removed hard-coded secrets
|
|
61
|
+
- **Dependencies**: Updated to latest versions
|
|
62
|
+
- **Configuration**: Better environment variable handling
|
|
63
|
+
|
|
64
|
+
#### 📦 **Package Updates**
|
|
65
|
+
|
|
66
|
+
- React Native Vector Icons support
|
|
67
|
+
- Enhanced TypeScript definitions
|
|
68
|
+
- Improved build configuration
|
|
69
|
+
|
|
70
|
+
#### 🚀 **Migration from 1.2.x**
|
|
71
|
+
|
|
72
|
+
No breaking changes! This is a backward-compatible release.
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
# Update package
|
|
76
|
+
npm install @capillary/react-native-hydra-lib@1.3.0
|
|
77
|
+
|
|
78
|
+
# iOS (if needed)
|
|
79
|
+
cd ios && pod install
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Version 1.3.x
|
|
85
|
+
|
|
86
|
+
### [1.3.0] - June 16, 2024
|
|
87
|
+
*See [Latest Release](#latest-release) section above*
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Version 1.2.x
|
|
92
|
+
|
|
93
|
+
### [1.2.7] - "Stability & Performance" - February 4, 2024
|
|
94
|
+
|
|
95
|
+
#### 🆕 **New Features**
|
|
96
|
+
|
|
97
|
+
##### Custom Notification Center
|
|
98
|
+
- Enhanced notification UI with custom components
|
|
99
|
+
- Improved notification center functionality
|
|
100
|
+
- Better user experience for message handling
|
|
101
|
+
|
|
102
|
+
##### Cross-Instance Initialization
|
|
103
|
+
```typescript
|
|
104
|
+
// Enable cross-initialization between instances
|
|
105
|
+
await HydraLib.enableCrossInitialization();
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
#### 🔧 **Improvements**
|
|
109
|
+
|
|
110
|
+
- **Notification Handling**: Enhanced notification processing
|
|
111
|
+
- **UI Components**: Better notification center interface
|
|
112
|
+
- **Performance**: Optimized notification rendering
|
|
113
|
+
|
|
114
|
+
#### 🐛 **Bug Fixes**
|
|
115
|
+
|
|
116
|
+
- **Android Notifications**: Fixed data limit issues
|
|
117
|
+
- **iOS Badge Count**: Resolved badge count decrement problems
|
|
118
|
+
- **URL Validation**: Enhanced base URL validation (HTTPS required)
|
|
119
|
+
- **Android 12**: Fixed notification icon issues
|
|
120
|
+
|
|
121
|
+
#### 🚀 **Migration from 1.2.6**
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
# Update package
|
|
125
|
+
npm install @capillary/react-native-hydra-lib@1.2.7
|
|
126
|
+
|
|
127
|
+
# Update iOS dependencies
|
|
128
|
+
cd ios && pod install
|
|
129
|
+
|
|
130
|
+
# Android - clean and rebuild
|
|
131
|
+
cd android && ./gradlew clean
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### [1.2.6] - "Multi-Instance Foundation" - January 15, 2024
|
|
135
|
+
|
|
136
|
+
#### 🆕 **Major Features**
|
|
137
|
+
|
|
138
|
+
##### Firebase Remote Config for Multi-Instance
|
|
139
|
+
```typescript
|
|
140
|
+
// Configure multiple instances with Firebase Remote Config
|
|
141
|
+
await HydraLib.initializeWithRemoteConfig({
|
|
142
|
+
instances: ['account1', 'account2'],
|
|
143
|
+
firebaseConfig: { ... }
|
|
144
|
+
});
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
##### Expanded Inbox Details
|
|
148
|
+
```typescript
|
|
149
|
+
// Access expanded message details
|
|
150
|
+
const message = await HydraLib.getInboxMessage(messageId);
|
|
151
|
+
console.log(message.expandedDetails);
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
#### 🔄 **Architecture Updates**
|
|
155
|
+
|
|
156
|
+
- Enhanced project structure
|
|
157
|
+
- Improved version management
|
|
158
|
+
- Better build process
|
|
159
|
+
|
|
160
|
+
#### 🐛 **Critical Fixes**
|
|
161
|
+
|
|
162
|
+
- **iOS Multi-Instance**: Fixed various iOS-specific issues
|
|
163
|
+
- **Remote Config**: Resolved configuration handling problems
|
|
164
|
+
- **Build Stability**: Improved build reliability
|
|
165
|
+
|
|
166
|
+
### [1.2.5] - "Enhanced Messaging" - December 10, 2023
|
|
167
|
+
|
|
168
|
+
#### 🆕 **Features**
|
|
169
|
+
|
|
170
|
+
##### App State Management
|
|
171
|
+
```typescript
|
|
172
|
+
// Listen to app state changes
|
|
173
|
+
HydraLib.addAppStateListener((state) => {
|
|
174
|
+
console.log('App state changed:', state);
|
|
175
|
+
});
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
##### Inbox Enhancements
|
|
179
|
+
- Added expandedDetails property to inbox messages
|
|
180
|
+
- Improved message metadata handling
|
|
181
|
+
|
|
182
|
+
#### 📦 **Updates**
|
|
183
|
+
|
|
184
|
+
- Updated Android and iOS SDK dependencies
|
|
185
|
+
- Enhanced build process
|
|
186
|
+
- Better dependency management
|
|
187
|
+
|
|
188
|
+
#### 🐛 **Critical Fixes**
|
|
189
|
+
|
|
190
|
+
- **iOS Crash Fix**: Resolved critical crash (CAP-146407)
|
|
191
|
+
- **Android SDK**: Updated to resolve compatibility issues
|
|
192
|
+
|
|
193
|
+
### [1.2.4] - "Stability Patch" - November 25, 2023
|
|
194
|
+
|
|
195
|
+
#### 🐛 **Critical Fixes**
|
|
196
|
+
|
|
197
|
+
- **iOS Stability**: Fixed major iOS issue affecting app stability
|
|
198
|
+
- **Android SDK**: Updated to latest stable version
|
|
199
|
+
|
|
200
|
+
#### 📋 **Notes**
|
|
201
|
+
|
|
202
|
+
This is a stability-focused release addressing critical issues in production environments.
|
|
203
|
+
|
|
204
|
+
### [1.2.3] - "Deep Link Enhancement" - November 20, 2023
|
|
205
|
+
|
|
206
|
+
#### 🆕 **Features**
|
|
207
|
+
|
|
208
|
+
##### Enhanced Notification Data
|
|
209
|
+
```typescript
|
|
210
|
+
// Access notification timestamp
|
|
211
|
+
const notification = await HydraLib.getNotification(id);
|
|
212
|
+
console.log(notification.createdAt); // Now available on Android
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
##### Improved Link Handling
|
|
216
|
+
- Enhanced deep link processing
|
|
217
|
+
- Better external link support
|
|
218
|
+
- Improved CTA handling
|
|
219
|
+
|
|
220
|
+
#### 📦 **Updates**
|
|
221
|
+
|
|
222
|
+
- Updated Android dependencies to v1.9.2
|
|
223
|
+
- Enhanced notification click handling
|
|
224
|
+
|
|
225
|
+
#### 🐛 **Fixes**
|
|
226
|
+
|
|
227
|
+
- **Notification Processing**: Various notification handling improvements
|
|
228
|
+
- **Link Resolution**: Fixed deep link and external link issues
|
|
229
|
+
|
|
230
|
+
### [1.2.2] - "Event System Enhancement" - November 5, 2023
|
|
231
|
+
|
|
232
|
+
#### 🆕 **Features**
|
|
233
|
+
|
|
234
|
+
##### SDK Initialization Events
|
|
235
|
+
```typescript
|
|
236
|
+
// Listen for SDK initialization
|
|
237
|
+
HydraLib.addEventListener('sdkInitialized', (status) => {
|
|
238
|
+
console.log('SDK initialized:', status);
|
|
239
|
+
});
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
##### Enhanced CTA Support
|
|
243
|
+
- Improved Call-to-Action handling in notifications
|
|
244
|
+
- Better null safety for CTA processing
|
|
245
|
+
|
|
246
|
+
#### 🔄 **Stability Improvements**
|
|
247
|
+
|
|
248
|
+
- Reverted some dependencies to stable versions
|
|
249
|
+
- Enhanced promise handling
|
|
250
|
+
- Better error management
|
|
251
|
+
|
|
252
|
+
### [1.2.1] - "Firebase Integration" - October 28, 2023
|
|
253
|
+
|
|
254
|
+
#### 🆕 **Major Features**
|
|
255
|
+
|
|
256
|
+
##### Firebase Remote Config Support
|
|
257
|
+
```typescript
|
|
258
|
+
// Initialize with Firebase Remote Config
|
|
259
|
+
await HydraLib.initializeWithFirebase({
|
|
260
|
+
apiKey: 'your-api-key',
|
|
261
|
+
firebaseConfig: { ... },
|
|
262
|
+
enableErrorHandling: true
|
|
263
|
+
});
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
#### 📱 **Platform Requirements**
|
|
267
|
+
|
|
268
|
+
- **iOS**: Minimum version 13.2+ (for Firebase compatibility)
|
|
269
|
+
- **Error Handling**: Enhanced Firebase error management
|
|
270
|
+
- **Environment Variables**: Better environment variable support
|
|
271
|
+
|
|
272
|
+
#### 🐛 **Fixes**
|
|
273
|
+
|
|
274
|
+
- **iOS Compilation**: Fixed Firebase Remote Config compilation issues
|
|
275
|
+
- **Crash Prevention**: Resolved notification core crashes
|
|
276
|
+
- **Initialization**: Added flag to disable Firebase when needed
|
|
277
|
+
|
|
278
|
+
### [1.2.0] - "Configuration Revolution" - October 15, 2023
|
|
279
|
+
|
|
280
|
+
#### 🆕 **Major Features**
|
|
281
|
+
|
|
282
|
+
##### Local Environment Support
|
|
283
|
+
```typescript
|
|
284
|
+
// Build with local environment configuration
|
|
285
|
+
const config = HydraLib.createLocalConfig({
|
|
286
|
+
environment: 'development',
|
|
287
|
+
apiKey: process.env.HYDRA_API_KEY,
|
|
288
|
+
customEndpoint: process.env.HYDRA_ENDPOINT
|
|
289
|
+
});
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
##### Enhanced Credential Management
|
|
293
|
+
- Improved account ID and credential handling
|
|
294
|
+
- Better placeholder system for sensitive data
|
|
295
|
+
- Enhanced security for credential storage
|
|
296
|
+
|
|
297
|
+
##### iOS Notification Callbacks
|
|
298
|
+
```typescript
|
|
299
|
+
// Enhanced notification callbacks
|
|
300
|
+
HydraLib.setNotificationCallbacks({
|
|
301
|
+
onNonHydraReceived: (notification) => { ... },
|
|
302
|
+
onHydraReceived: (notification) => { ... },
|
|
303
|
+
onHydraShown: (notification) => { ... },
|
|
304
|
+
onHydraDismissed: (notification) => { ... }
|
|
305
|
+
});
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
#### 🏗️ **Build System Improvements**
|
|
309
|
+
|
|
310
|
+
- Moved GitHub setup to separate gradle file
|
|
311
|
+
- Added "Hydra" prefix to environment parameters
|
|
312
|
+
- Enhanced build configuration management
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
## Version 1.1.x
|
|
317
|
+
|
|
318
|
+
### [1.1.7] - "Notification Enhancement" - September 30, 2023
|
|
319
|
+
|
|
320
|
+
#### 🆕 **Features**
|
|
321
|
+
|
|
322
|
+
##### Comprehensive iOS Notifications
|
|
323
|
+
- Added callbacks for all notification events
|
|
324
|
+
- Support for both Hydra and non-Hydra notifications
|
|
325
|
+
- Enhanced notification event tracking
|
|
326
|
+
|
|
327
|
+
##### Firebase Remote Config Initializer
|
|
328
|
+
- Basic Firebase Remote Config support
|
|
329
|
+
- Custom initializer examples
|
|
330
|
+
- Enhanced configuration management
|
|
331
|
+
|
|
332
|
+
#### 🏗️ **Infrastructure**
|
|
333
|
+
|
|
334
|
+
- Improved build configuration
|
|
335
|
+
- Enhanced GitHub setup process
|
|
336
|
+
- Better credential management system
|
|
337
|
+
|
|
338
|
+
### [1.1.6] - "Multi-Platform Token Support" - September 15, 2023
|
|
339
|
+
|
|
340
|
+
#### 🆕 **Features**
|
|
341
|
+
|
|
342
|
+
##### Platform-Specific Personal Access Tokens
|
|
343
|
+
```typescript
|
|
344
|
+
// Different tokens for different platforms
|
|
345
|
+
const config = {
|
|
346
|
+
ios: { personalAccessToken: 'ios-token' },
|
|
347
|
+
android: { personalAccessToken: 'android-token' }
|
|
348
|
+
};
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
#### 🔄 **Improvements**
|
|
352
|
+
|
|
353
|
+
- Enhanced notification event handling
|
|
354
|
+
- Updated iOS package to version 1.6.2
|
|
355
|
+
- Code cleanup and organization
|
|
356
|
+
|
|
357
|
+
### [1.1.5] - "UI Configuration" - September 1, 2023
|
|
358
|
+
|
|
359
|
+
#### 🆕 **Features**
|
|
360
|
+
|
|
361
|
+
##### Default Inbox UI Configuration
|
|
362
|
+
```typescript
|
|
363
|
+
// Use default inbox UI configuration
|
|
364
|
+
const config = {
|
|
365
|
+
useDefaultInboxUI: true,
|
|
366
|
+
customUIConfig: { ... }
|
|
367
|
+
};
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
#### 🧹 **Cleanup**
|
|
371
|
+
|
|
372
|
+
- Removed user defaults usage
|
|
373
|
+
- Enhanced .xcode.env.local handling
|
|
374
|
+
- Improved iOS configuration management
|
|
375
|
+
|
|
376
|
+
### [1.1.4] - "Push Extension Support" - August 20, 2023
|
|
377
|
+
|
|
378
|
+
#### 🆕 **Features**
|
|
379
|
+
|
|
380
|
+
##### Push Notification Service Extension
|
|
381
|
+
- Added HydraPushNotificationServiceExtension pod
|
|
382
|
+
- Enhanced push notification handling
|
|
383
|
+
- Better notification processing
|
|
384
|
+
|
|
385
|
+
#### 📱 **Platform Updates**
|
|
386
|
+
|
|
387
|
+
- Updated example app to React Native 0.77
|
|
388
|
+
- Fixed React Native version specification issues
|
|
389
|
+
|
|
390
|
+
### [1.1.3] - "Architecture Compatibility" - August 10, 2023
|
|
391
|
+
|
|
392
|
+
#### 🆕 **Features**
|
|
393
|
+
|
|
394
|
+
##### New Architecture Support
|
|
395
|
+
- Added new architecture condition in Podfile
|
|
396
|
+
- Enhanced compatibility with new React Native architecture
|
|
397
|
+
- Updated pod versions for better stability
|
|
398
|
+
|
|
399
|
+
#### 🐛 **Fixes**
|
|
400
|
+
|
|
401
|
+
- **React Native 0.72**: Fixed compilation issues on both platforms
|
|
402
|
+
- **Android Build**: Resolved Android-specific build problems
|
|
403
|
+
- **Cross-Platform**: Enhanced cross-platform compatibility
|
|
404
|
+
|
|
405
|
+
### [1.1.2] - "Geolocation Support" - July 25, 2023
|
|
406
|
+
|
|
407
|
+
#### 🆕 **Features**
|
|
408
|
+
|
|
409
|
+
##### Geo Configuration
|
|
410
|
+
```typescript
|
|
411
|
+
// Update geo configuration
|
|
412
|
+
await HydraLib.updateGeoConfig({
|
|
413
|
+
enableLocation: true,
|
|
414
|
+
accuracy: 'high',
|
|
415
|
+
updateInterval: 30000
|
|
416
|
+
});
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
#### 📦 **Updates**
|
|
420
|
+
|
|
421
|
+
- Enhanced support for pod version 1.6.0
|
|
422
|
+
- Improved geolocation functionality
|
|
423
|
+
|
|
424
|
+
#### 🐛 **Fixes**
|
|
425
|
+
|
|
426
|
+
- **Inbox Messages**: Fixed markInboxMessageAsRead functionality
|
|
427
|
+
- **Build System**: Resolved various build-related issues
|
|
428
|
+
|
|
429
|
+
### [1.1.1] - "Architecture Foundation" - July 10, 2023
|
|
430
|
+
|
|
431
|
+
#### 🆕 **Features**
|
|
432
|
+
|
|
433
|
+
##### Dual Architecture Support
|
|
434
|
+
- Full support for both old and new React Native architecture
|
|
435
|
+
- Enhanced compatibility with ReactNative 0.72.15
|
|
436
|
+
- Improved threading support for iOS
|
|
437
|
+
|
|
438
|
+
##### Package Scoping
|
|
439
|
+
- Added scoped package name: `@capillary/react-native-hydra-lib`
|
|
440
|
+
- Better namespace organization
|
|
441
|
+
- Enhanced package management
|
|
442
|
+
|
|
443
|
+
#### 🔧 **Technical Improvements**
|
|
444
|
+
|
|
445
|
+
- Disabled automatic pod install for better control
|
|
446
|
+
- Improved ReactModuleInfo configuration
|
|
447
|
+
- Added requiresMainQueueSetup for proper iOS threading
|
|
448
|
+
|
|
449
|
+
### [1.1.0] - "Foundation Release" - June 25, 2023
|
|
450
|
+
|
|
451
|
+
#### 🎉 **Initial Stable Release**
|
|
452
|
+
|
|
453
|
+
##### Core Features
|
|
454
|
+
- **Cross-Platform Support**: Full iOS and Android integration
|
|
455
|
+
- **Notification System**: Comprehensive push notification handling
|
|
456
|
+
- **Inbox Management**: Complete message inbox functionality
|
|
457
|
+
- **Geolocation**: Location-based features and targeting
|
|
458
|
+
- **Configuration**: Flexible SDK configuration system
|
|
459
|
+
|
|
460
|
+
##### Technical Foundation
|
|
461
|
+
- **React Native 0.72+**: Full compatibility with latest React Native
|
|
462
|
+
- **TypeScript**: Complete TypeScript definitions and support
|
|
463
|
+
- **Modern Architecture**: Built with latest React Native Turbo Modules
|
|
464
|
+
- **Native Performance**: Direct integration with native Hydra SDKs
|
|
465
|
+
|
|
466
|
+
##### API Features
|
|
467
|
+
```typescript
|
|
468
|
+
// Core functionality available from v1.1.0
|
|
469
|
+
await HydraLib.initialize(config);
|
|
470
|
+
await HydraLib.setUserProfile(profile);
|
|
471
|
+
await HydraLib.trackEvent('event', properties);
|
|
472
|
+
await HydraLib.showInbox();
|
|
473
|
+
const count = await HydraLib.getUnreadMessageCount();
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
478
|
+
## Release Schedule
|
|
479
|
+
|
|
480
|
+
### Release Cadence
|
|
481
|
+
|
|
482
|
+
| Release Type | Frequency | Content |
|
|
483
|
+
|--------------|-----------|---------|
|
|
484
|
+
| **Major** (X.0.0) | ~6-12 months | Breaking changes, major features |
|
|
485
|
+
| **Minor** (X.Y.0) | ~4-8 weeks | New features, deprecations |
|
|
486
|
+
| **Patch** (X.Y.Z) | As needed | Bug fixes, security updates |
|
|
487
|
+
|
|
488
|
+
### Upcoming Releases
|
|
489
|
+
|
|
490
|
+
#### v1.4.0 (Planned - Q3 2024)
|
|
491
|
+
- Enhanced analytics features
|
|
492
|
+
- Improved performance metrics
|
|
493
|
+
- Advanced segmentation capabilities
|
|
494
|
+
|
|
495
|
+
#### v2.0.0 (Planned - Q1 2025)
|
|
496
|
+
- Breaking changes for modernization
|
|
497
|
+
- Enhanced TypeScript support
|
|
498
|
+
- New React Native architecture requirement
|
|
499
|
+
|
|
500
|
+
## Support Policy
|
|
501
|
+
|
|
502
|
+
### Version Support
|
|
503
|
+
|
|
504
|
+
| Version | Status | Support Until | Security Updates |
|
|
505
|
+
|---------|--------|---------------|------------------|
|
|
506
|
+
| **1.3.x** | Active | Current | ✅ Yes |
|
|
507
|
+
| **1.2.x** | Maintenance | June 2024 | ✅ Yes |
|
|
508
|
+
| **1.1.x** | Legacy | December 2023 | ⚠️ Critical only |
|
|
509
|
+
| **<1.1.0** | Unsupported | - | ❌ No |
|
|
510
|
+
|
|
511
|
+
### Upgrade Recommendations
|
|
512
|
+
|
|
513
|
+
- **Production Apps**: Update to latest stable (1.3.0)
|
|
514
|
+
- **Development**: Always use latest version
|
|
515
|
+
- **Enterprise**: Contact support for migration assistance
|
|
516
|
+
|
|
517
|
+
### Getting Help
|
|
518
|
+
|
|
519
|
+
- 📚 **Documentation**: [README.md](./README.md)
|
|
520
|
+
- 🔄 **Migration Guide**: [MIGRATION.md](./MIGRATION.md)
|
|
521
|
+
- 🐛 **Issues**: [GitHub Issues](https://github.com/Capillary/react-native-hydra-lib/issues)
|
|
522
|
+
- 💬 **Discussions**: [GitHub Discussions](https://github.com/Capillary/react-native-hydra-lib/discussions)
|
|
523
|
+
- 📧 **Enterprise Support**: [enterprise@capillarytech.com](mailto:enterprise@capillarytech.com)
|
|
524
|
+
|
|
525
|
+
---
|
|
526
|
+
|
|
527
|
+
**Last Updated**: June 2025
|
|
528
|
+
**Document Version**: 1.0.0
|