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

Added iPad mini 7 #27

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Sources/Deviice/Deviice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public enum DeviiceType: String {
case iPadMini4 = "iPad mini 4"
case iPadMini5 = "iPad mini 5"
case iPadMini6 = "iPad mini 6"
case iPadMini7 = "iPad mini 7"
case iPadPro = "iPad Pro"
case iPadPro2 = "iPad Pro (2nd generation)"
case iPadPro3 = "iPad Pro (3rd generation)"
Expand Down Expand Up @@ -960,6 +961,18 @@ public struct Deviice {
self.connectivity = .wiFi5G
self.year = 2021

case "iPad16,1":
self.type = .iPadMini7
self.size = .screen8Dot3Inches
self.connectivity = .wiFi
self.year = 2024

case "iPad16,2":
self.type = .iPadMini7
self.size = .screen8Dot3Inches
self.connectivity = .wiFi5G
self.year = 2024

// MARK: Other

case "i386", "x86_64", "arm64":
Expand Down
5 changes: 3 additions & 2 deletions Sources/Deviice/Groups.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public struct Groups {
.iPadAir, .iPadAir2, .iPadAir3, .iPadAir4, .iPadAir5,
// iPad Mini
.iPadMini, .iPadMini2, .iPadMini3, .iPadMini4, .iPadMini5,
.iPadMini6,
.iPadMini6, .iPadMini7,
// iPad Pro
.iPadPro, .iPadPro2,
// iPad Pro 12.9
Expand Down Expand Up @@ -103,7 +103,8 @@ public struct Groups {
.iPhone12Mini, .iPhone13Mini,
// iPad
.iPadMini, .iPadMini2, .iPadMini3,
.iPadMini4, .iPadMini5, .iPadMini6
.iPadMini4, .iPadMini5, .iPadMini6,
.iPadMini7
]
}
}
4 changes: 3 additions & 1 deletion Sources/Deviice/Identifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ public enum Identifier: String, CaseIterable {
case iPad11_2 = "iPad11,2"
case iPad14_1 = "iPad14,1"
case iPad14_2 = "iPad14,2"

case iPad16_1 = "iPad16,1"
case iPad16_2 = "iPad16,2"

// MARK: iPad Pro
case iPad6_3 = "iPad6,3"
case iPad6_4 = "iPad6,4"
Expand Down
4 changes: 3 additions & 1 deletion Sources/Deviice/Mapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public struct Mapper {
case .iPad5_1, .iPad5_2: return .iPadMini4
case .iPad11_1, .iPad11_2: return .iPadMini5
case .iPad14_1, .iPad14_2: return .iPadMini6
case .iPad16_1, .iPad16_2: return .iPadMini7

// MARK: iPad Pros
case .iPad6_3, .iPad6_4: return .iPadPro
Expand Down Expand Up @@ -306,7 +307,8 @@ public struct Mapper {
return .screen7Dot9Inch
// MARK: 8.3
case
.iPadMini6:
.iPadMini6,
.iPadMini7:

return .screen8Dot3Inch
// MARK: 11
Expand Down
4 changes: 3 additions & 1 deletion Sources/Deviice/Model.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public enum Model {
case iPadMini4
case iPadMini5
case iPadMini6
case iPadMini7
case iPadPro
case iPadPro2
case iPadPro11Inch1
Expand Down Expand Up @@ -205,7 +206,8 @@ public extension Model {
case .iPadMini3: return "iPad mini 3"
case .iPadMini4: return "iPad mini 4"
case .iPadMini5: return "iPad mini 5"
case .iPadMini6: return "iPad mini 6"
case .iPadMini6: return "iPad mini 6";
case .iPadMini7: return "iPad mini 7"
case .iPadPro: return "iPad Pro"
case .iPadPro2: return "iPad Pro (2nd generation)"
case .iPadPro11Inch1: return "iPad Pro 11'"
Expand Down