How to configure for compose multiplatform nativeMain? #145
Answered
by
yshrsmz
ronjunevaldoz
asked this question in
Q&A
-
In the below config, only the android package contains buildkonfig {
packageName = "com.example.app"
defaultConfigs {
buildConfigField(STRING, "oAuthServerId", "test")
}
defaultConfigs("dev") {
buildConfigField(STRING, "oAuthServerId", "test")
}
targetConfigs {
create("android") {
buildConfigField(STRING, "adMobBannerId", "valueAndroid")
}
create("ios") {
buildConfigField(STRING, "adMobBannerId", "valueIos")
}
}
// flavor is passed as a first argument of targetConfigs
targetConfigs("dev") {
create("ios") {
buildConfigField(STRING, "adMobBannerId", "ca")
}
create("android") {
buildConfigField(STRING, "adMobBannerId", "ca")
}
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
yshrsmz
Apr 24, 2024
Replies: 1 comment 7 replies
-
Please provide a full repro link or a build.gradle/build.gradle.kts which can reproduce your issue. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the meantime, you can call
applyDefaultHierarchyTemplate()
, and that should solve the problem.