GithubHelp home page GithubHelp logo

Comments (5)

aktug avatar aktug commented on September 25, 2024

Refer: https://stackoverflow.com/questions/64092188/is-huawei-hms-tolerated-on-google-play-store/64095628

from hms-flutter-plugin.

deakjahn avatar deakjahn commented on September 25, 2024

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.

deakjahn avatar deakjahn commented on September 25, 2024

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 as appgallery only, not my own app but the huawei_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 the googleplay 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.

deakjahn avatar deakjahn commented on September 25, 2024

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:

Screenshot 2020-10-15 150346

  • agconnect-services.json is under the appgallery flavor folder
  • apply plugin: 'com.huawei.agconnect' is under the appgallery 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.

deakjahn avatar deakjahn commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.