@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/CHANGELOG.md
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Comprehensive documentation system with README, deprecation policy, and migration guide
|
|
12
|
+
- SBOM (Software Bill of Materials) automatic generation for security compliance
|
|
13
|
+
- Enhanced TypeScript support and type definitions
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Improved code formatting and linting standards
|
|
17
|
+
- Enhanced error handling and logging
|
|
18
|
+
|
|
19
|
+
## [1.3.0] - 2024-06-16
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- 🆕 **Multi-instance support**: Ability to initialize multiple Hydra instances
|
|
23
|
+
- 📋 **SBOM Generation**: Automatic Software Bill of Materials creation for security compliance
|
|
24
|
+
- 🔧 **Enhanced Configuration**: Support for reading configuration from environment files
|
|
25
|
+
- 🔒 **Dependabot Integration**: Automated dependency updates for security
|
|
26
|
+
- 🧹 **Clear Persistent Data**: Added functionality to clear persisted data
|
|
27
|
+
- 📱 **React Native Vector Icons**: Added vector icon dependency for better UI
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
- 🔄 **Multi-account functionality**: Enhanced support for multiple Hydra accounts
|
|
31
|
+
- 📦 **Dependency Updates**: Updated Yarn lock file and dependencies
|
|
32
|
+
- 🏗️ **Build Improvements**: Removed hard-coded secrets and improved build process
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
- 🐛 **Configuration Management**: Improved environment variable handling
|
|
36
|
+
- 🔧 **Build Process**: Removed task blocks that were causing build issues
|
|
37
|
+
|
|
38
|
+
## [1.2.7] - 2024-02-04
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
- 🔧 **Cross-initialization**: Enabled cross-initialization between different Hydra instances
|
|
42
|
+
- 📱 **Custom Notification Center**: Custom notification center UI with enhanced functionality
|
|
43
|
+
- 🔔 **Enhanced Notifications**: Improved notification handling and display
|
|
44
|
+
|
|
45
|
+
### Changed
|
|
46
|
+
- 📦 **Hydra Dependencies**: Updated Hydra SDK dependencies to latest versions
|
|
47
|
+
- 🏗️ **Build Configuration**: Improved build configuration for better stability
|
|
48
|
+
|
|
49
|
+
### Fixed
|
|
50
|
+
- 🐛 **Android Notification Issues**: Fixed notification data limit issues on Android
|
|
51
|
+
- 🔔 **Badge Count**: Fixed badge count decrement issues on iOS
|
|
52
|
+
- 🌐 **Base URL Validation**: Added proper validation for base URLs (must start with https)
|
|
53
|
+
- 📱 **Android 12 Compatibility**: Fixed bell icon count disappearing issue on Android 12
|
|
54
|
+
|
|
55
|
+
## [1.2.6] - 2024-01-15
|
|
56
|
+
|
|
57
|
+
### Added
|
|
58
|
+
- 📧 **Expanded Inbox Details**: Added expandedDetails in Inbox Message functionality
|
|
59
|
+
- 🔥 **Firebase Remote Config**: Completed Firebase remote config implementation for multiple instances
|
|
60
|
+
- 🔧 **Multi-instance Support**: Enhanced multi-instance functionality across platforms
|
|
61
|
+
|
|
62
|
+
### Changed
|
|
63
|
+
- 🏗️ **Architecture Updates**: Updated project structure for better maintainability
|
|
64
|
+
- 📦 **Version Management**: Improved version management and release process
|
|
65
|
+
|
|
66
|
+
### Fixed
|
|
67
|
+
- 🐛 **iOS Issues**: Fixed various iOS-specific issues with multi-instance support
|
|
68
|
+
- 🔧 **Configuration**: Fixed issues with remote configuration handling
|
|
69
|
+
|
|
70
|
+
## [1.2.5] - 2023-12-10
|
|
71
|
+
|
|
72
|
+
### Added
|
|
73
|
+
- 📧 **Inbox Message Details**: Added expandedDetails property to inbox messages
|
|
74
|
+
- 🔄 **App State Listener**: Added app state change listener functionality
|
|
75
|
+
|
|
76
|
+
### Changed
|
|
77
|
+
- 📦 **SDK Updates**: Updated both Android and iOS SDK dependencies
|
|
78
|
+
- 🏗️ **Build Process**: Improved build process and dependency management
|
|
79
|
+
|
|
80
|
+
### Fixed
|
|
81
|
+
- 🐛 **iOS Crash**: Fixed critical iOS crash issue (CAP-146407)
|
|
82
|
+
- 📱 **Android SDK**: Updated Android SDK to resolve compatibility issues
|
|
83
|
+
|
|
84
|
+
## [1.2.4] - 2023-11-25
|
|
85
|
+
|
|
86
|
+
### Fixed
|
|
87
|
+
- 🐛 **iOS Critical Fix**: Fixed major iOS issue affecting app stability
|
|
88
|
+
- 📱 **Android Updates**: Updated Android SDK to latest stable version
|
|
89
|
+
|
|
90
|
+
## [1.2.3] - 2023-11-20
|
|
91
|
+
|
|
92
|
+
### Added
|
|
93
|
+
- 📅 **CreatedAt Field**: Added createdAt timestamp from NotificationPayload to Android mapping
|
|
94
|
+
- 🔗 **Deep Link Improvements**: Enhanced deep link and external link handling
|
|
95
|
+
|
|
96
|
+
### Changed
|
|
97
|
+
- 📦 **Android Dependencies**: Updated to new Android dependencies (v1.9.2)
|
|
98
|
+
- 🔔 **Notification Click**: Improved notification click handling
|
|
99
|
+
|
|
100
|
+
### Fixed
|
|
101
|
+
- 🐛 **Notification Issues**: Fixed various issues with notification processing
|
|
102
|
+
- 🔗 **Link Handling**: Resolved deep link and external link issues
|
|
103
|
+
|
|
104
|
+
## [1.2.2] - 2023-11-05
|
|
105
|
+
|
|
106
|
+
### Added
|
|
107
|
+
- 🔔 **SDK Initialization Event**: New event for SDK initialization status
|
|
108
|
+
- 🔗 **CTA Handling**: Enhanced CTA (Call-to-Action) handling in notifications
|
|
109
|
+
|
|
110
|
+
### Changed
|
|
111
|
+
- 📦 **Dependency Rollback**: Reverted some dependencies to stable versions for compatibility
|
|
112
|
+
|
|
113
|
+
### Fixed
|
|
114
|
+
- 🛡️ **Null Safety**: Handled null values for CTA in hydra notification click listener
|
|
115
|
+
- ⚡ **Promise Handling**: Added proper return statements after promise rejection
|
|
116
|
+
|
|
117
|
+
## [1.2.1] - 2023-10-28
|
|
118
|
+
|
|
119
|
+
### Added
|
|
120
|
+
- 🔥 **Firebase Remote Config**: Enhanced Firebase Remote Config support with error handling
|
|
121
|
+
- 🔧 **Environment Variables**: Better environment variable management
|
|
122
|
+
- 📱 **iOS 13.2+ Support**: Hard-coded minimum iOS version to 13.2 for Firebase compatibility
|
|
123
|
+
|
|
124
|
+
### Fixed
|
|
125
|
+
- 🐛 **iOS Compilation**: Fixed compile issues on iOS for Firebase Remote Config
|
|
126
|
+
- 💥 **Crash Prevention**: Fixed crashes in notification core function calls
|
|
127
|
+
- 🚫 **Initialization Flag**: Added flag to disable Firebase initialization when needed
|
|
128
|
+
|
|
129
|
+
## [1.2.0] - 2023-10-15
|
|
130
|
+
|
|
131
|
+
### Added
|
|
132
|
+
- 🔥 **Firebase Remote Config**: Initial Firebase Remote Config implementation
|
|
133
|
+
- 🏗️ **Local Environment Support**: Added support for building with local environment configuration
|
|
134
|
+
- 🔐 **Credential Management**: Enhanced credential and account ID management
|
|
135
|
+
- 📱 **iOS Callbacks**: Added comprehensive notification callbacks for iOS
|
|
136
|
+
|
|
137
|
+
### Changed
|
|
138
|
+
- 🏗️ **Build Configuration**: Moved GitHub setup from build.gradle to separate file
|
|
139
|
+
- 🏷️ **Environment Naming**: Added "Hydra" prefix to environment parameters
|
|
140
|
+
- 📦 **Dependency Management**: Updated iOS package version to 1.6.2
|
|
141
|
+
|
|
142
|
+
### Fixed
|
|
143
|
+
- 🛠️ **Build Issues**: Resolved various build configuration issues
|
|
144
|
+
- 🔧 **Error Handling**: Enhanced error handling for remote config
|
|
145
|
+
|
|
146
|
+
## [1.1.7] - 2023-09-30
|
|
147
|
+
|
|
148
|
+
### Added
|
|
149
|
+
- 🔔 **Notification Callbacks**: Added callbacks for non-Hydra and Hydra notification events on iOS
|
|
150
|
+
- 🔥 **Firebase Integration**: Added Firebase Remote Config initializer
|
|
151
|
+
- 📝 **Example Code**: Added examples for custom Hydra initializer usage
|
|
152
|
+
|
|
153
|
+
### Changed
|
|
154
|
+
- 🏗️ **Build Structure**: Improved build configuration and GitHub setup
|
|
155
|
+
- 🔐 **Credential Management**: Enhanced placeholder system for credentials
|
|
156
|
+
|
|
157
|
+
## [1.1.6] - 2023-09-15
|
|
158
|
+
|
|
159
|
+
### Added
|
|
160
|
+
- 📱 **Personal Access Token**: Allow different PAT for Android and iOS platforms
|
|
161
|
+
- 🔔 **Notification Events**: Enhanced notification event handling
|
|
162
|
+
|
|
163
|
+
### Changed
|
|
164
|
+
- 📦 **iOS Package**: Updated iOS package version to 1.6.2
|
|
165
|
+
- 🧹 **Code Cleanup**: Added .kotlin folder to .gitignore
|
|
166
|
+
|
|
167
|
+
### Fixed
|
|
168
|
+
- 🔤 **Typo Corrections**: Fixed various typos in codebase
|
|
169
|
+
|
|
170
|
+
## [1.1.5] - 2023-09-01
|
|
171
|
+
|
|
172
|
+
### Added
|
|
173
|
+
- ⚙️ **Default Inbox UI**: Added config property to use default inbox UI config on iOS
|
|
174
|
+
- 🧹 **Environment Management**: Improved .xcode.env.local handling
|
|
175
|
+
|
|
176
|
+
### Changed
|
|
177
|
+
- 🗑️ **Code Cleanup**: Removed user defaults usage
|
|
178
|
+
- 📱 **iOS Configuration**: Enhanced iOS configuration management
|
|
179
|
+
|
|
180
|
+
## [1.1.4] - 2023-08-20
|
|
181
|
+
|
|
182
|
+
### Added
|
|
183
|
+
- 📱 **Push Notification Extension**: Added HydraPushNotificationServiceExtension pod in main target
|
|
184
|
+
|
|
185
|
+
### Changed
|
|
186
|
+
- 🚀 **React Native 0.77**: Updated example app to React Native 0.77
|
|
187
|
+
- 📦 **Version Handling**: Fixed issue with ^ in React Native version specification
|
|
188
|
+
|
|
189
|
+
## [1.1.3] - 2023-08-10
|
|
190
|
+
|
|
191
|
+
### Added
|
|
192
|
+
- 🏗️ **New Architecture Support**: Added new architecture condition in Podfile
|
|
193
|
+
- 📦 **Pod Versions**: Updated pod versions for better compatibility
|
|
194
|
+
|
|
195
|
+
### Fixed
|
|
196
|
+
- 🔧 **Build Compatibility**: Fixed compilation issues for React Native 0.72 on both platforms
|
|
197
|
+
- 📱 **Android Build**: Resolved Android build issues on React Native 0.72
|
|
198
|
+
|
|
199
|
+
## [1.1.2] - 2023-07-25
|
|
200
|
+
|
|
201
|
+
### Added
|
|
202
|
+
- 🌍 **Geo Configuration**: Implemented updateGeoConfig functionality on iOS
|
|
203
|
+
- 📱 **Pod Version Support**: Enhanced support for pod version 1.6.0
|
|
204
|
+
|
|
205
|
+
### Fixed
|
|
206
|
+
- 📧 **Inbox Message**: Fixed issue with markInboxMessageAsRead functionality
|
|
207
|
+
- 🏗️ **Build Issues**: Resolved various build-related problems
|
|
208
|
+
|
|
209
|
+
## [1.1.1] - 2023-07-10
|
|
210
|
+
|
|
211
|
+
### Added
|
|
212
|
+
- 🏗️ **Architecture Support**: Added support for old architecture on both iOS and Android
|
|
213
|
+
- 🔧 **ReactNative 0.72**: Enhanced compatibility with ReactNative 0.72.15
|
|
214
|
+
|
|
215
|
+
### Changed
|
|
216
|
+
- 📦 **Package Scope**: Added scoped package name (@capillary/react-native-hydra-lib)
|
|
217
|
+
- 🚫 **Pod Install**: Disabled automatic pod install for better control
|
|
218
|
+
|
|
219
|
+
### Fixed
|
|
220
|
+
- 🏗️ **Old Architecture**: Fixed issues with old architecture support
|
|
221
|
+
- 🔧 **Module Configuration**: Improved ReactModuleInfo configuration
|
|
222
|
+
- 📱 **iOS Threading**: Added requiresMainQueueSetup for proper iOS threading
|
|
223
|
+
|
|
224
|
+
## [1.1.0] - 2023-06-25
|
|
225
|
+
|
|
226
|
+
### Added
|
|
227
|
+
- 🎉 **Initial Stable Release**: First major stable release
|
|
228
|
+
- 📱 **Cross-Platform Support**: Full iOS and Android support
|
|
229
|
+
- 🔔 **Notification System**: Comprehensive notification handling
|
|
230
|
+
- 📧 **Inbox Management**: Complete inbox message management
|
|
231
|
+
- 🌍 **Geolocation Support**: Location-based features
|
|
232
|
+
- 🔧 **Configuration Management**: Flexible configuration system
|
|
233
|
+
|
|
234
|
+
### Features
|
|
235
|
+
- ✅ **React Native 0.72+ Support**: Full compatibility with latest React Native
|
|
236
|
+
- ✅ **TypeScript Support**: Complete TypeScript definitions
|
|
237
|
+
- ✅ **Modern Architecture**: Built with latest React Native architecture
|
|
238
|
+
- ✅ **Native Performance**: Direct integration with native SDKs
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## Release Notes
|
|
243
|
+
|
|
244
|
+
For detailed release notes with migration guides and breaking changes, see [RELEASE_NOTES.md](./RELEASE_NOTES.md).
|
|
245
|
+
|
|
246
|
+
## Migration Guide
|
|
247
|
+
|
|
248
|
+
For migration instructions between versions, see [MIGRATION.md](./MIGRATION.md).
|
|
249
|
+
|
|
250
|
+
## Deprecation Policy
|
|
251
|
+
|
|
252
|
+
For information about our deprecation policy and timeline, see [DEPRECATION_POLICY.md](./DEPRECATION_POLICY.md).
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
# Deprecation Policy
|
|
2
|
+
|
|
3
|
+
This document outlines the deprecation policy for `@capillary/react-native-hydra-lib`. Our goal is to provide a stable, predictable experience for developers while allowing the library to evolve and improve over time.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Overview](#overview)
|
|
8
|
+
- [Versioning Strategy](#versioning-strategy)
|
|
9
|
+
- [Deprecation Process](#deprecation-process)
|
|
10
|
+
- [Timeline and Support](#timeline-and-support)
|
|
11
|
+
- [Migration Guidelines](#migration-guidelines)
|
|
12
|
+
- [Communication Channels](#communication-channels)
|
|
13
|
+
- [Examples](#examples)
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
We follow a structured approach to deprecations that balances the need for library evolution with developer stability. All deprecations are clearly communicated with sufficient advance notice and migration paths.
|
|
18
|
+
|
|
19
|
+
### Principles
|
|
20
|
+
|
|
21
|
+
1. **Predictability**: Deprecations follow a consistent timeline and process
|
|
22
|
+
2. **Transparency**: Clear communication about what's being deprecated and why
|
|
23
|
+
3. **Support**: Adequate time and resources for migration
|
|
24
|
+
4. **Backwards Compatibility**: Maintained during deprecation periods
|
|
25
|
+
|
|
26
|
+
## Versioning Strategy
|
|
27
|
+
|
|
28
|
+
We follow [Semantic Versioning (SemVer)](https://semver.org/) with the following interpretation:
|
|
29
|
+
|
|
30
|
+
- **MAJOR** (X.0.0): Breaking changes, including removal of deprecated features
|
|
31
|
+
- **MINOR** (X.Y.0): New features, new deprecations, but no breaking changes
|
|
32
|
+
- **PATCH** (X.Y.Z): Bug fixes, security patches, no new deprecations
|
|
33
|
+
|
|
34
|
+
### Version Support Policy
|
|
35
|
+
|
|
36
|
+
| Version Type | Support Duration | Security Updates | Bug Fixes |
|
|
37
|
+
|--------------|------------------|------------------|-----------|
|
|
38
|
+
| Current Major | Until next major | ✅ Yes | ✅ Yes |
|
|
39
|
+
| Previous Major | 12 months | ✅ Yes | ⚠️ Critical only |
|
|
40
|
+
| Older Majors | None | ❌ No | ❌ No |
|
|
41
|
+
|
|
42
|
+
## Deprecation Process
|
|
43
|
+
|
|
44
|
+
### Phase 1: Deprecation Announcement (Minor Release)
|
|
45
|
+
|
|
46
|
+
When a feature is marked for deprecation:
|
|
47
|
+
|
|
48
|
+
1. **Warning Implementation**: Add runtime warnings (development only)
|
|
49
|
+
2. **Documentation Update**: Mark as deprecated in docs with migration path
|
|
50
|
+
3. **TypeScript Types**: Mark with `@deprecated` JSDoc comments
|
|
51
|
+
4. **Changelog Entry**: Document the deprecation and timeline
|
|
52
|
+
|
|
53
|
+
**Example Warning:**
|
|
54
|
+
```javascript
|
|
55
|
+
console.warn(
|
|
56
|
+
'[DEPRECATED] HydraLib.oldMethod() is deprecated and will be removed in v2.0.0. ' +
|
|
57
|
+
'Please use HydraLib.newMethod() instead. ' +
|
|
58
|
+
'See migration guide: https://github.com/Capillary/react-native-hydra-lib/blob/main/MIGRATION.md#oldmethod'
|
|
59
|
+
);
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Phase 2: Migration Period (6+ months)
|
|
63
|
+
|
|
64
|
+
During this period:
|
|
65
|
+
|
|
66
|
+
1. **Continued Support**: Deprecated features remain functional
|
|
67
|
+
2. **Bug Fixes**: Critical bugs in deprecated features are still fixed
|
|
68
|
+
3. **Migration Support**: Documentation and examples provided
|
|
69
|
+
4. **Community Support**: Help users migrate through issues/discussions
|
|
70
|
+
|
|
71
|
+
### Phase 3: Removal (Next Major Release)
|
|
72
|
+
|
|
73
|
+
In the next major version:
|
|
74
|
+
|
|
75
|
+
1. **Complete Removal**: Deprecated features are removed
|
|
76
|
+
2. **Migration Guide**: Comprehensive guide published
|
|
77
|
+
3. **Breaking Changes**: All removals documented in changelog
|
|
78
|
+
4. **Support**: Extended support for migration questions
|
|
79
|
+
|
|
80
|
+
## Timeline and Support
|
|
81
|
+
|
|
82
|
+
### Standard Deprecation Timeline
|
|
83
|
+
|
|
84
|
+
| Phase | Duration | Actions |
|
|
85
|
+
|-------|----------|---------|
|
|
86
|
+
| **Announcement** | 0 months | Feature marked deprecated, warnings added |
|
|
87
|
+
| **Grace Period** | 6-12 months | Migration support, continued functionality |
|
|
88
|
+
| **Final Notice** | 2-4 weeks | Last warning before removal |
|
|
89
|
+
| **Removal** | Next major | Feature removed completely |
|
|
90
|
+
|
|
91
|
+
### Expedited Deprecation (Security/Critical Issues)
|
|
92
|
+
|
|
93
|
+
For security vulnerabilities or critical issues:
|
|
94
|
+
|
|
95
|
+
| Phase | Duration | Actions |
|
|
96
|
+
|-------|----------|---------|
|
|
97
|
+
| **Announcement** | 0 months | Immediate notice, security advisory |
|
|
98
|
+
| **Grace Period** | 1-3 months | Urgent migration support |
|
|
99
|
+
| **Removal** | Next release | Feature removed (may be patch/minor) |
|
|
100
|
+
|
|
101
|
+
## Migration Guidelines
|
|
102
|
+
|
|
103
|
+
### For Library Maintainers
|
|
104
|
+
|
|
105
|
+
1. **Clear Documentation**: Provide step-by-step migration instructions
|
|
106
|
+
2. **Code Examples**: Show before/after code snippets
|
|
107
|
+
3. **Automated Tools**: Provide codemods when possible
|
|
108
|
+
4. **Comprehensive Testing**: Ensure migration paths work correctly
|
|
109
|
+
|
|
110
|
+
### For Library Users
|
|
111
|
+
|
|
112
|
+
1. **Monitor Warnings**: Pay attention to deprecation warnings in development
|
|
113
|
+
2. **Plan Migration**: Allow sufficient time for migration in your development cycle
|
|
114
|
+
3. **Test Thoroughly**: Test migration changes comprehensively
|
|
115
|
+
4. **Seek Help**: Use GitHub issues/discussions for migration support
|
|
116
|
+
|
|
117
|
+
## Communication Channels
|
|
118
|
+
|
|
119
|
+
### Primary Channels
|
|
120
|
+
|
|
121
|
+
1. **GitHub Releases**: Official announcements and changelogs
|
|
122
|
+
2. **README.md**: Current deprecation status and links
|
|
123
|
+
3. **Documentation**: Migration guides and examples
|
|
124
|
+
4. **TypeScript Definitions**: JSDoc deprecation markers
|
|
125
|
+
|
|
126
|
+
### Secondary Channels
|
|
127
|
+
|
|
128
|
+
1. **GitHub Issues**: For specific migration questions
|
|
129
|
+
2. **GitHub Discussions**: For community support
|
|
130
|
+
3. **Package Warnings**: Runtime warnings in development
|
|
131
|
+
|
|
132
|
+
### Notification Format
|
|
133
|
+
|
|
134
|
+
All deprecation notices include:
|
|
135
|
+
|
|
136
|
+
- **What**: Specific feature being deprecated
|
|
137
|
+
- **When**: Timeline for removal
|
|
138
|
+
- **Why**: Reason for deprecation
|
|
139
|
+
- **How**: Migration path and alternatives
|
|
140
|
+
- **Where**: Links to documentation and examples
|
|
141
|
+
|
|
142
|
+
## Examples
|
|
143
|
+
|
|
144
|
+
### API Method Deprecation
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated This method is deprecated and will be removed in v2.0.0.
|
|
149
|
+
* Use `initializeHydra()` instead.
|
|
150
|
+
* @see https://github.com/Capillary/react-native-hydra-lib/blob/main/MIGRATION.md#init
|
|
151
|
+
*/
|
|
152
|
+
export function init(config: HydraConfig): Promise<void> {
|
|
153
|
+
if (__DEV__) {
|
|
154
|
+
console.warn(
|
|
155
|
+
'[DEPRECATED] HydraLib.init() is deprecated and will be removed in v2.0.0. ' +
|
|
156
|
+
'Please use HydraLib.initializeHydra() instead. ' +
|
|
157
|
+
'Migration guide: https://github.com/Capillary/react-native-hydra-lib/blob/main/MIGRATION.md#init'
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
return initializeHydra(config);
|
|
161
|
+
}
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Configuration Property Deprecation
|
|
165
|
+
|
|
166
|
+
```typescript
|
|
167
|
+
interface HydraConfig {
|
|
168
|
+
/**
|
|
169
|
+
* @deprecated Use `apiEndpoint` instead. Will be removed in v2.0.0.
|
|
170
|
+
*/
|
|
171
|
+
apiUrl?: string;
|
|
172
|
+
|
|
173
|
+
/** New recommended property */
|
|
174
|
+
apiEndpoint?: string;
|
|
175
|
+
}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Breaking Change Migration
|
|
179
|
+
|
|
180
|
+
#### Before (v1.x)
|
|
181
|
+
```javascript
|
|
182
|
+
import { HydraLib } from '@capillary/react-native-hydra-lib';
|
|
183
|
+
|
|
184
|
+
// Old initialization
|
|
185
|
+
HydraLib.init({
|
|
186
|
+
apiUrl: 'https://api.example.com',
|
|
187
|
+
debug: true
|
|
188
|
+
});
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
#### After (v2.x)
|
|
192
|
+
```javascript
|
|
193
|
+
import { HydraLib } from '@capillary/react-native-hydra-lib';
|
|
194
|
+
|
|
195
|
+
// New initialization
|
|
196
|
+
HydraLib.initializeHydra({
|
|
197
|
+
apiEndpoint: 'https://api.example.com',
|
|
198
|
+
logLevel: 'debug'
|
|
199
|
+
});
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## Current Deprecations
|
|
203
|
+
|
|
204
|
+
> **Note**: This section will be updated as deprecations are introduced.
|
|
205
|
+
|
|
206
|
+
Currently, there are no active deprecations in this library.
|
|
207
|
+
|
|
208
|
+
## Questions and Support
|
|
209
|
+
|
|
210
|
+
If you have questions about deprecations or need help with migration:
|
|
211
|
+
|
|
212
|
+
1. **Check the Migration Guide**: [MIGRATION.md](./MIGRATION.md)
|
|
213
|
+
2. **Search Existing Issues**: [GitHub Issues](https://github.com/Capillary/react-native-hydra-lib/issues)
|
|
214
|
+
3. **Create New Issue**: For specific problems or questions
|
|
215
|
+
4. **Join Discussions**: [GitHub Discussions](https://github.com/Capillary/react-native-hydra-lib/discussions)
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
**Last Updated**: June 2025
|
|
220
|
+
**Policy Version**: 1.0.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Sandesh Jain
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|