Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added DeviceKitDynamic for dynamic linking #313

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// swift-tools-version:5.5
//===----------------------------------------------------------------------===//
//
// This source file is part of the DeviceKit open source project
//
// Copyright © 2014 - 2018 Dennis Weissmann and the DeviceKit project authors
//
// License: https://github.com/dennisweissmann/DeviceKit/blob/master/LICENSE
// Contributors: https://github.com/dennisweissmann/DeviceKit#contributors
//
//===----------------------------------------------------------------------===//

import PackageDescription

let package = Package(
name: "DeviceKit",
platforms: [
.iOS(.v9),
.tvOS(.v9),
.watchOS(.v2)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "DeviceKit",
targets: ["DeviceKit"]
),
.library(
name: "DeviceKitDynamic",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added DeviceKitDynamic, everything else is 1:1 copy from Package.swift

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested this already in Production?

type: .dynamic,
targets: ["DeviceKit"]
)
],
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: "DeviceKit",
dependencies: [],
path: "Source"),
.testTarget(
name: "DeviceKitTests",
dependencies: ["DeviceKit"],
path: "Tests")
],
swiftLanguageVersions: [.v5]
)