fix(device_info_plus): suppress Android build deprecation warnings#461
fix(device_info_plus): suppress Android build deprecation warnings#461nohli wants to merge 4 commits intofluttercommunity:mainfrom nohli:suppress-android-deprecation-warnings
Conversation
Ok, will do! 🙂 Thanks for adding hacktoberfest-accepted! |
|
@mhadaily I opened PRs for the six other packages that use the deprecated method without suppressing warnings. Would be cool if you also added the hacktoberfest-accepted tag. I also updated the version and changelog to save you time, hope that's ok. |
|
@nohli wouldn't it be better to remove the whole registerWith function, since new Flutter plugins also don't ship with this function anymore. See https://flutter.dev/docs/release/breaking-changes/android-v1-embedding-create-deprecation for more info. |
|
@juliansteenbakker Flutter advises to keep this method. Idk how old the linked docs are. If new packages don't use the method any more, in my opinion it's okay because it's no breaking change for old users (that don't exist). |
I think you are right. I checked all official Google plugins and they all contain registerWith function. I'll change my PR accordingly (#442) Just one more question, should the version of this package not be 2.2.1 instead of 2.3.0? It doesn't seem like that big of a change. |
|
@nohli this is great, but can we focus on one PR for all of the package related to this, I commented on your PRs. thanks |
|
@nohli let me know when you can close all other PR and merge them all into one PR thanks |
|
@mhadaily have we decided on how to handle the deprecations? The registerWith method takes Registrar which is deprecated.
And do you want me to also close this PR and open a new one? |
|
Let us remove Android v1 embedding support and release a new major version. If there are still apps that use v1, they can use an older version. I don't see any big concern about removing V1 support as long as we release a major version. I'd recommend you also take a look at FlutterFire to see if they follow. thoughts? |
|
Okay, will do 😊 Your last sentence means to also open a similar PR over there? Do you want me to also close this PR? |
|
If you are comfortable with this PR, please continue on this one and please close all others. I just like to see one PR for this issue to be honest. I'll leave it to you whether you open a new one or continue on this one, both works for me. |
|
Closing because of #495 |
…ies (#442) * imp: updated dependencies & gradle * imp: fixed library importing not working correctly * imp: removed deprecated embedding v1 * imp: fixed packageManager deprecation & other minor improvements * test: fix integration test * imp: update gradle * style: format * imp: upgrade test and dependencies * imp: upgrade gradle and android compile version * refactor: reverted embedding v1 function + annotation, bumped version and added changelog entry * bug: added registry import * imp: bump version * bug: removed double integration test declaration * imp: fix test * test: removed unused test import * test: downgrade because of version mismatch * imp: removed v1 embedding as discussed in #461 * bump version to 1.3.0 and updated changelog * imp: removed unused import * style: reformat file * style: reformat file * style: reformat file
Description
The plugin is updated to use Android v2 embedding, while keeping the registerWith() method for keeping backwards compatibility.
Since it's deprecated, there are warnings on every Android build.
This PR suppresses the warnings.
Related Issues
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. Updating the
pubspec.yamland changelogs is not required.///).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?