https://kotlinlang.org
Join Slack
What would be the best way to add firebase to a KMP + Compose Multiplatform App that targets Android...
a

Anudeep Ananth

over 1 year ago
What would be the best way to add firebase to a KMP + Compose Multiplatform App that targets Android and iOS. I want to use the firebase official android and iOS libraries with a custom expect and actual implementation... What woukd be the right architecture to do this?
a
h
+2
  • 4
  • 5
  • 1346
Hi everyone, I’m dealing with an issue when trying to spy my class contains a value class inside the...
l

Long Tran

about 2 years ago
Hi everyone, I’m dealing with an issue when trying to spy my class contains a value class inside the constructor with
spyk
which provided by
Mockk
The code as below:
@JvmInline
value class MyValueClass(Val value: String = “”) : Serializable

class A(
   Val valueClass: MyValueClass = MyValueClass()
)

// In unit test file
@Test
fun test() {
    Val mockClass = spyk<A>()
    …
}
And this error happened
io.mockk.MockKException: Can't instantiate proxy via default constructor for class A
Appreciate with your help 🙏
l
p
  • 2
  • 7
  • 1346
When using createEmptyComposeRule and launching the activity myself, is there a way to still perform...
l

Landry Norris

about 3 years ago
When using createEmptyComposeRule and launching the activity myself, is there a way to still perform actions and make assertions using the EmptyComposeRule? The activity needs to take in data using Intents, but is otherwise fully Compose. After I create an empty compose rule, then launch the activity using ActivityScenario.launch<MyActivity>(intent), I get an error when I try to make an assertion on the rule.
l
z
  • 2
  • 3
  • 1338
Is it expected that `WindowInsets.isImeVisible` returns false when the keyboard is showing if the so...
e

eygraber

over 2 years ago
Is it expected that
WindowInsets.isImeVisible
returns false when the keyboard is showing if the softInputMode is set to pan?
e
a
+2
  • 4
  • 44
  • 1337
Is there a way to check device’s network connection in common code or we have to write platform spec...
p

ptsiogas

over 4 years ago
Is there a way to check device’s network connection in common code or we have to write platform specific code? Are there any working examples?
p
a
+2
  • 4
  • 11
  • 1336
Hi. Is there a way to remove underline of the text (when writing) in BasicTextField? I tried this, b...
r

Roman Polach

about 4 years ago
Hi. Is there a way to remove underline of the text (when writing) in BasicTextField? I tried this, but underline is still there:
BasicTextField(
                    singleLine = true,
                    value = text,
                    textStyle = LocalTextStyle.current.copy(textDecoration = TextDecoration.None),
                    readOnly = readOnly,
                    onValueChange = {
                        onValueChanged(it)
                    }
                )
r
c
+2
  • 4
  • 13
  • 1332
How to add Jacoco plugin to TOML version catalog file Instead of `id("jacoco")` in the plugins sect...
h

Humphrey

over 2 years ago
How to add Jacoco plugin to TOML version catalog file Instead of
id("jacoco")
in the plugins section of build.gradle I would like to use
alias(libs.plugins.jacoco)
h
e
+2
  • 4
  • 26
  • 1330
Just bumped to Kotlin `1.7.0` and am seeing this in Kotest: ```Found interface kotlin.time.TimeMark,...
j

James Eschner

over 3 years ago
Just bumped to Kotlin
1.7.0
and am seeing this in Kotest:
Found interface kotlin.time.TimeMark, but class was expected
java.lang.IncompatibleClassChangeError: Found interface kotlin.time.TimeMark, but class was expected
	at io.kotest.engine.spec.interceptor.SpecFinishedInterceptor.intercept-0E7RQCE(SpecFinishedInterceptor.kt:37)
	at io.kotest.engine.spec.interceptor.SpecFinishedInterceptor$intercept$1.invokeSuspend(SpecFinishedInterceptor.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
do I need to wait for a new Kotest version? ** Not a contribution
j
s
+4
  • 6
  • 19
  • 1321
Does multiplatform library have the access to run background tasks for android and iOS? Sample use c...
j

Joey

almost 6 years ago
Does multiplatform library have the access to run background tasks for android and iOS? Sample use case is to monitor their location even app is in the background. Thanks in advance!
j
o
  • 2
  • 7
  • 1321
Hi All Is there any way to use Android Context in the KMM test?
h

Hossein Amini

almost 4 years ago
Hi All Is there any way to use Android Context in the KMM test?
h
h
g
  • 3
  • 7
  • 1318
Previous232425Next

kotlinlang

A modern programming language that makes developers happier.

Powered by