diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..2b1238b --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,15 @@ +name: ImageRow Swift Package + +on: [push, pull_request] + +jobs: + build: + + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v2 + - name: Generate xcodeproj + run: swift package generate-xcodeproj + - name: Run tests + run: xcodebuild build test -destination 'name=iPhone 11' -scheme 'ImageRow-Package' diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..194b6f3 --- /dev/null +++ b/Package.swift @@ -0,0 +1,25 @@ +// swift-tools-version:5.1 +import PackageDescription + +let package = Package( + name: "ImageRow", + platforms: [.iOS(.v9)], + products: [ + .library(name: "ImageRow", targets: ["ImageRow"]) + ], + dependencies: [ + .package(url: "https://github.com/xmartlabs/Eureka.git", from: "5.2.0"), + ], + targets: [ + .target( + name: "ImageRow", + dependencies: ["Eureka"], + path: "Sources" + ), + .testTarget( + name: "ImageRowTests", + dependencies: ["ImageRow"], + path: "Tests" + ) + ] +) diff --git a/Sources/ImageCell.swift b/Sources/ImageCell.swift index 98cc7aa..677271c 100644 --- a/Sources/ImageCell.swift +++ b/Sources/ImageCell.swift @@ -23,6 +23,7 @@ // THE SOFTWARE. import Eureka +import UIKit public final class ImageCell: PushSelectorCell { public override func setup() { diff --git a/Sources/ImagePickerController.swift b/Sources/ImagePickerController.swift index df69f14..2079bff 100644 --- a/Sources/ImagePickerController.swift +++ b/Sources/ImagePickerController.swift @@ -24,6 +24,7 @@ import Eureka import Foundation +import UIKit public protocol ImagePickerProtocol: class { var allowEditor: Bool { get set } diff --git a/Sources/ImageRow.swift b/Sources/ImageRow.swift index 563db3a..85b9e6c 100644 --- a/Sources/ImageRow.swift +++ b/Sources/ImageRow.swift @@ -24,6 +24,7 @@ import Eureka import Foundation +import UIKit public struct ImageRowSourceTypes: OptionSet { public let rawValue: Int