https://kotlinlang.org
Join Slack
Is there a way to get the amount of allocated bytes for a `String` in Native? For context, I need to...
e

Edoardo Luppi

about 2 years ago
Is there a way to get the amount of allocated bytes for a
String
in Native? For context, I need to pass the size in bytes to
MultiByteToWideChar
MultiByteToWideChar(CP_UTF8.toUInt(), 0u, this /* String */, /* Length in bytes */, null, 0)
e
m
  • 2
  • 44
  • 305
Hi i am struggling to understand the lifecycle of my viewmodels within my current android jetpack c...
t

Tower Guidev2

almost 3 years ago
Hi i am struggling to understand the lifecycle of my viewmodels within my current android jetpack compose application
t
z
i
  • 3
  • 19
  • 305
Hi how can we make blur effect with a hole? I want to blur outside a box on a live camera <https://i...
r

rsktash

about 3 years ago
Hi how can we make blur effect with a hole? I want to blur outside a box on a live camera

https://i.stack.imgur.com/fwlgM.gif▾

r
j
+5
  • 7
  • 27
  • 305
Did anyone get this error when building with minifyEnabled (Kodein 7.12.0) ```Caused by: java.lang.R...
y

Yannick

over 3 years ago
Did anyone get this error when building with minifyEnabled (Kodein 7.12.0)
Caused by: java.lang.RuntimeException: Invalid TypeToken; must specify type parameters
        at org.kodein.type.TypeReference.<init>(Unknown Source:40)
        at tb.b.<init>(Unknown Source:0)
        at tb.n.invoke(Unknown Source:19)
        at tb.a0.invoke(SourceFile:1)
I already added the following to my
<http://proguard-rules.pro|proguard-rules.pro>
-keep class org.kodein.type.TypeReference { *; }
-keep class org.kodein.type.TypeToken { *; }
Also I can't access the docs regarding proguard https://docs.kodein.org/kodein-di/7.6/framework/android.html#_proguard_configuration Website seems to be down
y
r
  • 2
  • 2
  • 305
Hi i need to unit test some code that employs `GlobalScope` is there a Best Practice approach?
t

Tower Guidev2

over 3 years ago
Hi i need to unit test some code that employs
GlobalScope
is there a Best Practice approach?
t
s
u
  • 3
  • 16
  • 305
With @Preview, what is the best way to debug/log values?
o

Orhan Tozan

over 3 years ago
With @Preview, what is the best way to debug/log values?
👀 1
➕ 1
o
c
c
  • 3
  • 15
  • 305
We would like to disable Kotlin Serialization and use Jackson until there's streaming support. Is th...
j

jush

over 4 years ago
We would like to disable Kotlin Serialization and use Jackson until there's streaming support. Is there some way to disable the Kotlin serialization support in Spring? It seems that if we've
kotlinx.serialization.json.Json
in our dependencies it is automatically added.
j
y
  • 2
  • 3
  • 305
Hello! I figured out that Spring Retry doesn't work with coroutines. I need something to replace it ...
d

Denis Sazonov

almost 5 years ago
Hello! I figured out that Spring Retry doesn't work with coroutines. I need something to replace it with during the Kotlin coding. Are there any replacements, or any information when it will be fixed in spring?
d
b
  • 2
  • 2
  • 305
What’s the correct/safe way to get a `CFStringRef` (like the `kCFBundleNameKey` constant) as a Kotli...
p

phldavies

over 5 years ago
What’s the correct/safe way to get a
CFStringRef
(like the
kCFBundleNameKey
constant) as a Kotlin
String
?
p
n
  • 2
  • 6
  • 305
How can I achieve `UNION` operator with Exposed DSL? I want to execute something like: ```SELECT MAX...
l

lenqnr

over 6 years ago
How can I achieve
UNION
operator with Exposed DSL? I want to execute something like:
SELECT MAX(views) FROM (
    SELECT views FROM articles WHERE user_id = 1
    UNION ALL
    SELECT views FROM comments WHERE user_id = 1
) as writings
l
t
  • 2
  • 2
  • 305
Previous230231232Next

kotlinlang

A modern programming language that makes developers happier.

Powered by