contacts_bridge 1.0.5
contacts_bridge: ^1.0.5 copied to clipboard
A modern Flutter plugin for managing device contacts with support for Android, iOS, and macOS. Features comprehensive contact operations, group management, and permission handling.
Changelog #
1.0.5 #
Fixed #
- Fixed Swift compiler error with messenger API compatibility
- Added platform-specific messenger access for iOS (
messenger()) and macOS (messenger) - Resolved build failures on macOS with proper FlutterPluginRegistrar usage
1.0.4 #
Fixed #
- Fixed "Unauthorized Keys" error (Code=102) on iOS/macOS when accessing contacts
- Removed CNContactNoteKey from default fetch keys due to iOS 13+ entitlement requirements
- Contact notes are now safely accessed through converter with availability check
- Improved contact fetching reliability without requiring special entitlements
1.0.3 #
Fixed #
- Fixed Swift compiler error in iOS/macOS plugin registration
- Changed
registrar.messengertoregistrar.messenger()to match Flutter API changes
1.0.2 #
Fixed #
- Fixed Android compilation errors in Kotlin extension files
- Resolved visibility issues with
coroutineScopeandresolverproperties - Fixed ArrayList type mismatch in contact operations
- Added missing
NonNullannotation import
1.0.0 #
Added #
Core Features
- Complete Contact Management: Full CRUD operations for device contacts
- Cross-Platform Support: Native implementations for Android, iOS, and macOS
- Permission Handling: Comprehensive permission management with read-only and write access options
- Contact Search: Advanced search functionality by name, phone, email, and other properties
- Native Contact Picker: Integration with platform-specific contact picker UI
Contact Information Support
- Rich Contact Data: Support for names, phone numbers, emails, addresses, organizations
- Extended Properties: Notes, websites, social profiles, events (birthdays, anniversaries)
- Media Support: Contact photos and thumbnails with configurable loading options
- Contact Relationships: Groups, accounts, linked contacts, and starred/favorite status
Architecture & Developer Experience
- Clean Architecture: Domain-driven design with separation of concerns
- Type-Safe Error Handling: Result pattern for comprehensive error management
- Reactive Programming: Stream-based contact change observation
- Well-Documented API: Comprehensive documentation with code examples
- Example Application: Full-featured demo app showcasing all plugin capabilities
Platform-Specific Features
-
Android:
- Support for API 21+ (Android 5.0)
- Read and write contacts permissions
- Contact content provider integration
- Background contact synchronization
-
iOS:
- Support for iOS 12.0+
- Contacts framework integration
- ContactsUI picker support
- Privacy-compliant contact access
-
macOS:
- Support for macOS 10.14+
- Shared Swift codebase with iOS
- Sandbox-compatible contact access
- Native macOS contact integration
Developer Tools
- Comprehensive Testing: Unit tests, integration tests, and example app
- Clean Code Standards: Following Effective Dart guidelines
- Documentation: Detailed README with usage examples and API reference
- Error Handling: Multiple error types with descriptive messages
Technical Details #
Dependencies
- Flutter SDK: >=3.3.0
- Dart SDK: ^3.9.2
- plugin_platform_interface: ^2.0.2
- equatable: ^2.0.5
- meta: ^1.9.1
Supported Platforms
- Android: API 21+ (Android 5.0+)
- iOS: 12.0+
- macOS: 10.14+
Architecture Components
- Domain Layer: Entities, repositories, and use cases
- Data Layer: Platform-specific implementations and data sources
- Presentation Layer: Plugin facade with clean API
- Core Layer: Utilities, error handling, and common functionality
Initial Release Notes #
This is the initial release of Contacts Bridge, a modern Flutter plugin for comprehensive contact management across Android, iOS, and macOS platforms. The plugin is built with clean architecture principles and provides a type-safe, developer-friendly API for all contact operations.
Key highlights of this release:
- Zero breaking changes policy for future versions
- Production-ready with comprehensive error handling
- Extensive documentation and example code
- Full platform feature parity
- Privacy-compliant implementations
Migration Guide #
This is the initial release, so no migration is needed. For new implementations, please refer to the README.md for setup instructions and usage examples.
Known Issues #
None reported for the initial release.
Contributors #
- Ahmet Aydın (@ahmtydn) - Initial implementation and architecture
Unreleased #
Planned Features #
- Contact group management improvements
- Batch contact operations
- Contact import/export functionality
- Enhanced search with filters
- Contact merge and duplicate detection
Note: This changelog follows the principles of Keep a Changelog. Each version lists changes in categories: Added, Changed, Deprecated, Removed, Fixed, and Security.