diff --git a/CHANGELOG.md b/CHANGELOG.md index 05c8226..e52e609 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Capacitor Plugin Changelog +## Version 2.4.0 - October 15, 2024 +Minor release that updates the native SDKs and fixes an issue with `Airship.messageCenter.getUnreadCount()` + +### Changes +- Updated Airship iOS SDK to [18.11.1](https://github.com/urbanairship/ios-library/releases/tag/18.11.1) +- Fixed method binding for `Airship.messageCenter.getUnreadCount()` +- Fixed MessageCenterPredicate not being applied to the OOTB Message Center UI on iOS + ## Version 2.3.0 - October 7, 2024 Minor release that updates to latest SDK versions and adds support for iOS Live Activities & Android Live Updates. diff --git a/Package.swift b/Package.swift index 09c58f1..31de18e 100644 --- a/Package.swift +++ b/Package.swift @@ -11,7 +11,7 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", branch: "main"), - .package(url: "https://github.com/urbanairship/airship-mobile-framework-proxy.git", from: "10.0.0") + .package(url: "https://github.com/urbanairship/airship-mobile-framework-proxy.git", from: "10.1.0") ], targets: [ .target( diff --git a/UaCapacitorAirship.podspec b/UaCapacitorAirship.podspec index 0a1770c..066351f 100644 --- a/UaCapacitorAirship.podspec +++ b/UaCapacitorAirship.podspec @@ -13,6 +13,6 @@ Pod::Spec.new do |s| s.ios.deployment_target = '14.0' s.dependency 'Capacitor' s.swift_version = '5.1' - s.dependency "AirshipFrameworkProxy", "10.0.0" + s.dependency "AirshipFrameworkProxy", "10.1.0" s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}' end diff --git a/android/build.gradle b/android/build.gradle index d81c569..984768f 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,5 +1,5 @@ ext { - airshipProxyVersion = project.hasProperty('airshipProxyVersion') ? rootProject.ext.airshipProxyVersion : '10.0.0' + airshipProxyVersion = project.hasProperty('airshipProxyVersion') ? rootProject.ext.airshipProxyVersion : '10.1.0' } diff --git a/android/src/main/java/com/airship/capacitor/AirshipCapacitorVersion.kt b/android/src/main/java/com/airship/capacitor/AirshipCapacitorVersion.kt index 5960c7c..b5cb7e6 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 = "2.3.0" + var version = "2.4.0" } \ 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 6fcdb70..e829e6a 100644 --- a/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt +++ b/android/src/main/java/com/airship/capacitor/AirshipPlugin.kt @@ -184,7 +184,7 @@ class AirshipPlugin : Plugin() { "messageCenter#markMessageRead" -> call.resolveResult(method) { proxy.messageCenter.markMessageRead(arg.requireString()) } "messageCenter#deleteMessage" -> call.resolveResult(method) { proxy.messageCenter.deleteMessage(arg.requireString()) } - "messageCenter#getUnreadMessageCount" -> call.resolveResult(method) { proxy.messageCenter.getUnreadMessagesCount() } + "messageCenter#getUnreadCount" -> call.resolveResult(method) { proxy.messageCenter.getUnreadMessagesCount() } "messageCenter#setAutoLaunchDefaultMessageCenter" -> call.resolveResult(method) { proxy.messageCenter.setAutoLaunchDefaultMessageCenter(arg.requireBoolean()) } "messageCenter#refreshMessages" -> call.resolveDeferred(method) { resolveCallback -> proxy.messageCenter.refreshInbox().addResultCallback { diff --git a/ios/Plugin/AirshipCapacitorVersion.swift b/ios/Plugin/AirshipCapacitorVersion.swift index 6b18be7..12deb78 100644 --- a/ios/Plugin/AirshipCapacitorVersion.swift +++ b/ios/Plugin/AirshipCapacitorVersion.swift @@ -3,5 +3,5 @@ import Foundation class AirshipCapacitorVersion { - static let version = "2.3.0" + static let version = "2.4.0" } diff --git a/ios/Plugin/AirshipPlugin.swift b/ios/Plugin/AirshipPlugin.swift index 65c05f0..9d85b70 100644 --- a/ios/Plugin/AirshipPlugin.swift +++ b/ios/Plugin/AirshipPlugin.swift @@ -366,7 +366,7 @@ public class AirshipPlugin: CAPPlugin, CAPBridgedPlugin { ) return nil - case "messageCenter#getUnreadMessageCount": + case "messageCenter#getUnreadCount": return try await AirshipProxy.shared.messageCenter.getUnreadCount() case "messageCenter#refreshMessages": diff --git a/ios/Podfile b/ios/Podfile index 53ff1ac..04fc2a3 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', '10.0.0' + pod 'AirshipFrameworkProxy', '10.1.0' end target 'Plugin' do diff --git a/package-lock.json b/package-lock.json index c58d891..e5759bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ua/capacitor-airship", - "version": "2.3.0", + "version": "2.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ua/capacitor-airship", - "version": "2.3.0", + "version": "2.4.0", "license": "Apache-2.0", "devDependencies": { "@capacitor/android": "^6.0.0", diff --git a/package.json b/package.json index 9851e8d..9b17603 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ua/capacitor-airship", - "version": "2.3.0", + "version": "2.4.0", "description": "Airship capacitor plugin", "main": "dist/plugin.cjs.js", "module": "dist/esm/index.js",