Skip to content
CAI
Software that uses CAICheck a score

Ekhoo/Device

44.1

Weak · 15 November 2026

819

lines of production code

Swift

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add Xcode schemes for iOS and macOS targets

The project now includes dedicated Xcode schemes for both the iOS (Device) and macOS (Device macOS) targets. This enables developers to build, run, test, profile, and archive the framework for both platforms directly from the Xcode IDE, ensuring consistent build configurations and launch settings for each platform.

Device.xcodeproj/xcshareddata · high confidence

Add iOS example app launch and main screens

The Example project now includes the initial storyboard files for the iOS application. A LaunchScreen storyboard provides a blank white splash screen, and a Main storyboard defines the primary view controller (ViewController) that serves as the app's entry point.

Example/Base.lproj · high confidence

Add macOS example application

Added a new macOS example project that demonstrates how to use the Device library to detect Mac hardware types (such as iMac, MacBook, MacBook Air, and MacBook Pro) and screen sizes (ranging from 11-inch to 27-inch) within a standard Cocoa application structure.

Example macOS · high confidence

Add macOS framework

A new macOS framework named 'Device macOS' has been added, providing the core header file and Info.plist configuration (version 1.0, bundle type FMWK) to support device detection capabilities on macOS platforms.

Device macOS · high confidence

Add macOS framework and example application

The project now includes a dedicated macOS target, building a separate Device.framework and providing an Example macOS application to demonstrate usage on macOS. This extends the library's availability beyond iOS, allowing developers to integrate device detection capabilities into macOS apps alongside their existing iOS implementations.

Device.xcodeproj · high confidence

Added macOS device detection capabilities

Introduced DeviceMacOS.swift to provide macOS-specific device identification, allowing users to determine the Mac model type (e.g., MacBook Pro, iMac) and screen size via the new \type()\ and \size()\ methods, as well as a combined human-readable \version()\ string.

Source/macOS · high confidence

Initial iOS example app demonstrating device detection

Added an iOS example project (Example/) that demonstrates how to use the Device library to identify the current device model, screen size, and device type. The app includes an AppDelegate, Info.plist, and a ViewController that prints the detected device details (e.g., iPhone, iPad, iPod, Simulator) and screen dimensions using the library's API, including helper methods for size comparison.

Example · high confidence

Initial release of device detection enums for iOS, macOS, and tvOS

This change introduces the core data models for device identification, adding \Size.swift\, \Type.swift\, and \Version.swift\ to the Source directory. These files define public enums for screen sizes (e.g., \screen6\_1Inch\, \screen12\_9Inch\), device types (e.g., \iPhone\, \iPad\, \iMac\), and specific hardware versions (e.g., \iPhone16Pro\, \iPadProM5\_11Inch\), enabling users to detect and differentiate between a wide range of Apple devices and their screen dimensions.

Source · high confidence

Initial release of the Device framework

This change introduces the initial version of the Device framework, providing a new public header (Device.h) and framework configuration (Info.plist) for iOS. The framework is configured with a bundle identifier and package type suitable for distribution, establishing the foundational structure for device-related functionality.

Device · high confidence

Initial workspace configuration for Device project

The Device project now includes an Xcode workspace configuration that references the main project file and enables the 32-bit warning check, establishing the foundational build environment for the application.

Device.xcodeproj/project.xcworkspace · high confidence

Behavioural changes

Expanded device support for latest iPhone, iPad, and simulator architectures

The iOS device detection library has been updated to recognize a wide range of new hardware models, including the iPhone 16 and 17 series (including Pro, Max, Air, and e variants), the iPhone 18 Pro and Pro Max, and the iPhone SE 3. iPad support now covers the iPad Air M2, M3, and M4 (11-inch and 13-inch), iPad Mini 7, and iPad Pro M4 and M5 (11-inch and 13-inch). Additionally, simulator detection has been extended to include the arm64 architecture, ensuring accurate identification on Apple Silicon Macs running iOS simulators.

Source/iOS · high confidence

Dependencies

Initial release of Device library v3.8.0 with Swift Package Manager support

The Device library is now available as version 3.8.0, introducing official support for Swift Package Manager via a new Package.swift manifest. This addition allows developers to integrate the library into their projects using Swift's native package manager alongside existing CocoaPods support. The library remains a lightweight Swift tool for detecting the current device and screen size, with the Package.swift configuration specifying support for iOS 9 and macOS 10.10 platforms and compatibility with Swift 4, 4.2, and 5 language versions.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 43 → 44 (+1.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 97 → 95 (-2.0)
  • Architecture 82 → 82 (+0.0)
  • Maturity 49 → 49 (+0.0)
  • Readiness 14 → 17 (+2.7)
  • Security 100 → 100 (+0.0)

Resolved (2)

  • No ADRs found
  • No tests found

New (2)

  • Device.size (cognitive 18) (Source/iOS/Device.swift)
  • No ADRs found (Device.xcodeproj/project.pbxproj)

Changes since last survey

  • 4 commits — 3 feature/other, 1 fixes

By area

  • (root) — 2 commits
  • Source/Size.swift — 1 commit
  • Source/iOS — 1 commit

Notable commits

  • fix: Fix screen bounds lookup on older iOS versions (#154)
  • change: Add iPhone Duo (#150)
  • change: Bump version to 3.9.0 (#152)
  • change: Feature/update readme (#153)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

Ekhoo/Device was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 4d52c673940281b7011f826a2f9c4684121b9a94 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.