@ua/capacitor-airship 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,5 +14,5 @@ Pod::Spec.new do |s|
14
14
  s.ios.deployment_target = '14.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.swift_version = '5.1'
17
- s.dependency "AirshipFrameworkProxy", "5.4.1"
17
+ s.dependency "AirshipFrameworkProxy", "6.0.0"
18
18
  end
@@ -56,8 +56,8 @@ repositories {
56
56
  }
57
57
 
58
58
  dependencies {
59
- def proxyVersion = '5.4.1'
60
- def airshipVersion = '17.7.3'
59
+ def proxyVersion = '6.0.0'
60
+ def airshipVersion = '17.8.0'
61
61
  def kotlinVersion = project.hasProperty('kotlinVersion') ? rootProject.ext.kotlinVersion : '1.8.20'
62
62
 
63
63
 
@@ -3,5 +3,5 @@
3
3
  package com.airship.capacitor
4
4
 
5
5
  object AirshipCapacitorVersion {
6
- var version = "1.0.0"
6
+ var version = "1.1.0"
7
7
  }
@@ -3,5 +3,5 @@
3
3
  import Foundation
4
4
 
5
5
  class AirshipCapacitorVersion {
6
- static let version = "1.0.0"
6
+ static let version = "1.1.0"
7
7
  }
@@ -216,7 +216,7 @@ public class AirshipPlugin: CAPPlugin {
216
216
  return try AirshipProxy.shared.push.getBadgeNumber()
217
217
 
218
218
  case "push#ios#setBadgeNumber":
219
- try AirshipProxy.shared.push.setBadgeNumber(
219
+ try await AirshipProxy.shared.push.setBadgeNumber(
220
220
  try call.requireIntArg()
221
221
  )
222
222
  return nil
@@ -231,7 +231,7 @@ public class AirshipPlugin: CAPPlugin {
231
231
  return try AirshipProxy.shared.push.isAutobadgeEnabled()
232
232
 
233
233
  case "push#ios#resetBadgeNumber":
234
- try AirshipProxy.shared.push.setBadgeNumber(0)
234
+ try await AirshipProxy.shared.push.setBadgeNumber(0)
235
235
  return nil
236
236
 
237
237
  case "push#ios#setNotificationOptions":
@@ -262,8 +262,14 @@ public class AirshipPlugin: CAPPlugin {
262
262
  return try AirshipProxy.shared.push.isQuietTimeEnabled()
263
263
 
264
264
  case "push#ios#setQuietTime":
265
+ let proxySettings: CodableQuietTimeSettings = try call.requireCodableArg()
265
266
  try AirshipProxy.shared.push.setQuietTime(
266
- try call.requireCodableArg()
267
+ QuietTimeSettings(
268
+ startHour: proxySettings.startHour,
269
+ startMinute: proxySettings.startMinute,
270
+ endHour: proxySettings.endHour,
271
+ endMinute: proxySettings.endMinute
272
+ )
267
273
  )
268
274
  return nil
269
275
 
@@ -555,3 +561,10 @@ extension CAPPluginCall {
555
561
  throw AirshipErrors.error("Argument must be a double")
556
562
  }
557
563
  }
564
+
565
+ public struct CodableQuietTimeSettings: Codable {
566
+ let startHour: UInt
567
+ let startMinute: UInt
568
+ let endHour: UInt
569
+ let endMinute: UInt
570
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ua/capacitor-airship",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Airship capacitor plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",