Skip to content

Commit

Permalink
Merge branch 'main' into pkg_web_wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Nov 17, 2023
2 parents 0c3fcf2 + 64b9931 commit e16b221
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/android_alarm_manager_plus/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
flutter_lints: ^2.0.1
flutter_lints: ^3.0.1

flutter:
uses-material-design: true
2 changes: 1 addition & 1 deletion packages/android_alarm_manager_plus/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.1
flutter_lints: ">=2.0.1 <4.0.0"

flutter:
plugin:
Expand Down
2 changes: 1 addition & 1 deletion packages/android_intent_plus/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dev_dependencies:
sdk: flutter
flutter_test:
sdk: flutter
flutter_lints: ^2.0.1
flutter_lints: ^3.0.1

# The following section is specific to Flutter.
flutter:
Expand Down
2 changes: 1 addition & 1 deletion packages/battery_plus/battery_plus/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
flutter_lints: ^2.0.1
flutter_lints: ^3.0.1

flutter:
uses-material-design: true
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dev_dependencies:
integration_test:
sdk: flutter
test: ^1.16.4
flutter_lints: ^2.0.1
flutter_lints: ^3.0.1

flutter:
uses-material-design: true
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
flutter_lints: ^2.0.1
flutter_lints: ^3.0.1

flutter:
uses-material-design: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ public struct SystemUUID {

public static func getSystemUUID() -> String? {
let dev = IOServiceMatching("IOPlatformExpertDevice")
let platformExpert: io_service_t = IOServiceGetMatchingService(kIOMasterPortDefault, dev)

var platformExpert: io_service_t
if #available(macOS 12, *) {
platformExpert = IOServiceGetMatchingService(kIOMainPortDefault, dev)
} else {
platformExpert = IOServiceGetMatchingService(kIOMasterPortDefault, dev)
}

let serialNumberAsCFString = IORegistryEntryCreateCFProperty(platformExpert, kIOPlatformUUIDKey as CFString, kCFAllocatorDefault, 0)
IOObjectRelease(platformExpert)
let ser: CFTypeRef? = serialNumberAsCFString?.takeUnretainedValue()
Expand All @@ -13,4 +20,4 @@ public struct SystemUUID {
}
return nil
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
plugin_platform_interface: ^2.1.4

dev_dependencies:
flutter_lints: ^2.0.1
flutter_lints: ">=2.0.1 <4.0.0"
flutter_test:
sdk: flutter
mockito: ^5.4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dev_dependencies:
integration_test:
sdk: flutter
test: ^1.21.0
flutter_lints: ^2.0.1
flutter_lints: ^3.0.1

flutter:
uses-material-design: true
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dev_dependencies:
sdk: flutter
flutter_driver:
sdk: flutter
flutter_lints: ^2.0.1
flutter_lints: ^3.0.1
flutter_test:
sdk: flutter
mockito: ^5.4.0
Expand Down
2 changes: 1 addition & 1 deletion packages/sensors_plus/sensors_plus/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
flutter_lints: ^2.0.1
flutter_lints: ^3.0.1
flutter_test:
sdk: flutter

Expand Down
2 changes: 1 addition & 1 deletion packages/share_plus/share_plus/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
flutter_lints: ^2.0.1
flutter_lints: ^3.0.1

flutter:
uses-material-design: true
Expand Down

0 comments on commit e16b221

Please sign in to comment.