Skip to content

Commit

Permalink
Fixes for Swift Package Manager (#50)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Longhorn <>
  • Loading branch information
macinspak authored Oct 13, 2021
1 parent 9bc0b7d commit 4d47753
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
15 changes: 11 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"]),
]
)

20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d47753

Please sign in to comment.