attriax_flutter_platform_interface 0.0.1
attriax_flutter_platform_interface: ^0.0.1 copied to clipboard
A common platform interface for the Attriax plugin.
attriax_flutter_platform_interface #
A common platform interface for the Attriax plugin.
This package is not intended to be added directly to most apps. End users
should depend on attriax_flutter.
Overview #
This package defines the abstract interface and shared public types for Attriax
platform implementations. It should be extended by platform-specific packages
like attriax_flutter_android and attriax_flutter_ios.
This package appears on pub.dev because federated Flutter plugins need a shared
contract package, but regular applications should still depend on attriax_flutter
instead of importing attriax_flutter_platform_interface directly.
Requirements #
- Dart
^3.8.0 - Flutter
>=3.29.0
These constraints match the current federated plugin workspace and keep the
shared public types aligned with the main attriax_flutter package.
Architecture #
- Provides: Platform-agnostic interface definitions
- Exports: shared SDK result and synchronization model types
- Used by:
attriax_flutter(main package) - Implemented by:
attriax_flutter_android,attriax_flutter_ios
Development #
This package uses plugin_platform_interface to define the shared contract and
the public types used by the federated implementations. When adding new
platform methods:
- Add method definition to the interface
- Implement in each platform package
- Update the example app to demonstrate usage
Run the package-level regression tests before release:
cd sdk-flutter/attriax_flutter_platform_interface
flutter test
Contributing #
See the parent README.md for contribution guidelines.