Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for new September 14th 2021 devices. #286

Merged
merged 6 commits into from
Sep 16, 2021

Conversation

Zandor300
Copy link
Member

@Zandor300 Zandor300 commented Sep 14, 2021

Required

  • Device Identifiers

Optional

  • Support URLs
  • Device images

@insightmind
Copy link

insightmind commented Sep 15, 2021

According to the device support files in Xcode 13 RC

Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/DeviceTypes

these are the device identifiers:

Device Identifier
iPhone 13 mini iPhone14,4
iPhone 13 Pro Max iPhone14,3
iPhone 13 Pro iPhone14,2
iPhone 13 iPhone14,5
iPad mini (6th generation) iPad14,1
iPad (9th generation) iPad12,2

Although not necessarily relevant for this PR the device identifiers for Apple Watch Series 7

Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/DeviceTypes
Device Identifier
Apple Watch Series 7 - 41mm Watch6,6
Apple Watch Series 7 - 45mm Watch6,9

This is probably an incomplete list of all actually available device identifiers.

@Zandor300
Copy link
Member Author

@insightmind Thanks!

@Zandor300 Zandor300 force-pushed the new-september-14-2021-devices branch from 120fb6e to 45d40af Compare September 16, 2021 15:30
@@ -164,6 +164,22 @@ public enum Device {
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP832/iphone12promax-ios14_2x.png)
case iPhone12ProMax
/// Device is an [iPhone 13](https://support.apple.com/kb/TODO)
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ TODOs should be resolved ()).
todo Device.generated.swift:167

@@ -164,6 +164,22 @@ public enum Device {
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP832/iphone12promax-ios14_2x.png)
case iPhone12ProMax
/// Device is an [iPhone 13](https://support.apple.com/kb/TODO)
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP830/TODO)
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ TODOs should be resolved ()).
todo Device.generated.swift:169

///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP830/TODO)
case iPhone13
/// Device is an [iPhone 13 mini](https://support.apple.com/kb/TODO)
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ TODOs should be resolved ()).
todo Device.generated.swift:171

case iPhone13
/// Device is an [iPhone 13 mini](https://support.apple.com/kb/TODO)
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP829/TODO)
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ TODOs should be resolved ()).
todo Device.generated.swift:173

///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP829/TODO)
case iPhone13Mini
/// Device is an [iPhone 13 Pro](https://support.apple.com/kb/TODO)
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ TODOs should be resolved ()).
todo Device.generated.swift:175

case iPhone13Mini
/// Device is an [iPhone 13 Pro](https://support.apple.com/kb/TODO)
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP831/TODO)
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ TODOs should be resolved ()).
todo Device.generated.swift:177

///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP831/TODO)
case iPhone13Pro
/// Device is an [iPhone 13 Pro Max](https://support.apple.com/kb/TODO)
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ TODOs should be resolved ()).
todo Device.generated.swift:179

case iPhone13Pro
/// Device is an [iPhone 13 Pro Max](https://support.apple.com/kb/TODO)
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP832/TODO)
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ TODOs should be resolved ()).
todo Device.generated.swift:181

@@ -204,6 +220,10 @@ public enum Device {
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP822/sp822-ipad-8gen_2x.png)
case iPad8
/// Device is an [iPad (9th generation)](https://support.apple.com/kb/TODO)
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ TODOs should be resolved ()).
todo Device.generated.swift:223

@@ -204,6 +220,10 @@ public enum Device {
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP822/sp822-ipad-8gen_2x.png)
case iPad8
/// Device is an [iPad (9th generation)](https://support.apple.com/kb/TODO)
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP822/TODO)
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ TODOs should be resolved ()).
todo Device.generated.swift:225

@@ -228,6 +248,10 @@ public enum Device {
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP788/ipad-mini-2019.jpg)
case iPadMini5
/// Device is an [iPad Mini (6th generation)](https://support.apple.com/kb/TODO)
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ TODOs should be resolved ()).
todo Device.generated.swift:251

@@ -228,6 +248,10 @@ public enum Device {
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP788/ipad-mini-2019.jpg)
case iPadMini5
/// Device is an [iPad Mini (6th generation)](https://support.apple.com/kb/TODO)
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP788/TODO)
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ TODOs should be resolved ()).
todo Device.generated.swift:253

