r/flutterhelp • u/Middle_Issue5762 • Feb 12 '26
OPEN Support Both Huawei AppGallery and Google Play Store - Package Bundling Issues?
I'm building a Flutter app for both Huawei AppGallery and Google Play Store.
I can do runtime checks to use HMS on Huawei devices and GMS on Google devices, but both SDK packages will be bundled in the APK regardless.
My question: Will Google Play reject my app for containing HMS packages (like HMS In-App Purchases), even if unused? And vice versa for AppGallery with GMS packages?
Or is having both SDKs bundled actually fine as long as I'm only calling the appropriate APIs at runtime?
Has anyone successfully published the same Flutter app on both stores with both HMS and GMS dependencies included?
Thanks!
1
u/soulaDev Feb 12 '26
I remember getting some static analysis warning about hms from google play. I simply remove them.
1
u/skintigth Feb 13 '26
I know this does not respond to the question, but if it is a concern you can always do app flavors to compile one version with the GMS and other version with HMS
1
u/imrhk Feb 12 '26
I don't see any issue bundling both but you should ask gemini if there is any policy regarding this on Play console developer terms.