Skip to content

Commit

Permalink
Release 5.0.0 (#338)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Zandor300 committed Nov 1, 2022
1 parent 4690d82 commit 691fe81
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 11 deletions.
47 changes: 46 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions DeviceKit.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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'

Expand Down
4 changes: 2 additions & 2 deletions DeviceKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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)";
Expand Down Expand Up @@ -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)";
Expand Down
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 691fe81

Please sign in to comment.