Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Fix project.yml #218

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions Generated/Assets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,6 @@ internal final class ColorAsset {
return color
}()

#if os(iOS) || os(tvOS)
@available(iOS 11.0, tvOS 11.0, *)
internal func color(compatibleWith traitCollection: UITraitCollection) -> Color {
let bundle = BundleToken.bundle
guard let color = Color(named: name, in: bundle, compatibleWith: traitCollection) else {
fatalError("Unable to load color asset named \(name).")
}
return color
}
#endif

fileprivate init(name: String) {
self.name = name
}
Expand Down Expand Up @@ -155,7 +144,6 @@ internal struct ImageAsset {
internal typealias Image = UIImage
#endif

@available(iOS 8.0, tvOS 9.0, watchOS 2.0, macOS 10.7, *)
internal var image: Image {
let bundle = BundleToken.bundle
#if os(iOS) || os(tvOS)
Expand All @@ -171,21 +159,9 @@ internal struct ImageAsset {
}
return result
}

#if os(iOS) || os(tvOS)
@available(iOS 8.0, tvOS 9.0, *)
internal func image(compatibleWith traitCollection: UITraitCollection) -> Image {
let bundle = BundleToken.bundle
guard let result = Image(named: name, in: bundle, compatibleWith: traitCollection) else {
fatalError("Unable to load image asset named \(name).")
}
return result
}
#endif
}

internal extension ImageAsset.Image {
@available(iOS 8.0, tvOS 9.0, watchOS 2.0, *)
@available(macOS, deprecated,
message: "This initializer is unsafe on macOS, please use the ImageAsset.image property")
convenience init?(asset: ImageAsset) {
Expand Down
2 changes: 1 addition & 1 deletion Mintfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
yonaskolb/[email protected]
yonaskolb/[email protected]
SwiftGen/SwiftGen@6.3.0
SwiftGen/SwiftGen@6.4.0
1 change: 0 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/sh

bundle install
augard marked this conversation as resolved.
Show resolved Hide resolved
mint bootstrap
mint run swiftgen
mint run xcodegen