Priyanshu Jain
04/05/2023, 8:51 AMrusshwolf
04/05/2023, 2:52 PMexample-module
and it will automatically pull in the platform specific artifacts like example-module-iosx64
when building for the relevant platform.Priyanshu Jain
04/05/2023, 3:08 PMexample-module-android
, some classes and objects are being pulled in from example-module-iosx64
. So, I am using a string variable in the commonMain
of the library to switch between different test environments like stage, production etc. Default value of this variable is set to production. Then, in my app's main activity I set this variable based on the environment so that I can get different base urls depending on the config variable's value. But, I get the production base urls even if I set the config variable to stage. I attached debugger and found that the config variable does get set in the example-module-android
but the urls are being fetched from the example-module-iosX64
target which is why I end up getting the default urls. Hope this explained the situation better. Thanksrusshwolf
04/05/2023, 3:18 PMPriyanshu Jain
04/06/2023, 5:31 AM