From 2000f14a2601cf855fcb88f27976b60a892cce82 Mon Sep 17 00:00:00 2001 From: Fin Date: Thu, 11 Apr 2019 15:34:56 +0800 Subject: [PATCH] 1.0.4 --- Bark/Info.plist | 4 ++-- Bark/zh-Hans.lproj/Localizable.strings | 2 +- NotificationServiceExtension/Info.plist | 4 ++-- NotificationServiceExtension/NotificationService.swift | 2 +- notificationContentExtension/Info.plist | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Bark/Info.plist b/Bark/Info.plist index c377792..3ee7da7 100644 --- a/Bark/Info.plist +++ b/Bark/Info.plist @@ -17,9 +17,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0.0 + 1.0.4 CFBundleVersion - 1 + 3 LSRequiresIPhoneOS NSAppTransportSecurity diff --git a/Bark/zh-Hans.lproj/Localizable.strings b/Bark/zh-Hans.lproj/Localizable.strings index ef3efa4..a1846b7 100644 --- a/Bark/zh-Hans.lproj/Localizable.strings +++ b/Bark/zh-Hans.lproj/Localizable.strings @@ -45,4 +45,4 @@ urlParameter = "携带url参数时,点击推送会跳转到这个URL"; copyParameter = "下拉推送、锁屏界面左滑查看推送时,可以选择复制推送内容\n携带copy参数时,将只复制copy参数的值"; automaticallyCopyTitle = "自动复制推送内容"; -automaticallyCopy = "收到推送时,自动复制推送内容。\n携带copy参数时,将只复制copy参数的值"; +automaticallyCopy = "携带automaticallyCopy参数时,将自动复制推送内容。\n携带copy参数时,将只复制copy参数的值"; diff --git a/NotificationServiceExtension/Info.plist b/NotificationServiceExtension/Info.plist index 939fb48..688187e 100644 --- a/NotificationServiceExtension/Info.plist +++ b/NotificationServiceExtension/Info.plist @@ -17,9 +17,9 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 1.0 + 1.0.4 CFBundleVersion - 1 + 3 NSExtension NSExtensionPointIdentifier diff --git a/NotificationServiceExtension/NotificationService.swift b/NotificationServiceExtension/NotificationService.swift index 335fc9b..c302cfc 100644 --- a/NotificationServiceExtension/NotificationService.swift +++ b/NotificationServiceExtension/NotificationService.swift @@ -20,7 +20,7 @@ class NotificationService: UNNotificationServiceExtension { if let bestAttemptContent = bestAttemptContent { let userInfo = bestAttemptContent.userInfo - if userInfo["automaticallyCopy"] as? Bool == true{ + if userInfo["automaticallycopy"] as? String == "1"{ if let copy = userInfo["copy"] as? String { UIPasteboard.general.string = copy } diff --git a/notificationContentExtension/Info.plist b/notificationContentExtension/Info.plist index 924f7ca..aef8bee 100644 --- a/notificationContentExtension/Info.plist +++ b/notificationContentExtension/Info.plist @@ -17,9 +17,9 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 1.0.0 + 1.0.4 CFBundleVersion - 1 + 3 NSExtension NSExtensionAttributes