@ua/react-native-airship 21.2.0 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +22 -28
- package/android/{src/oldarch/java/com/facebook/react/viewmanagers/RTNAirshipEmbeddedViewManagerDelegate.java → generated/java/com/facebook/react/viewmanagers/RNAirshipEmbeddedViewManagerDelegate.java} +4 -3
- package/android/generated/java/com/facebook/react/viewmanagers/RNAirshipEmbeddedViewManagerInterface.java +18 -0
- package/android/{src/oldarch/java/com/facebook/react/viewmanagers/RTNAirshipMessageViewManagerDelegate.java → generated/java/com/facebook/react/viewmanagers/RNAirshipMessageViewManagerDelegate.java} +4 -3
- package/android/generated/java/com/facebook/react/viewmanagers/RNAirshipMessageViewManagerInterface.java +18 -0
- package/android/generated/java/com/urbanairship/reactnative/NativeRNAirshipSpec.java +409 -0
- package/android/generated/jni/CMakeLists.txt +36 -0
- package/android/generated/jni/RNAirshipSpec-generated.cpp +584 -0
- package/android/generated/jni/RNAirshipSpec.h +31 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/ComponentDescriptors.cpp +23 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/ComponentDescriptors.h +25 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/EventEmitters.cpp +54 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/EventEmitters.h +52 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/Props.cpp +32 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/Props.h +37 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/RNAirshipSpecJSI-generated.cpp +659 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/RNAirshipSpecJSI.h +899 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/ShadowNodes.cpp +18 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/ShadowNodes.h +43 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/States.cpp +16 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/States.h +41 -0
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/urbanairship/reactnative/AirshipModule.kt +1 -1
- package/android/src/main/java/com/urbanairship/reactnative/ReactEmbeddedViewManager.kt +19 -10
- package/android/src/main/java/com/urbanairship/reactnative/ReactMessageViewManager.kt +19 -7
- package/android/src/newarch/java/com/urbanairship/reactnative/AirshipSpec.kt +1 -1
- package/android/src/oldarch/java/com/facebook/react/viewmanagers/{RTNAirshipEmbeddedViewManagerInterface.java → RNAirshipEmbeddedViewManagerInterface.java} +1 -1
- package/android/src/oldarch/java/com/facebook/react/viewmanagers/{RTNAirshipMessageViewManagerInterface.java → RNAirshipMessageViewManagerInterface.java} +1 -1
- package/ios/AirshipEmbeddedViewWrapper.swift +1 -1
- package/ios/MessageWebViewWrapper.swift +2 -2
- package/ios/{RTNAirship.h → RNAirship.h} +3 -3
- package/ios/{RTNAirship.mm → RNAirship.mm} +27 -26
- package/ios/{RTNAirshipBootloader.h → RNAirshipBootloader.h} +1 -1
- package/ios/{RTNAirshipBootloader.m → RNAirshipBootloader.m} +2 -2
- package/ios/{RTNAirshipEmbeddedView.h → RNAirshipEmbeddedView.h} +7 -2
- package/ios/{RTNAirshipEmbeddedView.mm → RNAirshipEmbeddedView.mm} +28 -33
- package/ios/{RTNAirshipMessageViewManager.h → RNAirshipEmbeddedViewManager.h} +1 -1
- package/ios/RNAirshipEmbeddedViewViewManager.mm +17 -0
- package/ios/{RTNAirshipMessageView.h → RNAirshipMessageView.h} +9 -2
- package/ios/{RTNAirshipMessageView.mm → RNAirshipMessageView.mm} +54 -51
- package/ios/{RTNAirshipEmbeddedViewManager.h → RNAirshipMessageViewManager.h} +1 -1
- package/ios/RNAirshipMessageViewManager.mm +23 -0
- package/ios/generated/RNAirshipSpec/ComponentDescriptors.cpp +23 -0
- package/ios/generated/RNAirshipSpec/ComponentDescriptors.h +25 -0
- package/ios/generated/RNAirshipSpec/EventEmitters.cpp +54 -0
- package/ios/generated/RNAirshipSpec/EventEmitters.h +52 -0
- package/ios/generated/RNAirshipSpec/Props.cpp +32 -0
- package/ios/generated/RNAirshipSpec/Props.h +37 -0
- package/ios/generated/RNAirshipSpec/RCTComponentViewHelpers.h +24 -0
- package/ios/generated/RNAirshipSpec/RNAirshipSpec-generated.mm +683 -0
- package/ios/generated/RNAirshipSpec/RNAirshipSpec.h +291 -0
- package/ios/generated/RNAirshipSpec/ShadowNodes.cpp +18 -0
- package/ios/generated/RNAirshipSpec/ShadowNodes.h +43 -0
- package/ios/generated/RNAirshipSpec/States.cpp +16 -0
- package/ios/generated/RNAirshipSpec/States.h +41 -0
- package/ios/generated/RNAirshipSpecJSI-generated.cpp +659 -0
- package/ios/generated/RNAirshipSpecJSI.h +899 -0
- package/lib/commonjs/AirshipActions.js.map +1 -1
- package/lib/commonjs/AirshipAnalytics.js.map +1 -1
- package/lib/commonjs/AirshipChannel.js +4 -4
- package/lib/commonjs/AirshipChannel.js.map +1 -1
- package/lib/commonjs/AirshipContact.js +3 -3
- package/lib/commonjs/AirshipContact.js.map +1 -1
- package/lib/commonjs/AirshipEmbeddedView.js +6 -3
- package/lib/commonjs/AirshipEmbeddedView.js.map +1 -1
- package/lib/commonjs/AirshipFeatureFlagManager.js.map +1 -1
- package/lib/commonjs/AirshipInApp.js +5 -9
- package/lib/commonjs/AirshipInApp.js.map +1 -1
- package/lib/commonjs/AirshipLiveActivityManager.js.map +1 -1
- package/lib/commonjs/AirshipLiveUpdateManager.js.map +1 -1
- package/lib/commonjs/AirshipLocale.js.map +1 -1
- package/lib/commonjs/AirshipMessageCenter.js.map +1 -1
- package/lib/commonjs/AirshipPreferenceCenter.js.map +1 -1
- package/lib/commonjs/AirshipPrivacyManager.js +1 -1
- package/lib/commonjs/AirshipPrivacyManager.js.map +1 -1
- package/lib/commonjs/AirshipPush.js.map +1 -1
- package/lib/commonjs/AirshipRoot.js +14 -14
- package/lib/commonjs/AirshipRoot.js.map +1 -1
- package/lib/commonjs/AttributeEditor.js.map +1 -1
- package/lib/commonjs/MessageView.js +15 -5
- package/lib/commonjs/MessageView.js.map +1 -1
- package/lib/commonjs/{NativeRTNAirship.js → NativeRNAirship.js} +2 -2
- package/lib/commonjs/NativeRNAirship.js.map +1 -0
- package/lib/commonjs/{MessageViewNativeComponent.js → RNAirshipEmbeddedViewNativeComponent.js} +3 -3
- package/lib/commonjs/RNAirshipEmbeddedViewNativeComponent.js.map +1 -0
- package/lib/commonjs/{AirshipEmbeddedViewNativeComponent.js → RNAirshipMessageViewNativeComponent.js} +3 -3
- package/lib/commonjs/RNAirshipMessageViewNativeComponent.js.map +1 -0
- package/lib/commonjs/ScopedSubscriptionListEditor.js.map +1 -1
- package/lib/commonjs/SubscriptionListEditor.js.map +1 -1
- package/lib/commonjs/TagEditor.js.map +1 -1
- package/lib/commonjs/TagGroupEditor.js.map +1 -1
- package/lib/commonjs/UAEventEmitter.js +1 -2
- package/lib/commonjs/UAEventEmitter.js.map +1 -1
- package/lib/commonjs/index.js +22 -22
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.js +95 -2
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/AirshipActions.js +2 -0
- package/lib/module/AirshipActions.js.map +1 -1
- package/lib/module/AirshipAnalytics.js +2 -0
- package/lib/module/AirshipAnalytics.js.map +1 -1
- package/lib/module/AirshipChannel.js +6 -4
- package/lib/module/AirshipChannel.js.map +1 -1
- package/lib/module/AirshipContact.js +5 -3
- package/lib/module/AirshipContact.js.map +1 -1
- package/lib/module/AirshipEmbeddedView.js +5 -3
- package/lib/module/AirshipEmbeddedView.js.map +1 -1
- package/lib/module/AirshipFeatureFlagManager.js +2 -0
- package/lib/module/AirshipFeatureFlagManager.js.map +1 -1
- package/lib/module/AirshipInApp.js +7 -9
- package/lib/module/AirshipInApp.js.map +1 -1
- package/lib/module/AirshipLiveActivityManager.js +2 -0
- package/lib/module/AirshipLiveActivityManager.js.map +1 -1
- package/lib/module/AirshipLiveUpdateManager.js +2 -0
- package/lib/module/AirshipLiveUpdateManager.js.map +1 -1
- package/lib/module/AirshipLocale.js +2 -0
- package/lib/module/AirshipLocale.js.map +1 -1
- package/lib/module/AirshipMessageCenter.js +2 -0
- package/lib/module/AirshipMessageCenter.js.map +1 -1
- package/lib/module/AirshipPreferenceCenter.js +2 -0
- package/lib/module/AirshipPreferenceCenter.js.map +1 -1
- package/lib/module/AirshipPrivacyManager.js +3 -1
- package/lib/module/AirshipPrivacyManager.js.map +1 -1
- package/lib/module/AirshipPush.js +2 -0
- package/lib/module/AirshipPush.js.map +1 -1
- package/lib/module/AirshipRoot.js +16 -14
- package/lib/module/AirshipRoot.js.map +1 -1
- package/lib/module/AttributeEditor.js.map +1 -1
- package/lib/module/MessageView.js +14 -4
- package/lib/module/MessageView.js.map +1 -1
- package/lib/module/NativeRNAirship.js +5 -0
- package/lib/module/NativeRNAirship.js.map +1 -0
- package/lib/module/RNAirshipEmbeddedViewNativeComponent.js +6 -0
- package/lib/module/RNAirshipEmbeddedViewNativeComponent.js.map +1 -0
- package/lib/module/RNAirshipMessageViewNativeComponent.js +6 -0
- package/lib/module/RNAirshipMessageViewNativeComponent.js.map +1 -0
- package/lib/module/ScopedSubscriptionListEditor.js.map +1 -1
- package/lib/module/SubscriptionListEditor.js.map +1 -1
- package/lib/module/TagEditor.js.map +1 -1
- package/lib/module/TagGroupEditor.js.map +1 -1
- package/lib/module/UAEventEmitter.js +3 -2
- package/lib/module/UAEventEmitter.js.map +1 -1
- package/lib/module/index.js +25 -23
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js +97 -2
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/AirshipActions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipAnalytics.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipChannel.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipContact.d.ts.map +1 -0
- package/lib/typescript/{AirshipEmbeddedView.d.ts → commonjs/src/AirshipEmbeddedView.d.ts} +3 -1
- package/lib/typescript/commonjs/src/AirshipEmbeddedView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipFeatureFlagManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipInApp.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipLiveActivityManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipLiveUpdateManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipLocale.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipMessageCenter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipPreferenceCenter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipPrivacyManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipPush.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipRoot.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AttributeEditor.d.ts.map +1 -0
- package/lib/typescript/{MessageView.d.ts → commonjs/src/MessageView.d.ts} +7 -6
- package/lib/typescript/commonjs/src/MessageView.d.ts.map +1 -0
- package/lib/typescript/{NativeRTNAirship.d.ts → commonjs/src/NativeRNAirship.d.ts} +2 -2
- package/lib/typescript/commonjs/src/NativeRNAirship.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/RNAirshipEmbeddedViewNativeComponent.d.ts +7 -0
- package/lib/typescript/commonjs/src/RNAirshipEmbeddedViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{MessageViewNativeComponent.d.ts → commonjs/src/RNAirshipMessageViewNativeComponent.d.ts} +3 -5
- package/lib/typescript/commonjs/src/RNAirshipMessageViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ScopedSubscriptionListEditor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/SubscriptionListEditor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TagEditor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TagGroupEditor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/UAEventEmitter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/{types.d.ts → commonjs/src/types.d.ts} +2 -2
- package/lib/typescript/commonjs/src/types.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/AirshipActions.d.ts +18 -0
- package/lib/typescript/module/src/AirshipActions.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipAnalytics.d.ts +35 -0
- package/lib/typescript/module/src/AirshipAnalytics.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipChannel.d.ts +69 -0
- package/lib/typescript/module/src/AirshipChannel.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipContact.d.ts +53 -0
- package/lib/typescript/module/src/AirshipContact.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipEmbeddedView.d.ts +19 -0
- package/lib/typescript/module/src/AirshipEmbeddedView.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipFeatureFlagManager.d.ts +51 -0
- package/lib/typescript/module/src/AirshipFeatureFlagManager.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipInApp.d.ts +47 -0
- package/lib/typescript/module/src/AirshipInApp.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipLiveActivityManager.d.ts +39 -0
- package/lib/typescript/module/src/AirshipLiveActivityManager.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipLiveUpdateManager.d.ts +43 -0
- package/lib/typescript/module/src/AirshipLiveUpdateManager.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipLocale.d.ts +24 -0
- package/lib/typescript/module/src/AirshipLocale.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipMessageCenter.d.ts +74 -0
- package/lib/typescript/module/src/AirshipMessageCenter.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipPreferenceCenter.d.ts +32 -0
- package/lib/typescript/module/src/AirshipPreferenceCenter.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipPrivacyManager.d.ts +38 -0
- package/lib/typescript/module/src/AirshipPrivacyManager.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipPush.d.ts +161 -0
- package/lib/typescript/module/src/AirshipPush.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipRoot.d.ts +84 -0
- package/lib/typescript/module/src/AirshipRoot.d.ts.map +1 -0
- package/lib/typescript/module/src/AttributeEditor.d.ts +55 -0
- package/lib/typescript/module/src/AttributeEditor.d.ts.map +1 -0
- package/lib/typescript/module/src/MessageView.d.ts +108 -0
- package/lib/typescript/module/src/MessageView.d.ts.map +1 -0
- package/lib/typescript/module/src/NativeRNAirship.d.ts +99 -0
- package/lib/typescript/module/src/NativeRNAirship.d.ts.map +1 -0
- package/lib/typescript/module/src/RNAirshipEmbeddedViewNativeComponent.d.ts +7 -0
- package/lib/typescript/module/src/RNAirshipEmbeddedViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/RNAirshipMessageViewNativeComponent.d.ts +26 -0
- package/lib/typescript/module/src/RNAirshipMessageViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/ScopedSubscriptionListEditor.d.ts +60 -0
- package/lib/typescript/module/src/ScopedSubscriptionListEditor.d.ts.map +1 -0
- package/lib/typescript/module/src/SubscriptionListEditor.d.ts +51 -0
- package/lib/typescript/module/src/SubscriptionListEditor.d.ts.map +1 -0
- package/lib/typescript/module/src/TagEditor.d.ts +47 -0
- package/lib/typescript/module/src/TagEditor.d.ts.map +1 -0
- package/lib/typescript/module/src/TagGroupEditor.d.ts +61 -0
- package/lib/typescript/module/src/TagGroupEditor.d.ts.map +1 -0
- package/lib/typescript/module/src/UAEventEmitter.d.ts +27 -0
- package/lib/typescript/module/src/UAEventEmitter.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +25 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/types.d.ts +938 -0
- package/lib/typescript/module/src/types.d.ts.map +1 -0
- package/package.json +79 -45
- package/react-native-airship.podspec +22 -4
- package/react-native.config.js +12 -0
- package/src/AirshipEmbeddedView.tsx +5 -2
- package/src/MessageView.tsx +9 -7
- package/src/{NativeRTNAirship.ts → NativeRNAirship.ts} +2 -2
- package/src/{AirshipEmbeddedViewNativeComponent.ts → RNAirshipEmbeddedViewNativeComponent.ts} +2 -2
- package/src/{MessageViewNativeComponent.ts → RNAirshipMessageViewNativeComponent.ts} +2 -2
- package/src/index.tsx +2 -2
- package/ios/RTNAirshipEmbeddedViewViewManager.mm +0 -17
- package/ios/RTNAirshipMessageViewManager.mm +0 -22
- package/lib/commonjs/AirshipEmbeddedViewNativeComponent.js.map +0 -1
- package/lib/commonjs/MessageViewNativeComponent.js.map +0 -1
- package/lib/commonjs/NativeRTNAirship.js.map +0 -1
- package/lib/module/AirshipEmbeddedViewNativeComponent.js +0 -4
- package/lib/module/AirshipEmbeddedViewNativeComponent.js.map +0 -1
- package/lib/module/MessageViewNativeComponent.js +0 -4
- package/lib/module/MessageViewNativeComponent.js.map +0 -1
- package/lib/module/NativeRTNAirship.js +0 -3
- package/lib/module/NativeRTNAirship.js.map +0 -1
- package/lib/typescript/AirshipActions.d.ts.map +0 -1
- package/lib/typescript/AirshipAnalytics.d.ts.map +0 -1
- package/lib/typescript/AirshipChannel.d.ts.map +0 -1
- package/lib/typescript/AirshipContact.d.ts.map +0 -1
- package/lib/typescript/AirshipEmbeddedView.d.ts.map +0 -1
- package/lib/typescript/AirshipEmbeddedViewNativeComponent.d.ts +0 -9
- package/lib/typescript/AirshipEmbeddedViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/AirshipFeatureFlagManager.d.ts.map +0 -1
- package/lib/typescript/AirshipInApp.d.ts.map +0 -1
- package/lib/typescript/AirshipLiveActivityManager.d.ts.map +0 -1
- package/lib/typescript/AirshipLiveUpdateManager.d.ts.map +0 -1
- package/lib/typescript/AirshipLocale.d.ts.map +0 -1
- package/lib/typescript/AirshipMessageCenter.d.ts.map +0 -1
- package/lib/typescript/AirshipPreferenceCenter.d.ts.map +0 -1
- package/lib/typescript/AirshipPrivacyManager.d.ts.map +0 -1
- package/lib/typescript/AirshipPush.d.ts.map +0 -1
- package/lib/typescript/AirshipRoot.d.ts.map +0 -1
- package/lib/typescript/AttributeEditor.d.ts.map +0 -1
- package/lib/typescript/MessageView.d.ts.map +0 -1
- package/lib/typescript/MessageViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/NativeRTNAirship.d.ts.map +0 -1
- package/lib/typescript/ScopedSubscriptionListEditor.d.ts.map +0 -1
- package/lib/typescript/SubscriptionListEditor.d.ts.map +0 -1
- package/lib/typescript/TagEditor.d.ts.map +0 -1
- package/lib/typescript/TagGroupEditor.d.ts.map +0 -1
- package/lib/typescript/UAEventEmitter.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/types.d.ts.map +0 -1
- /package/lib/typescript/{AirshipActions.d.ts → commonjs/src/AirshipActions.d.ts} +0 -0
- /package/lib/typescript/{AirshipAnalytics.d.ts → commonjs/src/AirshipAnalytics.d.ts} +0 -0
- /package/lib/typescript/{AirshipChannel.d.ts → commonjs/src/AirshipChannel.d.ts} +0 -0
- /package/lib/typescript/{AirshipContact.d.ts → commonjs/src/AirshipContact.d.ts} +0 -0
- /package/lib/typescript/{AirshipFeatureFlagManager.d.ts → commonjs/src/AirshipFeatureFlagManager.d.ts} +0 -0
- /package/lib/typescript/{AirshipInApp.d.ts → commonjs/src/AirshipInApp.d.ts} +0 -0
- /package/lib/typescript/{AirshipLiveActivityManager.d.ts → commonjs/src/AirshipLiveActivityManager.d.ts} +0 -0
- /package/lib/typescript/{AirshipLiveUpdateManager.d.ts → commonjs/src/AirshipLiveUpdateManager.d.ts} +0 -0
- /package/lib/typescript/{AirshipLocale.d.ts → commonjs/src/AirshipLocale.d.ts} +0 -0
- /package/lib/typescript/{AirshipMessageCenter.d.ts → commonjs/src/AirshipMessageCenter.d.ts} +0 -0
- /package/lib/typescript/{AirshipPreferenceCenter.d.ts → commonjs/src/AirshipPreferenceCenter.d.ts} +0 -0
- /package/lib/typescript/{AirshipPrivacyManager.d.ts → commonjs/src/AirshipPrivacyManager.d.ts} +0 -0
- /package/lib/typescript/{AirshipPush.d.ts → commonjs/src/AirshipPush.d.ts} +0 -0
- /package/lib/typescript/{AirshipRoot.d.ts → commonjs/src/AirshipRoot.d.ts} +0 -0
- /package/lib/typescript/{AttributeEditor.d.ts → commonjs/src/AttributeEditor.d.ts} +0 -0
- /package/lib/typescript/{ScopedSubscriptionListEditor.d.ts → commonjs/src/ScopedSubscriptionListEditor.d.ts} +0 -0
- /package/lib/typescript/{SubscriptionListEditor.d.ts → commonjs/src/SubscriptionListEditor.d.ts} +0 -0
- /package/lib/typescript/{TagEditor.d.ts → commonjs/src/TagEditor.d.ts} +0 -0
- /package/lib/typescript/{TagGroupEditor.d.ts → commonjs/src/TagGroupEditor.d.ts} +0 -0
- /package/lib/typescript/{UAEventEmitter.d.ts → commonjs/src/UAEventEmitter.d.ts} +0 -0
- /package/lib/typescript/{index.d.ts → commonjs/src/index.d.ts} +0 -0
package/android/build.gradle
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import groovy.json.JsonSlurper
|
|
2
2
|
|
|
3
3
|
buildscript {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
ext.getExtOrDefault = {name ->
|
|
5
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['Airship_' + name]
|
|
6
|
+
}
|
|
6
7
|
|
|
7
8
|
repositories {
|
|
8
9
|
google()
|
|
@@ -10,21 +11,17 @@ buildscript {
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
dependencies {
|
|
13
|
-
classpath "com.android.tools.build:gradle:7.2
|
|
14
|
+
classpath "com.android.tools.build:gradle:8.7.2"
|
|
14
15
|
// noinspection DifferentKotlinGradleVersion
|
|
15
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$
|
|
16
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
|
|
20
|
+
|
|
19
21
|
def isNewArchitectureEnabled() {
|
|
20
22
|
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
def isHmsEnabled() {
|
|
24
|
-
return (rootProject.hasProperty("airshipHmsEnabled") && rootProject.getProperty("airshipHmsEnabled") == "true") || (rootProject.ext.has("airshipHmsEnabled") && rootProject.ext.get("airshipHmsEnabled") == "true")
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
25
|
apply plugin: "com.android.library"
|
|
29
26
|
apply plugin: "kotlin-android"
|
|
30
27
|
|
|
@@ -32,16 +29,16 @@ if (isNewArchitectureEnabled()) {
|
|
|
32
29
|
apply plugin: "com.facebook.react"
|
|
33
30
|
}
|
|
34
31
|
|
|
35
|
-
def getExtOrDefault(name) {
|
|
36
|
-
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["Airship_" + name]
|
|
37
|
-
}
|
|
38
|
-
|
|
39
32
|
def getExtOrIntegerDefault(name) {
|
|
40
33
|
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["Airship_" + name]).toInteger()
|
|
41
34
|
}
|
|
42
35
|
|
|
36
|
+
def isHmsEnabled() {
|
|
37
|
+
return (rootProject.hasProperty("airshipHmsEnabled") && rootProject.getProperty("airshipHmsEnabled") == "true") || (rootProject.ext.has("airshipHmsEnabled") && rootProject.ext.get("airshipHmsEnabled") == "true")
|
|
38
|
+
}
|
|
43
39
|
|
|
44
40
|
android {
|
|
41
|
+
namespace "com.urbanairship.reactnative"
|
|
45
42
|
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
46
43
|
|
|
47
44
|
defaultConfig {
|
|
@@ -52,6 +49,10 @@ android {
|
|
|
52
49
|
consumerProguardFiles 'proguard-rules.pro'
|
|
53
50
|
}
|
|
54
51
|
|
|
52
|
+
buildFeatures {
|
|
53
|
+
buildConfig true
|
|
54
|
+
}
|
|
55
|
+
|
|
55
56
|
buildTypes {
|
|
56
57
|
release {
|
|
57
58
|
minifyEnabled false
|
|
@@ -70,18 +71,16 @@ android {
|
|
|
70
71
|
sourceSets {
|
|
71
72
|
main {
|
|
72
73
|
if (isNewArchitectureEnabled()) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
java.srcDirs += [
|
|
75
|
+
"src/newarch/java",
|
|
76
|
+
"generated/java",
|
|
77
|
+
"generated/jni"
|
|
78
|
+
]
|
|
78
79
|
} else {
|
|
79
|
-
|
|
80
|
+
java.srcDirs += ["src/oldarch/java"]
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
|
-
|
|
84
|
-
namespace 'com.urbanairship.reactnative'
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
repositories {
|
|
@@ -89,7 +88,6 @@ repositories {
|
|
|
89
88
|
google()
|
|
90
89
|
}
|
|
91
90
|
|
|
92
|
-
|
|
93
91
|
def getModuleVersion() {
|
|
94
92
|
def jsonFile = file('../package.json')
|
|
95
93
|
def parsedJson = new JsonSlurper().parseText(jsonFile.text)
|
|
@@ -99,17 +97,13 @@ def getModuleVersion() {
|
|
|
99
97
|
|
|
100
98
|
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
101
99
|
def proxy_version = getExtOrDefault("airshipProxyVersion")
|
|
102
|
-
def airship_version = getExtOrDefault("airshipVersion")
|
|
103
100
|
|
|
104
101
|
dependencies {
|
|
105
|
-
|
|
106
|
-
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
|
107
|
-
//noinspection GradleDynamicVersion
|
|
108
|
-
implementation "com.facebook.react:react-native:+"
|
|
102
|
+
implementation "com.facebook.react:react-android"
|
|
109
103
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
110
104
|
|
|
111
105
|
api "com.urbanairship.android:airship-framework-proxy:$proxy_version"
|
|
112
|
-
|
|
106
|
+
|
|
113
107
|
if (isHmsEnabled()) {
|
|
114
108
|
implementation "com.urbanairship.android:airship-framework-proxy-hms:$proxy_version"
|
|
115
109
|
}
|
|
@@ -11,11 +11,12 @@ package com.facebook.react.viewmanagers;
|
|
|
11
11
|
|
|
12
12
|
import android.view.View;
|
|
13
13
|
import androidx.annotation.Nullable;
|
|
14
|
+
import com.facebook.react.uimanager.BaseViewManager;
|
|
14
15
|
import com.facebook.react.uimanager.BaseViewManagerDelegate;
|
|
15
|
-
import com.facebook.react.uimanager.
|
|
16
|
+
import com.facebook.react.uimanager.LayoutShadowNode;
|
|
16
17
|
|
|
17
|
-
public class
|
|
18
|
-
public
|
|
18
|
+
public class RNAirshipEmbeddedViewManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & RNAirshipEmbeddedViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
|
|
19
|
+
public RNAirshipEmbeddedViewManagerDelegate(U viewManager) {
|
|
19
20
|
super(viewManager);
|
|
20
21
|
}
|
|
21
22
|
@Override
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GeneratePropsJavaInterface.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
package com.facebook.react.viewmanagers;
|
|
11
|
+
|
|
12
|
+
import android.view.View;
|
|
13
|
+
import androidx.annotation.Nullable;
|
|
14
|
+
import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface;
|
|
15
|
+
|
|
16
|
+
public interface RNAirshipEmbeddedViewManagerInterface<T extends View> extends ViewManagerWithGeneratedInterface {
|
|
17
|
+
void setEmbeddedId(T view, @Nullable String value);
|
|
18
|
+
}
|
|
@@ -11,11 +11,12 @@ package com.facebook.react.viewmanagers;
|
|
|
11
11
|
|
|
12
12
|
import android.view.View;
|
|
13
13
|
import androidx.annotation.Nullable;
|
|
14
|
+
import com.facebook.react.uimanager.BaseViewManager;
|
|
14
15
|
import com.facebook.react.uimanager.BaseViewManagerDelegate;
|
|
15
|
-
import com.facebook.react.uimanager.
|
|
16
|
+
import com.facebook.react.uimanager.LayoutShadowNode;
|
|
16
17
|
|
|
17
|
-
public class
|
|
18
|
-
public
|
|
18
|
+
public class RNAirshipMessageViewManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & RNAirshipMessageViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
|
|
19
|
+
public RNAirshipMessageViewManagerDelegate(U viewManager) {
|
|
19
20
|
super(viewManager);
|
|
20
21
|
}
|
|
21
22
|
@Override
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GeneratePropsJavaInterface.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
package com.facebook.react.viewmanagers;
|
|
11
|
+
|
|
12
|
+
import android.view.View;
|
|
13
|
+
import androidx.annotation.Nullable;
|
|
14
|
+
import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface;
|
|
15
|
+
|
|
16
|
+
public interface RNAirshipMessageViewManagerInterface<T extends View> extends ViewManagerWithGeneratedInterface {
|
|
17
|
+
void setMessageId(T view, @Nullable String value);
|
|
18
|
+
}
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GenerateModuleJavaSpec.js
|
|
9
|
+
*
|
|
10
|
+
* @nolint
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
package com.urbanairship.reactnative;
|
|
14
|
+
|
|
15
|
+
import com.facebook.proguard.annotations.DoNotStrip;
|
|
16
|
+
import com.facebook.react.bridge.Promise;
|
|
17
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
18
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
19
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
20
|
+
import com.facebook.react.bridge.ReadableArray;
|
|
21
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
22
|
+
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
|
23
|
+
import javax.annotation.Nonnull;
|
|
24
|
+
import javax.annotation.Nullable;
|
|
25
|
+
|
|
26
|
+
public abstract class NativeRNAirshipSpec extends ReactContextBaseJavaModule implements TurboModule {
|
|
27
|
+
public static final String NAME = "RNAirship";
|
|
28
|
+
|
|
29
|
+
public NativeRNAirshipSpec(ReactApplicationContext reactContext) {
|
|
30
|
+
super(reactContext);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@Override
|
|
34
|
+
public @Nonnull String getName() {
|
|
35
|
+
return NAME;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@ReactMethod
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
public abstract void takeOff(ReadableMap config, Promise promise);
|
|
41
|
+
|
|
42
|
+
@ReactMethod
|
|
43
|
+
@DoNotStrip
|
|
44
|
+
public abstract void isFlying(Promise promise);
|
|
45
|
+
|
|
46
|
+
@ReactMethod
|
|
47
|
+
@DoNotStrip
|
|
48
|
+
public abstract void airshipListenerAdded(String eventName);
|
|
49
|
+
|
|
50
|
+
@ReactMethod
|
|
51
|
+
@DoNotStrip
|
|
52
|
+
public abstract void takePendingEvents(String eventName, boolean isHeadlessJS, Promise promise);
|
|
53
|
+
|
|
54
|
+
@ReactMethod
|
|
55
|
+
@DoNotStrip
|
|
56
|
+
public abstract void addListener(String eventType);
|
|
57
|
+
|
|
58
|
+
@ReactMethod
|
|
59
|
+
@DoNotStrip
|
|
60
|
+
public abstract void removeListeners(double count);
|
|
61
|
+
|
|
62
|
+
@ReactMethod
|
|
63
|
+
@DoNotStrip
|
|
64
|
+
public abstract void channelEnableChannelCreation(Promise promise);
|
|
65
|
+
|
|
66
|
+
@ReactMethod
|
|
67
|
+
@DoNotStrip
|
|
68
|
+
public abstract void channelAddTag(String tag, Promise promise);
|
|
69
|
+
|
|
70
|
+
@ReactMethod
|
|
71
|
+
@DoNotStrip
|
|
72
|
+
public abstract void channelRemoveTag(String tag, Promise promise);
|
|
73
|
+
|
|
74
|
+
@ReactMethod
|
|
75
|
+
@DoNotStrip
|
|
76
|
+
public abstract void channelEditTags(ReadableArray operations, Promise promise);
|
|
77
|
+
|
|
78
|
+
@ReactMethod
|
|
79
|
+
@DoNotStrip
|
|
80
|
+
public abstract void channelGetTags(Promise promise);
|
|
81
|
+
|
|
82
|
+
@ReactMethod
|
|
83
|
+
@DoNotStrip
|
|
84
|
+
public abstract void channelGetChannelId(Promise promise);
|
|
85
|
+
|
|
86
|
+
@ReactMethod
|
|
87
|
+
@DoNotStrip
|
|
88
|
+
public abstract void channelGetSubscriptionLists(Promise promise);
|
|
89
|
+
|
|
90
|
+
@ReactMethod
|
|
91
|
+
@DoNotStrip
|
|
92
|
+
public abstract void channelEditTagGroups(ReadableArray operations, Promise promise);
|
|
93
|
+
|
|
94
|
+
@ReactMethod
|
|
95
|
+
@DoNotStrip
|
|
96
|
+
public abstract void channelEditAttributes(ReadableArray operations, Promise promise);
|
|
97
|
+
|
|
98
|
+
@ReactMethod
|
|
99
|
+
@DoNotStrip
|
|
100
|
+
public abstract void channelEditSubscriptionLists(ReadableArray operations, Promise promise);
|
|
101
|
+
|
|
102
|
+
@ReactMethod
|
|
103
|
+
@DoNotStrip
|
|
104
|
+
public abstract void pushSetUserNotificationsEnabled(boolean enabled, Promise promise);
|
|
105
|
+
|
|
106
|
+
@ReactMethod
|
|
107
|
+
@DoNotStrip
|
|
108
|
+
public abstract void pushIsUserNotificationsEnabled(Promise promise);
|
|
109
|
+
|
|
110
|
+
@ReactMethod
|
|
111
|
+
@DoNotStrip
|
|
112
|
+
public abstract void pushEnableUserNotifications(@Nullable ReadableMap options, Promise promise);
|
|
113
|
+
|
|
114
|
+
@ReactMethod
|
|
115
|
+
@DoNotStrip
|
|
116
|
+
public abstract void pushGetNotificationStatus(Promise promise);
|
|
117
|
+
|
|
118
|
+
@ReactMethod
|
|
119
|
+
@DoNotStrip
|
|
120
|
+
public abstract void pushGetRegistrationToken(Promise promise);
|
|
121
|
+
|
|
122
|
+
@ReactMethod
|
|
123
|
+
@DoNotStrip
|
|
124
|
+
public abstract void pushGetActiveNotifications(Promise promise);
|
|
125
|
+
|
|
126
|
+
@ReactMethod
|
|
127
|
+
@DoNotStrip
|
|
128
|
+
public abstract void pushClearNotifications();
|
|
129
|
+
|
|
130
|
+
@ReactMethod
|
|
131
|
+
@DoNotStrip
|
|
132
|
+
public abstract void pushClearNotification(String identifier);
|
|
133
|
+
|
|
134
|
+
@ReactMethod
|
|
135
|
+
@DoNotStrip
|
|
136
|
+
public abstract void pushIosSetForegroundPresentationOptions(ReadableArray options, Promise promise);
|
|
137
|
+
|
|
138
|
+
@ReactMethod
|
|
139
|
+
@DoNotStrip
|
|
140
|
+
public abstract void pushIosSetNotificationOptions(ReadableArray options, Promise promise);
|
|
141
|
+
|
|
142
|
+
@ReactMethod
|
|
143
|
+
@DoNotStrip
|
|
144
|
+
public abstract void pushIosSetAutobadgeEnabled(boolean enabled, Promise promise);
|
|
145
|
+
|
|
146
|
+
@ReactMethod
|
|
147
|
+
@DoNotStrip
|
|
148
|
+
public abstract void pushIosIsAutobadgeEnabled(Promise promise);
|
|
149
|
+
|
|
150
|
+
@ReactMethod
|
|
151
|
+
@DoNotStrip
|
|
152
|
+
public abstract void pushIosSetBadgeNumber(double badgeNumber, Promise promise);
|
|
153
|
+
|
|
154
|
+
@ReactMethod
|
|
155
|
+
@DoNotStrip
|
|
156
|
+
public abstract void pushIosGetBadgeNumber(Promise promise);
|
|
157
|
+
|
|
158
|
+
@ReactMethod
|
|
159
|
+
@DoNotStrip
|
|
160
|
+
public abstract void pushIosIsOverridePresentationOptionsEnabled(boolean enabled);
|
|
161
|
+
|
|
162
|
+
@ReactMethod
|
|
163
|
+
@DoNotStrip
|
|
164
|
+
public abstract void pushIosOverridePresentationOptions(String requestId, @Nullable ReadableArray options);
|
|
165
|
+
|
|
166
|
+
@ReactMethod
|
|
167
|
+
@DoNotStrip
|
|
168
|
+
public abstract void pushIosGetAuthorizedNotificationSettings(Promise promise);
|
|
169
|
+
|
|
170
|
+
@ReactMethod
|
|
171
|
+
@DoNotStrip
|
|
172
|
+
public abstract void pushIosGetAuthorizedNotificationStatus(Promise promise);
|
|
173
|
+
|
|
174
|
+
@ReactMethod
|
|
175
|
+
@DoNotStrip
|
|
176
|
+
public abstract void pushAndroidIsNotificationChannelEnabled(String channel, Promise promise);
|
|
177
|
+
|
|
178
|
+
@ReactMethod
|
|
179
|
+
@DoNotStrip
|
|
180
|
+
public abstract void pushAndroidSetNotificationConfig(ReadableMap config);
|
|
181
|
+
|
|
182
|
+
@ReactMethod
|
|
183
|
+
@DoNotStrip
|
|
184
|
+
public abstract void pushAndroidIsOverrideForegroundDisplayEnabled(boolean enabled);
|
|
185
|
+
|
|
186
|
+
@ReactMethod
|
|
187
|
+
@DoNotStrip
|
|
188
|
+
public abstract void pushAndroidOverrideForegroundDisplay(String requestId, boolean shouldDisplay);
|
|
189
|
+
|
|
190
|
+
@ReactMethod
|
|
191
|
+
@DoNotStrip
|
|
192
|
+
public abstract void contactIdentify(String namedUser, Promise promise);
|
|
193
|
+
|
|
194
|
+
@ReactMethod
|
|
195
|
+
@DoNotStrip
|
|
196
|
+
public abstract void contactReset(Promise promise);
|
|
197
|
+
|
|
198
|
+
@ReactMethod
|
|
199
|
+
@DoNotStrip
|
|
200
|
+
public abstract void contactNotifyRemoteLogin(Promise promise);
|
|
201
|
+
|
|
202
|
+
@ReactMethod
|
|
203
|
+
@DoNotStrip
|
|
204
|
+
public abstract void contactGetNamedUserId(Promise promise);
|
|
205
|
+
|
|
206
|
+
@ReactMethod
|
|
207
|
+
@DoNotStrip
|
|
208
|
+
public abstract void contactGetSubscriptionLists(Promise promise);
|
|
209
|
+
|
|
210
|
+
@ReactMethod
|
|
211
|
+
@DoNotStrip
|
|
212
|
+
public abstract void contactEditTagGroups(ReadableArray operations, Promise promise);
|
|
213
|
+
|
|
214
|
+
@ReactMethod
|
|
215
|
+
@DoNotStrip
|
|
216
|
+
public abstract void contactEditAttributes(ReadableArray operations, Promise promise);
|
|
217
|
+
|
|
218
|
+
@ReactMethod
|
|
219
|
+
@DoNotStrip
|
|
220
|
+
public abstract void contactEditSubscriptionLists(ReadableArray operations, Promise promise);
|
|
221
|
+
|
|
222
|
+
@ReactMethod
|
|
223
|
+
@DoNotStrip
|
|
224
|
+
public abstract void analyticsTrackScreen(@Nullable String screen, Promise promise);
|
|
225
|
+
|
|
226
|
+
@ReactMethod
|
|
227
|
+
@DoNotStrip
|
|
228
|
+
public abstract void analyticsAssociateIdentifier(String key, @Nullable String identifier, Promise promise);
|
|
229
|
+
|
|
230
|
+
@ReactMethod
|
|
231
|
+
@DoNotStrip
|
|
232
|
+
public abstract void addCustomEvent(ReadableMap event, Promise promise);
|
|
233
|
+
|
|
234
|
+
@ReactMethod
|
|
235
|
+
@DoNotStrip
|
|
236
|
+
public abstract void analyticsGetSessionId(Promise promise);
|
|
237
|
+
|
|
238
|
+
@ReactMethod
|
|
239
|
+
@DoNotStrip
|
|
240
|
+
public abstract void actionRun(ReadableMap action, Promise promise);
|
|
241
|
+
|
|
242
|
+
@ReactMethod
|
|
243
|
+
@DoNotStrip
|
|
244
|
+
public abstract void privacyManagerSetEnabledFeatures(ReadableArray features, Promise promise);
|
|
245
|
+
|
|
246
|
+
@ReactMethod
|
|
247
|
+
@DoNotStrip
|
|
248
|
+
public abstract void privacyManagerGetEnabledFeatures(Promise promise);
|
|
249
|
+
|
|
250
|
+
@ReactMethod
|
|
251
|
+
@DoNotStrip
|
|
252
|
+
public abstract void privacyManagerEnableFeature(ReadableArray features, Promise promise);
|
|
253
|
+
|
|
254
|
+
@ReactMethod
|
|
255
|
+
@DoNotStrip
|
|
256
|
+
public abstract void privacyManagerDisableFeature(ReadableArray features, Promise promise);
|
|
257
|
+
|
|
258
|
+
@ReactMethod
|
|
259
|
+
@DoNotStrip
|
|
260
|
+
public abstract void privacyManagerIsFeatureEnabled(ReadableArray features, Promise promise);
|
|
261
|
+
|
|
262
|
+
@ReactMethod
|
|
263
|
+
@DoNotStrip
|
|
264
|
+
public abstract void inAppSetDisplayInterval(double milliseconds, Promise promise);
|
|
265
|
+
|
|
266
|
+
@ReactMethod
|
|
267
|
+
@DoNotStrip
|
|
268
|
+
public abstract void inAppGetDisplayInterval(Promise promise);
|
|
269
|
+
|
|
270
|
+
@ReactMethod
|
|
271
|
+
@DoNotStrip
|
|
272
|
+
public abstract void inAppSetPaused(boolean paused, Promise promise);
|
|
273
|
+
|
|
274
|
+
@ReactMethod
|
|
275
|
+
@DoNotStrip
|
|
276
|
+
public abstract void inAppIsPaused(Promise promise);
|
|
277
|
+
|
|
278
|
+
@ReactMethod
|
|
279
|
+
@DoNotStrip
|
|
280
|
+
public abstract void inAppResendPendingEmbeddedEvent();
|
|
281
|
+
|
|
282
|
+
@ReactMethod
|
|
283
|
+
@DoNotStrip
|
|
284
|
+
public abstract void messageCenterGetUnreadCount(Promise promise);
|
|
285
|
+
|
|
286
|
+
@ReactMethod
|
|
287
|
+
@DoNotStrip
|
|
288
|
+
public abstract void messageCenterDismiss(Promise promise);
|
|
289
|
+
|
|
290
|
+
@ReactMethod
|
|
291
|
+
@DoNotStrip
|
|
292
|
+
public abstract void messageCenterDisplay(@Nullable String messageId, Promise promise);
|
|
293
|
+
|
|
294
|
+
@ReactMethod
|
|
295
|
+
@DoNotStrip
|
|
296
|
+
public abstract void messageCenterGetMessages(Promise promise);
|
|
297
|
+
|
|
298
|
+
@ReactMethod
|
|
299
|
+
@DoNotStrip
|
|
300
|
+
public abstract void messageCenterDeleteMessage(String messageId, Promise promise);
|
|
301
|
+
|
|
302
|
+
@ReactMethod
|
|
303
|
+
@DoNotStrip
|
|
304
|
+
public abstract void messageCenterMarkMessageRead(String messageId, Promise promise);
|
|
305
|
+
|
|
306
|
+
@ReactMethod
|
|
307
|
+
@DoNotStrip
|
|
308
|
+
public abstract void messageCenterRefresh(Promise promise);
|
|
309
|
+
|
|
310
|
+
@ReactMethod
|
|
311
|
+
@DoNotStrip
|
|
312
|
+
public abstract void messageCenterSetAutoLaunchDefaultMessageCenter(boolean enabled);
|
|
313
|
+
|
|
314
|
+
@ReactMethod
|
|
315
|
+
@DoNotStrip
|
|
316
|
+
public abstract void messageCenterShowMessageCenter(@Nullable String messageId, Promise promise);
|
|
317
|
+
|
|
318
|
+
@ReactMethod
|
|
319
|
+
@DoNotStrip
|
|
320
|
+
public abstract void messageCenterShowMessageView(String messageId, Promise promise);
|
|
321
|
+
|
|
322
|
+
@ReactMethod
|
|
323
|
+
@DoNotStrip
|
|
324
|
+
public abstract void preferenceCenterDisplay(String preferenceCenterId, Promise promise);
|
|
325
|
+
|
|
326
|
+
@ReactMethod
|
|
327
|
+
@DoNotStrip
|
|
328
|
+
public abstract void preferenceCenterGetConfig(String preferenceCenterId, Promise promise);
|
|
329
|
+
|
|
330
|
+
@ReactMethod
|
|
331
|
+
@DoNotStrip
|
|
332
|
+
public abstract void preferenceCenterAutoLaunchDefaultPreferenceCenter(String preferenceCenterId, boolean autoLaunch);
|
|
333
|
+
|
|
334
|
+
@ReactMethod
|
|
335
|
+
@DoNotStrip
|
|
336
|
+
public abstract void localeSetLocaleOverride(String localeIdentifier, Promise promise);
|
|
337
|
+
|
|
338
|
+
@ReactMethod
|
|
339
|
+
@DoNotStrip
|
|
340
|
+
public abstract void localeGetLocale(Promise promise);
|
|
341
|
+
|
|
342
|
+
@ReactMethod
|
|
343
|
+
@DoNotStrip
|
|
344
|
+
public abstract void localeClearLocaleOverride(Promise promise);
|
|
345
|
+
|
|
346
|
+
@ReactMethod
|
|
347
|
+
@DoNotStrip
|
|
348
|
+
public abstract void featureFlagManagerFlag(String flagName, boolean useResultCache, Promise promise);
|
|
349
|
+
|
|
350
|
+
@ReactMethod
|
|
351
|
+
@DoNotStrip
|
|
352
|
+
public abstract void featureFlagManagerTrackInteraction(ReadableMap flag, Promise promise);
|
|
353
|
+
|
|
354
|
+
@ReactMethod
|
|
355
|
+
@DoNotStrip
|
|
356
|
+
public abstract void featureFlagManagerResultCacheGetFlag(String flagName, Promise promise);
|
|
357
|
+
|
|
358
|
+
@ReactMethod
|
|
359
|
+
@DoNotStrip
|
|
360
|
+
public abstract void featureFlagManagerResultCacheSetFlag(ReadableMap flag, double ttl, Promise promise);
|
|
361
|
+
|
|
362
|
+
@ReactMethod
|
|
363
|
+
@DoNotStrip
|
|
364
|
+
public abstract void featureFlagManagerResultCacheRemoveFlag(String flagName, Promise promise);
|
|
365
|
+
|
|
366
|
+
@ReactMethod
|
|
367
|
+
@DoNotStrip
|
|
368
|
+
public abstract void liveActivityListAll(Promise promise);
|
|
369
|
+
|
|
370
|
+
@ReactMethod
|
|
371
|
+
@DoNotStrip
|
|
372
|
+
public abstract void liveActivityList(ReadableMap request, Promise promise);
|
|
373
|
+
|
|
374
|
+
@ReactMethod
|
|
375
|
+
@DoNotStrip
|
|
376
|
+
public abstract void liveActivityStart(ReadableMap request, Promise promise);
|
|
377
|
+
|
|
378
|
+
@ReactMethod
|
|
379
|
+
@DoNotStrip
|
|
380
|
+
public abstract void liveActivityUpdate(ReadableMap request, Promise promise);
|
|
381
|
+
|
|
382
|
+
@ReactMethod
|
|
383
|
+
@DoNotStrip
|
|
384
|
+
public abstract void liveActivityEnd(ReadableMap request, Promise promise);
|
|
385
|
+
|
|
386
|
+
@ReactMethod
|
|
387
|
+
@DoNotStrip
|
|
388
|
+
public abstract void liveUpdateListAll(Promise promise);
|
|
389
|
+
|
|
390
|
+
@ReactMethod
|
|
391
|
+
@DoNotStrip
|
|
392
|
+
public abstract void liveUpdateList(ReadableMap request, Promise promise);
|
|
393
|
+
|
|
394
|
+
@ReactMethod
|
|
395
|
+
@DoNotStrip
|
|
396
|
+
public abstract void liveUpdateStart(ReadableMap request, Promise promise);
|
|
397
|
+
|
|
398
|
+
@ReactMethod
|
|
399
|
+
@DoNotStrip
|
|
400
|
+
public abstract void liveUpdateUpdate(ReadableMap request, Promise promise);
|
|
401
|
+
|
|
402
|
+
@ReactMethod
|
|
403
|
+
@DoNotStrip
|
|
404
|
+
public abstract void liveUpdateEnd(ReadableMap request, Promise promise);
|
|
405
|
+
|
|
406
|
+
@ReactMethod
|
|
407
|
+
@DoNotStrip
|
|
408
|
+
public abstract void liveUpdateClearAll(Promise promise);
|
|
409
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
cmake_minimum_required(VERSION 3.13)
|
|
7
|
+
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
8
|
+
|
|
9
|
+
file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/RNAirshipSpec/*.cpp)
|
|
10
|
+
|
|
11
|
+
add_library(
|
|
12
|
+
react_codegen_RNAirshipSpec
|
|
13
|
+
OBJECT
|
|
14
|
+
${react_codegen_SRCS}
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
target_include_directories(react_codegen_RNAirshipSpec PUBLIC . react/renderer/components/RNAirshipSpec)
|
|
18
|
+
|
|
19
|
+
target_link_libraries(
|
|
20
|
+
react_codegen_RNAirshipSpec
|
|
21
|
+
fbjni
|
|
22
|
+
jsi
|
|
23
|
+
# We need to link different libraries based on whether we are building rncore or not, that's necessary
|
|
24
|
+
# because we want to break a circular dependency between react_codegen_rncore and reactnative
|
|
25
|
+
reactnative
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
target_compile_options(
|
|
29
|
+
react_codegen_RNAirshipSpec
|
|
30
|
+
PRIVATE
|
|
31
|
+
-DLOG_TAG=\"ReactNative\"
|
|
32
|
+
-fexceptions
|
|
33
|
+
-frtti
|
|
34
|
+
-std=c++20
|
|
35
|
+
-Wall
|
|
36
|
+
)
|