123 Commits
Author SHA1 Message Date
Denise Nepraunig a6b5bb3eb6 version 2.0.0 release 2019-04-10 17:42:46 +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
2019-03-29 22:07:17 +01:00
Zandor Smith 5a2c3064db Fixed spelling mistake. 2019-03-26 20:06:59 +01:00
Zandor Smith 4b8b014272 Compile to generate the generated.swift file. 2019-03-26 20:06:59 +01:00
Zandor Smith 366a25b2fb Add device model identifiers.
Source: https://www.theiphonewiki.com/wiki/Models
The .generated.swift file still needs to be generated.
2019-03-26 20:06:59 +01:00
Zandor Smith 0c335e5298 Fixed new iPad Air being seen as an iPad Pro. 2019-03-26 20:06:59 +01:00
Zandor Smith 1bf530012e Add new iPad Air (3th generation) and iPad Mini (5th generation). 2019-03-26 20:06:59 +01:00
kingiol fb2bc345f8 Compile generated.swift 2019-03-26 19:44:08 +01:00
kingiol b2f1a326cf Also update the gyb file 2019-03-26 19:44:08 +01:00
kingiol 109010a9ea fix volumeAvailableCapacityForImportantUsage error 2019-03-26 19:44:08 +01:00
Denise Nepraunig a2536b92c2 update version to 1.12.0
update version to 1.12.0 to release a new pod version from a new organisation
2019-03-25 15:30:44 +01:00
Zandor Smith 59f85e0704 Rename allDevicesWithASensorHousing to allDevicesWithSensorHousing. 2019-03-04 10:58:21 +01:00
Zandor Smith 6f3595a6e0 Move variables together. 2019-03-04 10:58:21 +01:00
Zandor Smith e69db12c04 Add boolean and array functions to check if the device has a sensor housing. 2019-03-04 10:58:21 +01:00
Dennis Weissmann 804c00edc6 bump version number to 1.11.0 2018-12-12 11:49:14 +01:00
Dennis Weissmann 9892ae872c release version 1.10.0 2018-11-01 10:58:25 +01:00
Dennis Weissmann 314616c7a7 add support for iPad Pro 11" and 12.9" 3rd gen 2018-11-01 10:28:14 +01:00
Dennis Weissmann 67d283cae7 revert recently introduced breaking change
as per https://semver.org/#what-do-i-do-if-i-accidentally-release-a-backwards-incompatible-change-as-a-minor-version I'll release a new (breaking) version, sorry for that :(
2018-11-01 09:52:20 +01:00
Dennis Weissmann 3be7b9b6ce simplify tests
more swiftlint rules
extend test device matrix in travis CI
2018-10-21 13:55:34 +02:00
Dennis Weissmann a7d33b0004 bump version to 1.9.0 🎉 2018-10-11 22:06:37 +02:00
Dennis Weissmann c2e8d0b9a8 fix linter warnings 2018-10-11 22:02:57 +02:00
Dennis Weissmann ef0b3aaf91 make battery state unavailable on tvOS 2018-10-11 21:57:21 +02:00
Dennis Weissmann 2a02f361c0 adjust dates and tests 2018-10-11 21:29:19 +02:00
Robbie Trencheny f89a23926c Whitespace fixes 2018-10-11 21:21:29 +02:00
Robbie Trencheny e1ae862f9c Support watchOS 2.0 and above by only exposing battery data on watchOS 4 and above 2018-10-11 21:21:29 +02:00
Robbie Trencheny 390c5853f1 Enable more functions for watchOS 2018-10-11 21:21:29 +02:00
Robbie Trencheny 47303b6d06 More watchOS fixes 2018-10-11 21:21:29 +02:00
Robbie Trencheny 0a3dcdfd12 Initial watchOS support 2018-10-11 21:21:29 +02:00
saltylight 84e4a11074 ✨ added XSeriesDevices for iPhoneX, iPhoneXR, iPhoneXS, iPhoneXSMax 2018-09-21 22:13:12 +02:00
Dennis Weissmann fa62f0b590 new version 1.8.1 2018-09-18 19:16:05 +02:00
Dennis Weissmann c4693822ea backwards compatability with Swift < 4.2 2018-09-18 19:12:18 +02:00
Dennis Weissmann 300f709a4b increase version number to 1.8.0 2018-09-17 09:40:04 +02:00
Dennis Weissmann d188797053 rename models consistently, remove header file, increase Swift version (in .swift-version file), add tests 2018-09-17 09:34:56 +02:00
Michael Gray 38cc07e616 some performance improvements on loading Device() in your app
added a static var instance, and increased the performance of Device() (if called many times in an app).
2018-09-16 11:23:36 +02:00
Michael Gray 4b2e948703 some oddly missing 'public' tags 2018-09-16 11:23:36 +02:00
Michael Gray 0558e9bdac tweaking my best guess that the 'max' devices may support zooming but the X and XS won't? 2018-09-16 11:23:36 +02:00
Michael Gray afeaa55cd3 devices generated 2018-09-16 11:23:36 +02:00
Michael Gray 2c5bfe9fd7 Update Device.swift.gyb 2018-09-16 11:23:36 +02:00
Dennis Weissmann cf28f798f0 add support for real device 2018-09-09 15:39:47 +02:00
Dennis Weissmann 8627f45ecf add support to detect whether or not a device has touchID or faceID 2018-09-09 15:05:43 +02:00
Gianpiero b5faa1407c Minor changes
Added the allMiniDevices and allSimulatorMiniDevices arrays for iPad mini
2018-08-11 10:53:09 +02:00
Dennis Weissmann 661c321144 fixes for Xcode 10, Swift 4.2 2018-08-11 10:36:29 +02:00
Jean-Charles SORIN dc696b8157 Move iOS availability macros to specific methods, not extension 2018-07-13 11:10:36 +02:00
Zeo 26c8721dad update to Swift 4.2.
fix build error on Xcode 10 beta.
2018-06-26 15:01:12 +02:00
Dennis Weissmann 20649b9818 bump version to 1.7.0
correct readme
update bundle
2018-04-13 18:43:46 +02:00
Eric Marchand 804d126166 Add volume capacity Fix #48 2018-04-13 17:30:39 +02:00
Muhammad Umer 6843a0aafe fix danger issues 2018-04-13 13:17:21 +02:00
Muhammad Umer db17de9ecd build and generated with orientation extension 2018-04-13 13:17:21 +02:00
Muhammad Umer 198c06c247 added device orientation extension to Device.swift.gyb 2018-04-13 13:17:21 +02:00