From 691fe8112cca20ebf0020a1709d4e0205400311c Mon Sep 17 00:00:00 2001 From: Zandor Smith Date: Tue, 1 Nov 2022 22:48:39 +0100 Subject: [PATCH] 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. --- CHANGELOG.md | 47 ++++++++++++++++++++++++++++- DeviceKit.podspec | 8 ++--- DeviceKit.xcodeproj/project.pbxproj | 4 +-- Package.swift | 6 ++-- README.md | 2 +- 5 files changed, 56 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eaa2d6de..ec87cfb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,52 @@ # Changelog -## Version 4.9.0 +## Version 5.0.0 Releasedate: TBD +```ruby +pod 'DeviceKit', '~> 5.0' +``` + +### Breaking changes + +- DeviceKit v5.0.0 drops support for the platforms that Xcode 14 also no longer supports: ([#337](https://github.com/devicekit/DeviceKit/pull/337)) + +| Platform | Previous | Now | +|----------|----------|------| +| iOS | 9.0 | 11.0 | +| tvOS | 9.0 | 11.0 | +| watchOS | 2.0 | 4.0 | + +### New features + +- Retrieve a device's CPU info using eg. `Device.current.cpu`. ([#330](https://github.com/devicekit/DeviceKit/pull/330)) +- Add `.isSimulator` to tvOS and watchOS. ([#245](https://github.com/devicekit/DeviceKit/pull/245)) +- Add `.isCanvas` which indicates whether the app is running in a SwiftUI preview. ([#303](https://github.com/devicekit/DeviceKit/pull/303)) + +### Contributors + +Thanks to all the contributers of this release! +- [parski](https://github.com/parski) +- [guidev](https://github.com/guidev) +- [JackYoustra](https://github.com/JackYoustra) + +## Version 4.9.0 + +Releasedate: 2022-11-01 + ```ruby pod 'DeviceKit', '~> 4.9' ``` +### Apple TV 4K (3rd generation) support. + +This version adds support for the new Apple TV (3rd generation) that is released on the 4th of November 2022. ([#335](https://github.com/devicekit/DeviceKit/pull/335)) + +| Device | Case value | +| --- | --- | +| Apple TV 4K (3rd generation) | `Device.appleTV4K3` | + ### New features - Add ability to get current device's thermal state. ([#332](https://github.com/devicekit/DeviceKit/pull/332)) @@ -16,6 +55,12 @@ pod 'DeviceKit', '~> 4.9' - Fix Apple Watch Series 7 device identifier being incorrect. ([#329](https://github.com/devicekit/DeviceKit/pull/329)) +### Contributors + +Thanks to all the contributers of this release! +- [guidev](https://github.com/guidev) +- [chedabob](https://github.com/chedabob) + ## Version 4.8.0 Releasedate: 2022-10-28 diff --git a/DeviceKit.podspec b/DeviceKit.podspec index 51e2ca33..b8abd9f3 100644 --- a/DeviceKit.podspec +++ b/DeviceKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'DeviceKit' - s.version = '4.9.0' + s.version = '5.0.0' s.summary = 'DeviceKit is a ยต-framework that provides a value-type replacement of UIDevice.' s.description = <<-DESC @@ -13,9 +13,9 @@ Pod::Spec.new do |s| s.social_media_url = 'https://twitter.com/dennis_weissman' s.requires_arc = true - s.ios.deployment_target = '9.0' - s.tvos.deployment_target = '9.0' - s.watchos.deployment_target = '2.0' + s.ios.deployment_target = '11.0' + s.tvos.deployment_target = '11.0' + s.watchos.deployment_target = '4.0' s.swift_version = '5.0' diff --git a/DeviceKit.xcodeproj/project.pbxproj b/DeviceKit.xcodeproj/project.pbxproj index 49d81b92..25971e9f 100644 --- a/DeviceKit.xcodeproj/project.pbxproj +++ b/DeviceKit.xcodeproj/project.pbxproj @@ -380,7 +380,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 4.9.0; + MARKETING_VERSION = 5.0.0; MTL_ENABLE_DEBUG_INFO = YES; PRODUCT_BUNDLE_IDENTIFIER = me.dennisweissmann.DeviceKit; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -437,7 +437,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 4.9.0; + MARKETING_VERSION = 5.0.0; MTL_ENABLE_DEBUG_INFO = NO; PRODUCT_BUNDLE_IDENTIFIER = me.dennisweissmann.DeviceKit; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Package.swift b/Package.swift index cdd16330..156ebaa0 100644 --- a/Package.swift +++ b/Package.swift @@ -15,9 +15,9 @@ import PackageDescription let package = Package( name: "DeviceKit", platforms: [ - .iOS(.v9), - .tvOS(.v9), - .watchOS(.v2) + .iOS(.v11), + .tvOS(.v11), + .watchOS(.v4) ], products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. diff --git a/README.md b/README.md index 8b6468be..7680d9fc 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ `DeviceKit` is a value-type replacement of [`UIDevice`](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/). -## Current version 4.9.0 +## Current version 5.0.0 See our detailed [changelog](CHANGELOG.md) for the latest features, improvements and bug fixes. ## Features