-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump minimum SDKs to iOS 15 and macOS 12 * Bump Nuke to 11.6.4 * Bump Nuke to 12.1.6 * Bump Stencil to 0.15.1 * Port ForumsClient to async/await * Drop PromiseKit dependency from AwfulCore and take apart ForumsURLSession The Awful app target was implicitly relying on AwfulCore's depending on PromiseKit. Now the app dependency is explicit. * Bump Xcode version for CI
- Loading branch information
Showing
66 changed files
with
1,829 additions
and
2,031 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Task+sleepUnits.swift | ||
// | ||
// Copyright 2023 Awful Contributors. CC BY-NC-SA 3.0 US https://github.com/Awful/Awful.app | ||
|
||
import Foundation | ||
|
||
extension Task where Success == Never, Failure == Never { | ||
/// Suspends the current task for the given duration. | ||
static func sleep(for duration: Measurement<UnitDuration>) async throws { | ||
try await sleep(nanoseconds: UInt64(duration.converted(to: .nanoseconds).value)) | ||
} | ||
|
||
/// Suspends the current task for the given duration. | ||
static func sleep(timeInterval: TimeInterval) async throws { | ||
try await sleep(nanoseconds: UInt64(timeInterval * TimeInterval(NSEC_PER_SEC))) | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// UIViewController+async.swift | ||
// | ||
// Copyright 2023 Awful Contributors. CC BY-NC-SA 3.0 US https://github.com/Awful/Awful.app | ||
|
||
import UIKit | ||
|
||
extension UIViewController { | ||
/// Dismisses the view controller that was presented modally by the view controller. | ||
func dismiss( | ||
animated: Bool | ||
) async { | ||
await withCheckedContinuation { continuation in | ||
dismiss(animated: animated) { | ||
continuation.resume() | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.