remove tvos shit
This commit is contained in:
		
							parent
							
								
									8fb8ed600a
								
							
						
					
					
						commit
						74cc22b194
					
				@ -27,6 +27,7 @@ public class UIDeviceModelNames {
 | 
			
		||||
                switch identifier {
 | 
			
		||||
                    case "iPod5,1":                                 return "iPod Touch 5"
 | 
			
		||||
                    case "iPod7,1":                                 return "iPod Touch 6"
 | 
			
		||||
                    
 | 
			
		||||
                    case "iPhone3,1", "iPhone3,2", "iPhone3,3":     return "iPhone 4"
 | 
			
		||||
                    case "iPhone4,1":                               return "iPhone 4s"
 | 
			
		||||
                    case "iPhone5,1", "iPhone5,2":                  return "iPhone 5"
 | 
			
		||||
@ -52,6 +53,7 @@ public class UIDeviceModelNames {
 | 
			
		||||
                    case "iPhone13,2":                              return "iPhone 12"
 | 
			
		||||
                    case "iPhone13,3":                              return "iPhone 12 Pro"
 | 
			
		||||
                    case "iPhone13,4":                              return "iPhone 12 Pro Max"
 | 
			
		||||
                    
 | 
			
		||||
                    case "iPad2,1", "iPad2,2", "iPad2,3", "iPad2,4":return "iPad 2"
 | 
			
		||||
                    case "iPad3,1", "iPad3,2", "iPad3,3":           return "iPad 3"
 | 
			
		||||
                    case "iPad3,4", "iPad3,5", "iPad3,6":           return "iPad 4"
 | 
			
		||||
@ -72,19 +74,13 @@ public class UIDeviceModelNames {
 | 
			
		||||
                    case "iPad7,3", "iPad7,4":                      return "iPad Pro (10.5-inch)"
 | 
			
		||||
                    case "iPad8,1", "iPad8,2", "iPad8,3", "iPad8,4":return "iPad Pro (11-inch)"
 | 
			
		||||
                    case "iPad8,5", "iPad8,6", "iPad8,7", "iPad8,8":return "iPad Pro (12.9-inch) (3rd generation)"
 | 
			
		||||
                    
 | 
			
		||||
                    case "AppleTV5,3":                              return "Apple TV"
 | 
			
		||||
                    case "AppleTV6,2":                              return "Apple TV 4K"
 | 
			
		||||
                    case "AudioAccessory1,1":                       return "HomePod"
 | 
			
		||||
                    case "i386", "x86_64":                          return "Simulator \(mapToDevice(identifier: ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] ?? "iOS"))"
 | 
			
		||||
                    default:                                        return identifier
 | 
			
		||||
                }
 | 
			
		||||
            #elseif os(tvOS)
 | 
			
		||||
                switch identifier {
 | 
			
		||||
                    case "AppleTV5,3": return "Apple TV 4"
 | 
			
		||||
                    case "AppleTV6,2": return "Apple TV 4K"
 | 
			
		||||
                    case "i386", "x86_64": return "Simulator \(mapToDevice(identifier: ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] ?? "tvOS"))"
 | 
			
		||||
                    default: return identifier
 | 
			
		||||
                }
 | 
			
		||||
            #endif
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user