Dynamic Product (#710)

This PR adds a dynamic product to SnapKit.
Having a dynamic product is important in modular project structures; multiple packages may be using SnapKit, and this allows that support without the end-user have to wrap SnapKit in their own package that exposes it and using that package in lieu of SnapKit.
This commit is contained in:
Hesham Salman 2021-04-21 18:18:39 -04:00 committed by GitHub
parent 19bc403770
commit 5a78e24394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ let package = Package(
],
products: [
.library(name: "SnapKit", targets: ["SnapKit"]),
.library(name: "SnapKit-Dynamic", type: .dynamic, targets: ["SnapKit"]),
],
targets: [
.target(name: "SnapKit", path: "Sources"),