I upgraded to AGP 9.0.1 and now the `androidApp` m...
# multiplatform
v
I upgraded to AGP 9.0.1 and now the
androidApp
module sits outside the
composeApp
module. My question is: how can I share build flavors/variants in this setup? I have three flavors (QA, UAT, Prod) and both debug and release builds, making a total of six variants. I also have six different base URLs for the HTTP client. All networking logic is implemented in
commonMain
using Ktor for both Android and iOS. However, on the Android side I’m unable to pass variant-specific values such as
BuildConfig
,
isDebuggable
, etc., into the shared code. What is the best way to handle this? Has anyone faced a similar issue? Additionally, I added the Napier library in
commonMain
dependencies, but its import is not being resolved inside the
androidApp
module.
@zsmb can you please share your feedback here I want to understand what is correct best practices
z
You can find recommendations from Google about build variants and BuildConfig here: https://developer.android.com/kotlin/multiplatform/plugin#unsupported-features-and-workarounds
v
Thank you 😊