https://kotlinlang.org
Join Slack
any suggestions for plugins to detect unused dependencies in a kotlin DSL android project? I have se...
w

William Reed

almost 4 years ago
any suggestions for plugins to detect unused dependencies in a kotlin DSL android project? I have seen https://github.com/Faire/gradle-kotlin-buildozer but I get an error about needing java 16
Incompatible because this component declares an API of a component compatible with Java 16 and the consumer needed a runtime of a component compatible with Java 11
any other suggestions to try?
w
m
v
  • 3
  • 15
  • 679
Hello, is there a "on hover" property in Compose Desktop ? I'd like to detect the mouse over an elem...
d

David Dupraz

about 4 years ago
Hello, is there a "on hover" property in Compose Desktop ? I'd like to detect the mouse over an element, not the click
d
t
c
  • 3
  • 3
  • 679
I'm having issues with `yarn.lock` checks. I've just updated an npm dependency, run `gradle kotlinU...
e

Edoardo Luppi

over 1 year ago
I'm having issues with
yarn.lock
checks. I've just updated an npm dependency, run
gradle kotlinUpgradeYarnLock
, and committed + pushed the
yarn.lock
changes. Locally builds fine, on Jenkins it returns:
00:02:51.294  FAILURE: Build failed with an exception.
00:02:51.294  
00:02:51.294  * What went wrong:
00:02:51.294  Execution failed for task ':kotlinStoreYarnLock'.
00:02:51.294  > yarn.lock was changed. Run the `kotlinUpgradeYarnLock` task to actualize yarn.lock file
Am I supposed to run
kotlinUpgradeYarnLock
on the Jenkins pipeline too, or should it work straight away? I don't recall this issue in the past.
e
h
a
  • 3
  • 6
  • 678
We are choosing between Electron and Compose Desktop. What thing I feel will be missing is powerful ...
a

Alexander Suraphel

almost 4 years ago
We are choosing between Electron and Compose Desktop. What thing I feel will be missing is powerful charting libs. Web has powerful libraries like D3 and other derived from it. Are are great options for compose in that area?
a
c
+6
  • 8
  • 17
  • 678
Anyone working on a game engine with Compose?
x

xxfast

over 2 years ago
Anyone working on a game engine with Compose?
x
r
+6
  • 8
  • 27
  • 676
Hello all. Just getting starting with compose navigation, trying to set my general app structure. ...
b

Billy Newman

about 3 years ago
Hello all. Just getting starting with compose navigation, trying to set my general app structure. I will have some main screens to handle app setup for the user and authentication. Once authenticated I would like to navigate to the home screen, which has a bottom navigation in a scaffold. I am trying to do this with 2 NavHosts, which means I need to nav controllers. Everything works fine from the main screen to the home screen, but upon navigation from home back to main (simulated logout), if I try and go back to the home screen I get
ViewModelStore should be set before setGraph call
Code in comments
b
c
+4
  • 6
  • 30
  • 676
Hi there! I am running into a Jackson issue with sealed classes. I have the following code: ```@Js...
a

Arnab

almost 3 years ago
Hi there! I am running into a Jackson issue with sealed classes. I have the following code:
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME)
sealed class Principal
object AnonymousUser : Principal() {
  val _empty: String? = null
}

// other implementations of Principal

fun main() {
  // jacksonObjectMapper() is a function in jackson which creates an object mapper with the Kotlin module
  val input = jacksonObjectMapper().writeValueAsString(AnonymousUser)
  val principal = jacksonObjectMapper().readValue(input, Principal::class.java)
  println(principal)
}
This gives me the following error:
Exception in thread "main" com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "_empty" (class com.example.hellojavabin.graphql.context.Principal$AnonymousUser), not marked as ignorable (0 known properties: ])
 at [Source: (String)"{"@type":"Principal$AnonymousUser","_empty":null}"; line: 1, column: 49] (through reference chain: com.example.hellojavabin.graphql.context.Principal$AnonymousUser["_empty"])
What am I missing here? I also tried casting the input string directly to
AnonymousUser
but that fails with the same issue. Has anyone done something similar?
a
  • 1
  • 1
  • 671
Using compose navigation, how can I make sure one destination has only one instance? I'm handling a ...
t

Tgo1014

about 3 years ago
Using compose navigation, how can I make sure one destination has only one instance? I'm handling a intent from the main screen to a detail screen, but if the user click many times the intent then when pressing back it goes to the previous detail screen instead of the main screen
t
f
i
  • 3
  • 21
  • 671
Hello ! Does anyone know how to programmatically restart app in single Activity architecture?
j

Jason

about 4 years ago
Hello ! Does anyone know how to programmatically restart app in single Activity architecture?
stackoverflow 3
j
g
n
  • 3
  • 5
  • 671
Why is `LaunchedEffect` called multiple times? ```var isInitialized by remember { mutableStateOf(fa...
c

chanjungskim

about 2 years ago
Why is
LaunchedEffect
called multiple times?
var isInitialized by remember { mutableStateOf(false) }
Log.d("aos","CompleteRoute")

LaunchedEffect(Unit) {
    if(isInitialized) return@LaunchedEffect
    isInitialized = true

    Log.d("aos","LaunchedEffect")
}
c
d
+2
  • 4
  • 4
  • 670
Previous757677Next

kotlinlang

A modern programming language that makes developers happier.

Powered by