Merge pull request #2136 from onevcat/fix/xcframework-warning

Fix xcframework build warnings
This commit is contained in:
Wei Wang
2023-08-26 13:43:47 +09:00
committed by GitHub
8 changed files with 41 additions and 0 deletions

View File

@@ -26,6 +26,11 @@
import Foundation
import CoreGraphics
#if os(macOS)
import AppKit
#else
import UIKit
#endif
/// An `CacheSerializer` is used to convert some data to an image object after
/// retrieving it from disk storage, and vice versa, to convert an image to data object

View File

@@ -26,6 +26,11 @@
import Foundation
import CoreGraphics
#if os(macOS)
import AppKit
#else
import UIKit
#endif
/// `FormatIndicatedCacheSerializer` lets you indicate an image format for serialized caches.
///

View File

@@ -26,6 +26,11 @@
import Foundation
import CoreGraphics
#if os(macOS)
import AppKit
#else
import UIKit
#endif
public protocol KFOptionSetter {
var options: KingfisherParsedOptionsInfo { get nonmutating set }

View File

@@ -25,6 +25,11 @@
// THE SOFTWARE.
import Foundation
#if os(macOS)
import AppKit
#else
import UIKit
#endif
extension Never {}

View File

@@ -26,6 +26,11 @@
import Foundation
#if os(macOS)
import AppKit
#else
import UIKit
#endif
/// The downloading progress block type.
/// The parameter value is the `receivedSize` of current response.

View File

@@ -26,6 +26,12 @@
#if !os(watchOS)
#if os(macOS)
import AppKit
#else
import UIKit
#endif
import CoreImage
// Reuse the same CI Context for all CI drawing.

View File

@@ -26,6 +26,11 @@
import Foundation
import CoreGraphics
#if os(macOS)
import AppKit
#else
import UIKit
#endif
private let sharedProcessingQueue: CallbackQueue =
.dispatch(DispatchQueue(label: "com.onevcat.Kingfisher.ImageDownloader.Process"))

View File

@@ -25,6 +25,11 @@
// THE SOFTWARE.
import Foundation
#if os(macOS)
import AppKit
#else
import UIKit
#endif
/// Protocol of `ImageDownloader`. This protocol provides a set of methods which are related to image downloader
/// working stages and rules.