SunnyApp / flutter_contact

A flutter plugin for retrieving, creating, saving, and watching contacts on native devices
BSD 3-Clause "New" or "Revised" License
81 stars 62 forks source link

A compilation error #39

Closed babonka closed 3 years ago

babonka commented 3 years ago

When I'm adding plugin to my project I received a compilation error. flutter_contact-0.6.4+2/android/src/main/kotlin/co/sunnyapp/flutter_contact/FlutterContactPlugin.kt: (177, 47): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Uri?

I changed string 177 to val contactId = saveResult.first().uri?.lastPathSegment?.toLong() locally.

Please make changes in repo. FYI. I use Kotlin 1.3.50

ericmartineau commented 3 years ago

Fixed in 0.6.4+5