https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
multiplatform
  • t

    Tim Malseed

    10/29/2022, 12:15 AM
    Hi friends, I’m troubleshooting what seems to be a type issue, when trying to interact with some KMM code in iOS I have a few different KMM gradle modules, which are interdependent. When trying to call these from iOS, there seems to be a casting issue, due to the iOS classes having the framework name prefixed to the class name
    • 1
    • 7
  • r

    Robert Munro

    10/29/2022, 5:12 PM
    I have a multiplatform module that builds a server into a jar for use in my android app module. on 1.6.20 i had a task that renames the built js in the output jar so i can reference it from a statoc index.html - but when I upgrade to 1.7.20 i get thefollowing error which i am not sure how to fix.
    Querying the mapped value of map(map(task ':remote:jsBrowserDevelopmentWebpack' property 'entryProperty')) before task ':remote:processDceDevJsKotlinJs' has completed is not supported
    so this is the task
    val outputJsLibName = "remote.js"
    // include JS artifacts in any JAR we generate
    tasks.getByName<Jar>("jvmJar") {
        val taskName = if (project.property("isProduction") == "true") {
            "jsBrowserProductionWebpack"
        } else {
            "jsBrowserDevelopmentWebpack"
        }
        val webpackTask = tasks.getByName<KotlinWebpack>(taskName)
        dependsOn(webpackTask) // make sure JS gets compiled first
        from(File(webpackTask.destinationDirectory, outputJsLibName))
    }
    possibly this isn't the right approach though - what is the best approach to reference a kotlin js lib from a server app?
  • c

    Christian Würthenr

    10/31/2022, 8:29 AM
    On Android we have the
    <http://Dispatchers.IO|Dispatchers.IO>
    available, but that's not the case in KMM. What's the best way to replace it? I already have a
    expected
    actual
    with a
    Dispatcher.SharedIO
    which just points to
    <http://Dispatchers.IO|Dispatchers.IO>
    on Android, but what's the best solution on iOS?
    s
    s
    • 3
    • 12
  • a

    akapanina

    10/31/2022, 10:29 AM
    Hey folks! Quick question for those who use Android Studio for Multiplatform development. Which builds are you usually using? Stable :android:, Beta :android-dance:, or Canary 🐤?
  • a

    ayodele

    10/31/2022, 3:48 PM
    Hey guy, how do share viewmodels in KMM? Knowing that Android view models have lifecycle dependent on the platform?
    s
    • 2
    • 6
  • k

    Ksenia Shneyveys

    10/31/2022, 4:02 PM
    💜 Calling all students and recent graduates who love to code in Kotlin! Build a project using Kotlin Multiplatform technology and get a chance to win a trip to KotlinConf’23 in Amsterdam, with all expenses paid courtesy of the Kotlin Foundation! The project can be on any topic of your choice. We’ll judge it based on the creativity of your idea and how it is reinforced by Kotlin Multiplatform. Enter the Kotlin Multiplatform contest! https://blog.jetbrains.com/kotlin/2022/10/join-the-kotlin-multiplatform-contest/
    • 1
    • 1
  • v

    Venkataramanan Parameswaran

    10/31/2022, 5:33 PM
    Hi, We have a KMM SDK. when we implement this with ios project that has debug / release build type... it works fine... but when we have a custom build type it didn't work.. as mentioned in the documentation... we need to insert
    xcodeConfigurationToNativeBuildType["Staging"] = org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType.DEBUG
    in cocoapods configuration... This is fine if we have a in house sdks... but if we are publishing this library to outside users. it is not possible to know their build types... then how to handle this kind of issues... ?
    • 1
    • 1
  • s

    Sunil Kumar

    10/31/2022, 5:39 PM
    Hi guys, with kotlinx serialization i am facing following error in kmm project
    Caused by: kotlinx.serialization.json.internal.JsonDecodingException: Polymorphic serializer was not found for missing class discriminator ('null')
    Not able to find any solution for that. Can anyone help me with that. Tried some solutions from google and stackoverflow, but didnt worked.
    j
    • 2
    • 1
  • j

    James Ward

    10/31/2022, 9:39 PM
    Has anyone here had the chance to use the Jetpack Multiplatform experimental previews (collections or datastore)? If so, I'd love to chat with you about your experience. DM or email me: jamesward@google.com Thanks!
  • l

    Lim Chee Keong

    11/01/2022, 12:03 AM
    Harlo, how can we mock in the iosTest under the shared business logic? We use mockk but it seems that iosTest cannot have dependency to the mockk.
    s
    h
    • 3
    • 2
  • h

    Hylke Bron

    11/01/2022, 9:53 AM
    Quick question, what is your approach when exposing suspending functions from kotlin to swift and you want to return either a succesful response or an exceptional case? Currently I am using this method signature:
    @Throws(Throwable::class) public suspend fun getSomething(): String
    because in my experience returning sealed classes with Success / Failure types to swift (via objective c) does not work nicely with swift. This approach works OK with swift since the exceptions are checked, but when using this same method in android kotlin, there is no checked exceptions so its easy to forget to add a try catch around it. So I was wondering what your approach is.
    a
    j
    +2
    • 5
    • 36
  • e

    Edison Yap

    11/01/2022, 1:54 PM
    I've been eyeing KMM a little now - I have a normal app (API from backend, displays a list of things) which also requires quite a bit of WebView work. It's currently built with Flutter but Flutter is pretty bad with WebView (context menu doesn't work, highlighting doesn't work, resizing WebView has huge performance penalty etc). Since KMM is fully native I expect all these to be non-problems, however I came to really like Flutter's Riverpod state management. I'm not a mobile dev (primarily backend), so I have no clue what's the standard in Android/iOS, but is there something similar to Riverpod in KMM, and is it possible to share state level logic with KMM as well?
    m
    l
    • 3
    • 11
  • s

    Slackbot

    11/01/2022, 3:45 PM
    This message was deleted.
    m
    • 2
    • 1
  • e

    eygraber

    11/01/2022, 7:44 PM
    Anyone know why
    XCFrameworkTask.outputDir
    doesn't use the correct output directory of the xcframework? It's missing the build type directory, which is exposed correctly in
    outputXCFrameworkFile
    but that is protected
  • l

    Lim Chee Keong

    11/02/2022, 9:23 AM
    Harlo, i have problem resolving the dependency to the shared project. I created a new module at the same level as the share project.
  • l

    Lim Chee Keong

    11/02/2022, 9:26 AM
    Harlo, i have problem resolving the dependency to the shared project. I created a new module called backend at the same level as the share project. This is the gradle file of the new module
    import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
    
    plugins {
        id("kotlin-platform-jvm")
        application
        kotlin("plugin.serialization")
        id("com.github.johnrengelman.shadow") version "7.1.2"
        id("com.github.ben-manes.versions") version "0.43.0"
    }
    
    dependencies {
        implementation(project(":shared"))
    
        with(Deps.Kotlinx) {
            implementation(serializationCore) // JVM depende
        }
    
        with(Deps.Coroutines){
            implementation(core)
        }
        
        with(Deps.Ktor) {
            implementation(serverCore)
            implementation(serverNetty)
            implementation(serverCors)
            implementation(contentNegotiation)
            implementation(json)
        }
    
        with(Deps.Log) {
            implementation(logback)
        }
    }
    
    tasks.withType<KotlinCompile> {
        kotlinOptions.jvmTarget = "1.8"
    }
    
    application {
        mainClass.set("ServerKt")
    }
    there is a implementation to have a dependency to the shared project. However, this is the error I got: :backend:main: Could not resolve project :shared. Required by: project :backend Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
    a
    • 2
    • 2
  • h

    Hendrik Marx

    11/02/2022, 9:57 AM
    Hello 👋 I am trying to do a thing and it works fine on android but I have issues making it work on iOS. I do not know enough about iOS/objectiveC to know if this is a problem with iOS, KMM and/or I am doing something wrong. I have a KMM library which is the "core" of a bunch of other KMM libraries (that are generated) and depend on it with the api keyword. The Android and iOS apps are native and are supposed to include the generated libs and initialise them with the Core dependency. On Android this is no problem, but on iOS (xcframeworks + SPM) it seems all the transitive Core dependencies are different classes (prefixed in Objective C and then aliased to the same name), so I cannot reuse that core dependency.
    let core = Core(myNativeImplementationOfCoreInterfaces())
    let l1 = Lib1Class(core) // works
    let l2 = Lib2Class(core) // does not work. Core is technically a different class here with the same name
    Does anyone know how to make this work or if this is even possible? I provided a little sketch of the situation.
    a
    m
    • 3
    • 5
  • e

    eygraber

    11/02/2022, 7:15 PM
    Is there still no solution or workaround for targeting mac catalyst - https://youtrack.jetbrains.com/issue/KT-40442
    t
    s
    • 3
    • 3
  • m

    Michael Paus

    11/03/2022, 12:06 PM
    I am just fighting to get some file resource loaded into my app via moko-resources. I am wondering how I am supposed to access a file resource from common code if the FileResource method to get at the text of this file has a signature like this on desktop
    fun readText(): String
    but
    fun readText(context: Context): String
    on Android. On any other platform than Android there is no Context. Am I supposed to somehow wrap that again in some expect/actual code of my own, or what? I just don’t get it.
    j
    k
    • 3
    • 8
  • b

    bartosz.malkowski

    11/03/2022, 12:30 PM
    Hi! I have a big problem. I cannot compile my project when one specific library is added.
    > Task :common:utils:compileKotlinIosArm64 FAILED
    e: Could not find "org.jetbrains.kotlinx:kotlinx-serialization-core" in [/Users/bmalkow/Documents/workspace/tigase-tygrys/common/utils, /Users/bmalkow/.konan/klib, /Users/bmalkow/.konan/kotlin-native-prebuilt-macos-x86_64-1.7.10/klib/common, /Users/bmalkow/.konan/kotlin-native-prebuilt-macos-x86_64-1.7.10/klib/platform/ios_arm64]
    or sometimes:
    > Task :common:utils:compileKotlinIosArm64 FAILED
    e: Could not find "org.jetbrains.kotlinx:kotlinx-datetime" in [/Users/bmalkow/Documents/workspace/tigase-tygrys/common/utils, /Users/bmalkow/.konan/klib, /Users/bmalkow/.konan/kotlin-native-prebuilt-macos-x86_64-1.7.10/klib/common, /Users/bmalkow/.konan/kotlin-native-prebuilt-macos-x86_64-1.7.10/klib/platform/ios_arm64]
    Both are used in library I need in my project. What is wrong? Im sure it worked few weeks ago, and nobody touch the project for this time. I have no idea what was changed. Library: https://github.com/tigase/halcyon Fragment of my project configuration:
    plugins {
    	id("com.github.gmazzo.buildconfig") version "3.1.0"
    	id("com.android.library")
    	id("kotlin-multiplatform")
    }
    
    buildConfig {
    	className("OfficialTeaVersion")
    	packageName("org.tigase.officialtea.common.main.version")
    	useKotlinOutput()
    
    	buildConfigField("String", "APP_NAME", "\"${rootProject.name}\"")
    	buildConfigField("String", "APP_VERSION", "\"${rootProject.version}\"")
    	buildConfigField("long", "BUILD_TIME", "${System.currentTimeMillis()}L")
    }
    
    
    
    android {
    	compileSdkVersion(deps.versions.androidCompileSdk.get().toInt())
    
    	defaultConfig {
    		minSdkVersion(deps.versions.androidMinSdk.get().toInt())
    		targetSdkVersion(deps.versions.androidTargetSdk.get().toInt())
    	}
    
    	compileOptions {
    		sourceCompatibility = JavaVersion.VERSION_1_8
    		targetCompatibility = JavaVersion.VERSION_1_8
    	}
    
    	sourceSets {
    		named("main") {
    			manifest.srcFile("src/androidMain/AndroidManifest.xml")
    			res.srcDirs("src/androidMain/res")
    		}
    	}
    }
    
    kotlin {
    	jvm("desktop")
    	android()
    	ios()
    	sourceSets {
    		named("commonMain") {
    			dependencies {
    				implementation(deps.mviKotlin.core)
    				implementation(deps.mviKotlin.rx)
    				implementation(deps.mviKotlin.main)
    				implementation(deps.mviKotlin.extReaktive)
    
    				implementation(deps.decompose.decompose)
    
    				implementation(deps.reaktive.reaktive)
    				implementation(deps.halcyon.core)
    			}
    		}
    		named("commonTest") {
    			dependencies {
    				implementation(kotlin("test-common"))
    				implementation(kotlin("test-annotations-common"))
    			}
    		}
    		named("androidMain"){}
    		named("androidTest") {
    			dependencies {
    				implementation(deps.kotlin.kotlinTestJunit)
    			}
    		}
    		named("desktopMain") {
    			dependencies{
    				implementation(deps.directories)
    			}
    		}
    		named("desktopTest") {
    			dependencies {
    				implementation(deps.kotlin.kotlinTestJunit)
    			}
    		}
    
    
    	}
    }
  • f

    Francois Desrosiers

    11/03/2022, 8:24 PM
    Hi everyone ! we are building a IOs and Android using KMM and I'm looking to implement logging and crash report and I thought using Sentry but the implementation is based on Java so it can't work with KMM. I found this (https://github.com/getsentry/sentry-kotlin-multiplatform) made by Sentry but it seems to not yet ready. I was wondering what are you using for mobile in production to track crashs, logs and performances issues ? thanks guys !
    m
    k
    • 3
    • 4
  • a

    Alex Styl

    11/04/2022, 7:30 AM
    I am facing an issue with proguard and creating a distributable version of my Mac OS app. When I run
    ./gradlew runReleaseDistributable
    the app is built and the crashes with
    Failed to launch JVM
    . If I disable proguard entirely (
    obfuscate.set(false)
    ) then runReleaseDistributable runs the app without an issue. I even tried to keep
    Mainkt
    and its contents via a proguard rule (checked the contents of desktop-jvm.jar) and still the same error. Any pointers would be appreciated
    • 1
    • 1
  • j

    Jose Luis Franconetti Olmedo

    11/04/2022, 7:46 AM
    I’m trying to integrate TensorFlowLiteObjC into a KMM static library, but it’s not working I have the suspicion that I need to link the TensorFlowLiteC library with the TensorFlowLiteObjC library through cocoapods but I’m not fully sure. Has anyone successfully integrated TensorFlow lite? Has anybody had the same issue before? Any help would be appreciated
  • s

    siraf

    11/04/2022, 10:38 AM
    Hi, I have a cocoa pod made of KMM library, hosted on private repo, and it installs successfully. The problem is I can only run it on real device, not on simulator. I am using M1 Pro machine. I found that I need to put
    iosSimulatorArm64
    in
    build.gradle.kts
    but it didnt help. I am getting these kind of errors:
    Undefined symbols for architecture x86_64:
      "_OBJC_CLASS_$_CLWorkerType", referenced from:
          objc-class-ref in WorkerListViewController.o
    due to
    Undefined symbols for architecture x86_64
    a
    m
    +4
    • 7
    • 22
  • m

    Mychael Koelfat

    11/04/2022, 12:15 PM
    Hey everyone, I am still quite new to both Kotlin and KMM, so this may be really obvious, I apologize. I'm just starting to translate some code to KMM to share it between both Android and IOS. Currently I'm working in Android Studio on a Windows device. I created this class:
    class SharedDiscover {
        companion object {
            fun parse(deviceId: Int, data: ByteArray, buffer: ByteBuffer): Boolean  {
                // Some code...
            }
        }
    }
    However, it has an unsolved reference to ByteBuffer. This links back to
    import java.nio.ByteBuffer
    in the existing project, but in the shared folder I obviously cannot link to this, or at least not in this way. Does anyone have a workaround? Or any insight on how this works?
    j
    k
    • 3
    • 5
  • m

    Moritz Post

    11/04/2022, 2:14 PM
    Hello. I am having problems when referencing third party libraries in the
    common
    source folder. I have added
    kotlinx.serialization
    and am using it successfully in the app. However in the AndroidStudio source editor all classes from the serialization library are marked as unresolved and no tooling works for them. Is anybody aware of such an issue?
    a
    e
    a
    • 4
    • 17
  • d

    Damian Nowak

    11/05/2022, 2:19 PM
    Hello, If I want to create a KMP application for Android, desktop and web, should I only use AndroidStudio or only IntelliJ Idea? Or maybe I should mix these IDEs, e.g. AndroidStudio just for Android stuff (emulator etc)?
    t
    m
    • 3
    • 2
  • k

    Ky

    11/05/2022, 5:06 PM
    Hello I have to apply both AGP & KGP in my KMM project. This is required because I need AGP in buildSrc and thus due to intended behavior described here; I then need to load AGP and KGP in the modules of interest. I hit a problem after doing this. In my
    shared
    layer
    build.gradle.kts
    I receive an error when trying to gradle sync.
    Failed building KotlinMPPGradleModel
    java.util.NoSuchElementException: Collection is empty.
    i
    v
    • 3
    • 5
  • m

    Marc Reichelt

    11/07/2022, 9:05 AM
    Hey there! I know we can run Kotlin Multiplatform tests on iOS simulators. Can we also run them on real iOS devices? I’d really love to test some Bluetooth-related code in an automated fashion!
    j
    v
    +2
    • 5
    • 11
  • c

    Christian Würthenr

    11/07/2022, 2:28 PM
    What's the proper way to replace
    debugImplementation
    and
    releaseImplementation
    in KMM? I have some dependencies that should go into the
    androidMain
    source set but with different dependencies for debug and release builds
    e
    • 2
    • 3
Powered by Linen
Title
c

Christian Würthenr

11/07/2022, 2:28 PM
What's the proper way to replace
debugImplementation
and
releaseImplementation
in KMM? I have some dependencies that should go into the
androidMain
source set but with different dependencies for debug and release builds
e

ephemient

11/07/2022, 2:30 PM
use the top-level
dependencies
block instead of the one in the Kotlin block
c

Christian Würthenr

11/07/2022, 2:32 PM
Too easy
Thanks a lot! 🙂
View count: 31