Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reviewed the device files for the current 3.1.2 software and updated …

…the UIDevice-Hardware category accordingly. Working on Reachability next.
  • Loading branch information...
commit 9d91b53871891a214913f30569f6eb60885f2cc7 1 parent 51903b6
Erica Sadun authored
Showing with 25 additions and 24 deletions.
  1. +3 −3 UIDevice-Hardware.h
  2. +22 −21 UIDevice-Hardware.m
View
6 UIDevice-Hardware.h
@@ -77,9 +77,9 @@ enum {
UIDeviceSupportsPeerToPeer = 1 << 21,
UIDeviceSupportsARMV7 = 1 << 22,
UIDeviceSupportsEncodeAAC = 1 << 23,
- UIDeviceSupportBluetooth = 1 << 24,
- UIDeviceSupportNike = 1 << 25,
- UIDeviceSupportPiezoClicker = 1 << 26,
+ UIDeviceSupportsBluetooth = 1 << 24,
+ UIDeviceSupportsNike = 1 << 25,
+ UIDeviceSupportsPiezoClicker = 1 << 26,
UIDeviceSupportVolumeButtons = 1 << 27,
};
View
43 UIDevice-Hardware.m
@@ -186,9 +186,9 @@ - (NSUInteger) platformCapabilities
// UIDeviceSupportsARMV7 |
UIDeviceSupportsBrightnessSensor |
UIDeviceSupportsEncodeAAC |
- UIDeviceSupportBluetooth | // M68.plist says YES for this
- // UIDeviceSupportNike |
- // UIDeviceSupportPiezoClicker |
+ UIDeviceSupportsBluetooth | // M68.plist says YES for this
+ // UIDeviceSupportsNike |
+ // UIDeviceSupportsPiezoClicker |
UIDeviceSupportVolumeButtons
);
@@ -218,9 +218,9 @@ - (NSUInteger) platformCapabilities
// UIDeviceSupportsARMV7 |
UIDeviceSupportsBrightnessSensor |
UIDeviceSupportsEncodeAAC |
- UIDeviceSupportBluetooth |
- UIDeviceSupportNike |
- // UIDeviceSupportPiezoClicker |
+ UIDeviceSupportsBluetooth |
+ UIDeviceSupportsNike |
+ // UIDeviceSupportsPiezoClicker |
UIDeviceSupportVolumeButtons
);
@@ -250,9 +250,9 @@ - (NSUInteger) platformCapabilities
UIDeviceSupportsARMV7 |
UIDeviceSupportsBrightnessSensor |
UIDeviceSupportsEncodeAAC |
- UIDeviceSupportBluetooth |
- UIDeviceSupportNike |
- // UIDeviceSupportPiezoClicker |
+ UIDeviceSupportsBluetooth |
+ UIDeviceSupportsNike |
+ // UIDeviceSupportsPiezoClicker |
UIDeviceSupportVolumeButtons
);
case UIDeviceUnknowniPhone: return 0;
@@ -281,9 +281,9 @@ - (NSUInteger) platformCapabilities
// UIDeviceSupportsVoiceControl |
UIDeviceSupportsBrightnessSensor |
// UIDeviceSupportsEncodeAAC |
- // UIDeviceSupportBluetooth |
- // UIDeviceSupportNike |
- UIDeviceSupportPiezoClicker |
+ // UIDeviceSupportsBluetooth |
+ // UIDeviceSupportsNike |
+ UIDeviceSupportsPiezoClicker |
// UIDeviceSupportVolumeButtons
);
@@ -314,9 +314,9 @@ - (NSUInteger) platformCapabilities
// UIDeviceSupportsARMV7 |
UIDeviceSupportsBrightnessSensor |
UIDeviceSupportsEncodeAAC |
- UIDeviceSupportBluetooth |
- UIDeviceSupportNike |
- // UIDeviceSupportPiezoClicker |
+ UIDeviceSupportsBluetooth |
+ UIDeviceSupportsNike |
+ // UIDeviceSupportsPiezoClicker |
UIDeviceSupportVolumeButtons
);
@@ -347,9 +347,9 @@ - (NSUInteger) platformCapabilities
UIDeviceSupportsARMV7 |
UIDeviceSupportsBrightnessSensor |
UIDeviceSupportsEncodeAAC |
- UIDeviceSupportBluetooth |
- UIDeviceSupportNike |
- // UIDeviceSupportPiezoClicker |
+ UIDeviceSupportsBluetooth |
+ UIDeviceSupportsNike |
+ // UIDeviceSupportsPiezoClicker |
UIDeviceSupportVolumeButtons
);
case UIDeviceUnknowniPod: return 0;
@@ -380,9 +380,9 @@ - (NSUInteger) platformCapabilities
// UIDeviceSupportsARMV7 |
// UIDeviceSupportsBrightnessSensor |
// UIDeviceSupportsEncodeAAC |
- // UIDeviceSupportBluetooth |
- // UIDeviceSupportNike |
- // UIDeviceSupportPiezoClicker |
+ // UIDeviceSupportsBluetooth |
+ // UIDeviceSupportsNike |
+ // UIDeviceSupportsPiezoClicker |
// UIDeviceSupportVolumeButtons
);
default: return 0;
@@ -417,6 +417,7 @@ - (NSArray *) capabilityArray
if (flags & UIDeviceSupportsBrightnessSensor) [array addObject:@"Brightness Sensor"];
if (flags & UIDeviceSupportsPeerToPeer) [array addObject:@"Peer to Peer Bluetooth"];
if (flags & UIDeviceSupportsARMV7) [array addObject:@"The armv7 instruction set"];
+ if (flags & UIDeviceSupportsEncodeAAC
return array;
}
Please sign in to comment.
Something went wrong with that request. Please try again.