plugin_platform_interface 2.1.3
plugin_platform_interface: ^2.1.3 copied to clipboard
Reusable base class for platform interfaces of Flutter federated plugins, to help enforce best practices.
2.1.3 #
- Minor fixes for new analysis options.
- Adds additional tests for
PlatformInterfaceandMockPlatformInterfaceMixin. - Modifies
PlatformInterfaceto use an expando for detecting if a customer tries to implement PlatformInterface usingimplementsrather thanextends. This ensures thatverifywill continue to work as advertized after https://github.com/dart-lang/language/issues/2020 is implemented.
2.1.2 #
- Updates README to demonstrate
verifyrather thanverifyToken, and to note that the test mixin applies to fakes as well as mocks. - Adds an additional test for
verifyToken.
2.1.1 #
- Fixes
verifyto work with fake objects, not just mocks.
2.1.0 #
- Introduce
verify, which prevents use ofconst Object()as instance token. - Add a comment indicating that
verifyTokenwill be deprecated in a future release.
2.0.2 #
- Update package description.
2.0.1 #
- Fix
federated flutter pluginslink in the README.md.
2.0.0 #
- Migrate to null safety.
1.0.3 #
- Fix homepage in
pubspec.yaml.
1.0.2 #
- Make the pedantic dev_dependency explicit.
1.0.1 #
- Fixed a bug that made all platform interfaces appear as mocks in release builds (https://github.com/flutter/flutter/issues/46941).
1.0.0 Initial release. #
- Provides
PlatformInterfacewith common mechanism for enforcing that a platform interface is not implemented withimplements. - Provides test only
MockPlatformInterfaceto enable using Mockito to mock platform interfaces.