패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.3.0

ios_utsname_ext

iOS utsname를 전체 제품 이름으로 변환하기 위한 확장 메서드입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
3.8만
좋아요
24
Pub 점수
150

패키지 설치

flutter pub add ios_utsname_ext

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

ios_utsname_ext 패키지는 iOS 기기의 utsname(시스템 정보)를 인간이 읽을 수 있는 완전한 제품 이름으로 변환하는 확장 메서드를 제공합니다. 낮은 레벨의 시스템 데이터에서 정확한 기기 모델을 식별하는 것을 단순화하며, 분석, 디버깅 또는 사용자 맞춤 경험에 유용합니다. 이 패키지는 iOS, Android, 웹, macOS, Windows, Linux를 포함한 모든 플러터 플랫폼에서 작동하여 크로스플랫폼 앱에 매우 유연합니다. 가볍고 최소한의 설정으로 원활한 통합을 위해 설계되었습니다.

사용 사례

  • 분석에서 장치 식별
  • 기기별 문제 디버깅
  • 하드웨어에 기반한 사용자 경험 개인화
  • 크로스 플랫폼 장치 감지
  • 앱 설정에서 정확한 장치 이름 표시

주요 기능

  • utsname 변환을 위한 확장 메서드
  • 모든 플러터 플랫폼을 지원합니다
  • 경량이며 통합이 쉬움
  • utsname를 제품 이름에 정확하게 매핑
  • 외부 종속성 없음

적합한 대상

  • 크로스 플랫폼 앱을 개발하는 개발자
  • 정확한 기기 식별이 필요한 앱
  • 분석 및 디버깅 도구
  • 사용자 친화적인 장치 정보 표시

고려 사항

  • iOS에서 제공하는 정확한 utsname 데이터에 의존합니다
  • iOS 기기 이름에 한정됨(다른 플랫폼에는 적용되지 않음)
  • 런타임 시 시스템 정보에 액세스할 수 있어야 할 수 있습니다
  • 기기 전용 기능이 아닌 경우 필요 없음

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

ios_utsname_ext

pub package build Buy Me A Coffee

Extension method for translation ios utsname to full product name (e.g. iPhone 6 Plus for 'iPhone7,1').

Why this extension package?

When using the device_info package you get the following (extract from the readme file):

import 'package:device_info/device_info.dart';

DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;
print('Running on ${androidInfo.model}');  // e.g. "Moto G (4)"

IosDeviceInfo iosInfo = await deviceInfo.iosInfo;
print('Running on ${iosInfo.utsname.machine}');  // e.g. "iPhone7,1"

As you can see, for Android you get a rather good product name. But for iOS... you get iPhone7,1'. This extension package gives you the real product name by adding .iOSProductName`:

import 'package:ios_utsname_ext/extension.dart';

...

print('Running on ${iosInfo.utsname.machine.iOSProductName}');  // will give you `iPhone 6 Plus`

Source of product models

The list is maintained at https://github.com/fieldnotescommunities/ios-device-identifiers. The repo provides an updated .json file.

Based upon that .json file the code for this extension package is generated. When the repo is updated this package will be updated.

API Documentation

API documentation can be found here

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.