Skip to content

Using BuildKonfig in Compose Multiplatform #157

Answered by RyuNen344
Vocaloid2048 asked this question in Q&A
Discussion options

You must be logged in to vote

@Vocaloid2048

Thank you 😉

could you try update project build.gradle.kts like below?

import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import java.util.Properties

// remove build script block

plugins {
    alias(libs.plugins.kotlinMultiplatform)
    alias(libs.plugins.androidApplication)
    alias(libs.plugins.jetbrainsCompose)
    alias(libs.plugins.compose.compiler)
    // plz replace `$latest_version` with the version you want to use
    id("com.codingfeline.buildkonfig").version("$latest_version")
}


// ommit kotlin, android block

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@RyuNen344
Comment options

@RyuNen344
Comment options

@Vocaloid2048
Comment options

@Vocaloid2048
Comment options

Answer selected by Vocaloid2048
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants