Skip to content

Commit

Permalink
Add Swift Package Manager support (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherlouk authored Jul 16, 2021
1 parent 34a885d commit 6bb2217
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.swiftpm/
16 changes: 16 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"object": {
"pins": [
{
"package": "SnapshotTesting",
"repositoryURL": "https://github.com/pointfreeco/swift-snapshot-testing.git",
"state": {
"branch": null,
"revision": "f8a9c997c3c1dab4e216a8ec9014e23144cbab37",
"version": "1.9.0"
}
}
]
},
"version": 1
}
31 changes: 31 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "ios-accessibility-text-snapshot",
platforms: [
.iOS(.v12),
],
products: [
.library(
name: "ios-accessibility-text-snapshot",
targets: ["ios-accessibility-text-snapshot"]
),
],
dependencies: [
.package(
name: "SnapshotTesting",
url: "https://github.com/pointfreeco/swift-snapshot-testing.git",
.upToNextMajor(from: "1.8.0")
)
],
targets: [
.target(
name: "ios-accessibility-text-snapshot",
dependencies: ["SnapshotTesting"],
path: "Sources"
)
]
)
2 changes: 1 addition & 1 deletion Sources/Accessibility.testing.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Foundation
import UIKit

import SnapshotTesting

Expand Down

0 comments on commit 6bb2217

Please sign in to comment.