diff --git a/.gitignore b/.gitignore index 5f0c580..1439585 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,10 @@ xcuserdata/ # Carthage Carthage/ + +# Swift Package Manager +# +# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. +# Packages/ +# Package.pins +.build/ \ No newline at end of file diff --git a/Package.swift b/Package.swift index 507af30..746afa3 100644 --- a/Package.swift +++ b/Package.swift @@ -1,8 +1,25 @@ +// 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: "SwiftyTimer", - dependencies: [], - exclude: ["Sources/Info.plist", "Sources/SwiftyTimer.h", "SwiftyTimerTests"] - -) \ No newline at end of file + name: "SwiftyTimer", + products: [ + // Products define the executables and libraries produced by a package, and make them visible to other packages. + .library( + name: "SwiftyTimer", + targets: ["SwiftyTimer"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + // .package(url: /* package url */, from: "1.0.0"), + ], + 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 which this package depends on. + .target( + name: "SwiftyTimer", + dependencies: []), + ] +) diff --git a/Sources/SwiftyTimer.swift b/Sources/SwiftyTimer/SwiftyTimer.swift similarity index 100% rename from Sources/SwiftyTimer.swift rename to Sources/SwiftyTimer/SwiftyTimer.swift