@@ -680,33 +722,33 @@ public enum Device {

/// All iPhones
public static var allPhones: [Device] {
return [.iPhone4, .iPhone4s, .iPhone5, .iPhone5c, .iPhone5s, .iPhone6, .iPhone6Plus, .iPhone6s, .iPhone6sPlus, .iPhone7, .iPhone7Plus, .iPhoneSE, .iPhone8, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhoneSE2, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax]
return [.iPhone4, .iPhone4s, .iPhone5, .iPhone5c, .iPhone5s, .iPhone6, .iPhone6Plus, .iPhone6s, .iPhone6sPlus, .iPhone7, .iPhone7Plus, .iPhoneSE, .iPhone8, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhoneSE2, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPhone13, .iPhone13Mini, .iPhone13Pro, .iPhone13ProMax]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:725

}

/// All iPads
public static var allPads: [Device] {
return [.iPad2, .iPad3, .iPad4, .iPadAir, .iPadAir2, .iPad5, .iPad6, .iPadAir3, .iPad7, .iPad8, .iPadAir4, .iPadMini, .iPadMini2, .iPadMini3, .iPadMini4, .iPadMini5, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
return [.iPad2, .iPad3, .iPad4, .iPadAir, .iPadAir2, .iPad5, .iPad6, .iPadAir3, .iPad7, .iPad8, .iPad9, .iPadAir4, .iPadMini, .iPadMini2, .iPadMini3, .iPadMini4, .iPadMini5, .iPadMini6, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:730

}

/// All X-Series Devices
@available(*, deprecated, renamed: "allDevicesWithSensorHousing")
public static var allXSeriesDevices: [Device] {
return [.iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax]
return [.iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPhone13, .iPhone13Mini, .iPhone13Pro, .iPhone13ProMax]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:736

}

/// All Plus and Max-Sized Devices
public static var allPlusSizedDevices: [Device] {
return [.iPhone6Plus, .iPhone6sPlus, .iPhone7Plus, .iPhone8Plus, .iPhoneXSMax, .iPhone11ProMax, .iPhone12ProMax]
return [.iPhone6Plus, .iPhone6sPlus, .iPhone7Plus, .iPhone8Plus, .iPhoneXSMax, .iPhone11ProMax, .iPhone12ProMax, .iPhone13ProMax]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:741

}

/// All Pro Devices
public static var allProDevices: [Device] {
return [.iPhone11Pro, .iPhone11ProMax, .iPhone12Pro, .iPhone12ProMax, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
return [.iPhone11Pro, .iPhone11ProMax, .iPhone12Pro, .iPhone12ProMax, .iPhone13Pro, .iPhone13ProMax, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:746

}

/// All mini Devices
public static var allMiniDevices: [Device] {
return [.iPadMini, .iPadMini2, .iPadMini3, .iPadMini4, .iPadMini5]
return [.iPadMini, .iPadMini2, .iPadMini3, .iPadMini4, .iPadMini5, .iPadMini6]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:751

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering in the future if the iPhone Minis (12 and 13) are also mini devices. 🤔

@@ -788,17 +830,17 @@ public enum Device {

/// All Touch ID Capable Devices
public static var allTouchIDCapableDevices: [Device] {
return [.iPhone5s, .iPhone6, .iPhone6Plus, .iPhone6s, .iPhone6sPlus, .iPhone7, .iPhone7Plus, .iPhoneSE, .iPhone8, .iPhone8Plus, .iPhoneSE2, .iPadAir2, .iPad5, .iPad6, .iPadAir3, .iPad7, .iPad8, .iPadAir4, .iPadMini3, .iPadMini4, .iPadMini5, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch]
return [.iPhone5s, .iPhone6, .iPhone6Plus, .iPhone6s, .iPhone6sPlus, .iPhone7, .iPhone7Plus, .iPhoneSE, .iPhone8, .iPhone8Plus, .iPhoneSE2, .iPadAir2, .iPad5, .iPad6, .iPadAir3, .iPad7, .iPad8, .iPad9, .iPadAir4, .iPadMini3, .iPadMini4, .iPadMini5, .iPadMini6, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:833

}

/// All Face ID Capable Devices
public static var allFaceIDCapableDevices: [Device] {
return [.iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
return [.iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPhone13, .iPhone13Mini, .iPhone13Pro, .iPhone13ProMax, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:838

}

/// All Devices with Touch ID or Face ID
public static var allBiometricAuthenticationCapableDevices: [Device] {
return [.iPhone5s, .iPhone6, .iPhone6Plus, .iPhone6s, .iPhone6sPlus, .iPhone7, .iPhone7Plus, .iPhoneSE, .iPhone8, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhoneSE2, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPadAir2, .iPad5, .iPad6, .iPadAir3, .iPad7, .iPad8, .iPadAir4, .iPadMini3, .iPadMini4, .iPadMini5, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
return [.iPhone5s, .iPhone6, .iPhone6Plus, .iPhone6s, .iPhone6sPlus, .iPhone7, .iPhone7Plus, .iPhoneSE, .iPhone8, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhoneSE2, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPhone13, .iPhone13Mini, .iPhone13Pro, .iPhone13ProMax, .iPadAir2, .iPad5, .iPad6, .iPadAir3, .iPad7, .iPad8, .iPad9, .iPadAir4, .iPadMini3, .iPadMini4, .iPadMini5, .iPadMini6, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:843

@@ -818,7 +860,7 @@ public enum Device {

/// All devices that feature a sensor housing in the screen
public static var allDevicesWithSensorHousing: [Device] {
return [.iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax]
return [.iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPhone13, .iPhone13Mini, .iPhone13Pro, .iPhone13ProMax]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:863

@@ -833,7 +875,7 @@ public enum Device {

/// All devices that feature a screen with rounded corners.
public static var allDevicesWithRoundedDisplayCorners: [Device] {
return [.iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPadAir4, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
return [.iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPhone13, .iPhone13Mini, .iPhone13Pro, .iPhone13ProMax, .iPadAir4, .iPadMini6, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:878

@@ -853,7 +895,7 @@ public enum Device {

/// All devices that support wireless charging.
public static var allDevicesWithWirelessChargingSupport: [Device] {
return [.iPhone8, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhoneSE2, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax]
return [.iPhone8, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhoneSE2, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPhone13, .iPhone13Mini, .iPhone13Pro, .iPhone13ProMax]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:898

@@ -863,7 +905,7 @@ public enum Device {

/// All devices that have a LiDAR sensor.
public static var allDevicesWithALidarSensor: [Device] {
return [.iPhone12Pro, .iPhone12ProMax, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
return [.iPhone12Pro, .iPhone12ProMax, .iPhone13Pro, .iPhone13ProMax, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:908

@@ -1565,7 +1625,7 @@ extension Device {

/// All Apple Pencil Capable Devices
public static var allApplePencilCapableDevices: [Device] {
return [.iPad6, .iPadAir3, .iPad7, .iPad8, .iPadAir4, .iPadMini5, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
return [.iPad6, .iPadAir3, .iPad7, .iPad8, .iPad9, .iPadAir4, .iPadMini5, .iPadMini6, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1628

default: return []
}
}

/// All devices that feature a camera
public static var allDevicesWithCamera: [Device] {
return [.iPodTouch5, .iPodTouch6, .iPodTouch7, .iPhone4, .iPhone4s, .iPhone5, .iPhone5c, .iPhone5s, .iPhone6, .iPhone6Plus, .iPhone6s, .iPhone6sPlus, .iPhone7, .iPhone7Plus, .iPhoneSE, .iPhone8, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhoneSE2, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPad2, .iPad3, .iPad4, .iPadAir, .iPadAir2, .iPad5, .iPad6, .iPadAir3, .iPad7, .iPad8, .iPadAir4, .iPadMini, .iPadMini2, .iPadMini3, .iPadMini4, .iPadMini5, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
return [.iPodTouch5, .iPodTouch6, .iPodTouch7, .iPhone4, .iPhone4s, .iPhone5, .iPhone5c, .iPhone5s, .iPhone6, .iPhone6Plus, .iPhone6s, .iPhone6sPlus, .iPhone7, .iPhone7Plus, .iPhoneSE, .iPhone8, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhoneSE2, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPhone13, .iPhone13Mini, .iPhone13Pro, .iPhone13ProMax, .iPad2, .iPad3, .iPad4, .iPadAir, .iPadAir2, .iPad5, .iPad6, .iPadAir3, .iPad7, .iPad8, .iPad9, .iPadAir4, .iPadMini, .iPadMini2, .iPadMini3, .iPadMini4, .iPadMini5, .iPadMini6, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1742

@@ -1682,17 +1750,17 @@ extension Device {

/// All devices that feature a wide camera
public static var allDevicesWithWideCamera: [Device] {
return [.iPodTouch5, .iPodTouch6, .iPodTouch7, .iPhone4, .iPhone4s, .iPhone5, .iPhone5c, .iPhone5s, .iPhone6, .iPhone6Plus, .iPhone6s, .iPhone6sPlus, .iPhone7, .iPhone7Plus, .iPhoneSE, .iPhone8, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhoneSE2, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPad2, .iPad3, .iPad4, .iPadAir, .iPadAir2, .iPad5, .iPad6, .iPadAir3, .iPad7, .iPad8, .iPadAir4, .iPadMini, .iPadMini2, .iPadMini3, .iPadMini4, .iPadMini5, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
return [.iPodTouch5, .iPodTouch6, .iPodTouch7, .iPhone4, .iPhone4s, .iPhone5, .iPhone5c, .iPhone5s, .iPhone6, .iPhone6Plus, .iPhone6s, .iPhone6sPlus, .iPhone7, .iPhone7Plus, .iPhoneSE, .iPhone8, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhoneSE2, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPhone13, .iPhone13Mini, .iPhone13Pro, .iPhone13ProMax, .iPad2, .iPad3, .iPad4, .iPadAir, .iPadAir2, .iPad5, .iPad6, .iPadAir3, .iPad7, .iPad8, .iPad9, .iPadAir4, .iPadMini, .iPadMini2, .iPadMini3, .iPadMini4, .iPadMini5, .iPadMini6, .iPadPro9Inch, .iPadPro12Inch, .iPadPro12Inch2, .iPadPro10Inch, .iPadPro11Inch, .iPadPro12Inch3, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1753

}

/// All devices that feature a telephoto camera
public static var allDevicesWithTelephotoCamera: [Device] {
return [.iPhone7Plus, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhone11Pro, .iPhone11ProMax, .iPhone12Pro, .iPhone12ProMax]
return [.iPhone7Plus, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhone11Pro, .iPhone11ProMax, .iPhone12Pro, .iPhone12ProMax, .iPhone13Pro, .iPhone13ProMax]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1758

}

/// All devices that feature an ultra wide camera
public static var allDevicesWithUltraWideCamera: [Device] {
return [.iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
return [.iPhone11, .iPhone11Pro, .iPhone11ProMax, .iPhone12, .iPhone12Mini, .iPhone12Pro, .iPhone12ProMax, .iPhone13, .iPhone13Mini, .iPhone13Pro, .iPhone13ProMax, .iPadPro11Inch2, .iPadPro12Inch4, .iPadPro11Inch3, .iPadPro12Inch5]
Copy link

@github-actions github-actions bot Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1763

@github-actions
Copy link

github-actions bot commented Sep 16, 2021

56 Warnings
⚠️ Plist changed, don't forget to localize your plist values
⚠️ Source/Device.generated.swift#L287 - TODOs should be resolved ()).
todo Device.generated.swift:287
⚠️ Source/Device.generated.swift#L289 - TODOs should be resolved ()).
todo Device.generated.swift:289
⚠️ Source/Device.generated.swift#L291 - TODOs should be resolved ()).
todo Device.generated.swift:291
⚠️ Source/Device.generated.swift#L293 - TODOs should be resolved ()).
todo Device.generated.swift:293
⚠️ Source/Device.generated.swift#L308 - TODOs should be resolved ()).
todo Device.generated.swift:308
⚠️ Source/Device.generated.swift#L310 - TODOs should be resolved ()).
todo Device.generated.swift:310
⚠️ Source/Device.generated.swift#L391 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:391
⚠️ Source/Device.generated.swift#L720 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:720
⚠️ Source/Device.generated.swift#L756 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:756
⚠️ Source/Device.generated.swift#L761 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:761
⚠️ Source/Device.generated.swift#L766 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:766
⚠️ Source/Device.generated.swift#L771 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:771
⚠️ Source/Device.generated.swift#L777 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:777
⚠️ Source/Device.generated.swift#L782 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:782
⚠️ Source/Device.generated.swift#L787 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:787
⚠️ Source/Device.generated.swift#L792 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:792
⚠️ Source/Device.generated.swift#L797 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:797
⚠️ Source/Device.generated.swift#L804 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:804
⚠️ Source/Device.generated.swift#L812 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:812
⚠️ Source/Device.generated.swift#L818 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:818
⚠️ Source/Device.generated.swift#L821 - Prefer non-optional booleans over optional booleans.
discouraged_optional_boolean Device.generated.swift:821
⚠️ Source/Device.generated.swift#L822 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:822
⚠️ Source/Device.generated.swift#L827 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:827
⚠️ Source/Device.generated.swift#L848 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:848
⚠️ Source/Device.generated.swift#L853 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:853
⚠️ Source/Device.generated.swift#L858 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:858
⚠️ Source/Device.generated.swift#L868 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:868
⚠️ Source/Device.generated.swift#L873 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:873
⚠️ Source/Device.generated.swift#L883 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:883
⚠️ Source/Device.generated.swift#L888 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:888
⚠️ Source/Device.generated.swift#L893 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:893
⚠️ Source/Device.generated.swift#L903 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:903
⚠️ Source/Device.generated.swift#L913 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:913
⚠️ Source/Device.generated.swift#L918 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:918
⚠️ Source/Device.generated.swift#L923 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:923
⚠️ Source/Device.generated.swift#L928 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:928
⚠️ Source/Device.generated.swift#L933 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:933
⚠️ Source/Device.generated.swift#L938 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:938
⚠️ Source/Device.generated.swift#L943 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:943
⚠️ Source/Device.generated.swift#L960 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:960
⚠️ Source/Device.generated.swift#L993 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:993
⚠️ Source/Device.generated.swift#L1000 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1000
⚠️ Source/Device.generated.swift#L1391 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1391
⚠️ Source/Device.generated.swift#L1453 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1453
⚠️ Source/Device.generated.swift#L1503 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1503
⚠️ Source/Device.generated.swift#L1560 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1560
⚠️ Source/Device.generated.swift#L1565 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1565
⚠️ Source/Device.generated.swift#L1571 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1571
⚠️ Source/Device.generated.swift#L1582 - Prefer empty collection over optional collection.
discouraged_optional_collection Device.generated.swift:1582
⚠️ Source/Device.generated.swift#L1748 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1748
⚠️ Source/Device.generated.swift#L1768 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1768
⚠️ Source/Device.generated.swift#L1774 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1774
⚠️ Source/Device.generated.swift#L1779 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1779
⚠️ Source/Device.generated.swift#L1784 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1784
⚠️ Source/Device.generated.swift#L1789 - Prefer implicit returns in closures, functions and getters.
implicit_return Device.generated.swift:1789

SwiftLint found issues

Warnings

File Line Reason
Device.generated.swift 821 Prefer non-optional booleans over optional booleans. (discouraged_optional_boolean)
Device.generated.swift 1582 Prefer empty collection over optional collection. (discouraged_optional_collection)
Device.generated.swift 391 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 720 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 725 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 730 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 736 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 741 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 746 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 751 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 756 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 761 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 766 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 771 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 777 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 782 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 787 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 792 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 797 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 804 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 812 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 818 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 822 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 827 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 833 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 838 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 843 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 848 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 853 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 858 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 863 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 868 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 873 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 878 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 883 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 888 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 893 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 898 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 903 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 908 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 913 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 918 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 923 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 928 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 933 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 938 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 943 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 960 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 993 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1000 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1391 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1453 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1503 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1560 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1565 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1571 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1628 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1742 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1748 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1753 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1758 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1763 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1768 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1774 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1779 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1784 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 1789 Prefer implicit returns in closures, functions and getters. (implicit_return)
Device.generated.swift 167 TODOs should be resolved ()). (todo)
Device.generated.swift 169 TODOs should be resolved ()). (todo)
Device.generated.swift 171 TODOs should be resolved ()). (todo)
Device.generated.swift 173 TODOs should be resolved ()). (todo)
Device.generated.swift 175 TODOs should be resolved ()). (todo)
Device.generated.swift 177 TODOs should be resolved ()). (todo)
Device.generated.swift 179 TODOs should be resolved ()). (todo)
Device.generated.swift 181 TODOs should be resolved ()). (todo)
Device.generated.swift 223 TODOs should be resolved ()). (todo)
Device.generated.swift 225 TODOs should be resolved ()). (todo)
Device.generated.swift 251 TODOs should be resolved ()). (todo)
Device.generated.swift 253 TODOs should be resolved ()). (todo)
Device.generated.swift 287 TODOs should be resolved ()). (todo)
Device.generated.swift 289 TODOs should be resolved ()). (todo)
Device.generated.swift 291 TODOs should be resolved ()). (todo)
Device.generated.swift 293 TODOs should be resolved ()). (todo)
Device.generated.swift 308 TODOs should be resolved ()). (todo)
Device.generated.swift 310 TODOs should be resolved ()). (todo)

Generated by 🚫 Danger

@Zandor300 Zandor300 marked this pull request as ready for review September 16, 2021 16:52
Copy link
Collaborator

@denisenepraunig denisenepraunig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work - thank you @Zandor300 and @insightmind for the identifiers!

I will merge it with the device identifiers - the images and support articles take some time.

@denisenepraunig denisenepraunig merged commit 6b58d9a into master Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants