Skip to content

Commit

Permalink
Release 2.4.0 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski authored Oct 16, 2024
1 parent dbc4703 commit 675a65a
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 11 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion UaCapacitorAirship.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -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'
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
package com.airship.capacitor

object AirshipCapacitorVersion {
var version = "2.3.0"
var version = "2.4.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion ios/Plugin/AirshipCapacitorVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
import Foundation

class AirshipCapacitorVersion {
static let version = "2.3.0"
static let version = "2.4.0"
}
2 changes: 1 addition & 1 deletion ios/Plugin/AirshipPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 675a65a

Please sign in to comment.