Skip to content

Commit

Permalink
Merge branch 'release/1.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
bcylin committed Apr 11, 2018
2 parents f2e9700 + 8cb56bf commit 3639c3c
Show file tree
Hide file tree
Showing 32 changed files with 173 additions and 159 deletions.
2 changes: 1 addition & 1 deletion .jazzy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ github_url: https://github.com/polydice/ICInputAccessory
github_file_prefix: https://github.com/polydice/ICInputAccessory/blob/develop
xcodebuild_arguments: [-project, ICInputAccessory.xcodeproj, -scheme, ICInputAccessory-iOS]
module: ICInputAccessory
module_version: 1.4.1
module_version: 1.5.0
output: docs/output
theme: fullwidth
skip_undocumented: true
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.1
2.4.3
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1
4.1
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
disabled_rules:
- file_length
- identifier_name
- line_length
- type_body_length
- vertical_whitespace
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode8.3
osx_image: xcode9.3beta
cache:
bundler: true
directories:
Expand All @@ -8,7 +8,7 @@ cache:
before_install:
- export LANG=en_US.UTF-8
- xcrun instruments -s devices
- xcrun instruments -w "iPhone 7 (10.3.1) [" || true
- open -b com.apple.iphonesimulator
install:
- make install
before_script:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.5.0

* Swift 4.0

## v1.4.1

