flutter_contacts_service 0.2.0
flutter_contacts_service: ^0.2.0 copied to clipboard
A Flutter plugin to read, create, update and delete device contacts natively on Android and iOS.
CHANGES #
0.2.0 #
- Add vCard 3.0 support —
FlutterContactsService.exportVCard(contacts)serializes contacts to a vCard document, andimportVCard(vCard)parses one back intoContactInfoobjects. iOS usesCNContactVCardSerialization; Android uses a built-in serializer/parser (name, organization, phones, emails, postal addresses, note, birthday). Resolves #5.
0.1.2 #
- Performance:
getContactsnow loads contact photos in parallel and returns the stored image bytes directly instead of decoding and re-encoding each one — much faster on large contact lists. Resolves #3. - Add
FlutterContactsService.getAccounts()— lists the device accounts that own contacts (Android). Resolves #4. - Add favorite/starred support: the
ContactInfo.isStarredfield andFlutterContactsService.setFavorite(contact, favorite)(Android). Resolves #11. getAccountsreturns an empty list andsetFavoriteis a no-op on iOS, which has no equivalent concepts.
0.1.1 #
- Fix
updateContactfailing with "raw_contact_id is required" on Android — it passed the aggregatedCONTACT_IDto Data-table inserts instead of theRAW_CONTACT_ID, so the whole update failed. Updates (including phone numbers) now save correctly. Resolves #6 and #8. - Fix duplicate phone numbers / emails on Android for contacts aggregated from multiple accounts — exact duplicates are now dropped. Resolves #9.
0.1.0 #
- Fix iOS UIScene crash — the plugin force-unwrapped
appDelegate.window, which isnilunder the UIScene lifecycle (Flutter 3.35+), crashing the app on launch. Window and view-controller lookup is now scene-safe. Resolves #12 and #13. - Add Swift Package Manager support on iOS; CocoaPods still works.
- Drop the
quiverdependency — hashing now uses the built-inObject.hash/Object.hashAll. - Android: Kotlin 1.8.22 → 2.3.21, AGP 8.1.0 → 8.11.1, Gradle 8.3 → 8.14,
compileSdk36, coroutines 1.6.4 → 1.9.0; migrated to the KotlincompilerOptionsDSL. - iOS: minimum deployment target 13.0; bundled the privacy manifest; fixed the placeholder podspec metadata.
- Removed the stale Android unit test; raised
flutter_lintsto 6.0. - Fixed the broken changelog (duplicate
0.0.2+1entries, missing0.0.3).
0.0.3 #
- Add a
notefield toContactInfo.
0.0.2+1 #
- Change the
Contactobject toContactInfoin README.
0.0.2 #
- Change the
Contactobject toContactInfo. - Change the
Itemobject toValueItem.
0.0.1 #
- Release the package.