Comments (5)
Refer: https://stackoverflow.com/questions/64092188/is-huawei-hms-tolerated-on-google-play-store/64095628
from hms-flutter-plugin.
Please, don't. I wrote that question and there is no usable answer there, this is why I brought it here. This is a current problem that's probably linked to the upcoming changes at Play Store. huawei_app
, your own plugin that I refer to, not some third-party plugin somewhere out there. There are remaining meta references in the package that makes Google to refuse the upload. I don't know what you can do about it right now but no, simply suggesting that people use the two-flavor approach will not do because the problem is there with the two-flavor approach. That's the trouble, actually.
from hms-flutter-plugin.
I can see there is some misunderstanding with Shirley over there. Let me be more clear: I do create a two-flavor app all right. One is appgallery
, the other is googleplay
.
-
appgallery
is uploaded to you, accepted, everything just fine. -
googleplay
cannot be uploaded to Google, this is the problem, because even if I don't use HMS code in that flavor, all my dependencies are correctly marked asappgallery
only, not my own app but thehuawei_iap
package I depend on pulls in some metadata that, despite the actual code being shaken off the tree, remains in the bundle I upload. And those references are enough for Google to refuse thegoogleplay
flavor or the app.
Yes, this seems to be in direct conflict with what Google says they do, the grace period until next September. Still, it's there. Please, check it out because this makes it very hard to build an app now. Simply selecting the flavor isn't enough, I have to methodically comment out all references to unused HMS code now for it to work.
from hms-flutter-plugin.
While I can't come up with a repo, obviously (you need a published app on GP and you need access to said app to upload a new bundle), I try to collect the evidence to back up my claim. :-)
First, this is the refusal. No specific error, just that it doesn't work. However, as I will show later, it's obvious to be the HMS code because the error disappears as soon as all--otherwise unused (!)--HMS code had been commented out:
- agconnect-services.json is under the
appgallery
flavor folder apply plugin: 'com.huawei.agconnect'
is under theappgallery
flavor- dependencies are:
appgalleryImplementation "com.huawei.agconnect:agcp:1.3.1.300"
appgalleryImplementation 'com.huawei.hms:iap:5.0.2.300'
There is no direct reference to any HMS code in the googleplay
flavor. However, as Flutter and Dart doesn't support real conditional compilation, pubspec.yaml
needs constantly refer to:
dependencies:
huawei_iap: ^5.0.0
As far as I can tell, while I have no HMS reference whatsoever in my own code when compiling for googleplay
, huawei_iap
itself has an obvious dependency of:
dependencies {
implementation 'com.huawei.hms:iap:4.0.4.300'
implementation 'com.google.code.gson:gson:2.8.5'
}
I have a hunch that this leaves some metadata references that trigger the denial at Google's.
In other words: it isn't the flavors or anything in my app's gradle settings that causes the problems. It's the Flutter plugin that does it. And while I can fork my own code to two different flavors, I can't do the same with the plugin, I have to depend on it all the time because Flutter won't compile it otherwise.
from hms-flutter-plugin.
I posted my final solution as an aswer at https://stackoverflow.com/questions/64092188/is-huawei-hms-tolerated-on-google-play-store/64108356. Not really automatic but it works just fine, with minimum effort.
from hms-flutter-plugin.
Related Issues (20)
- Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
- UserHandle data is missing in Flutter FIDO Authentication result HOT 5
- Geocoding Service Error
- [huawei_map] Clicking on Marker Causes setZIndex:Failure win parameter HOT 1
- 有无支持基于鸿蒙的Flutter适配的计划
- Getting MissingPluginException when using with Huawei Location inside workmanager HOT 1
- [huawei_ads] Previous integration broken, error during build
- com.huawei.hms.flutter.iap.MethodCallHandlerImpl.onActivityResult(MethodCallHandlerImpl.java:14)
- 用什么插件集成CheckAppUpdate?没有特定的插件 HOT 1
- Padding Oracle
- [huawei_location] 6.12.0+302 and 6.12.0+303 didn't compile HOT 3
- The map gets displayed for a short extra time when navigating to another page, and when navigating back from the map page
- Remove references to deprecated v1 Android embedding
- Deprecated imperative apply of Flutter's Gradle plugins
- Gradle update - Namespace not specified in build.gradle HOT 3
- huawei location package throwing error while build web HOT 1
- Flutter Project Integration Issue with HMS: Plugin 'com.huawei.agconnect' Version Not Found
- Marker Disappears After Update When markersClusteringEnabled is Enabled on Huawei Map
- Huawei_account: no documented substitute API for deprecated ReadSmsManager API
- [huawei_ads] Compile Error after Upgrade to Gradle plugin 8.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hms-flutter-plugin.