Skip to content

Commit

Permalink
Enable HTMLReader as a Swift Package Manager dependency.
Browse files Browse the repository at this point in the history
The only way to specify source files in SPM (as of Swift 3.0 preview 1) is by folder convention. This change should only affect those who manually copy or add the source files to their own Xcode project; hopefully that one-time inconvenience is worth enabling SPM.
  • Loading branch information
nolanw committed Jul 2, 2016
1 parent 1bcbfbd commit c807390
Show file tree
Hide file tree
Showing 43 changed files with 35 additions and 26 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased][]

* Rearrange source folder tree to match Swift Package Manager convention.

## [0.9.6][] – 2016-04-02

* Fix Objective-C generics (and their import into Swift) by spelling things correctly. (Fixes #59.) (Fixes #60.)
Expand Down
50 changes: 25 additions & 25 deletions HTMLReader.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Empty file added Package.swift
Empty file.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,26 @@ NSURLSession *session = [NSURLSession sharedSession];
You have choices:
* Copy the files in the [Code](Code) folder into your project.
* Copy the files in the [Sources](Sources) folder into your project.
* Add the following line to your [Cartfile][Carthage]:
`github "nolanw/HTMLReader"`
* Add the following line to your [Podfile][CocoaPods]:
`pod "HTMLReader"`
* Add the following line to your [Package.swift][Swift Package Manager]:
`.Package(url: "https://github.com/nolanw/HTMLReader",
majorVersion: 0, minorVersion: 9)`
You'll need to invoke `swift build` like so: `swift build -Xcc -fobjc-arc`.
* Clone this repository (perhaps add it as a submodule) and add `HTMLReader.xcodeproj` to your project/workspace. Then add `HTMLReader.framework` to your app target. (Or, if you're targeting iOS earlier than 8.0: add `libHTMLReader.a` to your app target and `"$(SYMROOT)/include"` to your app target's Header Search Paths.)
HTMLReader has no dependencies other than Foundation.
[Carthage]: https://github.com/Carthage/Carthage#readme
[CocoaPods]: http://docs.cocoapods.org/podfile.html#pod
[Swift Package Manager]: https://swift.org/package-manager/#importing-dependencies
## Why HTMLReader?
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c807390

Please sign in to comment.