diff --git a/Package.swift b/Package.swift index ca1ca38..dcdb200 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:4.2 +// swift-tools-version:5.5 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription @@ -15,11 +15,18 @@ let package = Package( name: "YAJLO", dependencies: [], path: "./", - //exclude: <#T##[String]#>, + exclude: ["YAJLO.podspec", "CHANGELOG.md", "README.md", "Tests", "LICENSE", "Tests-Info.plist", "Info.plist"], sources: ["./Classes", "./yajl-2.1.0"], - publicHeadersPath: "./Classes" + publicHeadersPath: "./Classes", + cxxSettings: [ + .headerSearchPath("./yajl-2.1.0"), + .headerSearchPath("./yajl-2.1.0/api") + ] + ), + .testTarget( + name: "yajlTests", + dependencies: ["YAJLO"] ), - .testTarget(name: "yajlTests", dependencies: ["YAJLO"]), ] ) diff --git a/README.md b/README.md index 3acf464..9738c19 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,30 @@ The YAJL framework is an Objective-C framework for the [YAJL](http://lloyd.githu - Document style parser. - Error by exception or out error. -# Podfile +# Integration + +## CocoaPods ```ruby pod "YAJLO" ``` +## Swift Package Manager + +You can use The Swift Package Manager to install yajl-objc by adding the proper description to your Package.swift file: + +```swift +// swift-tools-version:5.5 +import PackageDescription + +let package = Package( + name: "YOUR_PROJECT_NAME", + dependencies: [ + .package(url: "https://github.com/gabriel/yajl-objc.git", from: "0.3.4"), + ] +) +``` + # Usage ```objc