Skip to content

Commit

Permalink
Merge pull request onevcat#2136 from onevcat/fix/xcframework-warning
Browse files Browse the repository at this point in the history
Fix xcframework build warnings
  • Loading branch information
onevcat authored Aug 26, 2023
2 parents 3d93363 + fcfc8f6 commit e62c076
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 e62c076

Please sign in to comment.