Skip to content

Commit 821000f

Browse files
authored
Merge pull request #602 from urbanairship/fixOldArch
fix live update and live activities on oldArch
2 parents 94437cc + f827ec7 commit 821000f

File tree

7 files changed

+45
-26
lines changed

7 files changed

+45
-26
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# React Native Module Changelog
22

3+
## Version 19.4.2 - October 22, 2024
4+
Patch release to fix live activities and live updates on react old architecture and update Android and iOS SDK.
5+
6+
### Changes
7+
- Fixed live activities and live updates on react old architecture.
8+
- Updated Airship Android SDK to [18.3.3](https://github.com/urbanairship/android-library/releases/tag/18.3.3)
9+
- Updated Airship iOS SDK to [18.11.1](https://github.com/urbanairship/ios-library/releases/tag/18.11.1)
10+
311
## Version 19.4.1 - October 9, 2024
412
Patch release to fix a compile issue with the old Architecture on Android.
513

android/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Airship_minSdkVersion=21
33
Airship_targetSdkVersion=34
44
Airship_compileSdkVersion=34
55
Airship_ndkversion=26.1.10909125
6-
Airship_airshipProxyVersion=10.0.0
6+
Airship_airshipProxyVersion=10.1.1

android/src/main/java/com/urbanairship/reactnative/AirshipModule.kt

+11
Original file line numberDiff line numberDiff line change
@@ -713,36 +713,42 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
713713
}
714714
}
715715

716+
@ReactMethod
716717
override fun liveActivityListAll(promise: Promise) {
717718
promise.resolveResult {
718719
throw IllegalStateException("Not supported on Android")
719720
}
720721
}
721722

723+
@ReactMethod
722724
override fun liveActivityList(request: ReadableMap?, promise: Promise) {
723725
promise.resolveResult {
724726
throw IllegalStateException("Not supported on Android")
725727
}
726728
}
727729

730+
@ReactMethod
728731
override fun liveActivityStart(request: ReadableMap?, promise: Promise) {
729732
promise.resolveResult {
730733
throw IllegalStateException("Not supported on Android")
731734
}
732735
}
733736

737+
@ReactMethod
734738
override fun liveActivityUpdate(request: ReadableMap?, promise: Promise) {
735739
promise.resolveResult {
736740
throw IllegalStateException("Not supported on Android")
737741
}
738742
}
739743

744+
@ReactMethod
740745
override fun liveActivityEnd(request: ReadableMap?, promise: Promise) {
741746
promise.resolveResult {
742747
throw IllegalStateException("Not supported on Android")
743748
}
744749
}
745750

