Skip to content

Commit 6756f45

Browse files
committed
Fix CoreImage import; remove "AccessLevelOnImport"
1 parent 5fa1d22 commit 6756f45

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

FirebaseVertexAI/Sources/PartsRepresentable+Image.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// limitations under the License.
1414

1515
import CoreGraphics
16-
import CoreImage
1716
import UniformTypeIdentifiers
1817

1918
#if canImport(UIKit)
@@ -22,6 +21,10 @@ import UniformTypeIdentifiers
2221
public import AppKit // For NSImage extensions.
2322
#endif
2423

24+
#if canImport(CoreImage)
25+
import CoreImage
26+
#endif
27+
2528
private let imageCompressionQuality: CGFloat = 0.8
2629

2730
/// An enum describing failures that can occur when converting image types to model content data.

Package.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,9 +1310,6 @@ let package = Package(
13101310
],
13111311
path: "FirebaseVertexAI/Sources",
13121312
swiftSettings: [
1313-
// TODO(#14638): Remove "AccessLevelOnImport" experimental feature declaration after
1314-
// upgrading to `swift-tools-version:6.0`, where it is on by default.
1315-
.enableExperimentalFeature("AccessLevelOnImport"),
13161313
.enableUpcomingFeature("InternalImportsByDefault"),
13171314
]
13181315
),
@@ -1331,9 +1328,6 @@ let package = Package(
13311328
.headerSearchPath("../../../"),
13321329
],
13331330
swiftSettings: [
1334-
// TODO(#14638): Remove "AccessLevelOnImport" experimental feature declaration after
1335-
// upgrading to `swift-tools-version:6.0`, where it is on by default.
1336-
.enableExperimentalFeature("AccessLevelOnImport"),
13371331
.enableUpcomingFeature("InternalImportsByDefault"),
13381332
]
13391333
),

0 commit comments

Comments
 (0)