Skip to content

Commit e3d3b27

Browse files
author
Tom Baranes
authored
Merge pull request #12 from tbaranes/feature/swift4
Bump 2.0 including Swift 4 support
2 parents f173be3 + 2e164e8 commit e3d3b27

File tree

13 files changed

+107
-297
lines changed

13 files changed

+107
-297
lines changed

.swiftlint.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
disabled_rules:
2+
- todo
3+
- force_try
4+
- force_cast
5+
private_outlet:
6+
allow_private_set: true
7+
opt_in_rules:
8+
- closure_spacing
9+
- conditional_returns_on_newline
10+
- empty_count
11+
- explicit_init
12+
- overridden_super_call
13+
- redundant_nil_coalescing
14+
- nimble_operator
15+
- closure_end_indentation
16+
- first_where
17+
- attributes
18+
- operator_usage_whitespace
19+
- prohibited_super_call
20+
- number_separator
21+
- object_literal
22+
- fatal_error_message
23+
- private_outlet
24+
- implicit_return
25+
- multiline_parameters
26+
- vertical_parameter_alignment_on_call
27+
- unneeded_parentheses_in_closure_argument
28+
- joined_default_parameter
29+
- pattern_matching_keywords
30+
- array_init
31+
- contains_over_first_not_nil
32+
- let_var_whitespace
33+
- literal_expression_end_indentation
34+
- multiline_arguments
35+
# - quick_discouraged_call
36+
- quick_discouraged_focused_test
37+
- quick_discouraged_pending_test
38+
- sorted_first_last
39+
- strict_fileprivate
40+
# - trailing_closure // false positive

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: objective-c
2-
osx_image: xcode9
2+
osx_image: xcode9.1
33
notifications:
44
email: false
55
branches:
@@ -14,9 +14,9 @@ env:
1414
- TVOS_FRAMEWORK_SCHEME="IncrementableLabel tvOS"
1515
- EXAMPLE_SCHEME="iOS Example"
1616
matrix:
17-
- DESTINATION="OS=11.0,name=iPhone 6S" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="YES"
17+
- DESTINATION="OS=11.1,name=iPhone 6S" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="YES"
1818
- DESTINATION="OS=10.0,name=iPhone 5" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="YES"
19-
- DESTINATION="OS=11.0,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="NO"
19+
- DESTINATION="OS=11.1,name=Apple TV" SCHEME="$TVOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="NO"
2020
script:
2121
- set -o pipefail
2222
- xcodebuild -version

CHANGELOG.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,12 @@ All notable changes to the project will be documented in this file.
44

55
---
66

7-
## Next
7+
## [2.0.0](https://github.com/tbaranes/IncrementableLabel/releases/tag/2.0.0) (28-11-2017)
88

99
#### API breaking changes
1010

11-
N/A
12-
13-
#### Enhancements
14-
1511
- Swift 4 and Xcode 9 support
1612

17-
#### Bugfixes
18-
19-
N/A
20-
2113
## [1.2.0](https://github.com/tbaranes/IncrementableLabel/releases/tag/1.2.0) (11-09-2016)
2214

2315
#### API breaking changes

IncrementableLabel Example/.swiftlint.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

IncrementableLabel Example/Example/iOS Example/ViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ class ViewController: UIViewController {
3434
label2.format = "%f"
3535
label2.increment(fromValue: 0.0, toValue: 100.0, duration: 3)
3636

37-
label3.option = .EaseInOut
37+
label3.option = .easeInOut
3838
label3.stringFormatter = { value in
3939
return String(format: "EaseInOutAnimation: %d", Int(value))
4040
}
4141
label3.increment(fromValue: 0.0, toValue: 100.0, duration: 3)
4242

43-
label4.option = .EaseOut
43+
label4.option = .easeOut
4444
label4.attributedTextFormatter = { value in
4545
let string = String(format: "EaseOutAnimation + attributedString: %d", Int(value))
4646
let attributedString = NSMutableAttributedString(string: string, attributes: [NSFontAttributeName: UIFont.boldSystemFont(ofSize: 16.0)])

IncrementableLabel.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Pod::Spec.new do |s|
44

55
s.name = "IncrementableLabel"
66
s.module_name = "IncrementableLabel"
7-
s.version = "1.2.0"
7+
s.version = "2.0.0"
88
s.summary = "IncrementableLabel is the easiest way to have incrementable numbers in an UILabel!"
99
s.description = "IncrementableLabel is the easiest way to have incrementable numbers in an UILabel! Available on iOS and tVOS"
1010
s.homepage = "https://github.com/recisio/IncrementableLabel"

IncrementableLabel/.swiftlint.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

IncrementableLabel/IncrementableLabel iOS/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>2.0.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

IncrementableLabel/IncrementableLabel tvOS/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>2.0.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

IncrementableLabel/IncrementableLabel.xcodeproj/project.pbxproj

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
E26980FF1CDEAADF001E9707 /* IncrementableLabel.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E26980B31CDEA7A6001E9707 /* IncrementableLabel.framework */; };
1414
E269810A1CDEAB4F001E9707 /* IncrementableLabelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E26981091CDEAB4F001E9707 /* IncrementableLabelTests.swift */; };
1515
E269810B1CDEAB4F001E9707 /* IncrementableLabelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E26981091CDEAB4F001E9707 /* IncrementableLabelTests.swift */; };
16-
E2A4B65D1D847663005E6710 /* IncrementableLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2A4B65C1D847663005E6710 /* IncrementableLabel.swift */; };
17-
E2A4B65E1D847663005E6710 /* IncrementableLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2A4B65C1D847663005E6710 /* IncrementableLabel.swift */; };
16+
E29CDB911FCD5960003BDD0A /* IncrementableLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E29CDB901FCD5960003BDD0A /* IncrementableLabel.swift */; };
17+
E29CDB921FCD5960003BDD0A /* IncrementableLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E29CDB901FCD5960003BDD0A /* IncrementableLabel.swift */; };
1818
/* End PBXBuildFile section */
1919

