DRSchlaubi / contact_picker

A Flutter plugin for picking a contact from the address book.
https://pub.dev/packages/fluttercontactpicker
BSD 3-Clause "New" or "Revised" License
18 stars 37 forks source link

Compatibility Issues with Flutter 3.0 #58

Closed robert-virkus closed 2 years ago

robert-virkus commented 2 years ago

Hi there,

first let me thank you for your cool contact picker project!

With Flutter 3.0 and fluttercontactpicker: ^4.6.0 I get the following compilation errors:

e: C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\fluttercontactpicker-4.6.0\android\src\main\kotlin\me\schlaubi\fluttercontactpicker\LegacyFlutterContactPickerPlugin.kt: (20, 21): Type mismatch: inferred type is Activity? but Activity was expected
e: C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\fluttercontactpicker-4.6.0\android\src\main\kotlin\me\schlaubi\fluttercontactpicker\PermissionUtil.kt: (11, 1): Object 'PermissionUtil' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener
e: C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\fluttercontactpicker-4.6.0\android\src\main\kotlin\me\schlaubi\fluttercontactpicker\PermissionUtil.kt: (22, 5): 'onRequestPermissionsResult' overrides nothing
e: C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\fluttercontactpicker-4.6.0\android\src\main\kotlin\me\schlaubi\fluttercontactpicker\PermissionUtil.kt: (23, 72): Type mismatch: inferred type is Array<CapturedType(out String)>? but Array<(out) String!> was expected
e: C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\fluttercontactpicker-4.6.0\android\src\main\kotlin\me\schlaubi\fluttercontactpicker\PermissionUtil.kt: (23, 85): Type mismatch: inferred type is IntArray? but IntArray was expected

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fluttercontactpicker:compileReleaseKotlin'.
> Compilation error. See log for more details
robert-virkus commented 2 years ago

Thanks a lot for your quick reaction and release! I can confirm that everything works as expected.