https://kotlinlang.org
Join Slack
Is there any particular recommended way of having a Kotlin 1.7.20 project with Compose for Desktop a...
j

John O'Reilly

about 3 years ago
Is there any particular recommended way of having a Kotlin 1.7.20 project with Compose for Desktop and Web (but just Kotlin 1.7.10 for Web as is needed right now)?
j
i
j
  • 3
  • 5
  • 291
Do relaxed mocks use default constructor values? e.g. ```data class Bean(val message: String = "hell...
m

Mikhail

over 3 years ago
Do relaxed mocks use default constructor values? e.g.
data class Bean(val message: String = "hello")

val mock = mockk<Bean>(relaxed = true)

mock.message // "hello" ?
🚫 1
m
e
m
  • 3
  • 6
  • 291
I'm working on a KMM project with CocoaPods dependencies. For some reason unknown to me, the iOS Dep...
j

jimmyt

about 4 years ago
I'm working on a KMM project with CocoaPods dependencies. For some reason unknown to me, the iOS Deployment Target for each Pod target on which my project depends is being set to 8.0 each time I try to sync the project, but the range of supported deployment target versions is 9.0 to 14.5.99, so each time I try to sync the project, it fails on the shared:podBuild(PodName)Iphonesimulator task. I tried opening up the project in Xcode and changing the versions manually, but this does not work because the iOS Deployment Target is changed back to 8.0 each time I attempt to sync the project. What else can I do about this?
j
m
  • 2
  • 7
  • 291
How to resolve net::ERR_UNKNOWN_URL_SCHEME in a webview app? How to use intents?
s

Sushruth Nagaraj

over 4 years ago
How to resolve net::ERR_UNKNOWN_URL_SCHEME in a webview app? How to use intents?
😶 1
s
v
t
  • 3
  • 5
  • 291
Anyone looked into using socketio on ktor ?
s

spand

over 7 years ago
Anyone looked into using socketio on ktor ?
s
d
m
  • 3
  • 7
  • 291
Is it possible to use kotlin-serialization as open-feign client encoder/decoder like JacksonEncoder?
l

LSD

over 2 years ago
Is it possible to use kotlin-serialization as open-feign client encoder/decoder like JacksonEncoder?
l
e
  • 2
  • 2
  • 290
Hey, I am looking into setting up Data Builders while using custom scalar and multiple modules. When...
s

Spencer

about 3 years ago
Hey, I am looking into setting up Data Builders while using custom scalar and multiple modules. When I mock out the query data in a feature module and try and run the test I get an error of
Don't know how to instantiate leaf UnixTime
. This is one of my scalar types, so I created a fake resolver, mostly using the example in the docs. This fixes up the one error, but then causes another one of
Don't know how to instantiate leaf CardOrderStatus
. This now is a Enum from our schema and if I mock it out, it causes another error saying it can’t find next enum from our schema. When I look at the value of
__Schema.all
, it is just an empty list, but looking at all the apollo generated code, I see the
__Schema.all
file is in the module that the
schema.graphqls
file is in, and all the types for
CardOrderStatus
and all the other enums types are in a other feature module. Is there a way to have all the types be in the
__Schema.all
list so I don’t have to mock them all out?
s
m
s
  • 3
  • 29
  • 290
How are ksp gradle tasks included into other assemble tasks? My library relies on kspCommonMainMetad...
m

Michal Klimczak

over 3 years ago
How are ksp gradle tasks included into other assemble tasks? My library relies on kspCommonMainMetadata being run. For me it's run for KMM's embedAndSignAppleFrameworkForXcode but for another person it's not. How can I debug such an issue?
m
j
  • 2
  • 11
  • 290
Anyone know solution of error in attached Image? If i run android studio chipmunk | 2021.2.1 Patch 1...
d

Dhaval Gondaliya

over 3 years ago
Anyone know solution of error in attached Image? If i run android studio chipmunk | 2021.2.1 Patch 1 as administrator it doesn't have this error. I dont know which setting was it that i changed but, i am sure after changing some it started showing this error when i run application.
d
r
  • 2
  • 7
  • 290
I’m using `LaunchedEffect` along with `LocalLifecycleOwner` in a ā€œScreenā€ composable to start a long...
b

Bradleycorn

about 4 years ago
I’m using
LaunchedEffect
along with
LocalLifecycleOwner
in a ā€œScreenā€ composable to start a long-running/intensive coroutine in my ViewModel only when the containing Activity/Fragment is
RESUMED
. More info and code in the 🧵 I’m curious if this is a proper/best solution for my use case or if there are better ways to do this?
b
t
+2
  • 4
  • 8
  • 290
Previous244245246Next

kotlinlang

A modern programming language that makes developers happier.

Powered by