Skip to content

Commit

Permalink
Bumping version to 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tid-kijyun committed Apr 1, 2019
1 parent d02723e commit 9b8f73f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 46 deletions.
2 changes: 1 addition & 1 deletion Kanna.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Kanna"
s.version = "4.0.3"
s.version = "5.0.0"
s.summary = "Kanna is an XML/HTML parser for iOS/macOS/watchOS/tvOS and Linux."
s.homepage = "https://github.com/tid-kijyun/Kanna"
s.license = 'MIT'
Expand Down
63 changes: 20 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ Features:
Installation:
=================

### Swift 5
##### CocoaPods
Adding it to your `Podfile`:
```ruby
use_frameworks!
pod 'Kanna', '~> 5.0.0'
```

##### Carthage
Adding it to your `Cartfile`:

```ogdl
github "tid-kijyun/Kanna" ~> 5.0.0
```

1. In the project settings add `$(SDKROOT)/usr/include/libxml2` to the "header search paths" field

##### Others(Swift PM and manual Installation)
Please refer to the case of Swift 4.

### Swift 4
##### CocoaPods
**:warning: CocoaPods (`1.1.0 or later`) is required.**
Expand Down Expand Up @@ -165,49 +185,6 @@ $ sudo apt-get install pkg-config
1. In the target settings add `$(SDKROOT)/usr/include/libxml2` to the `Search Paths > Header Search Paths` field
1. In the target settings add `$(SRCROOT)/Modules` to the `Swift Compiler - Search Paths > Import Paths` field

### Swift 2.x

Three means of installation are supported:

##### CocoaPods
**:warning: CocoaPods (`0.39 or later`) is required.**

Adding it to your `Podfile`:
```ruby
use_frameworks!
pod 'Kanna', '~> 1.1.0'
```

##### Carthage
Adding it to your `Cartfile`:

```ogdl
github "tid-kijyun/Kanna" ~> 1.1.0
```

##### Manual Installation
1. Add these files to your project:
[Kanna.swift](Source/Kanna.swift)
[CSS.swift](Source/CSS.swift)
[libxmlHTMLDocument.swift](Source/libxml/libxmlHTMLDocument.swift)
[libxmlHTMLNode.swift](Source/libxml/libxmlHTMLNode.swift)
[libxmlParserOption.swift](Source/libxml/libxmlParserOption.swift)
1. In the target settings add `$(SDKROOT)/usr/include/libxml2` to the `Search Paths > Header Search Paths` field
1. In the target settings add `-lxml2` to the `Linking > Other Linker Flags` field
1. Import `libxml` headers:

Copy the those import statements:

```objective-c
#import <libxml/HTMLtree.h>
#import <libxml/xpath.h>
#import <libxml/xpathInternals.h>
```

and paste them into your [Modulename]-Bridging-Header.h

*Note: With manual installation, this library doesn't need to be imported, or namespace-qualified in your code.*

Synopsis:
=================

Expand Down
2 changes: 1 addition & 1 deletion Sources/Kanna/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>4.0.3</string>
<string>5.0.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
Expand Down
2 changes: 1 addition & 1 deletion Tests/KannaTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>4.0.3</string>
<string>5.0.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down

0 comments on commit 9b8f73f

Please sign in to comment.