I'm in the process of converting my android app to an instant app, following this tutorial.
For now, I have split my app module to two:
- base module which contains the code
- installed module, used for the non-instant-app version of the app
Before the split, in my only module (app) I was using the google-services
plugin. After the split, I have moved the plugin to the installed module, as that's where it seems to need to be so that it will generate strings.xml
from the google-services.json
file.
The problem is, in the base module I have some code that tries to access a variable generated by the google services plugin: R.string.default_web_client_id
, which is now not available, producing a compile error.
I need to somehow gain access from the base module to that generated value, without introducing a cyclic dependency...