https://kotlinlang.org logo
#ios
Title
# ios
b

Brian G

12/06/2021, 11:51 PM
For my Android app, I have ~60 app "variants", which each have a handful of key/value config options + a folder of assets specific to that variant... Any way to achieve something similar with org.jetbrains.gradle.apple.applePlugin?
😱 2
k

Konrad Sztenderski

12/08/2021, 1:53 PM
It is possible to change buildSettings like this for all configurations:
Copy code
apple {
    iosApp {
        buildSettings.custom("IPHONEOS_DEPLOYMENT_TARGET", "14.3")
    }
}
and you can also change buildSettings for specific configuration (DEBUG or RELEASE):
Copy code
apple {
    iosApp {
        buildConfigurations.debug {
            properties["IPHONEOS_DEPLOYMENT_TARGET"] = "14.3"
        }
    }
}
It is not possible to change build settings for platform specific configurations.
b

Brian G

12/08/2021, 4:42 PM
I think what I'll need to do is have the main part of my app in an iosFramework, and then have all the white-label variants in a very simply iosApp that just includes the framework + custom assets. It's just very convenient that Android does this for you.
5 Views