Skip to content

Commit c408101

Browse files
authored
Merge pull request #59662 from Expensify/arosiclair-airship-21-4
Use react-native-airship 21.4.0
2 parents cff0ea8 + 307b5dc commit c408101

File tree

4 files changed

+61
-39
lines changed

4 files changed

+61
-39
lines changed

__mocks__/@ua/react-native-airship.ts

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,40 @@
11
import type {AirshipContact, AirshipPush, AirshipPushAndroid, AirshipPushIOS, AirshipRoot} from '@ua/react-native-airship';
2-
import {EventType as AirshipEventType, iOS as AirshipIOS} from '@ua/react-native-airship';
32

4-
const EventType: Partial<typeof AirshipEventType> = {
5-
NotificationResponse: AirshipEventType.NotificationResponse,
6-
PushReceived: AirshipEventType.PushReceived,
7-
};
3+
// eslint-disable-next-line no-restricted-syntax
4+
enum EventType {
5+
NotificationResponse = 'com.airship.notification_response',
6+
PushReceived = 'com.airship.push_received',
7+
}
88

9-
const iOS: Partial<typeof AirshipIOS> = {
10-
ForegroundPresentationOption: {
11-
Sound: AirshipIOS.ForegroundPresentationOption.Sound,
12-
Badge: AirshipIOS.ForegroundPresentationOption.Badge,
13-
Banner: AirshipIOS.ForegroundPresentationOption.Banner,
14-
List: AirshipIOS.ForegroundPresentationOption.List,
15-
},
16-
};
9+
// eslint-disable-next-line @typescript-eslint/no-namespace
10+
namespace iOS {
11+
/**
12+
* Enum of foreground notification options.
13+
*/
14+
// eslint-disable-next-line no-restricted-syntax, rulesdir/no-inline-named-export
15+
export enum ForegroundPresentationOption {
16+
/**
17+
* Play the sound associated with the notification.
18+
*/
19+
Sound = 'sound',
20+
/**
21+
* Apply the notification's badge value to the app’s icon.
22+
*/
23+
Badge = 'badge',
24+
25+
/**
26+
* Show the notification in Notification Center. On iOS 13 an older,
27+
* this will also show the notification as a banner.
28+
*/
29+
List = 'list',
30+
31+
/**
32+
* Present the notification as a banner. On iOS 13 an older,
33+
* this will also show the notification in the Notification Center.
34+
*/
35+
Banner = 'banner',
36+
}
37+
}
1738

1839
const pushIOS = jest.fn().mockImplementation(() => ({
1940
setBadgeNumber: jest.fn(),

ios/Podfile.lock

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
PODS:
2-
- Airship (18.7.2):
3-
- Airship/Automation (= 18.7.2)
4-
- Airship/Basement (= 18.7.2)
5-
- Airship/Core (= 18.7.2)
6-
- Airship/FeatureFlags (= 18.7.2)
7-
- Airship/MessageCenter (= 18.7.2)
8-
- Airship/PreferenceCenter (= 18.7.2)
9-
- Airship/Automation (18.7.2):
2+
- Airship (19.2.0):
3+
- Airship/Automation (= 19.2.0)
4+
- Airship/Basement (= 19.2.0)
5+
- Airship/Core (= 19.2.0)
6+
- Airship/FeatureFlags (= 19.2.0)
7+
- Airship/MessageCenter (= 19.2.0)
8+
- Airship/PreferenceCenter (= 19.2.0)
9+
- Airship/Automation (19.2.0):
1010
- Airship/Core
11-
- Airship/Basement (18.7.2)
12-
- Airship/Core (18.7.2):
11+
- Airship/Basement (19.2.0)
12+
- Airship/Core (19.2.0):
1313
- Airship/Basement
14-
- Airship/FeatureFlags (18.7.2):
14+
- Airship/FeatureFlags (19.2.0):
1515
- Airship/Core
16-
- Airship/MessageCenter (18.7.2):
16+
- Airship/MessageCenter (19.2.0):
1717
- Airship/Core
18-
- Airship/PreferenceCenter (18.7.2):
18+
- Airship/PreferenceCenter (19.2.0):
1919
- Airship/Core
20-
- AirshipFrameworkProxy (7.1.2):
21-
- Airship (= 18.7.2)
20+
- AirshipFrameworkProxy (14.1.0):
21+
- Airship (= 19.2.0)
2222
- AirshipServiceExtension (18.7.2)
2323
- AppAuth (1.7.5):
2424
- AppAuth/Core (= 1.7.5)
@@ -1606,8 +1606,8 @@ PODS:
16061606
- ReactCommon/turbomodule/bridging
16071607
- ReactCommon/turbomodule/core
16081608
- Yoga
1609-
- react-native-airship (19.2.1):
1610-
- AirshipFrameworkProxy (= 7.1.2)
1609+
- react-native-airship (21.4.1):
1610+
- AirshipFrameworkProxy (= 14.1.0)
16111611
- DoubleConversion
16121612
- glog
16131613
- hermes-engine
@@ -3376,8 +3376,8 @@ CHECKOUT OPTIONS:
33763376
:http: https://ios-releases.fullstory.com/fullstory-1.52.0-xcframework.tar.gz
33773377

33783378
SPEC CHECKSUMS:
3379-
Airship: bb32ff2c5a811352da074480357d9f02dbb8f327
3380-
AirshipFrameworkProxy: dbd862dc6fb21b13e8b196458d626123e2a43a50
3379+
Airship: 4f4dc8dc616703787bdf73869437ccd0a52c6db7
3380+
AirshipFrameworkProxy: 6b6bee0ef983258931a67f701f1171e9ded2d8c5
33813381
AirshipServiceExtension: 9c73369f426396d9fb9ff222d86d842fac76ba46
33823382
AppAuth: 501c04eda8a8d11f179dbe8637b7a91bb7e5d2fa
33833383
AppLogs: 3bc4e9b141dbf265b9464409caaa40416a9ee0e0
@@ -3464,7 +3464,7 @@ SPEC CHECKSUMS:
34643464
React-Mapbuffer: 212171f037e3b22e6c2df839aa826806da480b85
34653465
React-microtasksnativemodule: 72564d5469003687d39bfc4efad281df8efc0684
34663466
react-native-advanced-input-mask: 7783a35343e2f0ec4b726d526bda4665e8fc11c9
3467-
react-native-airship: 8debc21d80534128d87269cb309164e2941b068a
3467+
react-native-airship: 2ff893d451520832e447fcce7f3f5ed9d3645f6a
34683468
react-native-app-logs: 70fb83d2fe260d3911e5bb222496ef1f7a2bfef9
34693469
react-native-blob-util: d65692a2acce17b7a836805114828142a3634033
34703470
react-native-cameraroll: 78710a5d35b0c6f41899a193e714564d8fd648b0

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"@shopify/flash-list": "1.7.1",
116116
"@types/pako": "^2.0.3",
117117
"@types/webrtc": "^0.0.46",
118-
"@ua/react-native-airship": "19.2.1",
118+
"@ua/react-native-airship": "~21.4.1",
119119
"awesome-phonenumber": "^5.4.0",
120120
"babel-polyfill": "^6.26.0",
121121
"canvas-size": "^1.2.6",
@@ -403,4 +403,4 @@
403403
"node": "20.18.1",
404404
"npm": "10.8.2"
405405
}
406-
}
406+
}

0 commit comments

Comments
 (0)