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

    Mohit Gurumukhani

    09/05/2018, 5:14 PM
    Hey! I am using ktor ios engine to make get requests. However, making get requests using client.get<String>(url) results in cinterop error as the native compiler treats get as cinterop function instead of the ktor function. Is there a way to force the compiler? Also, with multithreading not supported in native coroutines, I wonder if there is a way to avoid ui freezing while calking client.
    o
    3 replies · 2 participants
  • o

    olonho

    09/05/2018, 5:20 PM
    https://blog.jetbrains.com/kotlin/2018/09/kotlinnative-v0-9-is-here/
    🎉 16
    t
    e
    4 replies · 3 participants
  • a

    alec

    09/05/2018, 6:43 PM
    anyone used K/N with CocoaPods? Wondering if theres a way to have a
    .podspec
    reference the generated
    .framework
    file K/N outputs
    j
    a
    +1
    15 replies · 4 participants
  • t

    thymecypher

    09/05/2018, 9:25 PM
    What architectures does K/N currently support? A year ago I planned on converting a Cortex M library to use Kotlin but the toolset wasn't quite mature enough, especially with Gradle.
    j
    m
    +1
    9 replies · 4 participants
  • t

    tunedal

    09/06/2018, 10:31 AM
    In Kotlin/Native 0.9,
    platform.windows.WCHAR
    is now a
    UShort
    but String.wcstr still creates an array of
    Short
    . So
    "foo".wcstr.ptr
    is no longer an
    LPCWSTR
    . Is this a bug?
    r
    o
    3 replies · 3 participants
  • t

    tunedal

    09/06/2018, 11:04 AM
    Another thing with unsigned types – cinterop now generates a mix of Int and UInt constants:
    ...
    const val WS_OVERLAPPEDWINDOW: Int = 13565952
    const val WS_POPUP: UInt = -2147483648.toUInt()
    ...
    ...which is a bit cumbersome to use. Is there a good way to pass a list of arguments to a function where each argument can be either Int or UInt? Or can cinterop be improved for these cases?
    s
    m
    5 replies · 3 participants
  • r

    rudolf.hladik

    09/06/2018, 11:06 AM
    can I have runBlocking in kotlin-platform-common module ?
    o
    e
    2 replies · 3 participants
  • a

    Aregev2

    09/06/2018, 12:30 PM
    Wen compiling a large library, I am getting this error:
    error: compilation failed: No active scope
    o
    3 replies · 2 participants
  • i

    Ivan

    09/06/2018, 4:08 PM
    How to properly create bindings for a library that depends on another one? Say I want to create bindings for a library “foo” with a single header foo.h, which in turn includes bar/bar.h. Do I have to tell cinterop where to find all required headers? Or do I have to compile them one by one?
    r
    2 replies · 2 participants
  • d

    drofwarcs

    09/06/2018, 10:39 PM
    Looks like
    org.jetbrains.kotlin.konan
    does not recognize the new gradle dsl. Is it only
    org.jetbrains.kotlin.platform.native
    at this point that does?
    n
    j
    +1
    8 replies · 4 participants
  • d

    drofwarcs

    09/06/2018, 10:52 PM
    Also, under the new dsl, when working with cinterop, is
    defFile project.file("deffile.def")
    suppose to default to
    src/main/c_interop/deffile.def
    ? Currently its referencing the project root folder,
    project_root/deffile.def
    .
    d
    4 replies · 2 participants
  • d

    David

    09/07/2018, 1:05 PM
    I am missing the dSym-file when compiling ios-frameworks and building from gradle. When building from AppCode the dSym-file is there. Anyone that have some insight here?
    t
    2 replies · 2 participants
  • d

    Dominaezzz

    09/07/2018, 5:40 PM
    Just a quick confirmation, does the CLion plugin support 0.9?
    v
    1 reply · 2 participants
  • d

    drofwarcs

    09/08/2018, 4:31 PM
    I know the new DSL is in experimental status but curious if future updates will have the gradle plugin automatically move kexe files to the target directory or will we always need to do copy tasks in our own scripts similar to https://github.com/JetBrains/kotlin-mpp-example/blob/master/greeting/ios/build.gradle#L18 ? This question only applies when targeting iOS with outputKinds of FRAMEWORK or EXECUTABLE.
    🤔 2
    t
    2 replies · 2 participants
  • l

    Lempere

    09/09/2018, 7:31 PM
    With the interop with objc, I see the import of platform.Foundation. I can import any other objc library ? Will be nice make some common wrapper and then use one native library in ios or other in jvm.
    t
    g
    +1
    6 replies · 4 participants
  • k

    Konstantin Petrukhnov

    09/10/2018, 7:10 AM
    Is it possible to get build time of kotlin native library (framework), by calling library method? E.g. I have kotlin library and method getBuildTime(), which will return time when library was built. If I rebuild framework, it will give different time.
    o
    2 replies · 2 participants
  • a

    aaverin

    09/10/2018, 9:22 AM
    What would be a good kotlin replacement for Jackson? We want to compile our data library to Swift and need to get rid of all Java-based dependencies
    j
    e
    +3
    16 replies · 6 participants
  • r

    rudolf.hladik

    09/10/2018, 2:06 PM
    Is it possible to use generic types in iOS app returned from Common module function?
    s
    4 replies · 2 participants
  • a

    alec

    09/10/2018, 7:37 PM
    my plan right now is to use
    lipo
    to do this manually after generating all the required architectures but would be nice as a potential output format for K/N
    t
    d
    5 replies · 3 participants
  • h

    Hamza

    09/11/2018, 1:36 AM
    i wish there was more documentation on kotlin native. apart from a simple hello world, im not sure what i can do. ;/
    o
    t
    6 replies · 3 participants
  • r

    rjhdby

    09/11/2018, 8:45 AM
    Hello. Question about macro resolving. (see thread)
    m
    6 replies · 2 participants
  • y

    yusuf3000

    09/11/2018, 12:54 PM
    The kotlin files are being supplied to our project through cocoapods, and our podfiles are identical.
    o
    1 reply · 2 participants
  • k

    Konstantin Petrukhnov

    09/12/2018, 9:24 AM
    If I have List<Int> and there will be no nulls inside it, is there way that interface in framework will be [NSNumber]?
    s
    16 replies · 2 participants
  • d

    deviant

    09/13/2018, 12:21 PM
    is it possible to run kotlin native on esp8266?
    m
    1 reply · 2 participants
  • h

    Hamza

    09/13/2018, 12:58 PM
    hey guys, can u link me to stuff you need for background knowledge to effectively program for kotlin native?
    j
    r
    3 replies · 3 participants
  • r

    r4zzz4k

    09/13/2018, 2:06 PM
    Is there any place I can learn how to use
    depends
    directive of
    .def
    file? I was skimming through the repo but didn't find any usage outside of default platform libs generation. Reasoning for the question: I'm trying to consume from Kotlin/Native two C libraries which depend on each other. Bindings for the first one are generated trivially, but I'm unable to inform
    cinterop
    that for types and functions from the first library there should be imports with first lib wrapper's namespace instead of duplicated bridges.
    s
    m
    11 replies · 3 participants
  • r

    rjhdby

    09/13/2018, 2:46 PM
    JVM Kotlin has nice converting tool from Java to Kotlin. Do you have any plans for similar tools for ObjC, C, C++ to K/N? 🙂
    👀 3
    🇳🇴 1
    o
    u
    3 replies · 3 participants
  • d

    David

    09/14/2018, 11:35 AM
    I have a problem with memory deallocation from objective c with my kotlin/native framework. When a class from the kotlin/native framework is deallocated with ARC, I get a crash in
    FreeContainer(ContainerHeader* header)
    , probably from this file https://github.com/JetBrains/kotlin-native/blob/master/runtime/src/main/cpp/Memory.cpp . Has anyone seen this before? Any suggestions on how to debug this?
    o
    1 reply · 2 participants
  • d

    Dmitry Kandalov

    09/14/2018, 2:39 PM
    Are Kotlin objects always allocated on heap?
    o
    n
    5 replies · 3 participants
  • b

    bootstraponline

    09/14/2018, 6:03 PM
    for example compile to linux on a mac (similar to golang)
    d
    m
    4 replies · 3 participants
Powered by Linen
Title
b

bootstraponline

09/14/2018, 6:03 PM
for example compile to linux on a mac (similar to golang)
d

Dominaezzz

09/14/2018, 7:36 PM
https://github.com/JetBrains/kotlin-native/blob/master/RELEASE_NOTES.md#supported-platforms
b

bootstraponline

09/14/2018, 10:01 PM
that says nope 😭
d

Dominaezzz

09/14/2018, 10:08 PM
Yeah sadly. Not unless you use a VM or smth.
m

msink

09/14/2018, 10:43 PM
Most likely it will in future, just not implemented currently. At least for pure Kotlin artifacts, for interop libraties - I'm not sure.
View count: 6