Skip to content

Commit

Permalink
Release 15.1.0 (#425)
Browse files Browse the repository at this point in the history
* Update to proxy 6.0.0

* [GH-424] Fix plugin not found if package contains a space

* Fix warning

* Changelog

* Fix highlighting

* Fix version

* Other version

* More versions

---------

Co-authored-by: David <jdavidcrow@gmail.com>
  • Loading branch information
rlepinski and crow committed Apr 18, 2024
1 parent a7a4dfb commit d4805f6
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 17 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Cordova Plugin Changelog

## Version 15.1.0 April 18, 2024
Minor release with several bug fixes.

### Changes
- Updated Airship Android SDK to 17.8.0
- Updated Airship iOS SDK to 18.1.0
- Fixed `Airship.push.ios.resetBadge` method binding
- Fixed `Airship.contact.getNamedUserId` method binding
- Fixed plugin not found issue if the app contains a space in the name


## Version 15.0.0 March 6, 2024
Major release with several breaking changes. Apps should use the migration guide to update [Migration Guide](https://github.com/urbanairship/urbanairship-cordova/blob/main/MIGRATION.md)

Expand Down
2 changes: 1 addition & 1 deletion cordova-airship-hms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ua/cordova-airship-hms",
"version": "15.0.0",
"version": "15.1.0",
"description": "Airship HMS Cordova plugin",
"cordova": {
"id": "@ua/cordova-airship-hms",
Expand Down
4 changes: 2 additions & 2 deletions cordova-airship-hms/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-airship-hms"
version="15.0.0"
version="15.1.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">

Expand All @@ -15,7 +15,7 @@
<engine name="cordova" version=">=9.0.1"/>
</engines>

<dependency id="@ua/cordova-airship" version="15.0.0"/>
<dependency id="@ua/cordova-airship" version="15.1.0"/>

<!-- android -->
<platform name="android">
Expand Down
2 changes: 1 addition & 1 deletion cordova-airship-hms/src/android/build-extras.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repositories {
}

dependencies {
implementation 'com.urbanairship.android:urbanairship-hms:17.1.0'
implementation 'com.urbanairship.android:urbanairship-hms:17.8.0'
implementation 'com.huawei.hms:push:6.3.0.304'
}

Expand Down
2 changes: 1 addition & 1 deletion cordova-airship/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ua/cordova-airship",
"version": "15.0.0",
"version": "15.1.0",
"description": "Airship Cordova plugin",
"cordova": {
"id": "@ua/cordova-airship",
Expand Down
6 changes: 3 additions & 3 deletions cordova-airship/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="@ua/cordova-airship"
version="15.0.0"
version="15.1.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">

Expand Down Expand Up @@ -95,7 +95,7 @@
</config-file>

<config-file target="*-Info.plist" parent="UACordovaPluginVersion">
<string>15.0.0</string>
<string>15.1.0</string>
</config-file>

<config-file parent="/widget" target="config.xml">
Expand Down Expand Up @@ -133,7 +133,7 @@
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="AirshipFrameworkProxy" spec="5.3.0" />
<pod name="AirshipFrameworkProxy" spec="6.0.0" />
</pods>
</podspec>
</platform>
Expand Down
2 changes: 1 addition & 1 deletion cordova-airship/src/android/AirshipCordovaVersion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
package com.urbanairship.cordova

object AirshipCordovaVersion {
var version = "15.0.0"
var version = "15.1.0"
}
2 changes: 1 addition & 1 deletion cordova-airship/src/android/build-extras.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dependencies {
api "com.urbanairship.android:airship-framework-proxy:5.3.0"
api "com.urbanairship.android:airship-framework-proxy:6.0.0"
}

cdvPluginPostBuildExtras.push({
Expand Down
22 changes: 17 additions & 5 deletions cordova-airship/src/ios/AirshipCordova.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
import AirshipKit
import AirshipFrameworkProxy

@objc
@objc(AirshipCordova)
public final class AirshipCordova: CDVPlugin {

struct Listener {
Expand Down Expand Up @@ -230,7 +230,6 @@ public final class AirshipCordova: CDVPlugin {

case "channel#enableChannelCreation":
return try AirshipProxy.shared.channel.enableChannelCreation()
return nil

// Contact
case "contact#editTagGroups":
Expand Down Expand Up @@ -308,7 +307,7 @@ public final class AirshipCordova: CDVPlugin {
return try AirshipProxy.shared.push.getBadgeNumber()

case "push#ios#setBadgeNumber":
try AirshipProxy.shared.push.setBadgeNumber(
try await AirshipProxy.shared.push.setBadgeNumber(
try command.requireIntArg()
)
return nil
Expand All @@ -323,7 +322,7 @@ public final class AirshipCordova: CDVPlugin {
return try AirshipProxy.shared.push.isAutobadgeEnabled()

case "push#ios#resetBadge":
try AirshipProxy.shared.push.setBadgeNumber(0)
try await AirshipProxy.shared.push.setBadgeNumber(0)
return nil

case "push#ios#setNotificationOptions":
Expand Down Expand Up @@ -354,8 +353,14 @@ public final class AirshipCordova: CDVPlugin {
return try AirshipProxy.shared.push.isQuietTimeEnabled()

case "push#ios#setQuietTime":
let proxySettings: CodableQuietTimeSettings = try command.requireCodableArg()
try AirshipProxy.shared.push.setQuietTime(
try command.requireCodableArg()
QuietTimeSettings(
startHour: proxySettings.startHour,
startMinute: proxySettings.startMinute,
endHour: proxySettings.endHour,
endMinute: proxySettings.endMinute
)
)
return nil

Expand Down Expand Up @@ -703,3 +708,10 @@ extension AirshipProxyEventEmitter {
}
}
}

public struct CodableQuietTimeSettings: Codable {
let startHour: UInt
let startMinute: UInt
let endHour: UInt
let endMinute: UInt
}
5 changes: 4 additions & 1 deletion cordova-airship/src/ios/AirshipCordovaAutopilot.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ extension AirshipCordovaAutopilot: AirshipProxyDelegate {
)

if settings?.clearBadgeOnLaunch == true {
Airship.push.resetBadge()
Task {
try? await Airship.push.resetBadge()
}

}

if settings?.enablePushOnLaunch == true {
Expand Down
2 changes: 1 addition & 1 deletion cordova-airship/src/ios/AirshipCordovaVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
import Foundation

class AirshipCordovaVersion {
static let version = "15.0.0"
static let version = "15.1.0"
}

0 comments on commit d4805f6

Please sign in to comment.