[camera] allow camera plugin to be installed when android api < 21#1482
[camera] allow camera plugin to be installed when android api < 21#1482jaumard wants to merge 1 commit intoflutter:masterfrom
Conversation
1b2d5dd to
db05658
Compare
|
Hey @bparrishMines ! surprise to see you as reviewer ^^ didn't expect this :) I need this PR because my app target api16+ :) and it prevent us to release our app in production right now as we can't compile publishable build are not accurate :( it didn't check the pubspec of the example app, only the one of the plugin itself... that's why it's failing. Do I remove my api 16 check ? it will make the build green but will not show how to prevent usage on this api. |
db05658 to
301f85e
Compare
|
Hi @jaumard, Thanks for the contribution! After looking at your PR and looking into the problem, I tried to find a solution that would involve minimum code. For now, we are trying to avoid moving the Camera code into a separate file. I created another PR that should solve this problem without moving as much code. If you get the chance, let me know if it works for you. |
|
hey @bparrishMines I tried at first to not move any code, but it still wasn't working. Probably didn't do it right ^^ But once I forced a version it was working great thanks ! can close this one |
* [firebase_storage] Added error handling to writeToFile (StorageFileDownloadTask) - see flutter#1418. * Added error handling for integration testing of writeToFile.
Description
Currently camera plugin is working for API 21, but flutter is since 16, so camera should be able to be installed on API 16 even if it doesn't work. That will allow developers to target API 16 and just hide the camera features for API 21 or more.
Related Issues
fix flutter/flutter#30854
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?