Skip to content

Commit 5f1f42a

Browse files
Adding Swift Package Manager support
1 parent 8b6afd9 commit 5f1f42a

File tree

14 files changed

+274
-214
lines changed

14 files changed

+274
-214
lines changed

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ConstraintsMonitor.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ConstraintsMonitor adds some convenience extensions to print nicer constraints w
2626
s.author = { 'FranDepascuali' => 'depa.developer@gmail.com' }
2727
s.source = { :git => 'https://github.com/FranDepascuali/ConstraintsMonitor.git', :tag => s.version.to_s }
2828
s.ios.deployment_target = '9.0'
29-
s.source_files = 'ConstraintsMonitor/Classes/**/*'
29+
s.source_files = 'Sources/**/*.swift'
3030
s.swift_versions = ['3.2', '4.0', '4.1', '4.2', '5.0', '5.1', '5.2']
3131
# s.resource_bundles = {
3232
# 'ConstraintsMonitor' => ['ConstraintsMonitor/Assets/*.png']

Example/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- ConstraintsMonitor (0.1.0)
2+
- ConstraintsMonitor (1.0.0)
33
- Nimble (7.3.4)
44
- Quick (1.2.0)
55

@@ -18,10 +18,10 @@ EXTERNAL SOURCES:
1818
:path: "../"
1919

2020
SPEC CHECKSUMS:
21-
ConstraintsMonitor: 3693a3237e0a7037aa5f811a29d158285ec49bb2
21+
ConstraintsMonitor: 3923e44b46df93bf1aae5ac95b0c4799934f5161
2222
Nimble: 051e3d8912d40138fa5591c78594f95fb172af37
2323
Quick: 58d203b1c5e27fff7229c4c1ae445ad7069a7a08
2424

2525
PODFILE CHECKSUM: 02fdb14f78441a649f0fb5bdf4b3a044dfcb2547
2626

27-
COCOAPODS: 1.9.1
27+
COCOAPODS: 1.9.3

Example/Pods/Local Podspecs/ConstraintsMonitor.podspec.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Pods.xcodeproj/project.pbxproj

Lines changed: 201 additions & 201 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/ConstraintsMonitor/ConstraintsMonitor-Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// swift-tools-version:5.3
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "ConstraintsMonitor",
8+
products: [
9+
// Products define the executables and libraries a package produces, and make them visible to other packages.
10+
.library(
11+
name: "ConstraintsMonitor",
12+
targets: ["ConstraintsMonitor"]),
13+
],
14+
dependencies: [
15+
// Dependencies declare other packages that this package depends on.
16+
// .package(url: /* package url */, from: "1.0.0"),
17+
],
18+
targets: [
19+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20+
// Targets can depend on other targets in this package, and on products in packages this package depends on.
21+
.target(
22+
name: "ConstraintsMonitor",
23+
dependencies: []),
24+
.testTarget(
25+
name: "ConstraintsMonitorTests",
26+
dependencies: ["ConstraintsMonitor"]),
27+
]
28+
)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)