Closed ronjunevaldoz closed 4 months ago
In the below config, only the android package contains adMobBannerId
adMobBannerId
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") } } }
In the below config, only the android package contains
adMobBannerId