Skip to content

Commit

Permalink
Merge branch 'master' into esim_support
Browse files Browse the repository at this point in the history
* master:
  Version bump. (v5.4.0)
  Add unknown orientation variant (devicekit#411)
  Version bump. (v5.3.1)
  Fix path for PrivacyInfo.xcprivacy in test target.
  Process Privacy manifest instead of copy on SPM. (devicekit#409)
  Version bump. (v5.3.0)
  Support for new May 2024 devices. (devicekit#412)
  Fix ruby version not found. (devicekit#414)
  Version bump. (v5.2.4)
  Enable MERGEABLE_LIBRARY. (devicekit#407)
  Update cocoapods to v1.15.2 in Gemfile.
  Release 5.2.3
  fix: Use cocoapod resource_bundles for PrivacyInfo (devicekit#397)
  Fix building for visionOS.  (devicekit#390)
  Fix building SwiftUI previews on macOS. (devicekit#389)
  Release 5.2.1 (devicekit#385)
  Fix PrivacyInfo.xcprivacy not being detected on SPM. (devicekit#384)
  Update swift-tools-version in Package.swift to 5.3 to support Resource files. (devicekit#381)

# Conflicts:
#	Source/Device.swift.gyb
  • Loading branch information
furiosFast committed May 31, 2024
2 parents e569cb4 + 5757447 commit a763580
Show file tree
Hide file tree
Showing 11 changed files with 368 additions and 92 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.6.3
ruby-version: 2.7.8

- uses: MeilCli/danger-action@v5
with:
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.6.3
ruby-version: 2.7.8

- name: xcodebuild
run: set -o pipefail && xcodebuild -scheme DeviceKit -destination "${{ matrix.platform }}" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
119 changes: 119 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,124 @@
# Changelog

## Version 5.4.0

Releasedate: 2024-05-30

```ruby
pod 'DeviceKit', '~> 5.4'
```

### New features

- Add `Orientation.unknown` for when the device is neither in landscape or portrait orientation. ([#410](https://github.com/devicekit/DeviceKit/pull/410))

### Contributors

Thanks to all the contributers of this release!
- [GeorgeElsham](https://github.com/GeorgeElsham)

## Version 5.3.1

Releasedate: 2024-05-30

```ruby
pod 'DeviceKit', '~> 5.3'
```

### Bugfixes

- Process Privacy manifest instead of copy on SPM. ([#409](https://github.com/devicekit/DeviceKit/pull/409))

## Version 5.3.0

Releasedate: 2024-05-21

```ruby
pod 'DeviceKit', '~> 5.3'
```

### New May 2024 devices

This version adds support for the devices announced at the May 2024 Apple Event: ([#412](https://github.com/devicekit/DeviceKit/pull/412))

| Device | Case value |
| --- | --- |
| iPad Air (11-inch) (M2) | `Device.iPadAir11M2` |
| iPad Air (13-inch) (M2) | `Device.iPadAir13M2` |
| iPad Pro (11-inch) (M4) | `Device.iPadPro11M4` |
| iPad Pro (13-inch) (M4) | `Device.iPadPro13M4` |

### New features

- Added `ApplePencilSupport.firstGenerationUsbC` and `ApplePencilSupport.pro`. ([#412](https://github.com/devicekit/DeviceKit/pull/412))

## Version 5.2.4

Releasedate: 2024-04-30

```ruby
pod 'DeviceKit', '~> 5.2'
```

### Bugfixes

- Enable MERGEABLE_LIBRARY flag. ([#407](https://github.com/devicekit/DeviceKit/pull/407))

## Version 5.2.3

Releasedate: 2024-04-15

```ruby
pod 'DeviceKit', '~> 5.2'
```

### Bugfixes

- Fix PrivacyInfo for Cocoapods. ([#397](https://github.com/devicekit/DeviceKit/pull/397))

### Contributors

Thanks to all the contributers of this release!
- [RayJiang16](https://github.com/RayJiang16)

## Version 5.2.2

Releasedate: 2024-02-06

```ruby
pod 'DeviceKit', '~> 5.2'
```

### Bugfixes

- Fix building SwiftUI previews on macOS properly. ([#389](https://github.com/devicekit/DeviceKit/pull/389))
- Fix building for visionOS. ([#390](https://github.com/devicekit/DeviceKit/pull/390))

### Contributors

Thanks to all the contributers of this release!
- [honghaoz](https://github.com/honghaoz)
- [chrisvasselli](https://github.com/chrisvasselli)

## Version 5.2.1

Releasedate: 2024-01-17

```ruby
pod 'DeviceKit', '~> 5.2'
```

### Bugfixes

- Update swift-tools-version in Package.swift to 5.3 to support Resource files. ([#381](https://github.com/devicekit/DeviceKit/pull/381))
- Fix PrivacyInfo.xcprivacy not being detected on SPM. ([#384](https://github.com/devicekit/DeviceKit/pull/384))

### Contributors

Thanks to all the contributers of this release!
- [Semty](https://github.com/Semty)
- Everyone who reported the SPM issues.

## Version 5.2.0

Releasedate: 2024-01-15
Expand Down
4 changes: 2 additions & 2 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 = '5.2.0'
s.version = '5.4.0'
s.summary = 'DeviceKit is a µ-framework that provides a value-type replacement of UIDevice.'

s.description = <<-DESC
Expand All @@ -22,7 +22,7 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/devicekit/DeviceKit.git', :tag => s.version }
s.source_files = 'Source/Device.generated.swift'

s.resources = 'PrivacyInfo.xcprivacy'
s.resource_bundles = { 'DeviceKit' => 'Source/PrivacyInfo.xcprivacy' }

s.requires_arc = true
end
18 changes: 12 additions & 6 deletions DeviceKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
95C7E84D1C6130DB00B0189E /* .swiftlint.yml */ = {isa = PBXFileReference; lastKnownFileType = text; path = .swiftlint.yml; sourceTree = "<group>"; };
95C7E84E1C61332300B0189E /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
FC5C20FA2A5197E2009406EE /* .github */ = {isa = PBXFileReference; lastKnownFileType = folder; path = .github; sourceTree = "<group>"; };
FC6B86C22ACC1A0900E9D70B /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
FCC5A8F22B5820A6004E159B /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = Source/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
FCF1EAD323381E5700B609AA /* CHANGELOG.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -103,6 +103,7 @@
6D29C0BF1F122C77005B52BD /* Device.generated.swift */,
6D29C0BC1F122863005B52BD /* Device.swift.gyb */,
951E3A0E1C61549400261610 /* Info.plist */,
FCC5A8F22B5820A6004E159B /* PrivacyInfo.xcprivacy */,
);
name = Source;
sourceTree = "<group>";
Expand All @@ -119,7 +120,6 @@
95CBDB631BFD2B440065FC66 = {
isa = PBXGroup;
children = (
FC6B86C22ACC1A0900E9D70B /* PrivacyInfo.xcprivacy */,
FC5C20FA2A5197E2009406EE /* .github */,
95C7E83B1C6122BF00B0189E /* Source */,
95C7E8411C61241200B0189E /* Tests */,
Expand Down Expand Up @@ -384,17 +384,20 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 5.2.0;
MARKETING_VERSION = 5.4.0;
MERGEABLE_LIBRARY = YES;
MTL_ENABLE_DEBUG_INFO = YES;
PRODUCT_BUNDLE_IDENTIFIER = me.dennisweissmann.DeviceKit;
PRODUCT_NAME = "$(TARGET_NAME)";
RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator watchos watchsimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,3,4";
TARGETED_DEVICE_FAMILY = "1,2,3,4,7";
TVOS_DEPLOYMENT_TARGET = 11.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down Expand Up @@ -441,15 +444,18 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 5.2.0;
MARKETING_VERSION = 5.4.0;
MERGEABLE_LIBRARY = YES;
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_BUNDLE_IDENTIFIER = me.dennisweissmann.DeviceKit;
PRODUCT_NAME = "$(TARGET_NAME)";
RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator watchos watchsimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,3,4";
TARGETED_DEVICE_FAMILY = "1,2,3,4,7";
TVOS_DEPLOYMENT_TARGET = 11.0;
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'xcpretty'
gem 'cocoapods'
gem 'cocoapods', '1.15.2'
gem 'danger'
gem 'danger-swiftlint'
Loading

0 comments on commit a763580

Please sign in to comment.