https://kotlinlang.org
Join Slack
anyone find anyway to show toasts in kmm?
p

pers

about 2 years ago
anyone find anyway to show toasts in kmm?
p
j
p
  • 3
  • 3
  • 1313
Updating MPP module to Kotlin 1.8.0, trying to get rid of this new warning: ```Multiplatform/Android...
t

tylerwilson

almost 3 years ago
Updating MPP module to Kotlin 1.8.0, trying to get rid of this new warning:
Multiplatform/Android-V1-SourceSetLayout: Multiplatform/Android-V1-SourceSetLayout is deprecated...
I add it then I get new warnings:
Multiplatform/Android-V2-SourceSetLayout: Usage of 'Android Style' source directory
are there any docs on this new V2 layout. Migration guide perhaps?
šŸ‘ 1
šŸ‘€ 1
t
a
  • 2
  • 4
  • 1313
I'm getting this error with ktlint: ```Not a valid Kotlin file (expecting a parameter declaration) (...
p

pablisco

about 5 years ago
I'm getting this error with ktlint:
Not a valid Kotlin file (expecting a parameter declaration) (cannot be auto-corrected)
The line in question has a trailing comma, is this something we need to enable on ktlint? Or maybe we need to upgrade ktlint? I found this, but there doesn't seem to be any resolution, it's just closed šŸ¤” https://github.com/pinterest/ktlint/issues/729
p
r
d
  • 3
  • 4
  • 1307
How to convert a compose `ImageVector` to an Android `Bitmap` ? Note - need to use it for `CustomTab...
m

Mark

over 1 year ago
How to convert a compose
ImageVector
to an Android
Bitmap
? Note - need to use it for
CustomTabsIntent.Builder#setCloseButtonIcon
so not within a composable. https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsIntent.Builder#setCloseButtonIcon(android.graphics.Bitmap)
m
e
  • 2
  • 5
  • 1304
How can I avoid recomposition of certain areas of a screen? In my example I use an AndroidView (to s...
t

Tobias Gronbach

over 3 years ago
How can I avoid recomposition of certain areas of a screen? In my example I use an AndroidView (to show diagrams) and also I display some Dialogs depending on the ScreenState. Everytime a dialog is shown or hidden the AndroidView gets recomposed. How can I avoid it? Is it possible to scope recomposition only to specific states?
t
m
r
  • 3
  • 35
  • 1304
Are there plans from JetBrains for a multiplatform crypto library? Iirc it was one of the most upvot...
b

benkuly

over 3 years ago
Are there plans from JetBrains for a multiplatform crypto library? Iirc it was one of the most upvoted features here in slack, when someone from JetBrains asked for missing features.
šŸ‘ 1
āž• 1
b
o
z
  • 3
  • 10
  • 1303
What is `iosX64()` for? Are there some x64 ios devices? I though it was all arm always?
u

ursus

almost 3 years ago
What is
iosX64()
for? Are there some x64 ios devices? I though it was all arm always?
u
a
+3
  • 5
  • 17
  • 1302
Hey there! Is there any way to get the file name in a Kotlin file? This functionality could be helpf...
m

Marc Reichelt

almost 4 years ago
Hey there! Is there any way to get the file name in a Kotlin file? This functionality could be helpful with e.g. logging, where the other approaches have drawbacks: • need to manually define tag (manual, can be messed up when filename changes) • or: throw a full
Throwable()
, to only get the file / class name (performance issues) • or: using
reified
to get the class name (will print weird log tags when scope changes (e.g. it will print
CoroutineScope
in some instances))
m
e
+5
  • 7
  • 18
  • 1302
Hello! I am trying to load a layer-list drawable with this code: ```Image( painter = painterReso...
v

Vaios Tsitsonis

almost 4 years ago
Hello! I am trying to load a layer-list drawable with this code:
Image(
    painter = painterResource(id = someId),
    contentDescription = null
)
but i get this error:
Only VectorDrawables and rasterized asset types are supported ex. PNG, JPG
. I can load vector drawables so I suppose that I need to load layer-list differently... How is this possible?
v
m
+2
  • 4
  • 7
  • 1302
Will Apple let KMM succeed? Effectively, Multiplatform Compose and KMM will make iOS Developers, XCo...
i

Igor Bozin

almost 3 years ago
Will Apple let KMM succeed? Effectively, Multiplatform Compose and KMM will make iOS Developers, XCode or Swift obsolete. So, what is in it for them? And what guarantees the Kotlin Multiplatform approach will be possible to be used for development in 2-3 years?
i
c
+8
  • 10
  • 108
  • 1300
Previous262728Next

kotlinlang

A modern programming language that makes developers happier.

Powered by