diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..a177dc9 --- /dev/null +++ b/Package.swift @@ -0,0 +1,13 @@ +// swift-tools-version:4.2 + +import PackageDescription + +let package = Package( + name: "DynamicJSON", + products: [ + .library(name: "DynamicJSON", targets: ["DynamicJSON"]), + ], + targets: [ + .target(name: "DynamicJSON", dependencies: [], path: "Sources"), + ] +) diff --git a/README.md b/README.md index 6218af0..1444230 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,12 @@ pod 'DynamicJSON', '~> 2.0' github "saoudrizwan/DynamicJSON" ``` +- Swift Package Manager: + +```swift +.package(url: "https://github.com/saoudrizwan/DynamicJSON.git", from: "2.0.0") +``` + - Or drag and drop `DynamicJSON.swift` into your project. And `import DynamicJSON` in the files you'd like to use it.