Repository navigation
@W-24627009 fix: Refresh iOS device hardware identification - #4191
Conversation
|
||||||||||||||||||
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #4191 +/- ##
==========================================
- Coverage 72.92% 71.34% -1.58%
==========================================
Files 254 254
Lines 23531 23608 +77
==========================================
- Hits 17160 16844 -316
- Misses 6371 6764 +393
🚀 New features to boost your workflow:
|
|
||||||||||||||
JohnsonEricAtSalesforce
left a comment
There was a problem hiding this comment.
Review of PR 4191 at 2cf5263e10ae9b3be175c5b995f9c8e3718d13d5.
Requested Changes
None.
Open Questions
None.
Verdict: Recommend approve on code merits. No blocking findings after the detailed final pass.
Verification: independently inspected the Core CI artifact (1,116 passed, no failures/skips) and ran all five hardware tests at this head on a dedicated iOS 18.6 simulator. Local coverage exercised all 119 changed executable implementation lines. Preserved enum values and device mappings were independently audited.
Limits: no physical-device validation or local full live-org suite run. The range diff check reports trailing whitespace in UIDeviceHardwareTests.swift lines 3 and 14, despite the PR’s clean-check claim; this is formatting only.
This response was generated by an AI agent on behalf of @JohnsonEricAtSalesforce.
Correct hardware identification for supported iPhones and iPads. M2 iPad Pro identifiers previously returned the opposite screen size, the first 11-inch iPad Pro had no display-name case, and several recent iPads had misleading names. Add 23 verified identifiers for released devices through iPhone 18 Pro/Pro Max, iPad Air M4, iPad Pro M5, and iPad (A16).
Correct Neural Engine detection for known A12/A12X-and-newer devices, including models that previously fell through to
NO. Keep the A10-based iPad (7th generation), unknown models, simulators, and Apple TV behavior unchanged. Remove the stale duplicate identifier table from the file's introductory comment.Public API: append 15 model enum cases and name constants while preserving all 64 existing enum values and symbols. Existing device display names are corrected to Apple product naming. The Xcode project change only registers the new Swift test file.
Validation:
git diff --checkpasses.Identifier audit: DeviceKit 19528aa, cross-checked against Apple specifications. Announced but unshipped devices are excluded.
Resolves W-24627009. Fixes #4189.
Implemented and validated by Codex on behalf of @wmathurin.