https://kotlinlang.org
Join Slack
How do I cast a json field to a string in exposed DSL (using postgres db)?
d

dave08

about 4 years ago
How do I cast a json field to a string in exposed DSL (using postgres db)?
d
b
t
  • 3
  • 11
  • 1442
How can I align Text and content of OutlinedTextField to CenterVertically?
c

chanjungskim

over 2 years ago
How can I align Text and content of OutlinedTextField to CenterVertically?
c
e
  • 2
  • 7
  • 1440
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
  • 1436
I'm trying to enable context receivers in a multiplatform project. It works for the JVM module if I ...
d

diesieben07

about 3 years ago
I'm trying to enable context receivers in a multiplatform project. It works for the JVM module if I do
kotlinOptions.freeCompilerArgs += listOf("-Xcontext-receivers")
in the JVM compilation. But I don't know how to do it for the common module, since it does not seem to have a compilation. The IDE keeps reporting "The feature "context receivers" is experimental and should be enabled explicitly" in common code.
d
e
  • 2
  • 2
  • 1436
If anyone has been looking for a Rich Text editor composable, I ported a Jetpack compose library som...
a

Adam Brown

over 3 years ago
If anyone has been looking for a Rich Text editor composable, I ported a Jetpack compose library someone made to multiplatform compose (w_ith the original authors blessing_) https://github.com/Wavesonics/richtext-compose-multiplatform it's still pretty early, but I'm continuing to work on it.
πŸ‘ 2
❀️ 4
K 5
πŸ‘πŸ» 1
πŸŽ‰ 8
πŸ‘πŸΎ 1
a
j
+2
  • 4
  • 8
  • 1432
Is there an way to mock a function that receives a callback as parameter? For example, assuming that...
i

igorvd

over 6 years ago
Is there an way to mock a function that receives a callback as parameter? For example, assuming that I have an assync operation, and the way to get the result is using an interface as callback. I want to unit test this method, defining responses in this callback. The problem lies in the fact that the callback is declared as anonymous (I will put an example below). Is possible to mock this callback and define its responses using MockK? Here is an example:
class ViewModel {

	fun loadSomeStuff() {
		myObject.asyncOperation(object : Callback {
			//callback methods implementation
		})
	}
}
I know if I change the callback for a parameter in my class, it will be easily mocked. But, in my opinion it doesn't make sense, because it's related to the operation I need in the method. (This example is just for learning purposes, I was trying to teach a colleague about unit tests, and I got stocked in this scenario)
i
h
  • 2
  • 4
  • 1428
Which database is recommend to use in a compose-desktop proy?
l

Luis Alonso Ato Neyra

over 3 years ago
Which database is recommend to use in a compose-desktop proy?
l
a
+2
  • 4
  • 4
  • 1424
Hello, everyone! What is the best way to generate OpenAPI docs basing on Ktor routings (already writ...
a

aazavoykin

almost 3 years ago
Hello, everyone! What is the best way to generate OpenAPI docs basing on Ktor routings (already written)? There`s Ktor OpenAPI Generator (https://github.com/papsign/Ktor-OpenAPI-Generator), but the project seems not very active.
a
c
+3
  • 5
  • 9
  • 1416
Is there any way to disable scroll and clicks on children in a LazyColumn?
u

Utkarsh Tiwari

over 4 years ago
Is there any way to disable scroll and clicks on children in a LazyColumn?
u
a
g
  • 3
  • 5
  • 1410
```w: Kotlin Multiplatform <-> Android Gradle Plugin compatibility issue: The applied Android Gradle...
j

Joel Denke

over 1 year ago
w: Kotlin Multiplatform <-> Android Gradle Plugin compatibility issue:
The applied Android Gradle Plugin version (8.3.0) is higher 
than the maximum known to the Kotlin Gradle Plugin.
Tooling stability in such configuration isn't tested, please report encountered issues to <https://kotl.in/issue>"

Minimum supported Android Gradle Plugin version: 7.0
Maximum tested Android Gradle Plugin version: 8.2

To suppress this message add 'kotlin.mpp.androidGradlePluginCompatibility.nowarn=true' to your gradle.properties
Really, how can it be that Kotlin plugin is not supporting version of AGP that is 8.3? I am using Kotlin 1.9.23, Gradle 8.6, AGP 8.3, Java 17.
j
g
+2
  • 4
  • 4
  • 1409
Previous212223Next

kotlinlang

A modern programming language that makes developers happier.

Powered by