Skip to content

Commit

Permalink
Fix xcframework build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Aug 26, 2023
1 parent 00fa04a commit fcfc8f6
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Cache/CacheSerializer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions Sources/Cache/FormatIndicatedCacheSerializer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down
5 changes: 5 additions & 0 deletions Sources/General/KFOptionsSetter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
5 changes: 5 additions & 0 deletions Sources/General/KingfisherError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
// THE SOFTWARE.

import Foundation
#if os(macOS)
import AppKit
#else
import UIKit
#endif

extension Never {}

Expand Down
5 changes: 5 additions & 0 deletions Sources/General/KingfisherManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions Sources/Image/Filter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions Sources/Image/ImageProgressive.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
5 changes: 5 additions & 0 deletions Sources/Networking/ImageDownloaderDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fcfc8f6

Please sign in to comment.