The presence of Google services (gcm) in a separate module on Android

I want to move the codes gcmto another module, and not to the main application module, to make my code cleaner, and also give other modules of my application access to gcm.

It seems that I should have google-services.jsonplaced at the root of the module, and this module should have the same package name one that it works with gcm. Obviously, I cannot do this, because the main module has one package name, and the other module cannot have the same one package name .

Is there any solution to place gcmin another module?

+4
source share

Source: https://habr.com/ru/post/1658944/


All Articles