https://kotlinlang.org
Join Slack
What is the advantage of using `either` over `either.eager` for suspending computations? If I use `e...
l

Lukasz Kalnik

over 3 years ago
What is the advantage of using
either
over
either.eager
for suspending computations? If I use
either.eager
, will it simply block the current thread?
suspend fun doSomethingLong(): Either<Error, Unit>

either.eager {
    doSomethingLong() // does it block the current thread?
}
l
s
s
  • 3
  • 21
  • 841
I am running a KMM project. I get this error, but I am not sure how to fix it: `Cannot infer a bundl...
d

Daniele B

almost 3 years ago
I am running a KMM project. I get this error, but I am not sure how to fix it:
Cannot infer a bundle ID from packages of source files and exported dependencies, use the bundle name instead: shared. Please specify the bundle ID explicitly using the -Xbinary=bundleId=<id> compiler flag.
d
  • 1
  • 2
  • 840
Whats the preferred method of adding a CoroutineScope to a Viewmodel in Desktop code? In Android we ...
a

Arjan van Wieringen

almost 3 years ago
Whats the preferred method of adding a CoroutineScope to a Viewmodel in Desktop code? In Android we have the lifecycle aware ones. I want to instantiate the ViewModel via Koin or KodeinDI in the Composable. But how do I pass a Composable scoped CoroutineScope which will get cancelled when the Composable is removed?
a
h
+3
  • 5
  • 15
  • 839
Hi all! I’ve used kotlin dsl to set up convention plugins for my multi-module app, pretty much follo...
t

tankistorep

over 2 years ago
Hi all! I’ve used kotlin dsl to set up convention plugins for my multi-module app, pretty much following what the
nowinandroid
app has done. But I keep getting this error any time I change any code in the plugins module, or if I do a clean build:
Cause: loader constraint violation in interface itable initialization for class com.android.build.gradle.internal.api.VariantFilter
Strangely, what makes it temporarily go away is doing a build with --scan, but I have no idea what causes it, especially because I’m not using variant filters. More details about the error + setup in thread.
t
a
+2
  • 4
  • 10
  • 838
Is there a way to package an application into an EXE that isn't an installer? I want to share someth...
b

Ben Woodworth

almost 4 years ago
Is there a way to package an application into an EXE that isn't an installer? I want to share something with friends that they can just run without them having to worry about things being installed on their system. I saw mention of installer and app-image exes in this channel, but idk if that's what I'm looking for or where to read up on it
b
m
+3
  • 5
  • 38
  • 838
I want to add protobuf to my kotlin multiplatform project that contain "Android and Desktop" so it's...
a

Akram Bensalem

about 3 years ago
I want to add protobuf to my kotlin multiplatform project that contain "Android and Desktop" so it's JVM only the plugin by default compiles protobuf source from "src/main/proto" rather than "src/commonMain/proto" Do you know how to fix that issue ?
a
v
  • 2
  • 2
  • 837
Hi i have a strange runtime exception in my android application i employ arrow retrofit call adapter...
t

Tower Guidev2

over 2 years ago
Hi i have a strange runtime exception in my android application i employ arrow retrofit call adapter and can successfully build a release build using proguard which is available on the google play store. that production version of my application employs AGP 7.4.2
t
s
s
  • 3
  • 9
  • 837
I’ve added nested navigation to my app and everything is working great except this one scenario. We ...
j

Joseph Hawkes-Cates

over 2 years ago
I’ve added nested navigation to my app and everything is working great except this one scenario. We have a need to open internal deeplinks from a Uri that we get from our backend. The destination for this deeplink is defined within a nav graph in our nav host. When we open a deeplink from outside the app, the backstack looks like this:
root > destination nav graph (ng1) > Start destination (A) > deeplink destination (B)
. When I use
navController.navigation(deeplink=uri)
with navOptions to popUpTo the root nav graph,
A
is not inserted into the backstack behind
B
like it is with the external deeplinks.
👀 1
j
m
+2
  • 4
  • 28
  • 836
does kotlint-logging support mocking the logger?
c

christophsturm

over 8 years ago
does kotlint-logging support mocking the logger?
c
o
  • 2
  • 11
  • 836
I'm trying to use bouncycastle for kotlin. I kinda feel like an idiot because i can't find what depe...
c

Colton Idle

over 1 year ago
I'm trying to use bouncycastle for kotlin. I kinda feel like an idiot because i can't find what dependency i should drop into my build.gradle. lol. just me? https://github.com/bcgit/bc-kotlin
c
e
s
  • 3
  • 9
  • 835
Previous626364Next

kotlinlang

A modern programming language that makes developers happier.

Powered by