80 Commits

Author SHA1 Message Date
Zandor Smith 56b997e8a6 Version bump. (v5.8.0) 2026-03-03 09:10:01 +01:00
Zandor Smith 8bb5d4b602 Add support for iPhone 17 series and Apple Watch Ultra 3/Series 11 with version 5.7.0 release (#452)
* Initial plan

* Add iPhone 17 series and Apple Watch Ultra 3/Series 11 to Device.swift.gyb template



* Fix Apple Watch Ultra 3 and Series 11 to use S10 chip instead of S11



* Add changelog entry for 5.7.0 and update version numbers

- Add changelog entry for version 5.7.0 with September 12th release date
- Include table of new iPhone 17 series and Apple Watch devices
- Update version to 5.7.0 in README.md, DeviceKit.podspec, and project.pbxproj
- Follow pattern from previous version releases



* Fix changelog.

* Build generated file after copilot gyb implementation.

* Make iPhone Air plus sized.

* More device attribute fixes.

* Update tests after adding new devices.

* Add changelog entry for Series 9 fix.

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Zandor300 <6069593+Zandor300@users.noreply.github.com>
2025-09-11 23:49:28 +02:00
Zandor Smith 866ddd8455 Add support for iPad Mini (A17 Pro) (#429)
* Add support for iPad Mini (A17 Pro)

* Update changelog.

* Version bump. (v5.6.0)
2025-03-11 23:48:14 +01:00
Zandor Smith 0d69179951 Fix CI after macOS 12 image deprecation by GitHub. (#430)
* Fix CI after macOS 12 image deprecation by GitHub.

* Increase minimum deployment target to iOS 13.

* Select Xcode latest stable.
2025-03-11 23:46:15 +01:00
Zandor Smith 2b4327177f Support for iPhone 16 models and Apple Watch Series 10. (#417)
* Initial support for iPhone 16 models and Apple Watch Series 10.

* Version bump. (v5.5.0)

* Add missing device identifiers for new September 2024 devices.

* Fix unit tests after adding new devices.
2024-09-20 21:23:05 +02:00
Zandor Smith 5757447e9f Version bump. (v5.4.0) 2024-05-30 23:13:59 +02:00
Zandor Smith fcdda80dbb Version bump. (v5.3.1) 2024-05-30 23:05:44 +02:00
Zandor Smith 65f18eb08e Version bump. (v5.3.0) 2024-05-23 15:37:27 +02:00
Zandor Smith 4b85958a3f Version bump. (v5.2.4) 2024-04-30 17:29:35 +02:00
Zandor Smith 59c08aa4b3 Enable MERGEABLE_LIBRARY. (#407) 2024-04-30 17:24:59 +02:00
Zandor Smith 97acf830fd Release 5.2.3 2024-04-15 16:40:18 +02:00
Zandor Smith fe41d18ecc Fix building for visionOS. (#390)
* Fix compile errors on visionOS.

# Conflicts:
#	Source/Device.generated.swift
#	Source/Device.swift.gyb

* Remove references to xrOS that are no longer applicable.

* Add TODO comments in code about visionOS proper implementation.

* Update changelog.

---------

Co-authored-by: Chris Vasselli <clindsay@gmail.com>
2024-02-06 21:51:12 +01:00
Zandor Smith 6c01329de4 Fix building SwiftUI previews on macOS. (#389)
* fixes macOS build

* Use description instead of safeDescription inside description.

* Version bump (v5.2.2)

---------

Co-authored-by: Honghao Zhang <m@honghao.dev>
2024-02-06 21:07:10 +01:00
Zandor Smith e1c258c607 Release 5.2.1 (#385)
* Add changelog entry for 5.2.1.

* Version bump. (v5.2.1)
2024-01-17 15:52:13 +01:00
Zandor Smith 572fd0386f Release 5.2.0 (#377)
* added of devices that support 5G network

* fixed device list

* updated Device.swift.gyb file

* add Dynamic Island support

* add test

* Add hasUSBCConnectivity support

* Add test for 5g support.

* Remove trailing comma.

* Add changelog entry.

* Version bump. (v5.2.0)

* Remove trailing whitespace.

* Update changelog with SwiftUI fix already merged to master.

* Remove trailing whitespace.

---------

Co-authored-by: furiosFast <furios.fast@hotmail.it>
Co-authored-by: 417-72KI <417.72ki@gmail.com>
Co-authored-by: Mathieu Hausherr <mhausherr@gmail.com>
2024-01-15 23:42:56 +01:00
Zandor Smith cbcb39b06e Add privacy manifest. (#367)
* Add privacy manifest.

* Add empty arrays to privacy manifest.

* Add PrivacyInfo.xcprivacy to Cocoapods resources.
2024-01-15 19:24:00 +01:00
Zandor Smith 96ee1f425a Release 5.1.0 (#362)
* Adjust GitHub Action simulators used for testing and lock macos version.

* Adds compilation support for visionOS.

Fixes https://github.com/devicekit/DeviceKit/issues/355

*  Add support for new iPhones

Co-Authored-By: Johannes Ebeling <14994778+technocidal@users.noreply.github.com>

*  Added generated gyb file

Co-Authored-By: Johannes Ebeling <14994778+technocidal@users.noreply.github.com>

* 🐛 Fixed missing identifier for 15 Plus

Co-Authored-By: Johannes Ebeling <14994778+technocidal@users.noreply.github.com>

*  Add Watch Series 9

* Change back to using telephoto to describe the iPhone 15 Pro Max 5x camera.

See why: https://github.com/devicekit/DeviceKit/issues/359#issuecomment-1722454836

* Fix tests.

* Update CHANGELOG.md

* Version bump. (v5.1.0)

* Add missing technical specifications and image urls for devices that have them available.

* new release date

---------

Co-authored-by: Henry Thoma <thoma@sipgate.de>
Co-authored-by: Johannes Ebeling <14994778+technocidal@users.noreply.github.com>
Co-authored-by: Denise Nepraunig <denise.nepraunig@gmail.com>
2023-09-21 15:23:08 +02:00
Zandor Smith 691fe8112c Release 5.0.0 (#338)
* Prepare release of 4.9.0.

* Update changelog.

* Version bump. (v5.0.0)

* Update CHANGELOG.

* Update changelog to include PR #303

* Fix deployment targets in podspec.

* Update deployment target in Package.swift.
2022-11-01 22:48:39 +01:00
Zandor Smith 02ad1d25f8 Increase deployment targets to minimal supported versions by Xcode 14. (#337)
* Increase deployment targets to minimal supported versions by Xcode 14.

* Update requirements in README.
2022-10-31 18:52:59 +01:00
chedabob 85c63e2321 Add thermal state (#332)
* feat: Add ThermalState

https://github.com/devicekit/DeviceKit/issues/322

Also fixes the broken example playground

* Add changelog entry.

* Version bump. (v4.9.0)

Co-authored-by: Zandor Smith <info@zsinfo.nl>
2022-10-31 18:08:52 +01:00
Guglielmo Faglioni f5f4b03408 Fix Apple Watch Series 7 device identifier being incorrect. (#329)
* added watch 6,8

* Update changelog and version bump.

Co-authored-by: Zandor Smith <info@zsinfo.nl>
2022-10-29 03:26:21 +02:00
Zandor Smith 12cff4b02b Implement support for new October 2022 iPads. (#334)
* 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.
2022-10-28 15:13:53 +02:00
Zandor Smith d48a843da6 Add support for new September 2022 devices (#324)
* 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.
2022-09-13 19:30:42 +02:00
Zandor Smith 8e2432f999 Release 4.6.1 (#319)
* Release v4.6.1

* correct version in README

Co-authored-by: Denise Nepraunig <denise.nepraunig@gmail.com>
2022-07-15 14:06:40 +02:00
Denise Nepraunig f2b907f725 getting rid of travis (#290)
* getting rid of travis

* Fix version table.

Co-authored-by: Zandor Smith <info@zsinfo.nl>
2022-07-14 14:23:44 +02:00
Zandor Smith af953dafc2 Add support for new March 2022 devices. (#308)
* 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>
2022-03-18 22:19:22 +01:00
Zandor Smith da57c444cb Fix invalid iPad Mini (6th generation) aspect ratio (again) (#300)
* Reverse aspect ratio of iPad Mini (6th generation)

* Add missing support url and images.

* Version bump and changelog entry.

* release date and readme

Co-authored-by: Denise Nepraunig <denise.nepraunig@gmail.com>
2021-10-24 22:14:33 +02:00
Zandor Smith 67335d5070 Fix iPad Mini (6th generation) aspect ratio and screen size. (#294)
* Fix iPad Mini (6th generation) aspect ratio and screen size.

* Add changelog.

* release prep

Co-authored-by: Denise Nepraunig <denise.nepraunig@gmail.com>
2021-10-15 19:10:35 +02:00
Zandor Smith 6b58d9a61e Add support for new September 14th 2021 devices. (#286)
* Add support for new September 14th 2021 devices.

* Remove support for Apple Watch Series 7.

Because it will be available on the fall, we won't know device identifiers, so it doesn't make sense to add support yet.

* Added device identifiers for the iPads and iPhones.

* Added Changelog.

* Version bump. (v4.5.0)

* well, I don't really know how to fix this now...

Co-authored-by: Denise Nepraunig <denise.nepraunig@gmail.com>
2021-09-16 21:09:54 +02:00
Zandor Smith 45fe8518f7 Add support for April 2021 devices (#279)
* 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>
2021-04-29 22:25:57 +02:00
Zandor Smith 96387ccbef Add missing technical specification and image urls. (#272)
* Add support urls and images for iPhone 12, 12 Pro and iPad Air (4th gen)

* Fix iPhone 12 Pro Max and iPhone 12 mini tech specs and support image urls.

* Version bump to 4.3.0 and added changelog entry.
2021-02-12 22:50:55 +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.
2020-10-22 20:00:43 +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.
2020-10-21 17:34:17 +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 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
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
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 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
kingiol b2f1a326cf Also update the gyb file 2019-03-26 19:44:08 +01:00
Dennis Weissmann 53a1b35a58 set swift version everywhere to 4.2 2018-12-12 11:48:15 +01:00
Eric Marchand 7b54ba7564 Let Xcode generate framework header Fix #146 2018-12-12 02:42:03 -08:00
Dennis Weissmann 04f82d904a collect test coverage data, parallelize tests, randomize test order 2018-10-13 20:00:18 +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 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
Dennis Weissmann c4693822ea backwards compatability with Swift < 4.2 2018-09-18 19:12:18 +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
Dennis Weissmann 8627f45ecf add support to detect whether or not a device has touchID or faceID 2018-09-09 15:05:43 +02:00
Dennis Weissmann 661c321144 fixes for Xcode 10, Swift 4.2 2018-08-11 10:36:29 +02:00