Skip to content

Commit

Permalink
chore: resolve swiftlint errors and warnings for Amplify Push Notific…
Browse files Browse the repository at this point in the history
…ations plugin (#3446)

* chore: resolve swiftlint errors

* chore: resolve swiftlint warnings

* chore: resolve swiftlint warnings

* chore: resolve swiftlint errors and warnings

* chore: resolve swiftlint errors and warnings

* chore: resolve swiftlint errors and warnings

* chore: resolve swiftlint errors and warnings

* chore: resolve swiftlint errors and warnings
  • Loading branch information
phantumcode authored Jan 3, 2024
1 parent bf374b7 commit 4c6809f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ extension AWSPinpointPushNotificationsPlugin {
guard let payload = userInfo.payload else {
log.error(
"""
No valid Pinpoint Push payload found. The recordNotification API only supports Pinpoint Campaigns and Journeys. Test messages will not be recorded.
No valid Pinpoint Push payload found.
The recordNotification API only supports Pinpoint Campaigns and Journeys.
Test messages will not be recorded.
"""
)
return
Expand Down Expand Up @@ -140,7 +142,7 @@ extension AWSPinpointPushNotificationsPlugin {
#elseif canImport(UIKit)
let application = UIApplication.shared
#endif

#if canImport(UIKit) || canImport(WatchKit)
switch application.applicationState {
case .background:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import AmplifyUtilsNotifications
import Foundation

extension AWSPinpointPushNotificationsPlugin {

#if !os(tvOS)
/// Service Extension that can handle AWS Pinpoint rich notifications.
public typealias ServiceExtension = AUNotificationService
Expand Down

0 comments on commit 4c6809f

Please sign in to comment.