From b6f31bd3dca2945b0b3c4736c9c6493c6cdfc1b5 Mon Sep 17 00:00:00 2001 From: Fin Date: Tue, 28 May 2019 10:37:43 +0800 Subject: [PATCH] 1.0.5 --- Bark/AppDelegate.swift | 12 +++++------- Bark/Info.plist | 2 +- NotificationServiceExtension/Info.plist | 2 +- notificationContentExtension/Info.plist | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Bark/AppDelegate.swift b/Bark/AppDelegate.swift index e34f7bd..b9f9332 100644 --- a/Bark/AppDelegate.swift +++ b/Bark/AppDelegate.swift @@ -77,13 +77,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate { let alertController = UIAlertController(title: title, message: body, preferredStyle: .alert) alertController.addAction(UIAlertAction(title: "复制内容", style: .default, handler: { (_) in - if userInfo["automaticallycopy"] as? String == "1"{ - if let copy = userInfo["copy"] as? String { - UIPasteboard.general.string = copy - } - else{ - UIPasteboard.general.string = body - } + if let copy = userInfo["copy"] as? String { + UIPasteboard.general.string = copy + } + else{ + UIPasteboard.general.string = body } })) alertController.addAction(UIAlertAction(title: "更多操作", style: .default, handler: { (_) in diff --git a/Bark/Info.plist b/Bark/Info.plist index 2bfaa07..d150a46 100644 --- a/Bark/Info.plist +++ b/Bark/Info.plist @@ -19,7 +19,7 @@ CFBundleShortVersionString 1.0.5 CFBundleVersion - 1 + 3 LSRequiresIPhoneOS NSAppTransportSecurity diff --git a/NotificationServiceExtension/Info.plist b/NotificationServiceExtension/Info.plist index 9512cf7..20559e8 100644 --- a/NotificationServiceExtension/Info.plist +++ b/NotificationServiceExtension/Info.plist @@ -19,7 +19,7 @@ CFBundleShortVersionString 1.0.5 CFBundleVersion - 1 + 3 NSExtension NSExtensionPointIdentifier diff --git a/notificationContentExtension/Info.plist b/notificationContentExtension/Info.plist index 538cfc8..9e45367 100644 --- a/notificationContentExtension/Info.plist +++ b/notificationContentExtension/Info.plist @@ -19,7 +19,7 @@ CFBundleShortVersionString 1.0.5 CFBundleVersion - 1 + 3 NSExtension NSExtensionAttributes