{"id":22043557,"url":"https://github.com/stefandevo/flutter-ios-utsname-ext","last_synced_at":"2025-07-23T18:31:38.730Z","repository":{"id":56833119,"uuid":"274975679","full_name":"stefandevo/flutter-ios-utsname-ext","owner":"stefandevo","description":"Extension method for translation ios utsname to full product name (e.g. iPhone 6 Plus for 'iPhone7,1')","archived":false,"fork":false,"pushed_at":"2023-10-19T16:13:53.000Z","size":86,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-10-19T17:24:54.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/stefandevo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-25T17:25:51.000Z","updated_at":"2023-10-19T08:04:21.000Z","dependencies_parsed_at":"2023-01-21T00:45:12.969Z","dependency_job_id":null,"html_url":"https://github.com/stefandevo/flutter-ios-utsname-ext","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefandevo%2Fflutter-ios-utsname-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefandevo%2Fflutter-ios-utsname-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefandevo%2Fflutter-ios-utsname-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefandevo%2Fflutter-ios-utsname-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefandevo","download_url":"https://codeload.github.com/stefandevo/flutter-ios-utsname-ext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227333220,"owners_count":17766208,"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":[],"created_at":"2024-11-30T12:16:34.464Z","updated_at":"2024-11-30T12:16:35.221Z","avatar_url":"https://github.com/stefandevo.png","language":"Dart","funding_links":["https://www.buymeacoffee.com/stefandevo"],"categories":[],"sub_categories":[],"readme":"# ios_utsname_ext\n\n[![pub package](https://img.shields.io/pub/v/ios_utsname_ext.svg)](https://pub.dartlang.org/packages/ios_utsname_ext) ![build](https://github.com/stefandevo/flutter-ios-utsname-ext/workflows/build/badge.svg?branch=master)\n\u003ca href=\"https://www.buymeacoffee.com/stefandevo\" target=\"_blank\"\u003e\u003cimg src=\"https://i.imgur.com/aV6DDA7.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important; box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e \u003c/a\u003e\n\nExtension method for translation ios utsname to full product name (e.g. iPhone 6 Plus for 'iPhone7,1').\n\n## Why this extension package?\n\nWhen using the [device_info](https://pub.dev/packages/device_info) package you get the following (extract from the readme file):\n\n``` dart\nimport 'package:device_info/device_info.dart';\n\nDeviceInfoPlugin deviceInfo = DeviceInfoPlugin();\nAndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;\nprint('Running on ${androidInfo.model}');  // e.g. \"Moto G (4)\"\n\nIosDeviceInfo iosInfo = await deviceInfo.iosInfo;\nprint('Running on ${iosInfo.utsname.machine}');  // e.g. \"iPhone7,1\"\n```\n\nAs you can see, for Android you get a rather good product name. But for iOS... you get `iPhone7,1'.\nThis extension package gives you the real product name by adding `.iOSProductName`:\n\n``` dart\nimport 'package:ios_utsname_ext/extension.dart';\n\n...\n\nprint('Running on ${iosInfo.utsname.machine.iOSProductName}');  // will give you `iPhone 6 Plus`\n```\n\n## Source of product models\n\nThe list is maintained at [https://github.com/fieldnotescommunities/ios-device-identifiers](https://github.com/fieldnotescommunities/ios-device-identifiers). The repo provides an updated `.json` file.\n\nBased upon that `.json` file the code for this extension package is generated. When the repo is updated this\npackage will be updated.\n\n\n## API Documentation\n\nAPI documentation can be found [here](https://pub.dev/documentation/ios_utsname_ext/latest/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefandevo%2Fflutter-ios-utsname-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefandevo%2Fflutter-ios-utsname-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefandevo%2Fflutter-ios-utsname-ext/lists"}