Преглед изворни кода

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.
Hesham Salman пре 5 година
родитељ
комит
5a78e24394
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      Package.swift

+ 1 - 0
Package.swift

@@ -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"),