Skip to content

Commit 103f6ca

Browse files
release 1.5.0
1 parent 46f3cb5 commit 103f6ca

File tree

7 files changed

+23
-8
lines changed

7 files changed

+23
-8
lines changed

.swiftlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
opt_in_rules:
22
- empty_count
3-
#- missing_docs
43
- force_unwrapping
54
- overridden_super_call
65
- redundant_nil_coalescing
@@ -14,6 +13,7 @@ disabled_rules:
1413
- line_length
1514
- function_body_length
1615
- type_body_length
16+
- switch_case_alignment
1717

1818
identifier_name:
1919
excluded:

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ env:
1616
- DESTINATION='platform=iOS Simulator,name=iPhone 6s Plus'
1717
- DESTINATION='platform=iOS Simulator,name=iPhone 7'
1818
- DESTINATION='platform=iOS Simulator,name=iPhone 7 Plus'
19+
- DESTINATION='platform=iOS Simulator,name=iPhone 8'
20+
- DESTINATION='platform=iOS Simulator,name=iPhone 8 Plus'
1921
- DESTINATION='platform=iOS Simulator,name=iPhone SE'
22+
- DESTINATION='platform=iOS Simulator,name=iPhone X'
2023

21-
- DESTINATION='platform=tvOS Simulator,name=Apple TV 1080p'
24+
- DESTINATION='platform=tvOS Simulator,name=Apple TV'
25+
- DESTINATION='platform=tvOS Simulator,name=Apple TV 4K'
2226

2327
install:
2428
- bundle install

DeviceKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'DeviceKit'
3-
s.version = '1.4.0'
3+
s.version = '1.5.0'
44
s.summary = 'DeviceKit is a µ-framework that provides a value-type replacement of UIDevice.'
55

66
s.description = <<-DESC

DeviceKit.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@
383383
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
384384
SWIFT_INSTALL_OBJC_HEADER = YES;
385385
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
386-
SWIFT_SWIFT3_OBJC_INFERENCE = On;
386+
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
387387
TARGETED_DEVICE_FAMILY = "1,2,3";
388388
TVOS_DEPLOYMENT_TARGET = 9.0;
389389
VERSIONING_SYSTEM = "apple-generic";
@@ -433,7 +433,7 @@
433433
SKIP_INSTALL = YES;
434434
SWIFT_INSTALL_OBJC_HEADER = YES;
435435
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
436-
SWIFT_SWIFT3_OBJC_INFERENCE = On;
436+
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
437437
TARGETED_DEVICE_FAMILY = "1,2,3";
438438
TVOS_DEPLOYMENT_TARGET = 9.0;
439439
VALIDATE_PRODUCT = YES;
@@ -480,7 +480,7 @@
480480
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
481481
SWIFT_OBJC_INTERFACE_HEADER_NAME = "";
482482
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
483-
SWIFT_SWIFT3_OBJC_INFERENCE = On;
483+
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
484484
};
485485
name = Debug;
486486
};
@@ -516,7 +516,7 @@
516516
SDKROOT = iphoneos;
517517
SWIFT_OBJC_INTERFACE_HEADER_NAME = "";
518518
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
519-
SWIFT_SWIFT3_OBJC_INFERENCE = On;
519+
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
520520
VALIDATE_PRODUCT = YES;
521521
};
522522
name = Release;

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ DeviceKit can be installed in various ways.
3636

3737
### CocoaPods
3838

39+
#### Swift 4
40+
```ruby
41+
pod 'DeviceKit', '~> 1.3.0'
42+
```
3943
#### Swift 3
4044
```ruby
4145
pod 'DeviceKit', '~> 1.0'
@@ -47,6 +51,10 @@ pod 'DeviceKit', :git => 'https://github.com/dennisweissmann/DeviceKit.git', :br
4751

4852
### Carthage
4953

54+
#### Swift 4
55+
```ogdl
56+
github "dennisweissmann/DeviceKit" ~> 1.3.0
57+
```
5058
#### Swift 3
5159
```ogdl
5260
github "dennisweissmann/DeviceKit" ~> 1.0
@@ -183,12 +191,14 @@ The following people (in alphabetical order) contributed to this project - it wo
183191
- [chappieee](https://github.com/chappieee)
184192
- [Rui Costa](https://github.com/ruipfcosta)
185193
- [elgordino](https://github.com/elgordino)
194+
- [Martin Imobersteg](https://github.com/bugix)
186195
- [Genie Jhang](https://github.com/geniejhang)
187196
- [Steve Moser](https://github.com/stevemoser)
188197
- [Juan Carlos Ospina Gonzalez](https://github.com/piterwilson)
189198
- [phiren](https://github.com/phiren)
190199
- [Prakash Rajendran](https://github.com/dearprakash)
191200
- [Trey Richards](https://github.com/treyrich)
201+
- [Gianpiero Spinelli](https://github.com/gianpispi)
192202
- [Tillman Swinke](https://github.com/tswinke)
193203
- [Kraig Wastlund](https://github.com/KraigWastlund)
194204
- [Kaden Wilkinson](https://github.com/kdawgwilk)

Source/Device.generated.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ public enum Device {
551551
#endif
552552
}
553553

554+
/// The brightness level of the screen.
554555
public var screenBrightness: Int {
555556
#if os(iOS)
556557
return Int(UIScreen.main.brightness * 100)

Source/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.4.0</string>
18+
<string>1.5.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)