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