yshrsmz / BuildKonfig

BuildConfig for Kotlin Multiplatform Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for adding platform specific config

mustafaozhan opened this issue Β· comments

Hello πŸ‘‹

I had a KMP module which has only JVM target enabled, but since BuildKonfig is generating the class in commonMain I had to add

        val commonMain by getting
        val commonTest by getting
        
        val jvmMain by getting {
            dependsOn(commonMain)
            ...
         }
         
          val jvmTest by getting {
            dependsOn(commonTest)
            ...
         }

Maybe we can configure the place that BuildKonfig is generated ?

Hi, we already have this capability. Please refer to "Configuring target dependent values" section in README

Ohh, didn't see that part thank you!