279 Commits

Author SHA1 Message Date
Zandor Smith d63e018bd0 Version bump to 4.3.0 and added changelog entry. 2021-02-12 11:20:05 +01:00
Zandor Smith 1a62db7e77 Fix iPhone 12 Pro Max and iPhone 12 mini tech specs and support image urls. 2020-11-18 15:08:03 +01:00
Zandor Smith 6821b3d9ec Add support urls and images for iPhone 12, 12 Pro and iPad Air (4th gen) 2020-11-09 10:16:17 +01:00
Zandor Smith dbddb0296e Fix bugs in v4.2.0 release (#268)
* 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.
4.2.1
2020-10-22 20:00:43 +02:00
Denise Nepraunig 90b302a082 correct 4.2.0 version in readme... 2020-10-21 17:37:17 +02:00
Zandor Smith 8dfc0937d0 Add support for October 2020 devices (#262)
* 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.
4.2.0
2020-10-21 17:34:17 +02:00
Denise Nepraunig 4691cd16d6 4.1.0 also in Readme :-) 4.1.0 2020-09-21 14:02:43 +02:00
Zandor Smith fa7196ee14 Add iPad (8th generation) and Apple Watch SE and Series 6. (#256)
* Add iPad (8th generation) and Apple Watch SE and Series 6

Still missing device identifiers, support URLs and support images.

* Add changelog for 4.1.0 release.

* Add support and image urls and device identifiers for Apple Watch SE/6 and iPad 8

* Update changelog date.

* Fix Apple Watch Series 6 and SE not featuring Force Touch.
2020-09-21 14:00:17 +02:00
Zandor Smith 16b89ba066 Fix description being used for Simulator safeDescription. (#257)
Fixes #255
2020-09-16 12:55:25 +02:00
Sylvain Fay-Châtelard 0df4d3948e Remove unneeded check on iOS9 availability (#254)
Now that DeviceKit dropped support of iOS8, this check is always true.
2020-09-15 21:25:19 +02:00
Denise Nepraunig 969bd6bf03 4.0.0 release (#253) 4.0.0 2020-09-04 16:26:42 +02:00
Zandor Smith d3fdeb28b3 Changelog v4.0.0 (#252)
* Update CHANGELOG.md

* Update README.md
2020-09-04 15:24:05 +02:00
Zandor Smith 4b7f5f3be0 Minimum deployment target iOS 9.0 and apply Xcode 12 recommended settings. (#249)
* Change minimum iOS deployment target to 9.0.

Support for 8.0 was dropped in Xcode 12.

* Apply recommended settings in Xcode 12.

* Update iOS minimum deployment target to 9.0 in SwiftPM and Cocoapods files as well.
2020-08-31 11:29:31 +02:00
tompowered 90fa62e157 Enable BUILD_LIBRARY_FOR_DISTRIBUTION so DeviceKit runs on Xcode 12 (#248) 2020-08-11 14:03:54 +02:00
Pär Strindevall c2dc375a35 Add vendor to .gitignore (#246) 2020-08-08 01:09:36 +02:00
Abdullah 33dacf2a77 Update Tests.swift (#244)
added iPhoneSE2 screenRatio and iPhoneSE ppi to tests
2020-06-18 09:50:30 +02:00
Denise Nepraunig 446e3ab022 3.2.0 release 3.2.0 2020-04-29 19:53:05 +02:00
Zandor Smith 37561a8c84 Add support for the new iPhone SE (2nd generation). (#238)
* Add support for the new iPhone SE (2nd generation).

* Add device identifier for iPhone SE (2nd generation)

Source: theiphonewiki.com

* Add support link and Apple Care image of iPhone SE.

Also compile to propogate the device identifier to the gyb file.

* Update changelog.
2020-04-29 16:59:30 +02:00
Denise Nepraunig c136938866 3.1.0 release 3.1.0 2020-03-29 20:54:56 +02:00
Zandor Smith 952c2cd234 Add support for the 2020 iPad Pro (#235)
* 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.
2020-03-29 20:51:53 +02:00
dependabot[bot] 9595fd97d1 Bump rake from 12.3.1 to 13.0.1 (#234)
Bumps [rake](https://github.com/ruby/rake) from 12.3.1 to 13.0.1.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](https://github.com/ruby/rake/compare/v12.3.1...v13.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-02-29 21:23:21 +01:00
Denise Nepraunig 9625ce4f05 3.0.0 release 3.0.0 2020-01-19 20:15:13 +01:00
Zandor Smith 7dec8f896d Apply a bunch of refactoring changes for 3.0.0 (#212)
* Apply a bunch of refactoring  changes.

* Improve MARKs.

* Add safeDescription variable. (Implements #216)

For getting a safe version of the description variable. (Eg; iPhone XR).

* Fix typo in comment (Fixes #221)

* Update changelog.

* Fixed formatting.

* Fixed links.

* Add safeDescription test for iOS.

* Fixed duplicate test.
2020-01-19 09:13:02 +01:00
Zandor Smith 529dfe802c Fix bug: Incorrect values being returned on simulator. (#227) 2019-12-28 16:25:32 +01:00
Zandor Smith 00eb8fdc26 FIx bug that iPhone SE is reported having 3D touch which is not the case. (#226) 2019-12-28 16:22:44 +01:00
Zandor Smith f19f9f868e Rename the Apple TV HD enum to appleTVHD. (#211)
* Rename the Apple TV HD enum to appleTVHD.

Breaking change!

* Update changelog.

* Update tests with appleTVHD rename.
2019-10-16 20:28:30 +02:00
Gianpiero Spinelli 81ca67d135 Wireless charger (#209)
* Minor changes

Added the allMiniDevices and allSimulatorMiniDevices arrays for iPad mini

* added supportsWirelessCharging variable

* added wireless charging behaviour to every device, added iPad 7 support

* removed whitespace

* removed space in init parameters
2019-10-05 20:20:02 +02:00
Denise Nepraunig 4a1c9aa580 2.3.0 release 2.3.0 2019-10-02 09:29:32 +02:00
Zandor Smith 4861d8ef86 Add support for iPad (7th generation). (#206) 2019-10-02 09:09:25 +02:00
Denise Nepraunig bb9394057b 2.2.0 release 2.2.0 2019-09-24 08:51:30 +02:00
Zandor Smith f693029407 Add support for new 2019 September devices. (#200)
* 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.
2019-09-23 08:48:55 +02:00
Denise Nepraunig 24fbc1daad 2.1.0 release 2.1.0 2019-09-01 15:52:08 +02:00
Denise Nepraunig 8290430ba2 prep for 2.1.0 release 2019-09-01 15:51:45 +02:00
Zandor Smith 8872c1bb5b Add changelog. (#185)
* Create CHANGELOG.md

* Add release dates to changelog.

* Add additional changes to CHANGELOG.md.

* Fix isZoomed.
2019-09-01 14:54:08 +02:00
Zandor Smith 7e678581e4 Fix the isZoomed() function. (#198)
Credits to @vvit.
2019-08-29 14:46:09 +02:00
Zandor Smith 1d00d8449b Comply with renaming of Apple TV (4th generation) to Apple TV HD. (#196)
* Comply with renaming of Apple TV (4th generation) to Apple TV HD.

* Fix Apple TV HD name in tests.
2019-08-16 11:30:57 +02:00
robcas3 89452446ba Added support for Swift Package Manager (#193)
* Added support for Swift Package Manager

* Fixes linter errors and Copyright message

* Fixes .gitignore

* Removed useless files

* Changed default Sources directory

* Added supported platforms
2019-07-18 22:00:26 +02:00
piellarda bd18c1b119 Add missing TARGETED_DEVICE_FAMILY for watchOS (#194)
Thank you @piellarda for your pull request 👍
2019-07-16 10:30:06 +02:00
Zandor Smith 1b473ef46c New iPod touch (7th generation) and correct name of others (#189)
* 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.
2019-06-03 21:40:58 +02:00
Zandor Smith f83399fb38 Add variables to check which cameras a device has (#188)
* 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.
2019-05-31 23:12:54 +02:00
Zandor Smith 7bc49e059e Add Apple Pencil feature, change headings for breaking changes in README.md (#181) 2019-05-02 17:34:52 +02:00
Zandor Smith bfb37a2007 Add 3D Touch and Force Touch support variables (#183)
* Add hasForce3dTouchSupport to Device class.

* Add 3D Touch support variables for iOS.

* Add Force Touch support variables for watchOS.
2019-05-02 17:33:49 +02:00
Zandor Smith dc4b153d61 Set swift_version in podfile instead of .swift-version (#180)
* Set swift_version in podfile.

* Delete .swift-version
2019-04-12 19:54:16 +02:00
SomeRandomiOSDev 494d13a19e Add property to determine if device is compatible with Apple Pencil (#179)
* Add property to determine is device is compatible with Apple Pencil

* Moved Apple Pencil code into separate extension. Added option set to describe which generation of the Apple Pencil is supported

* Updated spacing to satisfy swiftlint warnings

* Removed whitespace to satisfy Swiftlint
2019-04-12 10:23:28 +02:00
Denise Nepraunig a6b5bb3eb6 version 2.0.0 release 2.0.0 2019-04-10 17:42:46 +02:00
Denise Nepraunig 9158453d38 delete 'Swift 5' branch in README.md - master is on Swift 5 2019-04-10 17:28:19 +02:00
Denise Nepraunig 4f8ef70198 Update README.md with changelog for version 2.0
Putting Zandor300's changelog from the PR comment section (for version 2.0 with the breaking changes) into the README.md
2019-04-10 17:22:53 +02:00
Zandor Smith 802e4052c6 Breaking changes for 2.0 (#168)
* 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)
2019-04-10 16:48:31 +02:00
Denise Nepraunig 66130e834e version 1.13.0
new version including iPad Mini 5th gen and iPad Air 3rd gen
1.13.0
2019-03-29 22:07:17 +01:00
Zandor Smith 5a2c3064db Fixed spelling mistake. 2019-03-26 20:06:59 +01:00