Skip to content

Commit 247430d

Browse files
committed
Add Package.swift
1 parent 6e07b0a commit 247430d

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ playground.xcworkspace
3838
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
3939
# Packages/
4040
# Package.pins
41-
# Package.resolved
41+
Package.resolved
4242
# *.xcodeproj
4343
#
4444
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
4545
# hence it is not needed unless you have added a package configuration file to your project
46-
# .swiftpm
46+
.swiftpm
4747

4848
.build/
4949

Package.swift

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// swift-tools-version:5.10
2+
3+
import Foundation
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "MediaEditor",
8+
platforms: [.iOS(.v15)],
9+
products: [
10+
.library(name: "MediaEditor", targets: ["MediaEditor"])
11+
],
12+
dependencies: [
13+
.package(url: "https://github.com/TimOliver/TOCropViewController", from: "2.5.3")
14+
],
15+
targets: [
16+
.target(
17+
name: "MediaEditor",
18+
dependencies: [
19+
.product(name: "CropViewController", package: "TOCropViewController")
20+
])
21+
]
22+
)

0 commit comments

Comments
 (0)