is there a way to reference/detect the iOS schema in kotlin? (ie - the equivalent of
#if Debug
in Swift)
f
François
06/20/2025, 6:09 AM
no possible, you need to use expect/actual kotlin feature
👍 1
François
06/20/2025, 6:12 AM
or inject the parameter from swift code.
c
Christopher Mederos
06/20/2025, 6:31 AM
Is there a way to access it from the actual iOS, kotlin code?
I've done it before via injecting from the swift side, but am curious if there's a way to keep it all inside the kotlin modules
d
darkmoon_uk
06/20/2025, 6:54 AM
I use BuildKonfig 'flavours' feature and nominate a flavour when building from Xcode by adding the
is the Xcode provided Configuration name implied by the selected scheme.
Then the BuildKonfig setup in Gradle compiles in suitable values for my Xcode-selected environment - no Swift needed.