-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[device_info] Platform interface added in device_info #2929
Conversation
@ditman Hey! why does this PR has no reviewer assigned ? |
Thanks for requesting a review! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move some more code from the core of the plugin to this package?
packages/device_info/device_info_platform_interface/lib/device_info_platform_interface.dart
Outdated
Show resolved
Hide resolved
packages/device_info/device_info_platform_interface/lib/method_channel_device_info.dart
Outdated
Show resolved
Hide resolved
packages/device_info/device_info_platform_interface/lib/method_channel_device_info.dart
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is almost ready to go. Can you add a couple of tests for the public methods of the MethodChannelDeviceInfo
class? (I've linked an example on how to override MethodChannel
responses.)
packages/device_info/device_info_platform_interface/lib/method_channel_device_info.dart
Outdated
Show resolved
Hide resolved
All the changes are done now. |
Looks good, I'll merge this on Monday! |
Thank you Sir! :) |
Fix naming of model files. Make method_channel implementation "private" to this package. Ensure core package exports needed types.
Hey @yash1200 I pushed a couple of changes to your branch directly, I hope you don't mind (was trying to send you a PR but I couldn't). It's mostly adding copyright notices to files and moving files around so they're not exposed normally. I forgot to comment on those in earlier PRs, and didn't want to bother you again. Please, take a look at my latest push and see if it makes sense! |
Yeah, looks good to me 💯 |
I'll merge this once the tests in master pass. |
Thank You again ! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this one!
Thanks for the help! Just one last query, how can I request a review in a PR. I can't find any option to request as it is stated here. |
@yash1200 This package has been published, you should be able to use from your pubspec normally: |
Thanks @ditman . |
This is the platform interface package of the federated device_info plugin.
This is the platform interface package of the federated device_info plugin.
This is the platform interface package of the federated device_info plugin.
Description
In this PR, I have added platform interface package to the device_info plugin.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?