Skip to content

Commit 691fe81

Browse files
authored
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.
1 parent 4690d82 commit 691fe81

File tree

5 files changed

+56
-11
lines changed

5 files changed

+56
-11
lines changed

CHANGELOG.md

+46-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,52 @@
11
# Changelog
22

3-
## Version 4.9.0
3+
## Version 5.0.0
44

55
Releasedate: TBD
66

7+
```ruby
8+
pod 'DeviceKit', '~> 5.0'
9+
```
10+
11+
### Breaking changes
12+
13+
- DeviceKit v5.0.0 drops support for the platforms that Xcode 14 also no longer supports: ([#337](https://github.com/devicekit/DeviceKit/pull/337))
14+
15+
| Platform | Previous | Now |
16+
|----------|----------|------|
17+
| iOS | 9.0 | 11.0 |
18+
| tvOS | 9.0 | 11.0 |
19+
| watchOS | 2.0 | 4.0 |
20+
21+
### New features
22+
23+
- Retrieve a device's CPU info using eg. `Device.current.cpu`. ([#330](https://github.com/devicekit/DeviceKit/pull/330))
24+
- Add `.isSimulator` to tvOS and watchOS. ([#245](https://github.com/devicekit/DeviceKit/pull/245))
25+
- Add `.isCanvas` which indicates whether the app is running in a SwiftUI preview. ([#303](https://github.com/devicekit/DeviceKit/pull/303))
26+
27+
### Contributors
28+
29+
Thanks to all the contributers of this release!
30+
- [parski](https://github.com/parski)
31+
- [guidev](https://github.com/guidev)
32+
- [JackYoustra](https://github.com/JackYoustra)
33+
34+
## Version 4.9.0
35+
36+
Releasedate: 2022-11-01
37+
738
```ruby
839
pod 'DeviceKit', '~> 4.9'
940
```
1041

42+
### Apple TV 4K (3rd generation) support.
43+
44+
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))
45+
46+
| Device | Case value |
47+
| --- | --- |
48+
| Apple TV 4K (3rd generation) | `Device.appleTV4K3` |
49+
1150
### New features
1251

1352
- 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'
1655

1756
- Fix Apple Watch Series 7 device identifier being incorrect. ([#329](https://github.com/devicekit/DeviceKit/pull/329))
1857

58+
### Contributors
59+
60+
Thanks to all the contributers of this release!
61+
- [guidev](https://github.com/guidev)
62+
- [chedabob](https://github.com/chedabob)
63+
1964
## Version 4.8.0
2065

2166
Releasedate: 2022-10-28

DeviceKit.podspec

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'DeviceKit'
3-
s.version = '4.9.0'
3+
s.version = '5.0.0'
44
s.summary = 'DeviceKit is a µ-framework that provides a value-type replacement of UIDevice.'
55

66
s.description = <<-DESC
@@ -13,9 +13,9 @@ Pod::Spec.new do |s|
1313
s.social_media_url = 'https://twitter.com/dennis_weissman'
1414

1515
s.requires_arc = true
16-
s.ios.deployment_target = '9.0'
17-
s.tvos.deployment_target = '9.0'
18-
s.watchos.deployment_target = '2.0'
16+
s.ios.deployment_target = '11.0'
17+
s.tvos.deployment_target = '11.0'
18+
s.watchos.deployment_target = '4.0'
1919

2020
s.swift_version = '5.0'
2121

DeviceKit.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
"@executable_path/Frameworks",
381381
"@loader_path/Frameworks",
382382
);
383-
MARKETING_VERSION = 4.9.0;
383+
MARKETING_VERSION = 5.0.0;
384384
MTL_ENABLE_DEBUG_INFO = YES;
385385
PRODUCT_BUNDLE_IDENTIFIER = me.dennisweissmann.DeviceKit;
386386
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -437,7 +437,7 @@
437437
"@executable_path/Frameworks",
438438
"@loader_path/Frameworks",
439439
);
440-
MARKETING_VERSION = 4.9.0;
440+
MARKETING_VERSION = 5.0.0;
441441
MTL_ENABLE_DEBUG_INFO = NO;
442442
PRODUCT_BUNDLE_IDENTIFIER = me.dennisweissmann.DeviceKit;
443443
PRODUCT_NAME = "$(TARGET_NAME)";

Package.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import PackageDescription
1515
let package = Package(
1616
name: "DeviceKit",
1717
platforms: [
18-
.iOS(.v9),
19-
.tvOS(.v9),
20-
.watchOS(.v2)
18+
.iOS(.v11),
19+
.tvOS(.v11),
20+
.watchOS(.v4)
2121
],
2222
products: [
2323
// Products define the executables and libraries produced by a package, and make them visible to other packages.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
`DeviceKit` is a value-type replacement of [`UIDevice`](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/).
2020

21-
## Current version 4.9.0
21+
## Current version 5.0.0
2222
See our detailed [changelog](CHANGELOG.md) for the latest features, improvements and bug fixes.
2323

2424
## Features

0 commit comments

Comments
 (0)