Skip to content

Commit

Permalink
Merge pull request #3 from eugenebokhan/swiftpm
Browse files Browse the repository at this point in the history
Introduce SwiftPM Support [make release]
  • Loading branch information
eugenebokhan authored Sep 14, 2020
2 parents a564315 + 566d00c commit 8d3287a
Show file tree
Hide file tree
Showing 14 changed files with 48 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,5 @@ fastlane/test_output

iOSInjectionProject/
*.DS_Store
.swiftpm
Package.resolved
41 changes: 41 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// swift-tools-version:5.3

import PackageDescription

let package = Package(
name: "SwiftSnapshotTesting",
platforms: [
.iOS(.v12),
.macOS(.v10_14)
],
products: [
.library(name: "SwiftSnapshotTesting",
targets: ["SwiftSnapshotTesting"]),
],
dependencies: [
.package(url: "https://github.com/s1ddok/Alloy.git",
.branch("swiftpm2")),
.package(url: "https://github.com/devicekit/DeviceKit.git",
from: "4.0.0"),
.package(url: "https://github.com/eugenebokhan/ResourcesBridge.git",
from: "0.0.2")
],
targets: [
.target(name: "SwiftSnapshotTesting",
dependencies: [
"Alloy",
"DeviceKit",
"ResourcesBridge"
],
resources: [
.process("Shaders/Shaders.metal"),
],
swiftSettings: [
.define("SwiftPM")
],
linkerSettings: [
.linkedFramework("Metal"),
.linkedFramework("MetalPerformanceShaders")
])
]
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Alloy
import Metal

final class EuclideanDistance {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Foundation
import CoreGraphics

extension CGPoint: Hashable {
public func hash(into hasher: inout Hasher) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Foundation
import CoreGraphics

extension CGSize: Hashable {
public func hash(into hasher: inout Hasher) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Foundation
import CoreGraphics

extension CGRect {
func normalized(reference: CGRect) -> CGRect {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion SwiftSnapshotTesting.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SwiftSnapshotTesting"
s.version = "0.1.4"
s.version = "0.1.5"

s.summary = "Swift Snapshot Testing"
s.homepage = "https://github.com/eugenebokhan/SwiftSnapshotTesting"
Expand Down

0 comments on commit 8d3287a

Please sign in to comment.