androidkotlingoogle-playhuawei-developersappgallery

How to use keystores for multi Store


I have an android app that's intended for both google play and app gallery , it's one project with 2 flavours , for the google play i generated a keystore , my questions are that

1- Should I use the google play keystore for app gallery or it needs to be a new one ?

2- Bundle id for appgallery can be same as google play or not ? Any pros and cons for same/different id ?

3- Does app gallery accepts aab or only apk as for google there is no choice (only aab)?


Solution

  • You can generally use the same key-store and the same package name.
    With versionNameSuffix the resulting packages will by easier to identify.

    If you want to publish AAB to AppGallery Connect, you need to enable signing.
    It's the same as on Google Play; the release key will then become an upload key.

    The important part is: One can only use the same key-store, while uploading AAB and let Google or Huawei sign the published package. Alike this each channel will use the same upload key - but will nevertheless have their own release key. Else you'll run into trouble, when both stores are installed.

    My plugin would also support AAB upload: agconnect-publishing-gradle-plugin.
    So far it's probably only me, who uses it... which means it could use some testing.