https://kotlinlang.org
Join Slack
How might custom exceptions be thrown from an okhttp interceptor? I would like the exceptions to su...
m

maxgdn

almost 4 years ago
How might custom exceptions be thrown from an okhttp interceptor? I would like the exceptions to surface past all of the interceptors so that they can be handled elsewhere. More in thread ->
m
m
  • 2
  • 7
  • 326
Hey :wave: Is there any substitute to `adjustViewBounds` in Compose’s `Image`? I want an image’s hei...
n

Nacho Ruiz Martin

over 4 years ago
Hey 👋 Is there any substitute to
adjustViewBounds
in Compose’s
Image
? I want an image’s height to be driven by the width + keep original aspect ratio so I’m using
alignment = Alignment.Center,
contentScale = ContentScale.FillWidth,
but this creates vertical padding that I want to get rid of. In traditional view system I would just ad
adjustViewBounds=true
.
n
c
  • 2
  • 5
  • 326
Hi. is DataStore available for KMM ? like I have used <this> library which uses shared pref and NSUS...
m

Md Hanif

almost 5 years ago
Hi. is DataStore available for KMM ? like I have used this library which uses shared pref and NSUSerDefaults for their native storage am not sure if we can do something like this using datastore ? Would I require to create my own native preference storage file which uses datastore and NSUserdefaults to store preference or is there any built in or third party available ?
m
m
r
  • 3
  • 7
  • 326
How do you deal with `NSInteger` in common Darwin code? :open_mouth:
m

Marc Knaup

over 5 years ago
How do you deal with
NSInteger
in common Darwin code? 😮
m
l
+2
  • 4
  • 34
  • 326
Is it possible to profile the performance of coroutines using VisualVM? If it can be done how would ...
n

napperley

over 5 years ago
Is it possible to profile the performance of coroutines using VisualVM? If it can be done how would the coroutines be profiled? I'm mainly interested in memory usage as I ended up with a bit of a scare the other day when the JVM crashed due to running out of memory. Noticed when running VisualVM that the profiled JVM program is using many threads which is concerning considering that the program only uses coroutines. Was expecting the thread count to average around 5 with the total CPU cores mainly affecting the thread count. Actual thread count is averaging around 29.
n
o
  • 2
  • 7
  • 326
Has anyone experienced getting an error like this using Room KMP (2.7.0-alpha02 - tried 04 as well)?...
c

christian.steffensen

over 1 year ago
Has anyone experienced getting an error like this using Room KMP (2.7.0-alpha02 - tried 04 as well)? Getting it on both Android emulator and device. Using the bundled Sqlite driver as suggested in the docs ``````
c
p
  • 2
  • 4
  • 325
hello everyone I am getting this error while writing unitTestCases java.lang.IllegalStateException: ...
p

Priyanka Jadhav

over 1 year ago
hello everyone I am getting this error while writing unitTestCases java.lang.IllegalStateException: No instrumentation registered! Must run under a registering instrumentation. at androidx.test.platform.app.InstrumentationRegistry.getInstrumentation(InstrumentationRegistry.java:45) at androidx.test.core.app.ApplicationProvider.getApplicationContext(ApplicationProvider.java:41) at com.autodesk.adp_mobile_sdk.facets.MessageTest.setUp(MessageTest.kt:24)
p
e
  • 2
  • 1
  • 325
I need to pass a complex object via navigation. The type lives in a pure kotlin module, so no androi...
u

ursus

over 1 year ago
I need to pass a complex object via navigation. The type lives in a pure kotlin module, so no android. Would you rather create a private wrapper that is
Parcelable
or, serialize it via
Json
or
Protobuf
Btw I meaasured the protobuf and it still sometimes takes 2ms to serialize (measured in debug mind you) TLDR; is it unreasonable for passing arguments to take 2ms in runtime, or should I rather sacrifice developer time and write the silly wrapper?
u
a
+2
  • 4
  • 29
  • 325
Hello everyone, I'm wondering if we can use Kotlin Multiplatform for developing Smart TV apps, speci...
s

sunnat629

over 1 year ago
Hello everyone, I'm wondering if we can use Kotlin Multiplatform for developing Smart TV apps, specifically with JavaScript or WebAssembly. The idea is to use KMP primarily for business logic. Additionally, I'm interested in understanding its compatibility, especially with: • webOS TV 4.x (2018~2019) running on Chromium 53, • Samsung TVs from 2019 with Tizen 5.0 and Chromium M63. Thanks...
s
d
a
  • 3
  • 15
  • 325
Why DisposableEffect does not dispose whenever I move a window from one screen to a secondary screen...
n

Nuru Nabiyev

over 2 years ago
Why DisposableEffect does not dispose whenever I move a window from one screen to a secondary screen? It seems that everything is recomposing but onDispose is not triggered. This really hits badly for couroutines being subscribed twice.
n
p
+2
  • 4
  • 27
  • 325
Previous214215216Next

kotlinlang

A modern programming language that makes developers happier.

Powered by