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
kotlin-native
  • j

    James Smith

    08/08/2018, 4:58 PM
    Can I get some pointers about usage of
    cinterop -flavor=jvm
    ? I'm interested in interop between K/N and Kotlin jvm without JNI
    ➕ 3
    s
    • 2
    • 3
  • n

    napperley

    08/09/2018, 1:30 AM
    Is there any documentation available for the kotlinx.interop (supports DOM operations)/*kotlinx.wasm* (covers JS interop) libraries, and the jsinterop tool?
    • 1
    • 3
  • h

    hmole

    08/09/2018, 10:34 AM
    I created a setup with a common module and 3 modules for each platform. No code in platform modules, only models defined in common. The jvm and js platforms are building fine, but native only builds some test executable.
    s
    • 2
    • 1
  • h

    hmole

    08/09/2018, 10:35 AM
    I did everything as in https://github.com/ilmat192/Kotlin-Native-Gradle-Experiments/blob/master/build.gradle
    i
    • 2
    • 1
  • k

    Konstantin Petrukhnov

    08/09/2018, 10:43 AM
    Trying upgrade from 0.7.1. to 0.8. Got "konan.worker.InvalidMutabilityException: mutation attempt of frozen" (https://github.com/JetBrains/kotlin-native/issues/1775) I have object GlobalServices , that have several lateinit fields, that initialized during app startup. What would be the right way to fix it? Kotlin code is used as library in Swift iOS project. Services that initialized inside kotlin, require some params, and depends on each other. Also having global object, allow to retrieve corresponding service directly from class.
    k
    o
    • 3
    • 18
  • y

    yusuf3000

    08/09/2018, 2:29 PM
    I’m having a very annoying issue that I can’t seem to debug. I keep getting an exception everytime i try to check equality of 2 kotlin native objects on iOS. The debugger isn’t giving me much helpful information which parameter it’s struggling to equate. Here is a github link: https://github.com/yusufcareem/KotlinNativeTestApp
    k
    s
    • 3
    • 15
  • d

    Dmitry Kandalov

    08/10/2018, 7:23 AM
    Hello. There is
    konanc_test
    function in Kotlin/Native CMake which as I understand can be used to tell CLion which directory contains tests. Is there a way to generate CMake with
    konanc_test
    entry from
    build.gradle
    ?
    o
    r
    +2
    • 5
    • 7
  • n

    napperley

    08/11/2018, 1:49 AM
    Is the intention with the JS interop (via WASM) in Kotlin Native that the Kotlin Native sources are modified to add support for missing web APIs? Ends up being a very cumbersome way to expand web API support where compile time is factored in (slows development down), there are multiple places edited in the code base (increased chance of making mistakes/more difficult to troubleshoot problems), and a custom version of Kotlin Native has to be maintained (increased maintenance burden) separately from the official one.
    o
    s
    • 3
    • 4
  • t

    thevery

    08/11/2018, 9:39 PM
    @jb.igor.chevdar changelog for 0.8.2, please 🙂
    n
    • 2
    • 1
  • s

    sksk

    08/12/2018, 11:43 AM
    Few month ago someone mentioned that you were working on a single compiler for all platforms (i don't remember what it was exactly), wich would result in improved build time, is there progress on this? if so where can i follow the development?
    m
    t
    +2
    • 5
    • 31
  • r

    russhwolf

    08/12/2018, 5:27 PM
    Is there an example of configuring iOS tests to run on the simulator using the new gradle plugin? Or is that not supported yet?
    t
    • 2
    • 3
  • k

    Konstantin Petrukhnov

    08/13/2018, 7:11 AM
    Is there some project stub for ios, that I could fork for bug report?
    o
    • 2
    • 1
  • t

    tylerwilson

    08/14/2018, 8:20 PM
    I am very excited for some K/N shared code between Android and iOS. Just need that serialization and ktor client to get just a little further… 🙂
    e
    k
    g
    • 4
    • 7
  • m

    Mohit Gurumukhani

    08/15/2018, 10:16 PM
    Hey! I am trying to build an mpp project with android and native (ios) modules. In the common module, I have @Serialization annotation which cannot be shared with native because serialization support is limited. Is there a suggested workaround?
    a
    • 2
    • 4
  • r

    rjhdby

    08/16/2018, 10:12 AM
    Hi! I'm compiled shared library for using inside C project. But received
    Segmentation Fault
    when use it.
    gdb
    shows surprising error
    Program received signal SIGSEGV, Segmentation fault.
    kfun:kotlinx.cinterop.toKString@kotlinx.cinterop.CPointer<kotlinx.cinterop.ByteVarOf<kotlin.Byte>>.()kotlin.String ()
        at /opt/buildAgent/work/4d622a065c544371/Interop/Runtime/src/main/kotlin/kotlinx/cinterop/Utils.kt:402
    402     /opt/buildAgent/work/4d622a065c544371/Interop/Runtime/src/main/kotlin/kotlinx/cinterop/Utils.kt: No such file or directory.
    o
    • 2
    • 5
  • k

    Krizzu

    08/17/2018, 8:23 AM
    Hey, question about KN gradle plugins: what’s the difference between
    konan
    plugin and those new experimental ones? Is
    Konan
    used for mutliplatform or just single platform?
    d
    a
    n
    • 4
    • 7
  • m

    Mohit Gurumukhani

    08/17/2018, 11:59 PM
    Hey! I wanna use Apple’s open source library CommonCrypto in my Kotlin/Native for ios project. I have a .def file which compiles using cinterop command. However, I am having trouble importing it in a module using gradle file. I am using kotlin-platform-native plugin and there is no documentation on interop for this.
    t
    • 2
    • 1
  • k

    Konstantin Petrukhnov

    08/20/2018, 7:04 AM
    How i could get latest 0.8.2.x version via gradle? https://github.com/JetBrains/kotlin-native/releases/tag/v0.8.2 says it was released 6 days ago... but e.g. on mvnrepo 0.8.2 is from August 10.
    i
    m
    • 3
    • 12
  • r

    rjhdby

    08/20/2018, 11:27 AM
    Very annoying and helpless error from
    cinterop
    if you have 20 macro-proxy func with 3 args in
    .def
    😫
    Exception in thread "main" java.lang.Error: /tmp/tmp399964332777824085.c:103:38: error: too many arguments to function call, expected 2, have 3
            at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:137)
            at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.indexDeclarations(Indexer.kt:902)
            at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.buildNativeIndexImpl(Indexer.kt:892)
            at org.jetbrains.kotlin.native.interop.indexer.NativeIndexKt.buildNativeIndex(NativeIndex.kt:56)
            at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:283)
            at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:38)
            at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:100)
            at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:29)
    o
    • 2
    • 3
  • r

    rjhdby

    08/22/2018, 11:24 AM
    Hello. Is there a way to check for instance of erased type in this case?
    fun mixedFrom(value: Any?) = when (value) {
        null                                            -> createPhpNull()
        is CPointer<zval>                               -> value
        else                                            -> value.toString().mixed
    }
    error: cannot check for instance of erased type: CPointer<zval /* = _zval_struct */>
        is CPointer<zval>                                     -> value
    s
    • 2
    • 3
  • a

    amorenew

    08/22/2018, 4:24 PM
    I wonder if KN works well with Firebase Crashlytics for iOS or it gives misguided reports?
    s
    o
    k
    • 4
    • 5
  • m

    mutexkid

    08/22/2018, 6:00 PM
    should kotlin code insight & autocomplete be working correctly when using the the kotlin/native plugin (Version: 182.4129.51) with clion (2018.2.2) ? wondering if its my particular configuration or if this isn’t supported currently?
    d
    • 2
    • 4
  • l

    Lucas Amaral

    08/22/2018, 7:35 PM
    Hi, can anyone, please help me? I'm trying to build the compiler and libraries and I'm getting this error:
    -.txt
    m
    o
    • 3
    • 4
  • m

    mutexkid

    08/22/2018, 10:39 PM
    is an extra linkerOpts needed within the “program” portion of the konanArtifacts element possibly?
    m
    • 2
    • 7
  • a

    Aregev2

    08/23/2018, 9:53 AM
    I cannot find K/N 0.8.2 on snap, anyone knows why?
    o
    • 2
    • 1
  • k

    kpgalligan

    08/23/2018, 2:07 PM
    Kotlinx serialization? Not sure of object matching status for native
    o
    • 2
    • 1
  • n

    Nikky

    08/23/2018, 3:18 PM
    just looking throught he platform libraries in the kotlin-native repo.. seems like there is opengl32 for mings and OoenGL/OpenGL3 for osx but nothing for linux ?
    o
    • 2
    • 1
  • m

    Mohit Gurumukhani

    08/23/2018, 11:17 PM
    Hey! I am getting a warning: expected data layout hash: <some huge int> but actual is: <another huge int>. Is this warning significant? I am using Appcode on OSX for ios development using Native if it helps.
    o
    • 2
    • 2
  • j

    jkbbwr

    08/24/2018, 2:36 AM
    Is there a way to compile without OS support (not via zephyr)
    o
    • 2
    • 6
  • j

    jonnyzzz

    08/24/2018, 5:25 PM
    Kotlin/Native 0.8.2 is out https://blog.jetbrains.com/kotlin/2018/08/kotlin-native-0-8-2/
    👍 16
    :gradle: 8
    t
    r
    +2
    • 5
    • 4
Powered by Linen
Title
j

jonnyzzz

08/24/2018, 5:25 PM
Kotlin/Native 0.8.2 is out https://blog.jetbrains.com/kotlin/2018/08/kotlin-native-0-8-2/
👍 16
:gradle: 8
t

trevjones

08/24/2018, 5:41 PM
Starting from this release, we no longer support CMake for Kotlin/Native projects in CLion.
🍻
r

russhwolf

08/24/2018, 6:19 PM
Does the CLion update include support for the
kotlin-platform-native
plugin or just
konan
?
v

Vyacheslav Karpukhin [JB]

08/24/2018, 7:03 PM
Only
konan
.
r

raniejade

08/25/2018, 10:41 PM
Awesome work! My only problem now is sources from interops are not marked as source dirs. Is it expected?
View count: 5