Skip to content

Commit

Permalink
Merge pull request #5 from hongxinhope/master
Browse files Browse the repository at this point in the history
Cocoapods support
  • Loading branch information
suricforever authored Aug 20, 2019
2 parents 7664585 + c506569 commit 7d405fa
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
23 changes: 23 additions & 0 deletions HanziPinyin.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Pod::Spec.new do |s|

s.name = "HanziPinyin"
s.version = "0.0.9"
s.summary = "A lightweight Swift library supporting convertion between Chinese(both Simplified and Tranditional) characters and Pinyin."

s.homepage = "https://github.com/teambition/HanziPinyin"
s.license = { :type => "MIT", :file => "LICENSE.md" }
s.author = "Xin Hong"

s.source = { :git => "https://github.com/teambition/HanziPinyin.git", :tag => s.version.to_s }
s.source_files = "HanziPinyin/*.swift"
s.resource_bundles = {
'HanziPinyin' => ['HanziPinyin/Resources/*.txt'],
}

s.platform = :ios, "8.0"
s.requires_arc = true

s.frameworks = "Foundation"
s.swift_version = "5.0"

end
2 changes: 1 addition & 1 deletion HanziPinyin/Supporting Files/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>0.0.8</string>
<string>0.0.9</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions HanziPinyinExample/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.0.8</string>
<string>0.0.9</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>8</string>
<string>9</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ Specify "HanziPinyin" in your ```Cartfile```:
github "teambition/HanziPinyin"
```

### CocoaPods
Specify "HanziPinyin" in your ```Podfile```:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'HanziPinyin'
```

### Usage
#### Pinyin output format
```swift
Expand Down

0 comments on commit 7d405fa

Please sign in to comment.