https://kotlinlang.org
Join Slack
Hi everyone, what is the difference channel `receiveAsFlow` vs `consumeAsFlow`? `receiveAsFlow` can...
r

Ruben Quadros

almost 3 years ago
Hi everyone, what is the difference channel
receiveAsFlow
vs
consumeAsFlow
?
receiveAsFlow
can have multiple collectors and
consumeAsFlow
only 1?
r
s
  • 2
  • 1
  • 1251
Hey, everyone What should I “git ignore” in a kmm project? is there a .gitignore template for it?
h

henrikhorbovyi

about 3 years ago
Hey, everyone What should I “git ignore” in a kmm project? is there a .gitignore template for it?
➕ 1
h
l
m
  • 3
  • 7
  • 1251
How to call rest API using kotlin multiplatform desktop app? Any one have Github demo?
p

Pragnesh Meniya

about 2 years ago
How to call rest API using kotlin multiplatform desktop app? Any one have Github demo?
p
j
m
  • 3
  • 2
  • 1250
I’m in the process of migrating from buildSrc to build-logic, and I was studying <idiomatic-gradle> ...
g

Guilherme Delgado

about 3 years ago
I’m in the process of migrating from buildSrc to build-logic, and I was studying idiomatic-gradle and also Google’s now-in-android repository. But I’m having a problem, in buildSrc I’ve classes and enums that can be accessed by any module’s
build.gradle.kts
, but when using build-logic, I can’t share them, it throws
org.gradle.internal.exceptions.LocationAwareException
. Surely I’m doing something wrong because Google’s sample uses it with no problem here, but I don’t know what’s missing 😞 Any hint? Thanks 🙏
g
c
+2
  • 4
  • 19
  • 1250
I'm getting the following error when trying to build an app with ktor ```No matching toolchains foun...
r

Rodrigo Silva

about 2 years ago
I'm getting the following error when trying to build an app with ktor
No matching toolchains found for requested specification: {languageVersion=11, vendor=any, implementation=vendor-specific}.
gradle 8.0.2, openjdk 17
r
a
  • 2
  • 2
  • 1248
I set `allWarningsAsErrors = true` in all of my projects because I find that addressing warnings bef...
e

eygraber

about 1 year ago
I set
allWarningsAsErrors = true
in all of my projects because I find that addressing warnings before they become bugs makes life easier. However a lot of build functionality uses the same concept of warning to flag things that can't be addressed by the user. There's been discussion about this before (e.g. here and here) and now I've run into it again when trying to update to Kotlin 2.0.0 in a project that uses kapt. If I set
kapt.use.k2 = false
I get this warning:
> Task :app:kaptGenerateStubsDebugKotlin FAILED
w: Kapt currently doesn't support language version 2.0+. Falling back to 1.9.
e: warnings found and -Werror specified
and if I set
kapt.use.k2 = true
I get this warning:
> Task :app:kaptGenerateStubsDebugKotlin FAILED
w: K2 kapt is an experimental feature. Use with caution.
e: warnings found and -Werror specified
in both cases my only recourse to using Kotlin 2.0.0 is to set
allWarningsAsErrors = false
which can lead to the quality of my project degrading. It would be nice if
allWarningsAsErrors
differentiated between warnings that are resolvable by the user, and warnings that are not.
youtrack 1
same 2
💯 2
e
u
  • 2
  • 2
  • 1243
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
  • 1243
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
  • 1240
Hi. Is there a way to remove underline of the text (when writing) in BasicTextField? I tried this, b...
r

Roman Polach

almost 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
  • 1239
Hi People! How do you load image resources in your compose ios app ?
a

Anmol Verma

over 2 years ago
Hi People! How do you load image resources in your compose ios app ?
a
m
  • 2
  • 19
  • 1236
Previous232425Next

kotlinlang

A modern programming language that makes developers happier.

Powered by