* Fix `tokenField(_:didChangeInputText:)` with the delete key [#20](https://github.com/polydice/ICInputAccessory/pull/20)
Expand Down
2 changes: 1 addition & 1 deletion Example/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]? = nil) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
window?.backgroundColor = UIColor.white
window?.rootViewController = UINavigationController(rootViewController: ExampleViewController())
Expand Down
18 changes: 9 additions & 9 deletions Example/CustomizedTokenField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extension ICTokenField {
layer.cornerRadius = 5
layer.shouldRasterize = true
layer.rasterizationScale = UIScreen.main.scale
backgroundColor = UIColor(red:0.8, green:0.32, blue:0.24, alpha:1)
backgroundColor = UIColor(red: 0.8, green: 0.32, blue: 0.24, alpha: 1)

textField.textColor = UIColor.white
textField.tintColor = UIColor.white
Expand All @@ -66,21 +66,21 @@ extension ICTokenField {
attributedPlaceholder = NSAttributedString(
string: String(describing: type(of: self)),
attributes: [
NSForegroundColorAttributeName: UIColor.white.withAlphaComponent(0.5),
NSFontAttributeName: UIFont.boldSystemFont(ofSize: 14)
.foregroundColor: UIColor.white.withAlphaComponent(0.5),
.font: UIFont.boldSystemFont(ofSize: 14)
]
)

normalTokenAttributes = [
NSForegroundColorAttributeName: UIColor.white,
NSBackgroundColorAttributeName: UIColor.white.withAlphaComponent(0.25),
NSFontAttributeName: UIFont.boldSystemFont(ofSize: 14)
.foregroundColor: UIColor.white,
.backgroundColor: UIColor.white.withAlphaComponent(0.25),
.font: UIFont.boldSystemFont(ofSize: 14)
]

highlightedTokenAttributes = [
NSForegroundColorAttributeName: UIColor(red:0.8, green:0.32, blue:0.24, alpha:1),
NSBackgroundColorAttributeName: UIColor.white,
NSFontAttributeName: UIFont.boldSystemFont(ofSize: 14)
.foregroundColor: UIColor(red: 0.8, green: 0.32, blue: 0.24, alpha: 1),
.backgroundColor: UIColor.white,
.font: UIFont.boldSystemFont(ofSize: 14)
]
}

Expand Down
2 changes: 1 addition & 1 deletion Example/CustomizedTokenViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class CustomizedTokenViewController: UIViewController, ICTokenFieldDelegate {

override func viewDidLoad() {
super.viewDidLoad()
navigationController?.navigationBar.barTintColor = UIColor(red:0.96, green:0.48, blue:0.4, alpha:1)
navigationController?.navigationBar.barTintColor = UIColor(red: 0.96, green: 0.48, blue: 0.4, alpha: 1)
navigationController?.navigationBar.isTranslucent = false
navigationController?.navigationBar.barStyle = .black

Expand Down
2 changes: 1 addition & 1 deletion Example/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.4.1</string>
<string>1.5.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
8 changes: 4 additions & 4 deletions Example/StoryboardViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ class StoryboardViewController: UITableViewController {
@IBOutlet weak var tokenField: ICTokenField! {
didSet {
tokenField.normalTokenAttributes = [
NSForegroundColorAttributeName: UIColor.white,
NSBackgroundColorAttributeName: UIColor.white.withAlphaComponent(0.25)
.foregroundColor: UIColor.white,
.backgroundColor: UIColor.white.withAlphaComponent(0.25)
]

tokenField.highlightedTokenAttributes = [
NSForegroundColorAttributeName: UIColor.darkGray,
NSBackgroundColorAttributeName: UIColor.white
.foregroundColor: UIColor.darkGray,
.backgroundColor: UIColor.white
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source "http://rubygems.org"

gem "cocoapods"
gem "danger"
gem "jazzy", "~> 0.8.0"
gem "jazzy", ">= 0.8.0"
gem "pry"
gem "rake"
gem "xcpretty"
100 changes: 52 additions & 48 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,57 +1,59 @@
GEM
remote: http://rubygems.org/
specs:
CFPropertyList (2.3.5)
activesupport (4.2.9)
CFPropertyList (3.0.0)
activesupport (4.2.10)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.5.1)
public_suffix (~> 2.0, >= 2.0.2)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
atomos (0.1.2)
claide (1.0.2)
claide-plugins (0.9.2)
cork
nap
open4 (~> 1.3)
cocoapods (1.3.1)
cocoapods (1.5.0)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.3.1)
cocoapods-deintegrate (>= 1.0.1, < 2.0)
cocoapods-downloader (>= 1.1.3, < 2.0)
cocoapods-core (= 1.5.0)
cocoapods-deintegrate (>= 1.0.2, < 2.0)
cocoapods-downloader (>= 1.2.0, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.2.0, < 2.0)
cocoapods-trunk (>= 1.3.0, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (~> 2.0.1)
gh_inspector (~> 1.0)
molinillo (~> 0.5.7)
molinillo (~> 0.6.5)
nap (~> 1.0)
ruby-macho (~> 1.1)
xcodeproj (>= 1.5.1, < 2.0)
cocoapods-core (1.3.1)
xcodeproj (>= 1.5.7, < 2.0)
cocoapods-core (1.5.0)
activesupport (>= 4.0.2, < 6)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.1)
cocoapods-downloader (1.1.3)
cocoapods-deintegrate (1.0.2)
cocoapods-downloader (1.2.0)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.2.0)
cocoapods-trunk (1.3.0)
nap (>= 0.8, < 2.0)
netrc (= 0.7.8)
netrc (~> 0.11)
cocoapods-try (1.1.0)
coderay (1.1.1)
coderay (1.1.2)
colored2 (3.1.2)
concurrent-ruby (1.0.5)
cork (0.3.0)
colored2 (~> 3.1)
danger (5.3.4)
danger (5.5.11)
claide (~> 1.0)
claide-plugins (>= 0.9.2)
colored2 (~> 3.1)
Expand All @@ -60,89 +62,91 @@ GEM
faraday-http-cache (~> 1.0)
git (~> 1)
kramdown (~> 1.5)
no_proxy_fix
octokit (~> 4.7)
terminal-table (~> 1)
escape (0.0.4)
faraday (0.13.0)
faraday (0.14.0)
multipart-post (>= 1.2, < 3)
faraday-http-cache (1.3.1)
faraday (~> 0.8)
ffi (1.9.18)
ffi (1.9.23)
fourflusher (2.0.1)
fuzzy_match (2.0.4)
gh_inspector (1.0.3)
gh_inspector (1.1.3)
git (1.3.0)
i18n (0.8.6)
jazzy (0.8.3)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jazzy (0.9.1)
cocoapods (~> 1.0)
mustache (~> 0.99)
open4
redcarpet (~> 3.2)
rouge (~> 1.5)
rouge (>= 2.0.6, < 4.0)
sass (~> 3.4)
sqlite3 (~> 1.3)
xcinvoke (~> 0.3.0)
kramdown (1.14.0)
kramdown (1.16.2)
liferaft (0.0.6)
method_source (0.8.2)
minitest (5.10.3)
molinillo (0.5.7)
method_source (0.9.0)
minitest (5.11.3)
molinillo (0.6.5)
multipart-post (2.0.0)
mustache (0.99.8)
nanaimo (0.2.3)
nanaimo (0.2.5)
nap (1.1.0)
netrc (0.7.8)
octokit (4.7.0)
netrc (0.11.0)
no_proxy_fix (0.1.2)
octokit (4.8.0)
sawyer (~> 0.8.0, >= 0.5.3)
open4 (1.3.4)
pry (0.10.4)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
public_suffix (2.0.5)
rake (12.0.0)
rb-fsevent (0.10.2)
method_source (~> 0.9.0)
public_suffix (3.0.2)
rake (12.3.1)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
redcarpet (3.4.0)
rouge (1.11.1)
rouge (2.0.7)
ruby-macho (1.1.0)
sass (3.5.1)
sass (3.5.6)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
slop (3.6.0)
sqlite3 (1.3.13)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
tzinfo (1.2.3)
tzinfo (1.2.5)
thread_safe (~> 0.1)
unicode-display_width (1.3.0)
xcinvoke (0.3.0)
liferaft (~> 0.0.6)
xcodeproj (1.5.1)
CFPropertyList (~> 2.3.3)
xcodeproj (1.5.7)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.2)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.2.3)
xcpretty (0.2.6)
rouge (~> 1.8)
nanaimo (~> 0.2.4)
xcpretty (0.2.8)
rouge (~> 2.0.7)

PLATFORMS
ruby

DEPENDENCIES
cocoapods
danger
jazzy (~> 0.8.0)
jazzy (>= 0.8.0)
pry
rake
xcpretty

BUNDLED WITH
1.15.3
1.16.1
3 changes: 2 additions & 1 deletion ICInputAccessory.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "ICInputAccessory"
s.version = "1.4.1"
s.version = "1.5.0"
s.summary = "A customized token text field used in the iCook app."
s.description = <<-DESC
ICKeyboardDismissTextField:
Expand All @@ -19,6 +19,7 @@ Pod::Spec.new do |s|
s.license = { type: "MIT", file: "LICENSE" }
s.authors = "bcylin", "trisix"
s.platform = :ios, "8.0"
s.swift_version = "4.0"
s.source = { git: "https://github.com/polydice/ICInputAccessory.git", tag: "v#{s.version}" }
s.requires_arc = true

Expand Down
Loading

0 comments on commit 3639c3c

Please sign in to comment.