Skip to content

Commit

Permalink
Create Package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
frouo authored Jun 28, 2022
1 parent 789f213 commit 4428f08
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

/// Name of the Package
let name = "PromiseLite"

/// Suported Platforms of the Package
let platforms: [SupportedPlatform] = [
.iOS( .v9 ),
.tvOS( .v9 ),
.watchOS( .v2),
.macOS( .v10_10) ]

/// Products of the Package
let products: [Product] = [
.library(name: name, targets: [ name ])
]

/// Dependencies for the Target(s)
let targetTestDependencies: [Target.Dependency] = [
Target.Dependency(stringLiteral: name)
]

/// Targets of the Package
let targets: [Target] = [
.target(
name: name,
path: "\(name)/Classes"
),
.testTarget(
name: "\(name)Tests",
dependencies: targetTestDependencies,
path: "\(name)/Tests"
)
]

/// Supported Swift Version of the Package
let languagesVersions: [SwiftVersion] = [ .v5 ]

/// The Package
let package = Package(
name: name,
platforms: platforms,
products: products,
targets: targets,
swiftLanguageVersions: languagesVersions
)

0 comments on commit 4428f08

Please sign in to comment.