flutter_in_app_update icon indicating copy to clipboard operation
flutter_in_app_update copied to clipboard

Feature request : Add FakeAppUpdateManager.

Open kishanhitk opened this issue 5 years ago • 3 comments

First of all, thank you very much @jonasbark and the community for this amazing package. 🙇 I have one feature request. Currently, to test in_app_update implementation, we have to upload the app to Internal Sharing in Play Store, therefore it is not possible to test it in real-time while coding. So, it becomes a little bit difficult for novice developers like me. Google has released FakeAppUpdateManager for Android to test InAppUpdate locally while coding. So, is it possible to add this feature to this package also? Until then can you please suggest me the preferred way of testing inAppUpdate implementation in my app?

Thanks @kishanhitk

kishanhitk avatar Nov 18 '20 04:11 kishanhitk

essential feature!!

gabrieleolmi avatar Dec 30 '22 20:12 gabrieleolmi

I will have a think about this. You can only really properly test it by using the internal sharing method in the Play Store, which is also mentioned in the official docs.

jonasbark avatar Jun 17 '23 15:06 jonasbark

I will have a think about this. You can only really properly test it by using the internal sharing method in the Play Store, which is also mentioned in the official docs.

Yeah, but if Google deemed it necessary to add the FakeAppUpdateManager, I think it only makes sense the plugin implementing the API provides it too.

This will also help with unit testing massively. Currently, trying to test this code requires the developer to make a lot of assumptions of what the class might return to mock the responses. Which, as you can see, can be wrong or change with time, thus breaking the tests without the developer potentially realising.

namanshergill avatar Nov 23 '23 04:11 namanshergill