https://kotlinlang.org
Join Slack
posted on stackoverflow but has anyone ran into similar issue here? I'm new to springboot and kotest...
m

Min Tikim

over 3 years ago
posted on stackoverflow but has anyone ran into similar issue here? I'm new to springboot and kotest https://stackoverflow.com/questions/71833886/springboot-test-fails-to-run
m
s
  • 2
  • 5
  • 297
Does SqlDelight also work with pre-populated databases?
d

Daniele B

over 5 years ago
Does SqlDelight also work with pre-populated databases?
d
k
s
  • 3
  • 39
  • 297
Hi, I’m trying to save data to the iOS keychain. I use the following piece of code to accomplish tha...
r

Ronald van D

almost 6 years ago
Hi, I’m trying to save data to the iOS keychain. I use the following piece of code to accomplish that:
val searchDictionary = CFDictionaryCreateMutable(kCFAllocatorDefault, 5, null, null)

        CFDictionaryAddValue(searchDictionary, kSecClass, kSecClassGenericPassword)
        CFDictionaryAddValue(searchDictionary, kSecAttrService, CFBridgingRetain(appName))
        CFDictionaryAddValue(searchDictionary, kSecAttrGeneric, CFBridgingRetain(identifier))
        CFDictionaryAddValue(searchDictionary, kSecAttrAccount, CFBridgingRetain(identifier))
        CFDictionaryAddValue(searchDictionary, kSecValueData, CFBridgingRetain(NSNumber(int = 2048)))

 SecItemAdd(searchDictionary, null)
But I keep getting OSStatus -50 (One or more parameters passed to a function were not valid.). I followed several Ojective-c tutorials to come up with this code and it should be valid.. Someone got an idea what I’m missing?
r
k
  • 2
  • 6
  • 297
Does Compose Preview work in `commonMain` source set I have a Preview Composable in `commonMain` but...
v

Vaibhav Jaiswal

7 months ago
Does Compose Preview work in
commonMain
source set I have a Preview Composable in
commonMain
but the preview window shows this
v
t
w
  • 3
  • 18
  • 297
Hi, how to save `compose into bitmap` for export? There is one method, but it is not available in mu...
d

Dmitrii

over 1 year ago
Hi, how to save
compose into bitmap
for export? There is one method, but it is not available in multiplatform: https://developer.android.com/develop/ui/compose/graphics/draw/modifiers#composable-to-bitmap
d
m
k
  • 3
  • 4
  • 296
What is an easy way to do absolute positioning of a Box inside a Box? I tried Modifier.offset() and...
s

Stefan Oltmann

almost 2 years ago
What is an easy way to do absolute positioning of a Box inside a Box? I tried Modifier.offset() and Modifier.graphicsLayer(), but both won't work as they don't have an effect. I want to make the Boxes clickable, so drawing in a Canvas won't help me.
Box {
Box(
    modifier = Modifier
        .border(1.dp, Color.Blue)
        .size(
            width = 200.dp,
            height = 200.dp
        )
        .graphicsLayer(
            translationX = 50,
            translationY = 50
        )
)
}
✅ 1
s
r
d
  • 3
  • 11
  • 296
Is there any notion of rounding an `Instant` or `LocalDateTime` to a specific `DateTimeUnit`? Is tha...
k

kevin.cianfarini

over 2 years ago
Is there any notion of rounding an
Instant
or
LocalDateTime
to a specific
DateTimeUnit
? Is that a reasonable thing to want? I might be reaching for the wrong thing right now.
k
a
  • 2
  • 4
  • 296
I'm having an odd behavior, playing with Compose Multiplatform, when trying to run my android app, o...
c

Cicero

almost 3 years ago
I'm having an odd behavior, playing with Compose Multiplatform, when trying to run my android app, onPointerEvent (androidx.compose.ui.input.pointer) is giving me "Unresolved reference: onPointerEvent". It runs just fine for my desktop target. The environment is almost an out of the box project but for preview I believe, the following are the configurations: kotlin.native.enableDependencyPropagation=false android.useAndroidX=true kotlin.version=1.7.10 agp.version=7.3.0 compose.version=1.2.0
val commonMain by getting {
    dependencies {
        api(compose.runtime)
        api(compose.foundation)
        api(compose.material)
    }
}
val androidMain by getting {
    dependencies {
        implementation("androidx.compose.ui:ui-tooling-preview:1.3.3")
        api("androidx.appcompat:appcompat:1.6.0")
        api("androidx.core:core-ktx:1.9.0")
    }
}
I really don't get why it doesn't work on Android and it works on Desktop. Build error in the 🧵
c
e
  • 2
  • 9
  • 296
Should we store "_mutableStateListOf_" in ViewModel or in the Compose Function? If we have it in the...
e

elye

almost 3 years ago
Should we store "_mutableStateListOf_" in ViewModel or in the Compose Function? If we have it in the Compose Function, looks like we'll need to create a new list for every modification of it, as explain here https://kotlinlang.slack.com/archives/CJLTWPH7S/p1672831604690449. So tempting to put "_mutableStateListOf"_ in the ViewModel, but feel it is wrong.
e
z
  • 2
  • 1
  • 296
Ive noticed that `AnimatedContent` skips the transition sometimes, despite targetState having change...
z

Zoltan Demant

about 3 years ago
Ive noticed that
AnimatedContent
skips the transition sometimes, despite targetState having changed. Why could that be? Potential bug? Code in 🧵
z
o
d
  • 3
  • 28
  • 296
Previous238239240Next

kotlinlang

A modern programming language that makes developers happier.

Powered by