https://kotlinlang.org logo
Docs
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
  • c

    CLOVIS

    05/28/2019, 4:02 AM
    In the documentation there are many articles about using C types & functions from Kotlin, but I didn't see an article to use Kotlin types from C (eg. Making a library in Kotlin/Multiplatform and using it in C code). Is it possible?
    s
    2 replies · 2 participants
  • d

    Dmitry Motyl

    05/28/2019, 11:11 AM
    I tried to reproduce code from template of AppCode for Project with Kotlin Native framework. Unfortunately, main target cant find framework
    no such module 'shared'
    - error I created a separate framework-target and just run
    gradlew buildForXcode
    script. Do I need to execute some additional actions ?
    s
    1 reply · 2 participants
  • a

    Andy Victors

    05/29/2019, 11:14 AM
    I'm getting "unresolved reference" on all these symbols while trying to use ktor logging.
    import io.ktor.client.features.logging.DEFAULT
    import io.ktor.client.features.logging.LogLevel.HEADERS
    import io.ktor.client.features.logging.Logger
    import io.ktor.client.features.logging.Logging
    The Ktor itself is found an compiled. MPP sourceSets include
    implementation "io.ktor:ktor-client-logging:$ktor_version"
    . Invalidate Cache does not help. I'm on latest kotlin/ktor versions. Any ideas?
    r
    2 replies · 2 participants
  • b

    basher

    05/29/2019, 6:55 PM
    Can you have a mulitplatform project with a Multiplatform subproject and avoid publishing an extra binary for the subproject? I'd like it all to end up in a single AAR, but it seems no matter what I do, the sub-project module shows up in the gradle module metadata, and then dependency resolution fails when I try to use the multi-project library
    d
    l
    15 replies · 3 participants
  • g

    gildor

    05/30/2019, 9:36 AM
    It’s completely different approach to use Kotlin MPP, so it’s not easy to answer, you should understand what it provides for you The biggest thing that you cannot write common UI using Kotlin MPP like you do with QT
    r
    21 replies · 2 participants
  • m

    Marc Knaup

    05/31/2019, 4:53 PM
    I have a shared source set for objc code but it doesn't seem to work because it doesn't pick up dependencies on IntelliJ:
    objcMain <- iosArm64Main
             <- iosX64Main
             <- macosX64Main
    IntelliJ can't even resolve
    platform.darwin.*
    . Gradle builds work fine though. How can I have shared code for all objc-based platforms with dependencies intact in IntelliJ? EDIT: As a workaround I'll use the shared source set
    objcMain
    only for managing dependencies and without source files and instead symlink each platform-specific sources folder to the shared sources folder.
    d
    s
    5 replies · 3 participants
  • r

    Rohan Maity

    06/01/2019, 7:56 AM
    According to docs to for android
    plugins {
        id("com.android.library")
        id("org.jetbrains.kotlin.multiplatform").version("1.3.31")
    }
    
    android { /* ... */ }
    
    kotlin {
        android { // Create the Android target
            // Provide additional configuration if necessary
        }
    }
    . But following this I get
    CONFIGURE FAILED in 0s
    Plugin [id: 'com.android.library'] was not found in any of the following sources:
    
    - Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
    - Plugin Repositories (plugin dependency must include a version number for this source)
    I am unable to apply android closure
    g
    i
    20 replies · 3 participants
  • r

    Rohan Maity

    06/01/2019, 9:49 AM
    How Can I publish the multi lib to bintray ?
    ➕ 3
    d
    a
    +4
    34 replies · 7 participants
  • r

    russhwolf

    06/02/2019, 3:29 PM
    Are there any plans for a common version of
    String.format()
    ?
    👍 3
    r
    j
    +1
    3 replies · 4 participants
  • d

    Dmitry Motyl

    06/03/2019, 10:00 AM
    How can I change name of output framework for iOS?
    1 reply · 1 participant
  • a

    Andrey Makovskiy

    06/03/2019, 5:43 PM
    Error message when compiling iOS framework: Unresolved reference: atomicfu. Jvm library compiles and works. Can anybody help?
    -.txt
    k
    21 replies · 2 participants
  • i

    ivan.savytskyi

    06/03/2019, 8:42 PM
    hey folks: does anyone have a workaround for the https://github.com/JetBrains/kotlin-native/issues/2423 except creating a surrogate module that includes all used KN modules and produces one big framework?
    🇳🇴 1
    o
    3 replies · 2 participants
  • r

    Rohan Maity

    06/05/2019, 3:44 AM
    Does .kexe need any Kotlin compiler to execute ?
    m
    1 reply · 2 participants
  • r

    Rohan Maity

    06/05/2019, 11:39 AM
    I have created KParser multiplatform lib. Locally it builds fine. But When I tried to configure for Travis CI, it's throwing the error for
    SDK location not found . Setup sdk location by ANDROID_SDK_ROOT environment variable.
    I did setup environment variable still no build . here the
    travis.yml
    matrix:
      include:
        - language: java
          os: linux
          jdk: oraclejdk8
          script:
          - ./gradlew build
          env:
            global:
              ANDROID_SDK_ROOT=/usr/local/android-sdk
    g
    10 replies · 2 participants
  • t

    Tobi

    06/05/2019, 4:01 PM
    Hey folks, we successfully published our first kotlin multiplatform library targeting android & iOS to sign aws requests. While integrating it in one of our production android apps I stumbled over a
    java.lang.ClassNotFoundException
    while running a JUnit test for the class that collaborates with our library. This is just a problem while running JUnit tests, using the library while running the app works fine 🤔 Any idea?
    -.kt
    d
    5 replies · 2 participants
  • r

    Rohan Maity

    06/05/2019, 4:56 PM
    How Could I produce sources.jar for JVM target in multiplatform project? sourceSet for kotlin is different from normal Java
    task sourcesJar(type: Jar) {
        from kotlin.sourceSets.jvmMain.allJava
        archiveClassifier = 'sources'
    }
    I tried this following original java projects. but this didn't work
    r
    15 replies · 2 participants
  • a

    Andrey Makovskiy

    06/06/2019, 8:36 AM
    Is it possible build Apple Framework in multiplatform project with generics support? Currently all generics converted to type Any? Nothing helps.
    build_gradle.txt
    r
    k
    11 replies · 3 participants
  • k

    Kruger Brent

    06/06/2019, 2:08 PM
    Hello guys, I am working on implementing kotlin/native in one of our projects. I would like to know if there is a way to import and use objective-c or Swift libraries into kotlin? Because I saw that, in the documentation it says, the Kotlin/native plugin brings about a lot of iOS libraries to Kotlin.
    s
    k
    +2
    24 replies · 5 participants
  • m

    Marc Knaup

    06/06/2019, 2:51 PM
    It would be cool if a multiplatform projects can somehow reflect a platform's naming conventions. E.g. having a property named
    websiteUrl
    in Kotlin and
    websiteURL
    in ObjC/Swift 🙂
    d
    a
    +2
    15 replies · 5 participants
  • k

    Kruger Brent

    06/06/2019, 4:38 PM
    -.txt
    m
    6 replies · 2 participants
  • k

    Kruger Brent

    06/06/2019, 7:31 PM
    d
    i
    56 replies · 3 participants
  • d

    Dico

    06/06/2019, 11:52 PM
    In the multiplatform plugin, why does the jvmWithJava target behave differently to the jvm target defaults with respect to naming of source sets and tasks? The target's name isn't used as a prefix, so you don't get
    jvmJar
    jvmMain
    but you get
    jar
    and
    main
    h
    2 replies · 2 participants
  • m

    max.denissov

    06/07/2019, 7:33 AM
    Hello! I am trying add web client in my kotlin multiplatform project (Android/iOS work fine), but I am in a deep trouble with a module dependencies in a JS code.
    d
    7 replies · 2 participants
  • j

    jimn

    06/07/2019, 7:00 PM
    im in a blank, brand new, up-to-the-minute intellij multiplatform gradle project. i'd really like to know how to start my maven-=based learning curve into this gradle system by importing kotlinx-io
    d
    14 replies · 2 participants
  • c

    capitalthree

    06/08/2019, 11:51 AM
    I'm using a gradle multiplatform project as per the new project wizard's kotlin-jvm and kotlin-js sample webapp. I've added the jOOQ gradle plugin, and I had to add the java plugin alongside the kotlin-multiplatform plugin to get that to work (which could be the issue). I have the jOOQ plugin successfully running its code generator, but it outputs java files instead of kotlin, and I am getting NoClassDefFoundError at runtime with classes that are from java code in my kotlin source tree. What am I doing (most) wrong?
    d
    d
    +1
    13 replies · 4 participants
  • e

    egorand

    06/09/2019, 2:05 AM
    I tried providing an explicit
    extendsFrom
    value to the custom configuration, but it didn’t seem to work for
    implementation
    or
    compile
    d
    t
    +1
    10 replies · 4 participants
  • k

    kpgalligan

    06/09/2019, 9:26 PM
    Looking for multiplatform talk submissions. Have some good stuff already but really want a great KMP track.
    ✔️ 2
    a
    j
    4 replies · 3 participants
  • r

    Rohan Maity

    06/10/2019, 11:10 AM
    I have uploaded my multiplatform library to bintray. It also has
    .klib
    file on bintray . I am try to use that library in Kotlin/Native Linux application, I have added dependency Under target
    linuxX64{}
    closure
    dependencies {
                linuxImplementation 'io.kaen.dagger:KParser-linux:0.0.4'
            }
    But it throws the exception for building
    Could not find "/home/kaendagger/.gradle/caches/modules-2/files-2.1/io.kaen.dagger/KParser-linux/0.0.4/5994e54132b46843da097a56347c8c8a3a7e44a9/KParser-linux-0.0.4.klib" in [/home/kaendagger/IdeaProjects/KparserExecTest, /home/kaendagger/.konan/klib, /home/kaendagger/.konan/kotlin-native-linux-1.1.2/klib/common, /home/kaendagger/.konan/kotlin-native-linux-1.1.2/klib/platform/linux_x64].
    Do I have to manually download klib file and include it ?
    d
    4 replies · 2 participants
  • i

    ivan.savytskyi

    06/10/2019, 7:02 PM
    could someone help me to figure out why I’m seeing this error:
    Undefined symbols for architecture x86_64:
      "_OBJC_CLASS_$_UIDevice", referenced from:
          objc-class-ref in combined.o
    This happens when there is ref to UIImage class
    actual typealias Bitmap = platform.UIKit.UIImage
    s
    2 replies · 2 participants
  • m

    Marc Knaup

    06/10/2019, 10:06 PM
    Is it intentional that release frameworks don't have dSYM output? Isn't that needed for symbolicating crash logs of App Store/Testflight releases? 🤔
    k
    s
    2 replies · 3 participants
Powered by Linen
Title
m

Marc Knaup

06/10/2019, 10:06 PM
Is it intentional that release frameworks don't have dSYM output? Isn't that needed for symbolicating crash logs of App Store/Testflight releases? 🤔
k

Kris Wong

06/10/2019, 10:20 PM
it definitely seems backwards to me. they're only included for debug.
s

svyatoslav.scherbina

06/11/2019, 7:55 AM
https://github.com/JetBrains/kotlin-native/issues/2422
🙏 2
View count: 2