751+
@ReactMethod
746752
override fun liveUpdateListAll(promise: Promise) {
747753
promise.resolveSuspending(scope) {
748754
proxy.liveUpdateManager.listAll().let {
@@ -751,6 +757,7 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
751757
}
752758
}
753759

760+
@ReactMethod
754761
override fun liveUpdateList(request: ReadableMap?, promise: Promise) {
755762
promise.resolveSuspending(scope) {
756763
proxy.liveUpdateManager.list(
@@ -761,6 +768,7 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
761768
}
762769
}
763770

771+
@ReactMethod
764772
override fun liveUpdateStart(request: ReadableMap?, promise: Promise) {
765773
promise.resolveSuspending(scope) {
766774
proxy.liveUpdateManager.start(
@@ -769,6 +777,7 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
769777
}
770778
}
771779

780+
@ReactMethod
772781
override fun liveUpdateUpdate(request: ReadableMap?, promise: Promise) {
773782
promise.resolveSuspending(scope) {
774783
proxy.liveUpdateManager.update(
@@ -777,6 +786,7 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
777786
}
778787
}
779788

789+
@ReactMethod
780790
override fun liveUpdateEnd(request: ReadableMap?, promise: Promise) {
781791
promise.resolveSuspending(scope) {
782792
proxy.liveUpdateManager.end(
@@ -785,6 +795,7 @@ class AirshipModule internal constructor(val context: ReactApplicationContext) :
785795
}
786796
}
787797

798+
@ReactMethod
788799
override fun liveUpdateClearAll(promise: Promise) {
789800
promise.resolveSuspending(scope) {
790801
proxy.liveUpdateManager.clearAll()

example/ios/Podfile.lock

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
PODS:
2-
- Airship (18.10.0):
3-
- Airship/Automation (= 18.10.0)
4-
- Airship/Basement (= 18.10.0)
5-
- Airship/Core (= 18.10.0)
6-
- Airship/FeatureFlags (= 18.10.0)
7-
- Airship/MessageCenter (= 18.10.0)
8-
- Airship/PreferenceCenter (= 18.10.0)
9-
- Airship/Automation (18.10.0):
2+
- Airship (18.11.1):
3+
- Airship/Automation (= 18.11.1)
4+
- Airship/Basement (= 18.11.1)
5+
- Airship/Core (= 18.11.1)
6+
- Airship/FeatureFlags (= 18.11.1)
7+
- Airship/MessageCenter (= 18.11.1)
8+
- Airship/PreferenceCenter (= 18.11.1)
9+
- Airship/Automation (18.11.1):
1010
- Airship/Core
11-
- Airship/Basement (18.10.0)
12-
- Airship/Core (18.10.0):
11+
- Airship/Basement (18.11.1)
12+
- Airship/Core (18.11.1):
1313
- Airship/Basement
14-
- Airship/FeatureFlags (18.10.0):
14+
- Airship/FeatureFlags (18.11.1):
1515
- Airship/Core
16-
- Airship/MessageCenter (18.10.0):
16+
- Airship/MessageCenter (18.11.1):
1717
- Airship/Core
18-
- Airship/PreferenceCenter (18.10.0):
18+
- Airship/PreferenceCenter (18.11.1):
1919
- Airship/Core
20-
- AirshipFrameworkProxy (10.0.0):
21-
- Airship (= 18.10.0)
22-
- AirshipServiceExtension (18.10.0)
20+
- AirshipFrameworkProxy (10.1.1):
21+
- Airship (= 18.11.1)
22+
- AirshipServiceExtension (18.11.1)
2323
- boost (1.83.0)
2424
- DoubleConversion (1.1.6)
2525
- FBLazyVector (0.73.4)
@@ -907,8 +907,8 @@ PODS:
907907
- React-Mapbuffer (0.73.4):
908908
- glog
909909
- React-debug
910-
- react-native-airship (19.4.1):
911-
- AirshipFrameworkProxy (= 10.0.0)
910+
- react-native-airship (19.4.2):
911+
- AirshipFrameworkProxy (= 10.1.1)
912912
- glog
913913
- RCT-Folly (= 2022.05.16.00)
914914
- React-Core
@@ -1279,9 +1279,9 @@ EXTERNAL SOURCES:
12791279
:path: "../node_modules/react-native/ReactCommon/yoga"
12801280

12811281
SPEC CHECKSUMS:
1282-
Airship: f05f63abc90b20274854a7cda3334f383af370cd
1283-
AirshipFrameworkProxy: 8bf84e8ca65c3847c63b6851463822f1a3fb2982
1284-
AirshipServiceExtension: b62830295737abaadc92572a1ec93175a749ea98
1282+
Airship: 208ebe5da07e89abee6c4abd14dfefa6aee14fa2
1283+
AirshipFrameworkProxy: 2a5c7331dfdfb5b04bcaa2072d7f7985c761c034
1284+
AirshipServiceExtension: e9e648c00eeeda6f0407c202998fc17b01955b77
12851285
boost: d3f49c53809116a5d38da093a8aa78bf551aed09
12861286
DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953
12871287
FBLazyVector: 84f6edbe225f38aebd9deaf1540a4160b1f087d7
@@ -1311,7 +1311,7 @@ SPEC CHECKSUMS:
13111311
React-jsinspector: 9ac353eccf6ab54d1e0a33862ba91221d1e88460
13121312
React-logger: 0a57b68dd2aec7ff738195f081f0520724b35dab
13131313
React-Mapbuffer: 63913773ed7f96b814a2521e13e6d010282096ad
1314-
react-native-airship: d8f5b6cd7f62135b13c31a5f2b2b4eb144819166
1314+
react-native-airship: 0fe02cd8f0489993fe75bc2a1cc07cb1a55d29d2
13151315
react-native-safe-area-context: b97eb6f9e3b7f437806c2ce5983f479f8eb5de4b
13161316
React-nativeconfig: d7af5bae6da70fa15ce44f045621cf99ed24087c
13171317
React-NativeModulesApple: 0123905d5699853ac68519607555a9a4f5c7b3ac

ios/AirshipReactNative.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class AirshipReactNative: NSObject {
3939
AirshipProxy.shared
4040
}
4141

42-
public static let version: String = "19.4.1"
42+
public static let version: String = "19.4.2"
4343

4444
private let eventNotifier = EventNotifier()
4545

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ua/react-native-airship",
3-
"version": "19.4.1",
3+
"version": "19.4.2",
44
"description": "Airship plugin for React Native apps.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

react-native-airship.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ Pod::Spec.new do |s|
2222
s.dependency "React-Core"
2323
end
2424

25-
s.dependency "AirshipFrameworkProxy", "10.0.0"
25+
s.dependency "AirshipFrameworkProxy", "10.1.1"
2626

2727
end

0 commit comments

Comments
 (0)