From 9b8f73f8c8e145dc496565bbf878a709793e7ba3 Mon Sep 17 00:00:00 2001 From: tid Date: Tue, 2 Apr 2019 01:11:53 +0900 Subject: [PATCH] Bumping version to 5.0.0 --- Kanna.podspec | 2 +- README.md | 63 ++++++++++++------------------------- Sources/Kanna/Info.plist | 2 +- Tests/KannaTests/Info.plist | 2 +- 4 files changed, 23 insertions(+), 46 deletions(-) diff --git a/Kanna.podspec b/Kanna.podspec index 1b6201a..04d26ce 100644 --- a/Kanna.podspec +++ b/Kanna.podspec @@ -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' diff --git a/README.md b/README.md index 0f9ed32..04fd6d1 100644 --- a/README.md +++ b/README.md @@ -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.** @@ -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 - #import - #import - ``` - - 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: ================= diff --git a/Sources/Kanna/Info.plist b/Sources/Kanna/Info.plist index 54dc96f..64fa153 100644 --- a/Sources/Kanna/Info.plist +++ b/Sources/Kanna/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 4.0.3 + 5.0.0 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSHumanReadableCopyright diff --git a/Tests/KannaTests/Info.plist b/Tests/KannaTests/Info.plist index 07a33d2..0164a82 100644 --- a/Tests/KannaTests/Info.plist +++ b/Tests/KannaTests/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 4.0.3 + 5.0.0 CFBundleVersion 1