mirror of
https://github.com/zhigang1992/Kingfisher.git
synced 2026-04-30 04:55:45 +08:00
Merge pull request #2136 from onevcat/fix/xcframework-warning
Fix xcframework build warnings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
///
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -25,6 +25,11 @@
|
||||
// THE SOFTWARE.
|
||||
|
||||
import Foundation
|
||||
#if os(macOS)
|
||||
import AppKit
|
||||
#else
|
||||
import UIKit
|
||||
#endif
|
||||
|
||||
extension Never {}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"))
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user