@ua/react-native-airship 19.4.0 → 19.4.2
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/gradle.properties +1 -1
- package/android/src/main/java/com/urbanairship/reactnative/AirshipModule.kt +13 -0
- package/android/src/oldarch/java/com/urbanairship/reactnative/AirshipSpec.kt +8 -0
- package/ios/AirshipReactNative.swift +1 -1
- package/package.json +1 -1
- package/react-native-airship.podspec +1 -1
|
@@ -634,12 +634,14 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
|
|
|
634
634
|
proxy.messageCenter.setAutoLaunchDefaultMessageCenter(enabled)
|
|
635
635
|
}
|
|
636
636
|
|
|
637
|
+
@ReactMethod
|
|
637
638
|
override fun messageCenterShowMessageCenter(messageId: String?, promise: Promise) {
|
|
638
639
|
promise.resolveResult {
|
|
639
640
|
proxy.messageCenter.showMessageCenter(messageId)
|
|
640
641
|
}
|
|
641
642
|
}
|
|
642
643
|
|
|
644
|
+
@ReactMethod
|
|
643
645
|
override fun messageCenterShowMessageView(messageId: String?, promise: Promise) {
|
|
644
646
|
promise.resolveResult {
|
|
645
647
|
proxy.messageCenter.showMessageView(requireNotNull(messageId))
|
|
@@ -711,36 +713,42 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
|
|
|
711
713
|
}
|
|
712
714
|
}
|
|
713
715
|
|
|
716
|
+
@ReactMethod
|
|
714
717
|
override fun liveActivityListAll(promise: Promise) {
|
|
715
718
|
promise.resolveResult {
|
|
716
719
|
throw IllegalStateException("Not supported on Android")
|
|
717
720
|
}
|
|
718
721
|
}
|
|
719
722
|
|
|
723
|
+
@ReactMethod
|
|
720
724
|
override fun liveActivityList(request: ReadableMap?, promise: Promise) {
|
|
721
725
|
promise.resolveResult {
|
|
722
726
|
throw IllegalStateException("Not supported on Android")
|
|
723
727
|
}
|
|
724
728
|
}
|
|
725
729
|
|
|
730
|
+
@ReactMethod
|
|
726
731
|
override fun liveActivityStart(request: ReadableMap?, promise: Promise) {
|
|
727
732
|
promise.resolveResult {
|
|
728
733
|
throw IllegalStateException("Not supported on Android")
|
|
729
734
|
}
|
|
730
735
|
}
|
|
731
736
|
|
|
737
|
+
@ReactMethod
|
|
732
738
|
override fun liveActivityUpdate(request: ReadableMap?, promise: Promise) {
|
|
733
739
|
promise.resolveResult {
|
|
734
740
|
throw IllegalStateException("Not supported on Android")
|
|
735
741
|
}
|
|
736
742
|
}
|
|
737
743
|
|
|
744
|
+
@ReactMethod
|
|
738
745
|
override fun liveActivityEnd(request: ReadableMap?, promise: Promise) {
|
|
739
746
|
promise.resolveResult {
|
|
740
747
|
throw IllegalStateException("Not supported on Android")
|
|
741
748
|
}
|
|
742
749
|
}
|
|
743
750
|
|
|
751
|
+
@ReactMethod
|
|
744
752
|
override fun liveUpdateListAll(promise: Promise) {
|
|
745
753
|
promise.resolveSuspending(scope) {
|
|
746
754
|
proxy.liveUpdateManager.listAll().let {
|
|
@@ -749,6 +757,7 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
|
|
|
749
757
|
}
|
|
750
758
|
}
|
|
751
759
|
|
|
760
|
+
@ReactMethod
|
|
752
761
|
override fun liveUpdateList(request: ReadableMap?, promise: Promise) {
|
|
753
762
|
promise.resolveSuspending(scope) {
|
|
754
763
|
proxy.liveUpdateManager.list(
|
|
@@ -759,6 +768,7 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
|
|
|
759
768
|
}
|
|
760
769
|
}
|
|
761
770
|
|
|
771
|
+
@ReactMethod
|
|
762
772
|
override fun liveUpdateStart(request: ReadableMap?, promise: Promise) {
|
|
763
773
|
promise.resolveSuspending(scope) {
|
|
764
774
|
proxy.liveUpdateManager.start(
|
|
@@ -767,6 +777,7 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
|
|
|
767
777
|
}
|
|
768
778
|
}
|
|
769
779
|
|
|
780
|
+
@ReactMethod
|
|
770
781
|
override fun liveUpdateUpdate(request: ReadableMap?, promise: Promise) {
|
|
771
782
|
promise.resolveSuspending(scope) {
|
|
772
783
|
proxy.liveUpdateManager.update(
|
|
@@ -775,6 +786,7 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
|
|
|
775
786
|
}
|
|
776
787
|
}
|
|
777
788
|
|
|
789
|
+
@ReactMethod
|
|
778
790
|
override fun liveUpdateEnd(request: ReadableMap?, promise: Promise) {
|
|
779
791
|
promise.resolveSuspending(scope) {
|
|
780
792
|
proxy.liveUpdateManager.end(
|
|
@@ -783,6 +795,7 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
|
|
|
783
795
|
}
|
|
784
796
|
}
|
|
785
797
|
|
|
798
|
+
@ReactMethod
|
|
786
799
|
override fun liveUpdateClearAll(promise: Promise) {
|
|
787
800
|
promise.resolveSuspending(scope) {
|
|
788
801
|
proxy.liveUpdateManager.clearAll()
|
|
@@ -353,6 +353,14 @@ abstract class AirshipSpec internal constructor(context: ReactApplicationContext
|
|
|
353
353
|
@com.facebook.proguard.annotations.DoNotStrip
|
|
354
354
|
abstract fun messageCenterSetAutoLaunchDefaultMessageCenter(enabled: Boolean)
|
|
355
355
|
|
|
356
|
+
@ReactMethod
|
|
357
|
+
@com.facebook.proguard.annotations.DoNotStrip
|
|
358
|
+
abstract fun messageCenterShowMessageCenter(messageId: String?, promise: Promise)
|
|
359
|
+
|
|
360
|
+
@ReactMethod
|
|
361
|
+
@com.facebook.proguard.annotations.DoNotStrip
|
|
362
|
+
abstract fun messageCenterShowMessageView(messageId: String?, promise: Promise)
|
|
363
|
+
|
|
356
364
|
@ReactMethod
|
|
357
365
|
@com.facebook.proguard.annotations.DoNotStrip
|
|
358
366
|
abstract fun preferenceCenterDisplay(
|
package/package.json
CHANGED