2020
/* Begin PBXContainerItemProxy section */
@@ -46,7 +46,7 @@
4646
E26980FA1CDEAADF001E9707 /* IncrementableLabel tvOS Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "IncrementableLabel tvOS Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
4747
E26980FE1CDEAADF001E9707 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4848
E26981091CDEAB4F001E9707 /* IncrementableLabelTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IncrementableLabelTests.swift; sourceTree = "<group>"; };
49-
E2A4B65C1D847663005E6710 /* IncrementableLabel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IncrementableLabel.swift; sourceTree = "<group>"; };
49+
E29CDB901FCD5960003BDD0A /* IncrementableLabel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IncrementableLabel.swift; sourceTree = "<group>"; };
5050
/* End PBXFileReference section */
5151

5252
/* Begin PBXFrameworksBuildPhase section */
@@ -86,7 +86,7 @@
8686
E26980861CDEA6DA001E9707 = {
8787
isa = PBXGroup;
8888
children = (
89-
E2A4B65B1D847663005E6710 /* Source */,
89+
E29CDB8F1FCD5960003BDD0A /* Source */,
9090
E26980921CDEA6DB001E9707 /* IncrementableLabel iOS */,
9191
E26980B41CDEA7A6001E9707 /* IncrementableLabel tvOS */,
9292
E26980F51CDEAAC5001E9707 /* Tests */,
@@ -158,12 +158,13 @@
158158
path = "IncrementableLabel Core Tests";
159159
sourceTree = "<group>";
160160
};
161-
E2A4B65B1D847663005E6710 /* Source */ = {
161+
E29CDB8F1FCD5960003BDD0A /* Source */ = {
162162
isa = PBXGroup;
163163
children = (
164-
E2A4B65C1D847663005E6710 /* IncrementableLabel.swift */,
164+
E29CDB901FCD5960003BDD0A /* IncrementableLabel.swift */,
165165
);
166-
path = Source;
166+
name = Source;
167+
path = ../Source;
167168
sourceTree = "<group>";
168169
};
169170
/* End PBXGroup section */
@@ -354,7 +355,7 @@
354355
);
355356
runOnlyForDeploymentPostprocessing = 0;
356357
shellPath = /bin/sh;
357-
shellScript = "if which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n";
358+
shellScript = "swiftlint --config ../.swiftlint.yml";
358359
};
359360
E2773E981D20128600365CDF /* Run Script - ⚠️ SwiftLint */ = {
360361
isa = PBXShellScriptBuildPhase;
@@ -368,7 +369,7 @@
368369
);
369370
runOnlyForDeploymentPostprocessing = 0;
370371
shellPath = /bin/sh;
371-
shellScript = "if which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n";
372+
shellScript = "swiftlint --config ../.swiftlint.yml";
372373
};
373374
/* End PBXShellScriptBuildPhase section */
374375

@@ -377,15 +378,15 @@
377378
isa = PBXSourcesBuildPhase;
378379
buildActionMask = 2147483647;
379380
files = (
380-
E2A4B65D1D847663005E6710 /* IncrementableLabel.swift in Sources */,
381+
E29CDB911FCD5960003BDD0A /* IncrementableLabel.swift in Sources */,
381382
);
382383
runOnlyForDeploymentPostprocessing = 0;
383384
};
384385
E26980AE1CDEA7A6001E9707 /* Sources */ = {
385386
isa = PBXSourcesBuildPhase;
386387
buildActionMask = 2147483647;
387388
files = (
388-
E2A4B65E1D847663005E6710 /* IncrementableLabel.swift in Sources */,
389+
E29CDB921FCD5960003BDD0A /* IncrementableLabel.swift in Sources */,
389390
);
390391
runOnlyForDeploymentPostprocessing = 0;
391392
};

0 commit comments

Comments
 (0)