-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' into remove/leftover-internal-build-code
- Loading branch information
Showing
99 changed files
with
1,834 additions
and
2,366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Modules/Sources/WordPressShared/Utility/Notification+Gravatar.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Foundation | ||
|
||
public enum GravatarQEAvatarUpdateNotificationKeys: String { | ||
case email | ||
} | ||
|
||
public extension NSNotification.Name { | ||
/// Gravatar Quick Editor updated the avatar | ||
static let GravatarQEAvatarUpdateNotification = NSNotification.Name(rawValue: "GravatarQEAvatarUpdateNotification") | ||
} | ||
|
||
extension Foundation.Notification { | ||
public func userInfoHasEmail(_ email: String) -> Bool { | ||
guard let userInfo = userInfo, | ||
let notificationEmail = userInfo[GravatarQEAvatarUpdateNotificationKeys.email.rawValue] as? String else { | ||
return false | ||
} | ||
return email == notificationEmail | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 0 additions & 64 deletions
64
Modules/Sources/WordPressUI/Views/Users/UserProvider.swift
This file was deleted.
Oops, something went wrong.
104 changes: 0 additions & 104 deletions
104
Modules/Sources/WordPressUI/Views/Users/ViewModel/UserDeleteViewModel.swift
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.