97,862 questions
0
votes
0
answers
28
views
Why The singleton in KMP is two different instances in iOS and Kotlin Mutliple Platform
I got an object(singleton) in kotlin Multiple platform(KMP)
Like:
object SqIOSApiRegister {
private var initialized = false
val lock = NSLock()
init {
if (initialized) {
...
2
votes
2
answers
35
views
When clicked and held my Compose Card shows straight squared corners even though the Composable itself has a RoundedCornerShape
Pointy corners appear in this card when clicked and held when the card itself has rounded corners. I know Compose is declarative so I included the RoundedCornerShape before the .clickable property.
...
Advice
0
votes
0
replies
15
views
Is There an Easier Way to Use Swift Code in Kotlin Multiplatform? Step-by-Step with Cocoapods
Is there any new/easy way to call swift function from kotlin directly in kmp project?
or
Can anyone explain the same using cocoapods step by step?
0
votes
0
answers
58
views
App closes immediately on launch after switching launcher icons (Activity class does not exist)
I added multiple launcher icons using activity-alias to dynamically switch the app icon at runtime. But after going to the main activity, the app crashes immediately. I am not able to understand what ...
1
vote
0
answers
48
views
InvalidAlgorithmParameterException: Unsupported IV length: 16 bytes. Only 12 bytes long IV supported
I'm trying to implement data encryption and decryption using Cipher. This is my code:
class CryptographyManagerImpl : CryptographyManager {
private val KEY_SIZE_BITS: Int = 256
private val ...
0
votes
0
answers
13
views
Kotlin Multiplatform KLIB “duplicate kotlin-stdlib-common” error when running jvmTests in Ktor project
I’m working with the Ktor codebase (3.4.0-SNAPSHOT) and trying to run JVM tests locally. On a clean checkout, recommended testing (per CONTRIBUTING.md) fails:
./gradlew jvmTests
The build fails ...
1
vote
0
answers
36
views
Migration files not executed in test
I have test class which, if configured in this way, works
@DataJpaTest
@AutoConfigureEmbeddedDatabase(
refresh = AutoConfigureEmbeddedDatabase.RefreshMode.BEFORE_EACH_TEST_METHOD,
provider = ...
-1
votes
0
answers
51
views
How to know whether a particular phone no exists in device without OTP
For the last few days, I was trying to develop an app to verify a phone no whether it exists or not on the device.
Is there any way or API to know which numbers exist on the device, or whether a ...
0
votes
1
answer
38
views
com.fasterxml.jackson.module.kotlin.jacksonObjectMapper Removed from Latest Jackson 3.x Versions?
We have a very old Kotlin class (v1.4) that we were upgrading to the latest Kotlin and in the process upgrading to the latest jackson JARs too in the process.
I see that the groupId has changed for ...
-1
votes
0
answers
44
views
release apk or internal testing apk lag issue navigations [closed]
App download via debug mode or release apk ,App was lag issue back navigation not run smooth transmison navigation
app lag issue when geuster navigation on real device
app pages navigations issue ...
2
votes
1
answer
57
views
.flowOn(Dispatchers.Main) blocks the main thread
Why does this code block indefinitely?
fun main() = runBlocking {
val myFlow: Flow<String> = flow {
emit("abc")
}.flowOn(Dispatchers.Main)
myFlow.collect {
...
-1
votes
0
answers
72
views
What is right way to implement simple token-based authentication in Spring Security [closed]
I'm developing small monolith Spring-based REST API application with next key points:
authentication will be only by username/password that are provided directly from mobile app.
as sending username/...
Advice
0
votes
0
replies
25
views
How to make Koog AI Agent aware of the previous messages in a Whatsapp API situation
I am creating an AI agent that chats with different customers via Whatsapp API. How am can I make the agent aware of the previous messages with the client?
I already save the messages in a database, ...
-1
votes
1
answer
76
views
Rapidly clicking back button results in white screen [closed]
This is my code where I perform navigation with Navhost controller in Compose. Whenever I am in deep of this nav route and from there if I rapidly click the back button then it is showing a white ...
0
votes
0
answers
62
views
Transparency with Jetpack Compose Cards
I'd like to display a Card with a transparency of 0.5. However, that suddenly shows a rectangle in the middle of the card.
Left without transparency, right with 0.1f.
The code is really simple:
@...