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
  • v

    Vivek Modi

    05/10/2022, 1:03 PM
    Hey guys, I am reading this Creating your first Kotlin Multiplatform library. I updated the maven-publish Gradle plugin. After that I run the command .
    /gradlew publishToMavenLocal
    . I am getting error
    Execution failed for task ':generateMetadataFileForIosArm64Publication'.
    > java.io.FileNotFoundException: /Users/vmodi/IdeaProjects/AndroidModule/build/classes/kotlin/iosArm64/main/klib/AndroidModule.klib (No such file or directory)
    k
    a
    • 3
    • 25
  • t

    Trey

    05/10/2022, 1:25 PM
    I need to add chunking to some code that I was hoping to push down into commonMain. I have a web socket that blasts messages like a fire hose and I need to batch them by time or size. We have this logic implemented in Android already using some code that seems to be used widespread from Pin-Sho Feng. I believe that I'm not able to use that because timer is defined in kotlinx-coroutines-core-jvm. The compiler can't find it when I move the code to commonMain. Can somebody recommend a solution that would allow me to have my repository contain the web socket so that it can cache the messages in a local database? I'd like to have this repo used by iOS too.
    e
    • 2
    • 4
  • h

    Hasan Nagizade

    05/10/2022, 2:31 PM
    Why most(99%) KMM examples use Jetpack Compose? XML is really dead?
    :headstone: 2
    :yes: 1
    l
    c
    +5
    • 8
    • 10
  • a

    Anders Kielsholm

    05/10/2022, 11:16 PM
    Not sure if this is the appropriate channel, but hope you can help 🙂 After updating to Chipmunk (Android Studio), the editor editor suddenly states that there's an "unresolved reference" to one of my model classes (that's located in another module). I have two "core" modules (multiplatform with a JVM target), a shared (multiplaform with an Android target) module and my main android app module (standard Android module). The weird thing is that it builds and runs - it's just the editor that complains. Furhtermore, the references I have in the shared module to the core modules aren't complaining. And the references from the android module to the shared module is also fine. It's just that single reference from the Android module to the core module with my model classes. It wasn't an issue until yesterday when I updated to Chipmunk so I assume it's related to that. I tried downgrading gradle/AGP without any luck. Might just be a visual thing, but autocomplete is tottally broke when it comes to the model classes. Anyone else experiencing the same? Hope you'll be able to help - thanks in advance.
    ➕ 3
    :yes: 4
    👍 6
    e
    i
    +11
    • 14
    • 160
  • m

    Marc Javier

    05/11/2022, 2:25 AM
    would I be able to use multiplatform for tizen and webos?
    d
    • 2
    • 2
  • l

    lilypuchi

    05/11/2022, 8:37 AM
    I may sound pretty vague but are there any samples or resources for KMM project Github Actions? :blob-sweat-smile:
    👀 1
    w
    k
    • 3
    • 6
  • a

    Alejandro Moya

    05/11/2022, 2:18 PM
    Good morning! I’m creating a kmm library for my apps and ran into an issue, the external libraries are showing that I have java 1.8, even having selected java 11 on the project settings and also having the kotlin and java tasks set to use java 11 as the target and compatibility version, does anyone know what could be causing this?
    • 1
    • 2
  • j

    Jochem Verboom

    05/12/2022, 6:34 AM
    Quick question: I have a big production-ready native iOS app for which I also want to develop an Android app. I really want to make sure the business logic is shared between these two projects, so KMM seems very interesting. On the Kotlin website I see that the KMM is currently classified as Alpha stage? Is there a roadmap/planning when you expect to classify this as Beta?
    k
    m
    l
    • 4
    • 4
  • r

    Ran

    05/12/2022, 8:36 AM
    Is there anyone who can do me a favor? When I add the npm dependency for jsMain sourceset, all sourcesets cannot be distinguished by the IDEA.
    a
    • 2
    • 2
  • c

    Charles Prado

    05/12/2022, 10:53 AM
    Hi! I’m facing some weird behaviors using async/await on the iOS side to consume stuff from the shared module. It only happens to me on the Release version of the app. For example: In debug mode, if I turn off my internet connection and call a method from shared that does an API request, it emits an error. However, in the Release mode, that error is not being emitted. Does anyone here have ever faced this type of weird behavior?
    d
    • 2
    • 2
  • c

    cagdas

    05/12/2022, 4:53 PM
    Hi! I’ve been trying to build and distribute a KMM project on CI environment for iOS and trying to use the
    linkReleaseFrameworkIosFat
    gradle task to build the shared framework. However when I run it (both from the terminal or from the gradle tasks section of Android studio), I get this error.
    class org.jetbrains.kotlin.gradle.tasks.FrameworkDescriptor cannot be cast to class org.jetbrains.kotlin.gradle.plugin.mpp.Framework (org.jetbrains.kotlin.gradle.tasks.FrameworkDescriptor and org.jetbrains.kotlin.gradle.plugin.mpp.Framework are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @334f46fa)
    I can’t find any mention of this issue anywhere. Has anyone run into such problem? Any suggestions on what to check?
    • 1
    • 2
  • p

    Pavel Repkin

    05/13/2022, 5:31 AM
    I have a class with width and height properties in Kotlin declared.
    var width: Int = 0
    var height: Int = 0
    They turn to width_ and height_ in Swift. Do you have any idea why the underscore was added at the end of the property names?
    @property (getter=width__) int32_t width_ __attribute__((swift_name("width_")));
    @property (getter=height__) int32_t height_ __attribute__((swift_name("height_")));
    Any help appreciated!
    r
    • 2
    • 3
  • h

    Hasan Nagizade

    05/13/2022, 6:21 AM
    How do you guys implement Firebase in multiplatform project? Firebase push notifications, crashlytics etc.
    t
    • 2
    • 1
  • v

    Vivek Modi

    05/13/2022, 10:42 AM
    Hey guys, Can somone help me on publishing library on maven repository. I am new in publish library. Actually my goal is to publish artifact in private repository. But I start from basic. I have knowledge to store
    mavelLocal
    . I want to learn more. Thanks
    a
    l
    • 3
    • 11
  • s

    samuele794

    05/13/2022, 12:32 PM
    Hi, just for info: for use this library https://github.com/gitliveapp/firebase-kotlin-sdk i need add other configuration (exclude google json/plist) for use in test? I imported it in KaMPKit and when i start compile for iOSTest continually doesn't find something from Framework
    t
    • 2
    • 4
  • x

    xiaobailong24

    05/13/2022, 2:32 PM
    Cross posting this here. Could you please help me. https://youtrack.jetbrains.com/issue/KT-52378/KMM-Xcode-iOS-project-integrates-two-KMM-frameworks-one-is-legac
    d
    • 2
    • 2
  • m

    mkrussel

    05/13/2022, 6:19 PM
    I'm publishing a XCFramework that I create from Kotlin. There are several cases of functions and classes that are useful from using from Kotlin but not from Swift or Objective-C. Are there any compiler plugins that will strip classes/functions from the header file created for the frameworks. I still want the symbols there since they are likely used internally by the library, I just don't want them to be part of my public API. If there is not a plugin out there, any help finding information about creating a plugin that changes the header that gets created would be appreciated.
    k
    p
    • 3
    • 10
  • c

    colintheshots

    05/13/2022, 6:53 PM
    I know it’s a big ask, but KMM composite builds need to be fixed. This issue is causing red text and syntax errors all around our project. I cannot try out Live Edit, let alone Preview a lot of elements properly because of false errors coming from our shared KMM module. The number of YouTrack bug reports is making it hard to navigate or to find status or progress. Does anyone know if there will be any effort put into solving this soon? It sounds like it’s not even on a roadmap yet. https://youtrack.jetbrains.com/issue/KT-52172/Multiplatform-Support-composite-builds
    ➕ 5
    🙏 2
    e
    m
    +2
    • 5
    • 8
  • l

    lilypuchi

    05/14/2022, 6:07 AM
    I’m trying to add a foreign key through migration for my SqlDelight table as follows,
    0.sqm
    CREATE TABLE IF NOT EXISTS entry(
        ...
    );
    1.sqm
    PRAGMA foreign_keys=off;
    BEGIN TRANSACTION;
    CREATE TABLE IF NOT EXISTS entry_temp(
        ...
        key INTEGER,
        FOREIGN KEY(key) REFERENCES ...
    );
    INSERT INTO entry_temp (...) SELECT * FROM entry;
    
    DROP TABLE entry;
    ALTER TABLE entry_temp RENAME TO entry;
    COMMIT;
    PRAGMA foreign_keys=on;
    But upon running
    generateCommonMainDBInterface
    task I get an error for with the following stacktrace.
    > A failure occurred while executing com.squareup.sqldelight.gradle.SqlDelightTask$GenerateInterfaces
       > Failed to compile SqlInsertStmtImpl(INSERT_STMT): [] :
         INSERT INTO entry(...)
         VALUES (?, ?, ?, ...)
    
    java.lang.IllegalStateException: Cannot get reference table for psi type class sqldelight.com.alecstrong.sql.psi.core.psi.impl.SqlNewTableNameImpl
    This
    INSERT
    statement is written in the
    .sq
    file and is syntactically correct. However if I don’t rename the table and use
    entry_temp
    as it is (with necessary changes in
    .sq
    file as well), the task runs successfully. Am I missing something here? :blob-thinking-fast:
    e
    • 2
    • 1
  • h

    Hasan Nagizade

    05/14/2022, 6:23 AM
    I want to use this library to replace SharedPreferences in Multiplatform project. I want to store token from Firebase. Firebase needs you to create a service in Android side which you can’t put in commonMain. How can I access Settings from a service in androidApp? https://github.com/russhwolf/multiplatform-settings
    r
    • 2
    • 6
  • a

    Android75

    05/14/2022, 3:28 PM
    [resolved]First time in KMP, i created my first project and have this problem.
    'pod install' command failed with code 134.
    Error message:
    Analyzing dependencies
    Please, check that podfile contains following lines in header:
    source '<https://cdn.cocoapods.org>'
    Please, check that each target depended on shared contains following dependencies:
    I installed cocoapods with command
    sudo gem install cocoapods
    • 1
    • 2
  • e

    eygraber

    05/15/2022, 6:27 AM
    If I have an
    expect fun test()
    and 1 target, which already has a
    fun test() {}
    (and doesn't have the
    actual
    keyword), is that supposed to work, or does
    actual
    need to be specified?
    a
    • 2
    • 2
  • j

    Jason5lee

    05/16/2022, 4:13 AM
    I got a lot of
    > Could not resolve all files for configuration ':linuxArm64CompileKlibraries'.
       > Could not resolve io.ktor:ktor-io:1.6.7.
         Required by:
             project :
          > No matching variant of io.ktor:ktor-io:1.6.7 was found. The consumer was configured to find a usage of 'kotlin-api' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'linux_arm64' but:
              - Variant 'commonMainMetadataElements' capability io.ktor:ktor-io:1.6.7 declares a usage of 'kotlin-api' of a library:
                  - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
                  - Other compatible attributes:
                      - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                      - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'linux_arm64')
    when I tried to publish a multiplatform library. How should I fix it?
    a
    • 2
    • 2
  • j

    Jason5lee

    05/16/2022, 8:12 AM
    Can I let multiple targets, but not all, uses the same sourceset? How?
    a
    • 2
    • 1
  • s

    Sebastian Sellmair [JB]

    05/16/2022, 11:40 AM
    Hello Folks 👋 I have recently participated in several threads here, that convinced me, that it might be a good idea to organise a virtual meetup. The idea is that everyone can freely share his experiences/issues and future wishes for Kotlin Multiplatform in a relaxed environment and maybe we could just have some fun conversation. 🕐 5:00-6:00pm CET/Munich time :virtual-meeting: Multiplatform Community Meeting Monday, May 16 · 5:00 – 6:00pm Google Meet joining info Video call link: https://meet.google.com/hsb-vmdm-kgc Or dial: ‪(DE) +49 40 8081616930‬ PIN: ‪558 126 432‬# More phone numbers: https://tel.meet/hsb-vmdm-kgc?pin=4405620035258 Feel free to join and present your thoughts, or just mute and listen, either is just fine! Looking forward to it! Feel free to 😛lus1: , to announce that you would like to participate!
    ❤️ 9
    :plus1: 12
    r
    a
    i
    • 4
    • 4
  • v

    vanniktech

    05/16/2022, 4:08 PM
    Thanks @Sebastian Sellmair [JB] for hearing us out and explaining some more technical challenges. Regarding the gradle sync being retriggered when reopening the project, I first noticed this in Android Studio: https://issuetracker.google.com/issues/232112721 Then I switched to IntelliJ, which has the same issue with a different underlying reason though: https://youtrack.jetbrains.com/issue/IDEA-294146/ Then I've tried deleting
    .idea
    &
    .gradle
    directories and then re-opening the project - but now no modules are listed at all: https://youtrack.jetbrains.com/issue/IDEA-294148/
    :fist_bump: 1
    💯 2
    ➕ 2
    s
    e
    • 3
    • 7
  • e

    eygraber

    05/16/2022, 4:19 PM
    What determines the value of
    isCompatibilityMetadataVariantEnabled
    in
    kotlin-tooling-metadata.json
    ? I'm seeing it set to
    true
    in all of the dependencies that I use (e.g. coroutines), except for a library that I publish (e.g. portal), where it is
    false
    .
    r
    k
    s
    • 4
    • 11
  • e

    eygraber

    05/16/2022, 5:45 PM
    If my multiplatform library doesn't have any native targets, should there be a klib generated for it?
    s
    v
    • 3
    • 12
  • e

    eygraber

    05/16/2022, 6:54 PM
    Is there any way to associate a
    KotlinSourceSet
    with a specific
    KotlinTarget
    ? e.g.:
    kotlin.targets.configureEach {
      kotlin.sourceSets.configureEach {
        // only do something with this source set if it is associated with the target 
      }
    }
    n
    • 2
    • 2
  • e

    eygraber

    05/17/2022, 8:48 AM
    @Sebastian Sellmair [JB] in this thread you mentioned that:
    The project has just one target (Android) defined. The Kotlin IDE plugin will detect that this is Android, and that commonMain is effectively an Android source set as well (that's the intersection of all platforms)
    Is there a reason the plugin does this? I've occasionally run into issues because this allows Android/jvm code in common which can be a big pain when I add more targets later. I usually start off my projects only targeting Android or JVM (because that's where I'm most comfortable so I can move faster), and later adding support for the other targets (native, js, etc...).
    👀 1
    ➕ 1
    d
    s
    +2
    • 5
    • 14
Powered by Linen
Title
e

eygraber

05/17/2022, 8:48 AM
@Sebastian Sellmair [JB] in this thread you mentioned that:
The project has just one target (Android) defined. The Kotlin IDE plugin will detect that this is Android, and that commonMain is effectively an Android source set as well (that's the intersection of all platforms)
Is there a reason the plugin does this? I've occasionally run into issues because this allows Android/jvm code in common which can be a big pain when I add more targets later. I usually start off my projects only targeting Android or JVM (because that's where I'm most comfortable so I can move faster), and later adding support for the other targets (native, js, etc...).
👀 1
➕ 1
d

darkmoon_uk

05/17/2022, 9:22 AM
On the face of it this doesn't sound like a helpful behaviour, interested in what the reason may be...
s

Sebastian Sellmair [JB]

05/17/2022, 9:47 AM
Yes there is a IMHO good reason for this. You are requesting a feature like “anticipating future targets” in the tooling, which we do not yet have! Until then, common source sets will try to show you all code that actually compiles inside it (which in a single platform case is the whole platform)
m

Michael Paus

05/17/2022, 10:32 AM
I’d like to add the following: 1. This also works for projects which have an Android AND JVM target. 2. At first I thought that this is a bug but then I was told here that it’s actually a feature. 3. I use that heavily because it seems to be the only reasonable way to deal with projects with substantial dependencies on Java libraries which you cannot easily externalize via expect/actual. 4. This restricts me to this combination of targets but that’s all I need at the moment. If I should ever have to support iOS I am tempted to compile all my model stuff (Kotlin and Java libs) into a single shared library via GraalVM/native-image as it is done in Gluons JavaFX mobile world all the time already.
d

darkmoon_uk

05/17/2022, 11:08 AM
All this time I thought that the 'common' API was fixed - are we to understand that the 'common' API surface is actually dynamically computed as the union of all target API's?
s

Sebastian Sellmair [JB]

05/17/2022, 11:29 AM
No since 1.6.20 commonMain is computed as the union of your targets. If you have linuxX64, iosX64 and jvm platforms, then the internal platform representation of commonMain is now not ‘common’ but, `(linuxX64, iosX64, jvm)
We want, at some point, to give the users full control on manually restricting source sets (to make it easer adding targets later in the future).
d

darkmoon_uk

05/17/2022, 12:30 PM
Thanks @Sebastian Sellmair [JB], sorry just to repeat back to confirm my understanding: • Before
1.6.20
'common' was a fixed API • In
1.6.20
and beyond this has changed (improved) so that 'common' is the dynamically computed union of targets
s

Sebastian Sellmair [JB]

05/17/2022, 12:33 PM
Yes! Just a minor addition: The key differentiation factor here is if hmpp (hierarchical multiplatform) is enabled or not (which got enabled by default in 1.6.20)
m

Michael Paus

05/17/2022, 12:51 PM
I have to admit that the wording is confusing me a bit. Is it really the union and not the intersection?
e

eygraber

05/17/2022, 2:10 PM
Interesting, I always assumed that commonMain only allowed "common" Kotlin, and that this behavior was a bug. Looking forward to the future ability to restrict this 😁
s

Sebastian Sellmair [JB]

05/17/2022, 2:28 PM
@Michael Paus: You should see the API intersection of all your platforms, but the “platform description” is the union: Like: “What platform is commonMain? Oh it supports Platform A, B, C, D”. But agree: Super confusing when we talk about this!
e

eygraber

05/18/2022, 1:01 AM
@Sebastian Sellmair [JB] is there any hacky way to manually restrict the source set until the feature is built, or will we just have to have patience?
h

handstandsam

05/31/2022, 4:27 PM
Just compile it for a non-android target and you’ll see if it’s compatible. Should be easy to do in CI or during development.
e

eygraber

06/01/2022, 7:03 AM
@handstandsam the problem with that is if there's a lot of
expect
that isn't actualized for the non-android target it wouldn't compile.
View count: 12