From 6c6125b03781265d952a00065eeccd0cbdedacec Mon Sep 17 00:00:00 2001 From: Ulrich GIBERNE Date: Wed, 5 Feb 2025 11:55:44 -0400 Subject: [PATCH 1/3] adds a deploymentTarget field that defaults to iOS 15 --- CHANGELOG.md | 3 +++ README.md | 4 +++- package.json | 2 +- plugin/src/withAirship.ts | 4 ++++ plugin/src/withAirshipIOS.ts | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33502be..1274a2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Airship Expo Plugin Changelog +## Version 2.0.0 - Febrary 05, 2024 +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. diff --git a/README.md b/README.md index 579773c..db5fc7a 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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" } } @@ -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. - airshipExtender: Optional. The local path to a AirshipPluginExtender.swift file. ## Calling takeOff diff --git a/package.json b/package.json index 6f85220..d68f263 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/plugin/src/withAirship.ts b/plugin/src/withAirship.ts index 63e927f..73cf706 100644 --- a/plugin/src/withAirship.ts +++ b/plugin/src/withAirship.ts @@ -43,6 +43,10 @@ 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. + */ + deploymentTarget?: string; /** * Optional. The local path to a AirshipPluginExtender.swift file. */ diff --git a/plugin/src/withAirshipIOS.ts b/plugin/src/withAirshipIOS.ts index e9ee161..e01b038 100644 --- a/plugin/src/withAirshipIOS.ts +++ b/plugin/src/withAirshipIOS.ts @@ -167,7 +167,7 @@ const withExtensionTargetInXcodeProject: ConfigPlugin = ( && 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"; From 58782b5c15b35e9cbf1822645842504bc6c2f7c4 Mon Sep 17 00:00:00 2001 From: Ulrich GIBERNE Date: Wed, 5 Feb 2025 12:50:22 -0400 Subject: [PATCH 2/3] comment --- README.md | 2 +- plugin/src/withAirship.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index db5fc7a..757cd73 100644 --- a/README.md +++ b/README.md @@ -48,7 +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. +- 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 diff --git a/plugin/src/withAirship.ts b/plugin/src/withAirship.ts index 73cf706..11f6eb4 100644 --- a/plugin/src/withAirship.ts +++ b/plugin/src/withAirship.ts @@ -45,6 +45,7 @@ export type AirshipIOSPluginProps = { developmentTeamID?: string; /** * Optional. The minimum Deployment Target version used to configure the Notification Service Extension target. + * Defaults to iOS 15. */ deploymentTarget?: string; /** From 88ef84233d9be6d07870b91f9f9443f45affe9c0 Mon Sep 17 00:00:00 2001 From: Ulrich GIBERNE Date: Wed, 5 Feb 2025 16:15:56 -0400 Subject: [PATCH 3/3] oops --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1274a2c..220480c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Airship Expo Plugin Changelog -## Version 2.0.0 - Febrary 05, 2024 +## 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