mirror of
https://github.com/devicekit/DeviceKit.git
synced 2026-06-16 10:24:30 +00:00
release 1.5.0
This commit is contained in:
7 files changed
+23
-8
No files matched your search
+1
-1
@@ -1,6 +1,5 @@
|
||||
opt_in_rules:
|
||||
- empty_count
|
||||
#- missing_docs
|
||||
- force_unwrapping
|
||||
- overridden_super_call
|
||||
- redundant_nil_coalescing
|
||||
@@ -14,6 +13,7 @@ disabled_rules:
|
||||
- line_length
|
||||
- function_body_length
|
||||
- type_body_length
|
||||
- switch_case_alignment
|
||||
|
||||
identifier_name:
|
||||
excluded:
|
||||
|
||||
+5
-1
@@ -16,9 +16,13 @@ env:
|
||||
- DESTINATION='platform=iOS Simulator,name=iPhone 6s Plus'
|
||||
- DESTINATION='platform=iOS Simulator,name=iPhone 7'
|
||||
- DESTINATION='platform=iOS Simulator,name=iPhone 7 Plus'
|
||||
- DESTINATION='platform=iOS Simulator,name=iPhone 8'
|
||||
- DESTINATION='platform=iOS Simulator,name=iPhone 8 Plus'
|
||||
- DESTINATION='platform=iOS Simulator,name=iPhone SE'
|
||||
- DESTINATION='platform=iOS Simulator,name=iPhone X'
|
||||
|
||||
- DESTINATION='platform=tvOS Simulator,name=Apple TV 1080p'
|
||||
- DESTINATION='platform=tvOS Simulator,name=Apple TV'
|
||||
- DESTINATION='platform=tvOS Simulator,name=Apple TV 4K'
|
||||
|
||||
install:
|
||||
- bundle install
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'DeviceKit'
|
||||
s.version = '1.4.0'
|
||||
s.version = '1.5.0'
|
||||
s.summary = 'DeviceKit is a µ-framework that provides a value-type replacement of UIDevice.'
|
||||
|
||||
s.description = <<-DESC
|
||||
|
||||
@@ -383,7 +383,7 @@
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||
SWIFT_INSTALL_OBJC_HEADER = YES;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_SWIFT3_OBJC_INFERENCE = On;
|
||||
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
|
||||
TARGETED_DEVICE_FAMILY = "1,2,3";
|
||||
TVOS_DEPLOYMENT_TARGET = 9.0;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
@@ -433,7 +433,7 @@
|
||||
SKIP_INSTALL = YES;
|
||||
SWIFT_INSTALL_OBJC_HEADER = YES;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||
SWIFT_SWIFT3_OBJC_INFERENCE = On;
|
||||
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
|
||||
TARGETED_DEVICE_FAMILY = "1,2,3";
|
||||
TVOS_DEPLOYMENT_TARGET = 9.0;
|
||||
VALIDATE_PRODUCT = YES;
|
||||
@@ -480,7 +480,7 @@
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||
SWIFT_OBJC_INTERFACE_HEADER_NAME = "";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_SWIFT3_OBJC_INFERENCE = On;
|
||||
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -516,7 +516,7 @@
|
||||
SDKROOT = iphoneos;
|
||||
SWIFT_OBJC_INTERFACE_HEADER_NAME = "";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||
SWIFT_SWIFT3_OBJC_INFERENCE = On;
|
||||
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
|
||||
@@ -36,6 +36,10 @@ DeviceKit can be installed in various ways.
|
||||
|
||||
### CocoaPods
|
||||
|
||||
#### Swift 4
|
||||
```ruby
|
||||
pod 'DeviceKit', '~> 1.3.0'
|
||||
```
|
||||
#### Swift 3
|
||||
```ruby
|
||||
pod 'DeviceKit', '~> 1.0'
|
||||
@@ -47,6 +51,10 @@ pod 'DeviceKit', :git => 'https://github.com/dennisweissmann/DeviceKit.git', :br
|
||||
|
||||
### Carthage
|
||||
|
||||
#### Swift 4
|
||||
```ogdl
|
||||
github "dennisweissmann/DeviceKit" ~> 1.3.0
|
||||
```
|
||||
#### Swift 3
|
||||
```ogdl
|
||||
github "dennisweissmann/DeviceKit" ~> 1.0
|
||||
@@ -183,12 +191,14 @@ The following people (in alphabetical order) contributed to this project - it wo
|
||||
- [chappieee](https://github.com/chappieee)
|
||||
- [Rui Costa](https://github.com/ruipfcosta)
|
||||
- [elgordino](https://github.com/elgordino)
|
||||
- [Martin Imobersteg](https://github.com/bugix)
|
||||
- [Genie Jhang](https://github.com/geniejhang)
|
||||
- [Steve Moser](https://github.com/stevemoser)
|
||||
- [Juan Carlos Ospina Gonzalez](https://github.com/piterwilson)
|
||||
- [phiren](https://github.com/phiren)
|
||||
- [Prakash Rajendran](https://github.com/dearprakash)
|
||||
- [Trey Richards](https://github.com/treyrich)
|
||||
- [Gianpiero Spinelli](https://github.com/gianpispi)
|
||||
- [Tillman Swinke](https://github.com/tswinke)
|
||||
- [Kraig Wastlund](https://github.com/KraigWastlund)
|
||||
- [Kaden Wilkinson](https://github.com/kdawgwilk)
|
||||
@@ -551,6 +551,7 @@ public enum Device {
|
||||
#endif
|
||||
}
|
||||
|
||||
/// The brightness level of the screen.
|
||||
public var screenBrightness: Int {
|
||||
#if os(iOS)
|
||||
return Int(UIScreen.main.brightness * 100)
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.4.0</string>
|
||||
<string>1.5.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
||||
Reference in new issue
Block a user