Skip to content

Commit

Permalink
Merge pull request #13 from urbanairship/MOBILE-4912
Browse files Browse the repository at this point in the history
[MOBILE-4912] adds a deploymentTarget field that defaults to iOS 15
  • Loading branch information
Ulrico972 authored Feb 5, 2025
2 parents bbd1ad3 + 88ef842 commit b93b9b5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Airship Expo Plugin Changelog

## Version 2.0.0 - Febrary 05, 2025
Major version that adds support for the Airship ReactNative SDK 21. The min deployment target is now iOS 15.

## Version 1.4.0 - December 20, 2024
Minor version that adds support for Aiship Plugin Extender.

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Airship [Expo Config Plugin](https://docs.expo.dev/guides/config-plugins/). This

```sh
expo install airship-expo-plugin
yarn add urbanairship-react-native
yarn add @ua/react-native-airship
```

### Configuring the plugin
Expand All @@ -29,6 +29,7 @@ Add the plugin to the app.json:
"notificationServiceInfo": "./assets/NotificationServiceExtension-Info.plist",
"notificationServiceTargetName": "NotificationServiceExtension",
"developmentTeamID": "MY_TEAM_ID",
"deploymentTarget": "15.0",
"airshipExtender": "./assets/AirshipPluginExtender.swift"
}
}
Expand All @@ -47,6 +48,7 @@ iOS Config:
- notificationServiceInfo: Optional. Airship will use a default one if not provided. The local path to a Notification Service Extension Info.plist.
- notificationServiceTargetName: Optional. Defaults to NotificationServiceExtension if not provided.
- developmentTeamID: Optional. The Apple Development Team ID used to configure the Notification Service Extension target.
- deploymentTarget: Optional. The minimum Deployment Target version used to configure the Notification Service Extension target. Defaults to iOS 15.
- airshipExtender: Optional. The local path to a AirshipPluginExtender.swift file.

## Calling takeOff
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "airship-expo-plugin",
"version": "1.4.0",
"version": "2.0.0",
"description": "Airship Expo config plugin",
"main": "./app.plugin.js",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions plugin/src/withAirship.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ export type AirshipIOSPluginProps = {
* Optional. The Apple Development Team ID used to configure the Notification Service Extension target.
*/
developmentTeamID?: string;
/**
* Optional. The minimum Deployment Target version used to configure the Notification Service Extension target.
* Defaults to iOS 15.
*/
deploymentTarget?: string;
/**
* Optional. The local path to a AirshipPluginExtender.swift file.
*/
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/withAirshipIOS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const withExtensionTargetInXcodeProject: ConfigPlugin<AirshipIOSPluginProps> = (
&& configurations[key].buildSettings.PRODUCT_NAME == `"${targetName}"`
) {
const buildSettingsObj = configurations[key].buildSettings;
buildSettingsObj.IPHONEOS_DEPLOYMENT_TARGET = "14.0";
buildSettingsObj.IPHONEOS_DEPLOYMENT_TARGET = props.deploymentTarget ?? "15.0";
buildSettingsObj.SWIFT_VERSION = "5.0";
buildSettingsObj.DEVELOPMENT_TEAM = props?.developmentTeamID;
buildSettingsObj.CODE_SIGN_STYLE = "Automatic";
Expand Down

0 comments on commit b93b9b5

Please sign in to comment.