Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MOBILE-4912] adds a deploymentTarget field that defaults to iOS 15 #13

Merged
merged 3 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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