From 9c6349cf322ac987f30396aed2b7b184cda826b5 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Thu, 28 Dec 2023 16:54:39 +0800 Subject: [PATCH 1/2] Update demo to add AVIF test images and AVIF animated images --- .../SDWebImageSwiftUIDemo-watchOS WatchKit App.xcscheme | 3 +-- Example/SDWebImageSwiftUIDemo/AppDelegate.swift | 2 ++ Example/SDWebImageSwiftUIDemo/ContentView.swift | 2 ++ Podfile | 2 ++ README.md | 4 ++++ 5 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Example/SDWebImageSwiftUI.xcodeproj/xcshareddata/xcschemes/SDWebImageSwiftUIDemo-watchOS WatchKit App.xcscheme b/Example/SDWebImageSwiftUI.xcodeproj/xcshareddata/xcschemes/SDWebImageSwiftUIDemo-watchOS WatchKit App.xcscheme index 58b52ed..65df20b 100644 --- a/Example/SDWebImageSwiftUI.xcodeproj/xcshareddata/xcschemes/SDWebImageSwiftUIDemo-watchOS WatchKit App.xcscheme +++ b/Example/SDWebImageSwiftUI.xcodeproj/xcshareddata/xcschemes/SDWebImageSwiftUIDemo-watchOS WatchKit App.xcscheme @@ -53,8 +53,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" - allowLocationSimulation = "YES" - notificationPayloadFile = "PushNotificationPayload.apns"> + allowLocationSimulation = "YES"> ['libdav1d'] end def all_test_pods diff --git a/README.md b/README.md index c9363c8..e518b35 100644 --- a/README.md +++ b/README.md @@ -302,6 +302,7 @@ The best place to put these setup code for SwiftUI App, it's the `AppDelegate.sw func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Add WebP/SVG/PDF support SDImageCodersManager.shared.addCoder(SDImageWebPCoder.shared) + SDImageCodersManager.shared.addCoder(SDImageAVIFCoder.shared) SDImageCodersManager.shared.addCoder(SDImageSVGCoder.shared) SDImageCodersManager.shared.addCoder(SDImagePDFCoder.shared) @@ -477,6 +478,8 @@ struct MyApp: App { SDWebImageManager.defaultImageLoader = SDImageLoadersManager.shared // WebP support SDImageCodersManager.shared.addCoder(SDImageWebPCoder.shared) + // AVIF support + SDImageCodersManager.shared.addCoder(SDImageAVIFCoder.shared) } var body: some Scene { @@ -716,6 +719,7 @@ Which means, this project is one core use case and downstream dependency, which - [SDWebImage](https://github.com/SDWebImage/SDWebImage) - [libwebp](https://github.com/SDWebImage/libwebp-Xcode) +- [libavif](https://github.com/SDWebImage/libavif-Xcode) - [Kingfisher](https://github.com/onevcat/Kingfisher) - [SwiftUIX](https://github.com/SwiftUIX/SwiftUIX) - [Espera](https://github.com/JagCesar/Espera) From 60bcf1e9d57b248b6a6809e285b30716285931d4 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Fri, 29 Dec 2023 15:47:02 +0800 Subject: [PATCH 2/2] Fix GitHub CI again :) --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6cadb84..8116014 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -46,7 +46,7 @@ jobs: matrix: iosDestination: ["platform=iOS Simulator,name=iPhone 14 Pro"] tvOSDestination: ["platform=tvOS Simulator,name=Apple TV"] - watchOSDestination: ["platform=watchOS Simulator,name=Apple Watch Series 7 (45mm)"] + watchOSDestination: ["platform=watchOS Simulator,os=10.0,name=Apple Watch Series 7 (45mm)"] macOSDestination: ["platform=macOS"] macCatalystDestination: ["platform=macOS,variant=Mac Catalyst"] steps: