Dennis Weissmann
5fa55c3db0
include iPhone 8(+) and X in the generated Swift file
2017-09-17 16:52:30 +02:00
Dennis Weissmann
6b1479fa0a
Release CocoaPods version 1.3.0
2017-09-17 13:00:25 +02:00
Dennis Weissmann
15f7dc175d
more resilient logic in isPhone and isPad
...
remove `UserInterfaceIdiom` since it wasn't used, this is a non-breaking change because the enum had a private initializer (and I hope nobody extended it :))
fix documentation typos and spaces
2017-09-17 09:44:56 +02:00
Tim Walsh
1e17a2cb8a
#89 : Added iPhone 8, 8+, X ( #90 )
...
Added iPhone 8, 8+, X
2017-09-16 21:48:31 +02:00
Juan Carlos Ospina Gonzalez
9e7aff84f5
Simulator devices now return their equivalent devices' ppi (and not nil)
2017-07-26 23:27:31 +02:00
Juan Carlos Ospina Gonzalez
c641f12918
[SwiftLint] Address trailing_whitespace violations
2017-07-26 23:27:31 +02:00
Juan Carlos Ospina Gonzalez
6e44a31517
Added ppi feature
...
Added known ppi values for applicable devices.
Unit test added and verified with the devices public information in WikiPedia.
Applicable devices are all devices that include a screen, so basically all the iPhones and Ipads.
Unaplicable devices are devices whose screen is not part of the device itself, such as the AppleTV and the Simulators.
2017-07-26 23:27:31 +02:00
Dennis Weissmann
c8683e9e82
Generate all the things ™️
2017-07-15 17:04:09 +02:00
Dennis Weissmann
906de7e758
preparation for generating code
2017-07-15 17:04:09 +02:00
Dennis Weissmann
49abe10075
start using codecov.io for code coverage reporting
...
improve test coverage
2017-07-08 13:59:28 +02:00
Dennis Weissmann
2e6ad9aa71
Release 1.2.3
2017-06-11 16:20:58 +02:00
Dennis Weissmann
2e37eeed94
Release 1.2.2
2017-06-11 15:06:38 +02:00
Dennis Weissmann
1bba9c5239
release 1.2.1
2017-06-11 15:00:53 +02:00
Dennis Weissmann
6f30986f65
Release 1.2.0
2017-06-11 13:32:22 +02:00
Dennis Weissmann
71dae7bc81
add support for iPad 5, iPad Pro 10.5 iPad Pro 12.9 inch gen 2 ( #75 )
...
* add support for the 10.5 inch iPad Pro
state the source of the identifiers in the readme
* add support for iPad 5 and iPad Pro 12.9 inch gen 2
2017-06-11 13:26:50 +02:00
Dennis Weissmann
7c0224993b
add support for the 10.5 inch iPad Pro
...
state the source of the identifiers in the readme
2017-06-08 07:13:27 +02:00
Dennis Weissmann
762124d397
new swiftlint rules
...
use swiftformat to format source code
new (well, Swift 3) operator syntax (static funcs instead of global ones)
bump version to 1.0.1
new implementation of `isZoomed` (which hopefully works now), this closes #59
2017-01-15 11:12:34 +01:00
Kaden Wilkinson
6f55a6e018
[Swift 3.0] Fix crash for looking up sim id on real device ( #62 )
...
* Fix crash for looking up sim id on real device
* Use better API to get env var that won't crash
* change unknown to os name
* Fix line length and lowercase the sim enum
* Remove NS prefix for Swift 3
2017-01-05 08:26:58 +01:00
Dennis Weissmann
6cf55b98a3
Merge remote-tracking branch 'origin/master'
2016-12-04 11:52:16 +01:00
chappieee
b85964ddf6
fix diagonal ( #58 )
2016-12-04 10:51:50 +01:00
Dennis Weissmann
c441090ed9
update Xcode project settings to recommended settings
...
remove 2 warnings on unused identifiers
2016-12-04 10:36:51 +01:00
Dennis Weissmann
85cfcdf3c1
added .iPhone5c to allDevices ( #55 )
...
fixes #54 , thanks @LeonardoCardoso
2016-10-29 18:19:02 +02:00
Genie Jhang
ea64432c67
Add diagonal and screenRatio methods. ( #50 )
...
* Add diagonal and screenRatio methods.
* Compilation issue resolved.
* - diagonal method returns Float value.
- screenRatio method returns a tuple haivng Float width and Float height.
- default cases are removed and unidentified device returns -1 or a tuple of -1's
2016-10-25 07:20:51 +02:00
Dennis Weissmann
ce4725cfae
bump version to 1.0.0 (thank you everyone!!!)
2016-09-10 23:04:24 +02:00
Dennis Weissmann
1801ed9c70
Add additional identifiers for iPhone 7 / Plus
2016-09-10 22:02:55 +02:00
Dennis Weissmann
37d784026d
adds support for iPhone 7 and iPhone 7 Plus
2016-09-08 21:09:14 +02:00
Dennis Weissmann
03b4c6ace5
Merge branch 'master' into swift-3
2016-08-27 21:37:43 +02:00
Dennis Weissmann
d41172636c
enables more swiftlint rules
...
bumps version to 0.3.4
use 2-space indentation
adds documentation
2016-08-26 14:39:31 +02:00
Kraig Wastlund
29d0ba3d01
Make device identifier public
2016-08-22 16:53:00 -06:00
Kraig Wastlund
abf486f5c6
Make mapIdentifier method public
2016-08-22 11:51:04 -06:00
Kraig Wastlund
9764d144e7
Revert "give access to description from identifier"
...
This reverts commit be61217741 .
2016-08-19 13:42:15 -06:00
Kraig Wastlund
be61217741
give access to description from identifier
2016-08-19 13:20:32 -06:00
Dennis Weissmann
f47f71a690
make it compile again after resolving merge conflicts
2016-08-12 22:11:32 +02:00
Dennis Weissmann
12ee8d50c5
Merge branch 'master' into swift-3
2016-08-12 22:08:35 +02:00
Dennis Weissmann
2b459bdc24
unify targets into one framework target
2016-08-12 22:00:47 +02:00
Dennis Weissmann
5bbe302f75
bump CocoaPods version
2016-08-09 11:24:17 +02:00
Stefan Sturm
b266fd5847
change iPad Pro to iPad Pro 9 nad iPad Pro 12
2016-08-09 09:50:28 +02:00
Trey Richards
fb0605af69
Updated for Xcode 8 Beta 4
2016-08-02 14:50:14 -07:00
Dennis Weissmann
6ad2b4f0f1
adds an isZoomed property. Thanks to @jackchmbrln, this resolves #29
2016-07-31 16:37:31 +02:00
Dennis Weissmann
fd2983075c
updates syntax for latest snapshot (swift-DEVELOPMENT-SNAPSHOT-2016-07-29-a.xctoolchain)
...
aded *.DS_Store to .gitignore
2016-07-31 16:27:17 +02:00
Dennis Weissmann
d6cc2e3be0
Letting CI compile your program is really baaaaad :(
2016-07-25 19:37:36 +02:00
Dennis Weissmann
c4339dd3c6
Update Device.swift
...
Maybe I should have updated *all* checks ...
2016-07-24 22:31:21 +02:00
Dennis Weissmann
1a0f25c9cf
Updated AppleTV cases and checks
2016-07-24 22:22:23 +02:00
Trey Richards
06fd6bed38
Updated swift 3 syntax.
2016-07-18 16:05:11 -07:00
Dennis Weissmann
1c8d9a9663
new release (0.3.2)
2016-04-03 12:49:33 +02:00
Jean Azzopardi
1c6e420a0e
Removes inline comments disabling and enabling swiftlint and moves them to .swiftlint.yml file
2016-03-28 17:21:51 +02:00
Jean Azzopardi
685f593f39
Disables cyclomatic_complexity warning
2016-03-28 17:03:21 +02:00
phiren
9f573d392b
Fixed Xcode 7.3 issue
...
Xcode 7.3 issue
2016-03-25 15:14:51 +05:30
phiren
3673d5c6c0
Fixed issue Xcode 7.3
...
https://github.com/dennisweissmann/DeviceKit/issues/19
2016-03-25 14:42:22 +05:30
Steve Moser
9a22f6f85c
Update for new SE and iPad Pro devices
2016-03-22 12:11:52 -04:00