Skip to content

Parts of the code using hardcoded Constants.GMS_PACKAGE_NAME not build flavour aware? #3367

@oSumAtrIX

Description

@oSumAtrIX

In many places of GmsCore, Constants.GMS_PACKAGE_NAME is used when the app package name is expected. When building the user flavour, this package name remains hardcoded. This does not look to be intended.

Here is an example:

https://github.com/microg/GmsCore/blob/master/play-services-maps/core/mapbox/src/main/kotlin/org/microg/gms/maps/mapbox/utils/MultiArchLoader.kt#L45

Another:

https://github.com/microg/GmsCore/blob/master/play-services-base/src/main/java/com/google/android/gms/common/GooglePlayServicesUtil.java#L140

For both, the constant should point to the app's package name, so when the user flavour is used, the user flavour package name is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions