For those who want BuildConfig for Kotlin MPP. I'm...
# multiplatform
y
For those who want BuildConfig for Kotlin MPP. I'm currently working on this https://github.com/yshrsmz/BuildKonfig
👍 4
💯 4
d
Great! Was really looking into such a thing for Kotlin Gradle projects (mpp included)
n
Nice
t
Nice one, just discovered a typo in the readme. The closure needs to be called
buildkonfig
instead of
buildKonfig
🙂
What’s weird is that as soon I add
classpath 'com.codingfeline.buildkonfig:buildkonfig-gradle-plugin:0.1.0'
to my pet project, the build breaks the build with some
ktor
related error 🤔 Could not find /Users/XXX/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-client-ios_debug_ios_x64/1.0.0/356fffd211e215e1625368473e25ce844a378845/ktor-client-ios.klib in [/Users/XXX/Documents/repos/spikes/multiplatform-movies, /Users/XXX/.konan/klib, /Users/XXX/.konan/kotlin-native-macos-1.1.1/klib/common, /Users/XXX/.konan/kotlin-native-macos-1.1.1/klib/platform/ios_x64]
y
Maybe it’s because the plugin is for Kotlin 1.3.20 or later. I’ve updated the document.
👍 1
m
@yshrsmz I just published and article about it focus BuildKonfig and how to use it🙂 https://mustafaozhan.medium.com/gracefully-dealing-with-private-keys-in-kotlin-multi-platform-e9d21d62ad2a
y
@Mustafa Ozhan Thanks for the nice article! Looks good to me 👍 I've shared this on my Twitter 😄
m
Ohh great thank you 🙂
278 Views