Skip to content

Commit

Permalink
Release 1.1.0 (#2)
Browse files Browse the repository at this point in the history
* Release 1.1.0

* Changelog
  • Loading branch information
rlepinski authored Apr 18, 2024
1 parent dfa64cf commit d0da40d
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 92 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Capacitor Plugin Changelog

## Version 1.1.0 April 18, 2024

Minor release that updates the Airship SDKs.

### Changes
- Updated Airship iOS SDK to 18.1.0
- Updated Airship Android SDK to 17.8.0


## Version 1.0.0 March 22, 2024

Initial capacitor plugin release
2 changes: 1 addition & 1 deletion UaCapacitorAirship.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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", "5.4.1"
s.dependency "AirshipFrameworkProxy", "6.0.0"
end
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ repositories {
}

dependencies {
def proxyVersion = '5.4.1'
def airshipVersion = '17.7.3'
def proxyVersion = '6.0.0'
def airshipVersion = '17.8.0'
def kotlinVersion = project.hasProperty('kotlinVersion') ? rootProject.ext.kotlinVersion : '1.8.20'


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 = "1.0.0"
var version = "1.1.0"
}
86 changes: 7 additions & 79 deletions example/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 example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capacitor-app",
"version": "1.0.0",
"version": "1.1.0",
"description": "An Amazing Capacitor App",
"main": "index.js",
"keywords": [
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 = "1.0.0"
static let version = "1.1.0"
}
19 changes: 16 additions & 3 deletions ios/Plugin/AirshipPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public class AirshipPlugin: CAPPlugin {
return try AirshipProxy.shared.push.getBadgeNumber()

case "push#ios#setBadgeNumber":
try AirshipProxy.shared.push.setBadgeNumber(
try await AirshipProxy.shared.push.setBadgeNumber(
try call.requireIntArg()
)
return nil
Expand All @@ -231,7 +231,7 @@ public class AirshipPlugin: CAPPlugin {
return try AirshipProxy.shared.push.isAutobadgeEnabled()

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

case "push#ios#setNotificationOptions":
Expand Down Expand Up @@ -262,8 +262,14 @@ public class AirshipPlugin: CAPPlugin {
return try AirshipProxy.shared.push.isQuietTimeEnabled()

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

Expand Down Expand Up @@ -555,3 +561,10 @@ extension CAPPluginCall {
throw AirshipErrors.error("Argument must be a double")
}
}

public struct CodableQuietTimeSettings: Codable {
let startHour: UInt
let startMinute: UInt
let endHour: UInt
let endMinute: UInt
}
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', '5.4.1'
pod 'AirshipFrameworkProxy', '6.0.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": "1.0.0",
"version": "1.1.0",
"description": "Airship capacitor plugin",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit d0da40d

Please sign in to comment.