# android-architecture


06/25/2021, 6:00 PM
Hey guys I have library: serverurls Which has productFlavors local,dev,prod The server URLs are in the gradle file I want to include those in the :networking module of mine and in the : app But when i do implementation project (path: ':serverurls') I can't seem to get it to work

George Pandian

06/26/2021, 10:39 PM
I would check the below A: If the library does expose only the URL based on flavour, i.e. API exposed getServerURL() I would use just api instead of implementation. (Tips from Android Developer guidelines to optimise the compile time) B: Check if the path is correctly configured or check if the node in tree/graph is reachable through the other library you want to access it from at root project level. C. Check if there is any harm in adding it (server URL) to project level build file instead? D. If there is CI/CD pipeline I would use .properties file and hide the prod URL (i.e. using GitHub secrets) and work with stage or dev environment. Leave the prod to QA and rely on unit tests. E. If you are very much protective of your local (Dev and Stage) I would use . properties file to assign the value and share a common build system using LAN or WLAN. (Idea from concept similar to using the system Gradle + its Daemon spun up after first pick up. Note : you can check this from the IDE terminal but setting the java home path). With E it's a theory I have not done it practically yet. Or there will be other solutions suggested by others suitable for you. Thanks.


06/27/2021, 10:03 AM
A: i tried doing that but the moment I try and include them into the app module I can't compile the app I don't like to bloat the app gradle file that's why i wanted to extract them into a separate one