{"id":1249,"url":"https://github.com/andrealufino/Deviice","last_synced_at":"2025-08-06T13:32:28.825Z","repository":{"id":46917828,"uuid":"54341962","full_name":"andrealufino/Deviice","owner":"andrealufino","description":"Swift library to easily check the current device and some more info about it. ","archived":false,"fork":false,"pushed_at":"2024-09-29T18:14:56.000Z","size":932,"stargazers_count":73,"open_issues_count":2,"forks_count":12,"subscribers_count":9,"default_branch":"develop","last_synced_at":"2024-11-16T09:48:50.863Z","etag":null,"topics":["device","device-detection","device-detector","device-family","ios","ipad","iphone","model","swift","swift5","system","uidevice"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrealufino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-20T21:38:40.000Z","updated_at":"2024-10-25T12:02:53.000Z","dependencies_parsed_at":"2022-08-21T03:50:21.641Z","dependency_job_id":"cc3be5aa-749f-4e68-ade1-c52c9511ff2b","html_url":"https://github.com/andrealufino/Deviice","commit_stats":{"total_commits":108,"total_committers":6,"mean_commits":18.0,"dds":0.6111111111111112,"last_synced_commit":"89d7c78c4d7979ff794710a5df510c75564f4955"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrealufino%2FDeviice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrealufino%2FDeviice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrealufino%2FDeviice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrealufino%2FDeviice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrealufino","download_url":"https://codeload.github.com/andrealufino/Deviice/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228905467,"owners_count":17989772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["device","device-detection","device-detector","device-family","ios","ipad","iphone","model","swift","swift5","system","uidevice"],"created_at":"2024-01-05T20:15:42.186Z","updated_at":"2024-12-09T14:30:52.656Z","avatar_url":"https://github.com/andrealufino.png","language":"Swift","funding_links":[],"categories":["Hardware","Libs","Layout","Device [🔝](#readme)"],"sub_categories":["Other Hardware","Device","Other free courses"],"readme":"[![CI Status](https://img.shields.io/travis/Andrea%20Mario%20Lufino/Deviice.svg?style=flat)](https://travis-ci.org/Andrea%20Mario%20Lufino/Deviice)\n[![Version](https://img.shields.io/cocoapods/v/Deviice.svg?style=flat)](http://cocoapods.org/pods/Deviice)\n[![License](https://img.shields.io/cocoapods/l/Deviice.svg?style=flat)](http://cocoapods.org/pods/Deviice)\n[![Platform](https://img.shields.io/cocoapods/p/Deviice.svg?style=flat)](http://cocoapods.org/pods/Deviice)\n\n![Logo](./Example/Deviice/Deviice.png)\n\n## Version 2\n\nThe library has been completely rewritten from scratch. This version still offers the `Deviice` structure, but it has been marked as deprecated and will be removed in future versions. Now, the whole magic is done via the `Device` class. \n\n## Usage\n\nThere is documentation for all the classes, methods and properties in the code. \nTo give a general idea, this is how things work. \n\n```swift\nlet device = Device.init()  // This instantiate a `Device` object based on the current device.\n\nprint(device.model.marketingName)   // This prints \"iPhone 12 Pro\" in case it is running on an iPhone 12 Pro\n\n```\n\nThere is also the possibility to get the actual device being simulated on a Mac. \n\n```swift\nlet device = Device.init()\n\nprint(device.model.marketingName)           // This will print \"Simulator\"\nprint(device.actualModel.marketingName)     // This will print \"iPhone 12 Pro\" in case you're simulating an iPhone 12 Pro\n```\n\nWith the first release, there's no chance to get the type of connectivity of a specific device. This will be probably added later. \n\n## Requirements\n \nThis library works on iOS 12 or higher.\n\n## Installation\n\nDeviice is available through Swift Package Manager and [CocoaPods](http://cocoapods.org).\n\n### Swift Package Manager\n\nYou can add this library via Swift Package Manager, using this url `https://github.com/andrealufino/Deviice`.\n\n### CocoaPods\n\nTo install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"Deviice\"\n```\n\n## Author\n\nAndrea Mario Lufino, [andrealufino.com](https://andrealufino.com). Thanks to all the contributors.\n\n## License\n\nDeviice is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrealufino%2FDeviice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrealufino%2FDeviice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrealufino%2FDeviice/lists"}