https://kotlinlang.org
Join Slack
Is there any documentation on Kotlin `external` functions? How do they work? Is there a Java equival...
t

Tianyu Zhu

almost 3 years ago
Is there any documentation on Kotlin
external
functions? How do they work? Is there a Java equivalent?
t
k
+3
  • 5
  • 13
  • 810
Is there a nice way to convert `.svg`s to `@Composable`s?
x

xxfast

over 3 years ago
Is there a nice way to convert `.svg`s to `@Composable`s?
✅ 2
x
n
+4
  • 6
  • 13
  • 809
hey guys! what is the best practice of using SQLDelight in a multi-module projects, especially KMM p...
e

electrolobzik

almost 2 years ago
hey guys! what is the best practice of using SQLDelight in a multi-module projects, especially KMM project? If I have several modules working with the database it looks logical to place DB logic and base classes in some shared core module. But the specific SQL files probably should be in thier specific feature-modules. And here I come into set of questions. Should I enable the gradle plugin in every module which uses DB (and has it’s own entities which it works with) and also in the core module? If the schema files will be present in different modules how will the db be created initially?
e
a
+2
  • 4
  • 28
  • 810
Can Kover be applied to Android Connected/Instrumented UI tests?
d

darkmoon_uk

over 3 years ago
Can Kover be applied to Android Connected/Instrumented UI tests?
plus one 1
d
s
+2
  • 4
  • 6
  • 808
Is anyone else suddenly experiencing failures like `Unable to find a variant of org.jetbrains.kotlin...
m

mikehearn

over 3 years ago
Is anyone else suddenly experiencing failures like
Unable to find a variant of org.jetbrains.kotlin:kotlin-test:1.6.10
? This just started now so I'm wondering if someone accidentally yanked an artifact from some repository. Not sure what the best channel to ask about this is.
m
t
+5
  • 7
  • 18
  • 808
Hello, is it possible to use Kotlin Jupyter in VSCode? I can import `multik` but any kotlin code is ...
a

Alexandre Brown

almost 3 years ago
Hello, is it possible to use Kotlin Jupyter in VSCode? I can import
multik
but any kotlin code is "unresolved". Anybody had any success with Kotlin in VSCode ?
a
h
r
  • 3
  • 3
  • 807
is there a kotlin native way to have a `SortedMap`? E.g., when I'm deserializing a `json` map where ...
r

Rohde Fischer

almost 3 years ago
is there a kotlin native way to have a
SortedMap
? E.g., when I'm deserializing a
json
map where the order is important 🙂 It seems that
Map
happens to be sorted, but I assume it's the same as for Java - there is no guarantee it will stay that way, am I correct in that assumption? If so what can/should I do?
r
e
m
  • 3
  • 12
  • 806
Hi, I’m using ViewModel to manage global states, it works with Android but throws an exception with ...
p

Phuc

over 1 year ago
Hi, I’m using ViewModel to manage global states, it works with Android but throws an exception with iOS.
Uncaught Kotlin exception: kotlin.UnsupportedOperationException: `Factory.create(String, CreationExtras)` is not implemented. You may need to override the method and provide a custom implementation. Note that using `Factory.create(String)` is not supported and considered an error.
p
p
  • 2
  • 11
  • 804
TLDR: does android/compose/material have "auto" line height? When overriding a font style to set a ...
k

Kevin Worth

over 2 years ago
TLDR: does android/compose/material have "auto" line height? When overriding a font style to set a font size, what happens if we don't set line height? Is it automatically adjusted? Or does it keep the default value? Does the answer differ for either of the following: • Using
.copy
// don't make any change in Type.kt
...
Text(
    text = ...
    style = MaterialTheme.typography.displayLarge.copy(fontSize = 50.sp)
)

// Will this have a line height of 64, or will line height be "auto"?
• Override in
Type.kt
displayMedium = TextStyle(
        fontFamily = FontFamily.Default,
        fontWeight = FontWeight.SemiBold
        fontSize = 40.sp,
//      don't set lineHeight
//      don't set letterSpacing
    ),

...
Text(
    text = ...,
    MaterialTheme.typography.displayMedium
)

// Will this have a line height of 52, or something like Unspecified, which then means "auto"? Or...?
Our designers are taking advantage of Figma's ability to set line height to "auto"(which ends up being odd values like 51.74) and they ask, "Wait, you mean Android doesn't have auto line height?" So, does it?
k
f
+4
  • 6
  • 23
  • 804
Hello guys, I’ve finished my buildSrc to build-logic + versions catalog migration, but I’ve a little...
g

Guilherme Delgado

over 3 years ago
Hello guys, I’ve finished my buildSrc to build-logic + versions catalog migration, but I’ve a little problem 😒, more in thread.
g
j
  • 2
  • 35
  • 803
Previous666768Next

kotlinlang

A modern programming language that makes developers happier.

Powered by