一款flutter插件用于获取android和iOS的设备信息
-. 在Podfile "target 'Runner' do" 下添加 pod 'SAMKeychain'然后执行pod install命令即可
在你的 pubspec.yaml
文件中添加如下依赖(目前还没发布到pub请使用下面的方法集成):
dependencies:
flutter_getuuid: ^${latestVersion}
如果想用github上最新版本:
dependencies:
flutter_getuuid:
git:
url: https://github.com/wozhizhizhi/flutter_getuuid.git
static netFetch() async {
/// 获取手机的UUID
uuid = await FlutterGetuuid.platformUid;
/// 获取手机的型号如“iPhone7”
phoneMark = await FlutterGetuuid.platformDeviceModle;
/// 获取项目的版本号
version = await FlutterGetuuid.platformVersionCode;
/// 获取系统SDK版本
systemMark = await FlutterGetuuid.platformSystemMark;
}