Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
codingiran committed Jun 27, 2023
1 parent 20bd410 commit 42c1630
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ let package = Package(
name: "Performance",
targets: ["Performance"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
dependencies: [],
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.
.target(
name: "Performance",
dependencies: []),
])
dependencies: [],
path: "Sources"),
],
swiftLanguageVersions: [.v5])
8 changes: 8 additions & 0 deletions Sources/Performance/Performance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ import MachO
import QuartzCore
#endif

// Enforce minimum Swift version for all platforms and build systems.
#if swift(<5.5)
#error("Performance doesn't support Swift versions below 5.5.")
#endif

/// Current Performance version. Necessary since SPM doesn't use dynamic libraries. Plus this will be more accurate.
let version = "1.0.0"

open class Performance {
public init() {}

Expand Down

0 comments on commit 42c1630

Please sign in to comment.