* Add canvas detection
* Move isCanvas to include it on tvOS and watchOS.
* Remove additional whitespace.
* Add optional return value to isCanvas and return nil if the current instance isn't the current device.
* Fix broken test on non iOS/iPadOS platforms.
Co-authored-by: Zandor Smith <info@zsinfo.nl>
* Implement support for new October 2022 iPads.
* Add support urls to iPhone 14 series and September 2022 Apple Watch devices.
* Add changelog entry.
* Version bump. (v4.8.0)
* Change releasedate in changelog.
* Add missing Apple Watch Series 7.
* Initial implementation for iPhone 14.
* Initial implementation for Apple Watch Series 8, Apple Watch SE 2 and Apple Watch Ultra and fix iPhone 14 Plus.
* Add missing device identifiers and fix Apple Watch Series 7 and 8 housing size.
* Add changelog entry for 4.7.0.
* Fix tests.
* Fix the `Device.systemName` property
iPadOS system name for iPads was taken into account
* Add test for systemName.
* Fix compile error on Apple TV.
Co-authored-by: Zandor Smith <info@zsinfo.nl>
* Add iPhone SE (3rd generation) and iPad Air (5th generation) support.
* Fix tests.
* Add device identifier for iPhone SE (3rd generation)
* Version bump (4.6.0) and update changelog.
* Fix testIsPhoneIsPadIsPod test.
* Add device identifiers for iPad Air (5th generation)
* Use Python 3 for gyb.
* Adjust release date.
* Add support URL and images for iPhone SE (3rd generation).
* fix release date due to sick leave
* correct version in readme
Co-authored-by: Denise Nepraunig <denise.nepraunig@gmail.com>
* Add initial support for iPad Pro (11 inch) (3rd generation) and iPad Pro (12.9 inch) (5th generation).
* Add initial support of Apple TV 4K (2nd generation).
* Add trailing comma to prevent having to change the previous line when new devices get added.
* Update changelog.
* Add device identifiers for both iPad Pros and Apple TV 4K (2nd generation).
* Version bump in Xcode project. (4.4.0)
* Update changelog.
* Update Tests.swift
fix tests for April devices
* podspec 4.4.0
Co-authored-by: Denise Nepraunig <denise.nepraunig@gmail.com>
* Fix the aspect ratio of iPad Air (4th generation).
* Specify that iPhone 12 Pro (Max) also are sporting a LiDAR sensor.
* Update changelog and bump version to v4.2.1.
* Add links to pull request and issues.
* Fix LiDAR test.
* Add support for all iPhone 12 models and iPad Air (4th generation)
Device identifiers missing for iPhones.
Support link and image missing for iPhones and iPad.
* Bump version to 4.2.0.
* Update changelog.
* Add device identifiers for all iPhone 12.
* Fix Unit tests.
* Update v4.2.0 release date in CHANGELOG.md.
* Add support for the 2020 iPad Pro.
* Add variables for checking if device has a LiDAR sensor.
* Add test for LiDAR values.
* Added correct device identifiers and documentation for new iPad Pro 2020.
* Fix testIsPro test.
* Updated changelog for 3.1.0.
* Added LiDAR function to changelog.
* Start on adding the new iPhone 11, iPhone 11 Pro, iPhone 11 Pro Max and iPad 7.
* Start on adding Apple Watch Series 5 support.
* Fixed missing enums for Apple Watch Series 5.
* Add identifiers for iPhone 11, Pro and Pro Max.
* Add Apple Watch Series 5 identifiers.
Taken from Simulator.
* Fix image url for iPhone 4s and iPad 6 and fix formatting of gyb file.
* Fix tests.
* Add Watch5,1 and Watch5,2 identifiers for 40 and 44 mm respectively.
* Temporarily remove support for iPad (7th generation).
No identifiers are know yet and it isn't going to release for a week. We want to push the update.
* Update changelog and add changelog to Xcode project.
* Fix device links.
* iPhone 11 Pro and 11 Pro Max don't have 3D Touch.
* Add iPod Touch (7th generation) support.
* Rename iPod touch 5 and 6 to their proper name.
iPod touch (5th generation) and iPod touch (6th generation).
* Fixed capitalization in description.
* Set camera setting on iPods.
* Fixed description unit test.
* Add variables to check which cameras a device has.
Fixes https://github.com/devicekit/DeviceKit/issues/186
* Make functions that should've been static, static.
* Added tests for camera variables.
* Fix errors and warnings danger had spit out.
* Add boolean and array functions to check if the device has a sensor housing.
* Move variables together.
* Rename allDevicesWithASensorHousing to allDevicesWithSensorHousing.
* Create allDevicesWithRoundedDisplayCorners and hasRoundedDisplayCorners variables.
* Create branch for 2.0 changes.
* Rename iPhone Xs to XS and Xr to XR (fixes https://github.com/dennisweissmann/DeviceKit/issues/149)
* Fixed generation of allDevicesWithSensorHousing and hasSensorHousing through the gyb file.
* Check if device is current.
* Fixed formatting.
* Check for current device in isZoomed.
* Add documentation to the isCurrent variable.
* Add static current variable and make the initialiser private.
* Revert commit used to create the patch branch in my fork.
* Fixed readme so that it also contains the rename of XS and XR.
* Check for isCurrent on the isPhone and isPad variables when DeviceKit hasn't been updated for a new device yet. (Fixes https://github.com/dennisweissmann/DeviceKit/issues/165)
* Change device description to use small caps on iPhone XS (Max) and iPhone XR.
* Changed all if !isCurrent statements to guards.
* Remove .instance and the initialiser and completely move over to .current.
* Fixed names of iPad 3, 4, 5 and 6.
* Fix https://github.com/dennisweissmann/DeviceKit/pull/166 not being added through the gyb file.
* Fix documentation inside code to use Device.current instead of the constructor.
* Fixed readme to use Device.current instead of the constructor.
* Add new iPad Air (3th generation) and iPad Mini (5th generation).
* Revert https://github.com/Zandor300/DeviceKit/commit/3eec7cde1dc54da1a7bb91eea32c75749fe6d0bb
* Update to Swift 5.
* Update tests for breaking changes.
* Fix merge.
* Fixed code alignment.
* Fixed trailing whitespace violations.
* Disable the function_body_length rule on mapToDevice(String).
Since this function is generated with a switch for all devices, this needs to be this long.
* Use Xcode 10.2 to build and test the project.
This is required because Swift 5 isn't supported in Xcode 10.1.
* Set .swift-version to 5.0
* Fixed description tests.
* Add iPad (6th gen), iPad Air (3rd gen) and iPad Mini (5th gen) to the description test.
* Fixed one test that still used Device().
* Created new test to prevent https://github.com/devicekit/DeviceKit/issues/165 from happening again.
* Disable the function_body_length swiftlint rule on the testDescription().
* Added a bunch of tech specs and image links where missing.
* Fixed spacing and another couple urls.
* Add Swift 5 information to the readme.
* Add a default case to the switch to cover future additions to WKInterfaceDeviceBatteryState. (Thanks robbiet480)
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.
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