https://github.com/boehrsi/device_identifiers
Marketing device name lookups for Android and iOS.
https://github.com/boehrsi/device_identifiers
android dart flutter ios kotlin script
Last synced: 12 months ago
JSON representation
Marketing device name lookups for Android and iOS.
- Host: GitHub
- URL: https://github.com/boehrsi/device_identifiers
- Owner: Boehrsi
- License: apache-2.0
- Created: 2021-10-31T12:30:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-13T03:44:03.000Z (about 1 year ago)
- Last Synced: 2025-04-13T05:46:29.295Z (about 1 year ago)
- Topics: android, dart, flutter, ios, kotlin, script
- Language: Kotlin
- Homepage:
- Size: 56 MB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Device Identifiers
A Dart script which fetches Android and iOS device information. Generates directly usable code, which maps the device model to the corresponding device name(s).
## Supported output languages
- **Dart / Flutter**: https://github.com/Boehrsi/device_identifiers/blob/main/output/device_identifiers.dart
- **Kotlin**: https://github.com/Boehrsi/device_identifiers/blob/main/output/DeviceIdentifiers.kt
- Required changes: Adjust the `package` to match your project
## Usage
- **Android**: Use the `lookupAndroidName()` method with the key obtained via `Build.MODEL` (https://developer.android.com/reference/android/os/Build#MODEL)
- **iOS**: Use the `lookupIosName()` method with the key obtained via `utsname.machine`
## Sources
- **iOS**: https://github.com/kyle-seongwoo-jun/apple-device-identifiers
- **Android**: https://storage.googleapis.com/play_public/supported_devices.html (via https://support.google.com/googleplay/answer/1727131?hl=en)
## Used in
- https://github.com/Boehrsi/DeviceMarketingNames (Android library)
- https://github.com/Boehrsi/device_marketing_names (Flutter library)