{"id":28069882,"url":"https://github.com/andrealufino/deviice","last_synced_at":"2025-05-12T19:16:03.400Z","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":"2025-03-17T16:43:43.000Z","size":969,"stargazers_count":74,"open_issues_count":1,"forks_count":13,"subscribers_count":7,"default_branch":"develop","last_synced_at":"2025-05-12T19:15:57.040Z","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":"2025-03-16T20:59:58.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":41,"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":253805839,"owners_count":21967054,"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":"2025-05-12T19:16:02.517Z","updated_at":"2025-05-12T19:16:03.392Z","avatar_url":"https://github.com/andrealufino.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"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"}