From 138e0360b56923028003789a61d85a88c611ff2b Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Wed, 24 Nov 2021 09:47:00 +0300 Subject: [PATCH 1/2] [device_info_plus_ios] fix identifierForVendor --- .../device_info_plus/ios/Classes/FLTDeviceInfoPlusPlugin.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/device_info_plus/device_info_plus/ios/Classes/FLTDeviceInfoPlusPlugin.m b/packages/device_info_plus/device_info_plus/ios/Classes/FLTDeviceInfoPlusPlugin.m index 81eedd1ec2..619e4f0d20 100644 --- a/packages/device_info_plus/device_info_plus/ios/Classes/FLTDeviceInfoPlusPlugin.m +++ b/packages/device_info_plus/device_info_plus/ios/Classes/FLTDeviceInfoPlusPlugin.m @@ -26,7 +26,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { @"systemVersion" : [device systemVersion], @"model" : [device model], @"localizedModel" : [device localizedModel], - @"identifierForVendor" : [[device identifierForVendor] UUIDString], + @"identifierForVendor" : [[device identifierForVendor] UUIDString] ?: [NSNull null], @"isPhysicalDevice" : [self isDevicePhysical], @"utsname" : @{ @"sysname" : @(un.sysname), From f101515f3b6ac6d2a7075a797677a5f2f2892401 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 6 Dec 2021 10:52:30 +0300 Subject: [PATCH 2/2] add changelog and pump version --- packages/device_info_plus/device_info_plus/CHANGELOG.md | 4 ++++ packages/device_info_plus/device_info_plus/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/device_info_plus/device_info_plus/CHANGELOG.md b/packages/device_info_plus/device_info_plus/CHANGELOG.md index 4989e9f9ab..ac57762a41 100644 --- a/packages/device_info_plus/device_info_plus/CHANGELOG.md +++ b/packages/device_info_plus/device_info_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.1.2 + +- iOS: fix `identifierForVendor` (can be `null` in rare circumstances) + ## 3.1.1 - add toMap to WebBrowserInfo diff --git a/packages/device_info_plus/device_info_plus/pubspec.yaml b/packages/device_info_plus/device_info_plus/pubspec.yaml index 94a4d3506d..d98939a7f8 100644 --- a/packages/device_info_plus/device_info_plus/pubspec.yaml +++ b/packages/device_info_plus/device_info_plus/pubspec.yaml @@ -1,7 +1,7 @@ name: device_info_plus description: Flutter plugin providing detailed information about the device (make, model, etc.), and Android or iOS version the app is running on. -version: 3.1.1 +version: 3.1.2 homepage: https://plus.fluttercommunity.dev/ repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/