Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin doesn't support mocking for tests #17

Open
ilia-grishakov-m10 opened this issue Jun 24, 2023 · 0 comments
Open

Plugin doesn't support mocking for tests #17

ilia-grishakov-m10 opened this issue Jun 24, 2023 · 0 comments

Comments

@ilia-grishakov-m10
Copy link

ilia-grishakov-m10 commented Jun 24, 2023

Current implementation of plugin use field from Platform class from dart:io (for ex. Platform.isIos), that makes no ability to mock it in tests for different platforms (for ex. test for iOS). Better use defaultTargetPlatform from flutter/services](package:flutter/foundation.dart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant