From 612a83d2df6ade8fda6b56df02ba2e44417ee1dc Mon Sep 17 00:00:00 2001 From: Ryan Lepinski Date: Mon, 13 May 2024 15:57:11 -0700 Subject: [PATCH] Release 1.2.1 (#8) * Fix optional string methods on Android * Bump version * Changelog, update proxy * Update CHANGELOG.md --- CHANGELOG.md | 11 ++++++++--- UaCapacitorAirship.podspec | 2 +- android/build.gradle | 4 ++-- .../com/airship/capacitor/AirshipCapacitorVersion.kt | 2 +- .../main/java/com/airship/capacitor/AirshipPlugin.kt | 4 ++-- ios/Plugin/AirshipCapacitorVersion.swift | 2 +- ios/Podfile | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 9 files changed, 19 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c5db16..2bc9eab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,14 @@ # Capacitor Plugin Changelog -## Version 1.2.0 May 2, 2024 +## Version 1.2.1 May 13, 2024 +Patch release that updates to latest Airship SDKs and fixes issues with methods that take an optional string parameter on Android. + +### Changes +- Updated iOS SDK to 18.2.0 +- Updated Android SDK to 17.8.1 +- Fixed `Airship.messageCenter.display(null)` and `Airship.analytics.trackScreen(null)` on Android +## Version 1.2.0 May 2, 2024 Minor release that fixes push events on Android. ### Changes @@ -10,7 +17,6 @@ Minor release that fixes push events on Android. - Updated iOS SDK to 18.1.2 ## Version 1.1.0 April 18, 2024 - Minor release that updates the Airship SDKs. ### Changes @@ -19,5 +25,4 @@ Minor release that updates the Airship SDKs. ## Version 1.0.0 March 22, 2024 - Initial capacitor plugin release diff --git a/UaCapacitorAirship.podspec b/UaCapacitorAirship.podspec index 63b49fc..1830eab 100644 --- a/UaCapacitorAirship.podspec +++ b/UaCapacitorAirship.podspec @@ -14,5 +14,5 @@ Pod::Spec.new do |s| s.ios.deployment_target = '14.0' s.dependency 'Capacitor' s.swift_version = '5.1' - s.dependency "AirshipFrameworkProxy", "6.1.2" + s.dependency "AirshipFrameworkProxy", "6.2.0" end diff --git a/android/build.gradle b/android/build.gradle index c0cf0ce..27d6b54 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -56,8 +56,8 @@ repositories { } dependencies { - def proxyVersion = '6.1.2' - def airshipVersion = '17.8.0' + def proxyVersion = '6.2.0' + def airshipVersion = '17.8.1' def kotlinVersion = project.hasProperty('kotlinVersion') ? rootProject.ext.kotlinVersion : '1.8.20' diff --git a/android/src/main/java/com/airship/capacitor/AirshipCapacitorVersion.kt b/android/src/main/java/com/airship/capacitor/AirshipCapacitorVersion.kt index 9ae5910..d7b5013 100644 --- a/android/src/main/java/com/airship/capacitor/AirshipCapacitorVersion.kt +++ b/android/src/main/java/com/airship/capacitor/AirshipCapacitorVersion.kt @@ -3,5 +3,5 @@ package com.airship.capacitor object AirshipCapacitorVersion { - var version = "1.2.0" + var version = "1.2.1" } \ No newline at end of file diff --git a/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt b/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt index 18610e3..9337901 100644 --- a/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt +++ b/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt @@ -153,7 +153,7 @@ class AirshipPlugin : Plugin() { "inApp#getDisplayInterval" -> call.resolveResult(method) { proxy.inApp.getDisplayInterval() } // Analytics - "analytics#trackScreen" -> call.resolveResult(method) { proxy.analytics.trackScreen(arg.optString()) } + "analytics#trackScreen" -> call.resolveResult(method) { proxy.analytics.trackScreen(arg.string) } "analytics#addCustomEvent" -> call.resolveResult(method) { proxy.analytics.addEvent(arg) } "analytics#associateIdentifier" -> { val associatedIdentifierArgs = arg.requireStringList() @@ -168,7 +168,7 @@ class AirshipPlugin : Plugin() { JsonValue.wrapOpt(proxy.messageCenter.getMessages()) } "messageCenter#dismiss" -> call.resolveResult(method) { proxy.messageCenter.dismiss() } - "messageCenter#display" -> call.resolveResult(method) { proxy.messageCenter.display(arg.optString()) } + "messageCenter#display" -> call.resolveResult(method) { proxy.messageCenter.display(arg.string) } "messageCenter#showMessageView" -> call.resolveResult(method) { proxy.messageCenter.showMessageView(arg.requireString()) } "messageCenter#markMessageRead" -> call.resolveResult(method) { proxy.messageCenter.markMessageRead(arg.requireString()) } "messageCenter#deleteMessage" -> call.resolveResult(method) { proxy.messageCenter.deleteMessage(arg.requireString()) } diff --git a/ios/Plugin/AirshipCapacitorVersion.swift b/ios/Plugin/AirshipCapacitorVersion.swift index 9100607..e3df50a 100644 --- a/ios/Plugin/AirshipCapacitorVersion.swift +++ b/ios/Plugin/AirshipCapacitorVersion.swift @@ -3,5 +3,5 @@ import Foundation class AirshipCapacitorVersion { - static let version = "1.2.0" + static let version = "1.2.1" } diff --git a/ios/Podfile b/ios/Podfile index 0e10a4e..b5e33e7 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -5,7 +5,7 @@ def capacitor_pods use_frameworks! pod 'Capacitor', :path => '../node_modules/@capacitor/ios' pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios' - pod 'AirshipFrameworkProxy', '6.1.2' + pod 'AirshipFrameworkProxy', '6.2.0' end target 'Plugin' do diff --git a/package-lock.json b/package-lock.json index a2f8d35..201bd02 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ua/capacitor-airship", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@ua/capacitor-airship", - "version": "1.2.0", + "version": "1.2.1", "license": "Apache-2.0", "devDependencies": { "@capacitor/android": "^5.0.0", diff --git a/package.json b/package.json index 935040e..ba27205 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ua/capacitor-airship", - "version": "1.2.0", + "version": "1.2.1", "description": "Airship capacitor plugin", "main": "dist/plugin.cjs.js", "module": "dist/esm/index.js",