Skip to content

Commit 7dec8f8

Browse files
Zandor300denisenepraunig
authored andcommitted
Apply a bunch of refactoring changes for 3.0.0 (devicekit#212)
* Apply a bunch of refactoring changes. * Improve MARKs. * Add safeDescription variable. (Implements devicekit#216) For getting a safe version of the description variable. (Eg; iPhone XR). * Fix typo in comment (Fixes devicekit#221) * Update changelog. * Fixed formatting. * Fixed links. * Add safeDescription test for iOS. * Fixed duplicate test.
1 parent 529dfe8 commit 7dec8f8

File tree

4 files changed

+374
-157
lines changed

4 files changed

+374
-157
lines changed

CHANGELOG.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,40 @@ Releasedate: TBD
66

77
```ruby
88
pod 'DeviceKit', :git => 'https://github.com/devicekit/DeviceKit.git', :branch => 'master'
9+
#pod 'DeviceKit', '~> 3.0'
910
```
1011

1112
### Breaking changes
12-
- The enum for the Apple TV HD has been renamed from `.appleTV4` to `.appleTVHD`. (#211)
13+
- The enum for the Apple TV HD has been renamed from `.appleTV4` to `.appleTVHD`. ([#211](https://github.com/devicekit/DeviceKit/pull/211))
14+
- `.allSimulatorXSeriesDevices` has been deprecated and replaced by `.allSimulatorDevicesWithSensorHousing`. ([#212](https://github.com/devicekit/DeviceKit/pull/212))
15+
- `.allXSeriesDevices` has been deprecated and replaced by `.allDevicesWithSensorHousing`. ([#212](https://github.com/devicekit/DeviceKit/pull/212))
16+
17+
#### Camera
18+
- `CameraTypes` has been renamed to `CameraType`. ([#212](https://github.com/devicekit/DeviceKit/pull/212))
19+
- `CameraType.normal` has been deprecated and replaced by `CameraType.wide`. ([#212](https://github.com/devicekit/DeviceKit/pull/212))
20+
- `.allDevicesWithNormalCamera` has been deprecated and replaced by `.allDevicesWithWideCamera`. ([#212](https://github.com/devicekit/DeviceKit/pull/212))
21+
- `.hasNormalCamera` has been deprecated and replaced by `.hasWideCamera`. ([#212](https://github.com/devicekit/DeviceKit/pull/212))
1322

1423
### New features
15-
- You can now check which devices support wireless charging through the following variables: `Device.allDevicesWithWirelessChargingSupport` and `Device.current.supportsWirelessCharging` (#209)
24+
- You can now check which devices support wireless charging through the following variables: `Device.allDevicesWithWirelessChargingSupport` and `Device.current.supportsWirelessCharging` ([#209](https://github.com/devicekit/DeviceKit/pull/209))
25+
- New `.safeDescription` variable that will provide you with a safe version of the `.description` variable. ([#212](https://github.com/devicekit/DeviceKit/pull/212))
26+
- Example: "iPhone Xʀ" vs "iPhone XR"
1627

17-
## Version 2.3.0
28+
### Bugfixes
29+
- `.allDevicesWith3dTouchSupport` contained `.iPhoneSE` which was incorrect. ([#226](https://github.com/devicekit/DeviceKit/pull/226))
30+
- Some variables would return incorrect values when running on the simulator. ([#227](https://github.com/devicekit/DeviceKit/pull/227))
1831

19-
Releasedate: 2019-10-02
32+
## Version 2.3.0
2033

21-
```ruby
22-
pod 'DeviceKit', '~> 2.3'
23-
```
34+
Releasedate: 2019-10-02
2435

25-
### New devices
26-
- Added support for the new september 2019 devices:
27-
- iPad (7th generation)
36+
```ruby
37+
pod 'DeviceKit', '~> 2.3'
38+
```
39+
40+
### New devices
41+
- Added support for the new september 2019 devices:
42+
- iPad (7th generation)
2843

2944
## Version 2.2.0
3045

0 commit comments

Comments
 (0)