@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.
package/android/build.gradle
CHANGED
|
@@ -56,8 +56,8 @@ repositories {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
dependencies {
|
|
59
|
-
def proxyVersion = '
|
|
60
|
-
def airshipVersion = '17.
|
|
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
|
|
|
@@ -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
|
-
|
|
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
|
+
}
|