Skip to content

Commit

Permalink
[SPM] support swift package manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanni Wang committed Jun 16, 2021
1 parent 55705c3 commit a4979e0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "UIImageColorRatio",
platforms: [.iOS(.v10)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "UIImageColorRatio",
targets: ["UIImageColorRatio"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.

// Source Code
.target(
name: "UIImageColorRatio",
path: "UIImageColorRatio",
exclude: ["UIImageColorRatio.h", "Info.plist"]),
]
)

0 comments on commit a4979e0

Please sign in to comment.