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

    albertgao

    04/12/2018, 12:58 AM
    What is the latest status for kotlin.serialization support for KN?🤔 https://github.com/Kotlin/kotlinx.serialization/issues/86 This issue hasn’t got any official reply. Will it even happen?
    g
    s
    o
    • 4
    • 12
  • s

    spierce7

    04/12/2018, 3:32 PM
    @olonho Is any sort of weak reference, or weakmap planned for kotlin-native?
    o
    j
    d
    • 4
    • 7
  • a

    agrosner

    04/12/2018, 4:36 PM
    any plans for also
    AtomicReference
    o
    • 2
    • 1
  • s

    sdeleuze

    04/12/2018, 7:38 PM
    If somebody want to start an Open Source project based on Kotlin/Native (and possibility some multiplatform features), it would be interesting to know the upcoming IDE (https://kotlinlang.slack.com/team/U3SK5B492) will be free of use for that use case because I think this is a key point for adoption by the Open Source community. Any chance to have some info about that?
    o
    s
    h
    • 4
    • 5
  • a

    agrosner

    04/14/2018, 1:28 PM
    this may have beeen asked already, but is there any example ios projects written in kotlin using cocoapods? does konan do the proper linking to them, or is there a way via gradle to include them?
    o
    j
    m
    • 4
    • 18
  • j

    jo

    04/14/2018, 4:44 PM
    When it comes to using cinterop with pure-header libraries like stb_image.h, do I need to make a file like placeholder.c that just includes the header? Or can I just do #include in the interop.def file? I've run into some problems on both, so I'm not sure which obstacle I should try to surmount.
    o
    • 2
    • 2
  • j

    jkbbwr

    04/17/2018, 1:37 AM
    With some help from the Kt native team im sure it could be made more stable and then it could provide a massive boon to the kt/native ecosystem
    o
    • 2
    • 9
  • m

    molikto

    04/17/2018, 9:36 AM
    any resource on Kotlin Native internal? like GC, memory layout, how is LLVM used etc.
    o
    d
    o
    • 4
    • 8
  • a

    anidotnet

    04/20/2018, 12:21 PM
    great news @olonho. Any idea when we can create static binary using k/n like golang?
    o
    • 2
    • 4
  • l

    louiscad

    04/20/2018, 12:48 PM
    Are there any plans to make AppCode wizard generate iOS projects that don't use a Storyboard but create views from code? There are some resources about it in Swift. Would be nice to get on track when creating a Kotlin/Native AppCode iOS project. Here are 2 resources I found: https://medium.com/@Dougly/a-uiviewcontroller-and-uiviews-without-storyboard-swift-3-543096e78f2 https://medium.com/ios-os-x-development/ios-start-an-app-without-storyboard-5f57e3251a25
    v
    • 2
    • 1
  • s

    spierce7

    04/20/2018, 6:23 PM
    When will Kotlin-native be ready for performance testing?
    o
    m
    o
    • 4
    • 6
  • r

    rellenberger

    04/20/2018, 7:23 PM
    Will Kotlin/Native ever create Swift Frameworks?
    s
    • 2
    • 1
  • o

    oleksiyp

    04/21/2018, 7:11 PM
    Hi all. Have an issue building in IDEA freshly checked out kotlin-native from master branch. Not able to resolve MetaVersion from generated KonanVersion. Any ideas? https://gist.github.com/oleksiyp/50bbcd1f0a80a475ebae56b2e5cfe7fa
    o
    m
    • 3
    • 30
  • s

    sdeleuze

    04/22/2018, 1:12 PM
    I am tempted to start working on adding Kotlin/Native WASM support to https://github.com/jdemeulenaere/komponent by turning it into a MPP project. I guess I will have to extend current Web/DOM API support, could it be possible to have some guidance about how to do that?
    o
    • 2
    • 1
  • s

    sdeleuze

    04/22/2018, 5:58 PM
    Could it be possible to have at some point a Web/DOM multiplateform common API with JS and Native implementation ?
    o
    • 2
    • 1
  • d

    devbridie

    04/23/2018, 3:52 AM
    Hey, just getting started with KN so I'm not sure if this is expected behavior: I have no completes on stdlib functions such as
    println
    . I'm using gradle according to https://github.com/JetBrains/kotlin-native/blob/master/GRADLE_PLUGIN.md .
    o
    • 2
    • 3
  • j

    Jason Miesionczek

    04/23/2018, 2:45 PM
    Hi. getting started with K/N. Trying to create an interop lib for libFUSE. Def file:
    headers fuse3/fuse_lowlevel.h
    compilerOpts = -lfuse3
    when i run cinterop as such:
    cinterop -def libfuse.def -copt -I/usr/include -o libfuse
    I get this error:
    Exception in thread "main" java.lang.Error: /usr/include/fuse3/fuse_lowlevel.h:22:2: error: FUSE_USE_VERSION not defined
    	at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:137)
    	at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.indexDeclarations(Indexer.kt:898)
    	at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.buildNativeIndexImpl(Indexer.kt:888)
    	at org.jetbrains.kotlin.native.interop.indexer.NativeIndexKt.buildNativeIndex(NativeIndex.kt:56)
    	at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:307)
    	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)
    This is normal when a
    #define FUSE_USE_VERSION 31
    does not appear before the header is included. Is there anyway I can do this? I tried adding the
    ---
    and putting the define after that, but the docs indicate that this is for adding stuff AFTER the headers have been processed. Is there a way to add something before the headers?
    v
    • 2
    • 2
  • k

    keith

    04/23/2018, 4:36 PM
    Is there a linker option or such that a framework can expose all the public methods of a kLib that it depends on? That is to say I have an app A that has a dependency on Framework B which in turn has a dependency on kLib C. Within app A some of the classes from the kLib are exposed but not all of them. (It only exposes classes I’ve explicitly used in framework B) Perhaps I should be using dynamic libraries, its been a long time since I’ve built iOS apps 😅 Any insight would be appreciated
    o
    s
    • 3
    • 3
  • k

    khairil.ushan

    04/24/2018, 7:34 PM
    But i got this error on my actual implementation
    The feature "multi platform projects" is experimental and should be enabled explicitly
  • k

    khairil.ushan

    04/24/2018, 7:42 PM
    Im trying to access iOS framework in this native module? How can i do that? Seems like it’s not possible for now via Intellij IDEA. But if i try to open the MP project in CLion or AppCode, the IDE can’t recognize any module….
    o
    • 2
    • 9
  • s

    spierce7

    04/25/2018, 3:52 AM
    @olonho Do you have any idea when Kotlin/native will get support from kotlinx.coroutines? I've been developing an android app as a MPP, but lack of kotlinx.coroutines support is blocking me from compiling it to iOS.
    o
    e
    a
    • 4
    • 3
  • l

    Leonid Popescu

    04/25/2018, 9:00 AM
    Hi, does K/N expect all the properties of a class to be nonatomic? Lets say I have this interface in K/N:
    interface SomeInterface {
        var aProperty: String
    }
    the generated ObjC interface would be
    @protocol AIKSomeInterface
    @required
    @property NSString* aProperty;
    @end;
    and implementing it, with setters and getters in ObjC is not allowed because it’s seen as
    atomic
    , if my class declares the property as
    @property (nonatomic) NSString* aProperty;
    then it shows warnings that atomicity is not the same as in protocol. can we ignore it for now or better just to use functions for getters and setters instead of properties ?
    s
    • 2
    • 3
  • y

    yusuf3000

    04/25/2018, 1:03 PM
    I’m still encountering a bug with common tests being run on iOS platform failing because the class it is testing is internal:
    error: cannot access 'UpdateBookingCommandAction': it is internal in 'com.framework.action'
            assertEquals(action.booking.latitude, 0.toDouble())
    I remember seeing a bug report for it, I was wondering if there is a fix for this yet? The unit tests run fine when testing on android platform.
    o
    • 2
    • 1
  • f

    fitzoh

    04/27/2018, 4:44 PM
    any more reading/examples on the maven artifacts?
    o
    • 2
    • 3
  • s

    spierce7

    04/28/2018, 4:47 AM
    Are there any plans to add destructors to Kotlin/native? I'm aware there is a stack overflow answer on this, but it's a year old, and things change.
    o
    n
    t
    • 4
    • 8
  • s

    spierce7

    04/28/2018, 9:50 PM
    What happens if we forget to freeze an object that is shared between threads with kotlin-native?
    e
    o
    • 3
    • 2
  • b

    brabo-hi

    04/30/2018, 1:57 AM
    Can Kotlin native replace Swift as Official programming language for iOS?
    g
    o
    • 3
    • 2
  • s

    Sam

    04/30/2018, 6:08 AM
    Are there any plans to make it easier to create universal frameworks? Right now I'm compiling an arm and x64 version of my ios framework and then using
    lipo
    to glue them together. Previously I was able to just reference both framework versions in my project but something must have changed with either
    0.7
    or Xcode 9.3 as I started to get architecture related build errors. My current solution is to invoke a shell script that creates the framework directory, uses lipo to glue the two architectures together and then copies over the header and module map.
    o
    • 2
    • 1
  • m

    molikto

    04/30/2018, 7:55 AM
    does IntelliJ IDEA support Kotlin Native now via Gradle or not?
    👍 1
    a
    o
    v
    • 4
    • 7
  • s

    sendilkumarn [JHipster]

    04/30/2018, 2:41 PM
    Hey all, Is there any link that is available for Kotlin + webAssembly ?
    o
    g
    • 3
    • 4
Powered by Linen
Title
s

sendilkumarn [JHipster]

04/30/2018, 2:41 PM
Hey all, Is there any link that is available for Kotlin + webAssembly ?
o

orangy

04/30/2018, 4:22 PM
I believe using Google to search for exact these two words will bring you quite a bit of articles to read on the topic.
s

sendilkumarn [JHipster]

04/30/2018, 5:47 PM
Thanks of course I did do that. But the question is in general about the status and what are in the roadmap? I looked into kotlin native repo but cannot find any issues on that.
g

gildor

05/02/2018, 2:30 AM
@sendilkumarn [JHipster] There are some issues and pull requests: https://github.com/JetBrains/kotlin-native/search?q=webassembly&type=Issues Maybe if you have specific question/feature request just create a new one.
s

sendilkumarn [JHipster]

05/02/2018, 8:21 AM
Thanks. Let me have a look
View count: 6