https://kotlinlang.org
Join Slack
Hi I am trying to create an archive from my project for upload to app store, but the syncComposeForI...
s

Sam Michael

about 2 years ago
Hi I am trying to create an archive from my project for upload to app store, but the syncComposeForIos:
Could not infer iOS target architectures. Make sure to build via XCode (directly or via Kotlin Multiplatform Mobile plugin for Android Studio)
Error while evaluating property 'xcodeTargetArchs' of task ':shared:syncComposeResourcesForIos'.
How do i debug and resolve this, I've tried respecifying the architectures: My xcode specifies $(ARCHS_STANDARD) and build.gradle.kts has:
iosX64(),
iosArm64(),
iosSimulatorArm64()
s
a
i
  • 3
  • 9
  • 927
is there a possibility or future to use Qt with kotlin-native? Is that something that would require ...
s

sreich

over 3 years ago
is there a possibility or future to use Qt with kotlin-native? Is that something that would require a big "bindings" project, or should it kind of just work? I know there's a lot of complexity with Qt
s
t
+2
  • 4
  • 10
  • 927
Hey! We need to format prices in local currencies in our kmm app. In Java we are using NumberFormat ...
p

Pavel Repkin

over 2 years ago
Hey! We need to format prices in local currencies in our kmm app. In Java we are using NumberFormat and Currency classes for this task. Is currency formatting supported in KMM natively? Are there any third party libs?
p
k
+2
  • 4
  • 4
  • 924
Hey, I'm bringing up the Realm vs SQLDelight debate again because it's been a minute since it was la...
s

StavFX

over 2 years ago
Hey, I'm bringing up the Realm vs SQLDelight debate again because it's been a minute since it was last discussed and I didn't find a lot of great insight into comparing the two. I'm starting a new (my first) KMM project and I have past experience with Realm, so I when I saw they support KMM now I was obviously curious, but it sounds like SQLDelight is widely used so I wanted to hear if anyone has experience with Realm on KMM? Anyone done any benchmarks to try and compare the two?
👀 1
s
k
+3
  • 5
  • 27
  • 921
Does kotlin native support embedded arm targets? I’m guessing the size of stdlib in kotlin would be ...
a

andrew

about 3 years ago
Does kotlin native support embedded arm targets? I’m guessing the size of stdlib in kotlin would be hefty
🚫 1
a
h
+4
  • 6
  • 19
  • 919
How to pass object between @Composable screens? ```@Parcelize data class Post( val author: Strin...
i

Ink

over 4 years ago
How to pass object between @Composable screens?
@Parcelize
data class Post(
    val author: String,
    val title: String,
    val description: String,
    val reactionNumber: Int
) : Parcelable
In my `navigationController`;
composable(
    "PostDetails/{post}",
    arguments = listOf(
        navArgument("post") { type = NavType.ParcelableType(Post::class.java)}
    )
) {
    PostDetailsScreen(it.arguments?.get("post") as Post)
}
Now I get error: Parcelables don't support default values. Should I pass object using GSON ot this way is corretly? I heard that NavType.ParcelableType didn't work but right now it's implemented and developers can use it (?)
i
i
+2
  • 4
  • 9
  • 919
Is there a way to update an object in SqlDelight? `INSERT OR REPLACE` would cause the record to be d...
e

Elka

about 5 years ago
Is there a way to update an object in SqlDelight?
INSERT OR REPLACE
would cause the record to be deleted and reinserted which might trigger foreignkey updates like ON CASCADE DELETE...
e
k
a
  • 3
  • 9
  • 919
How can I build a .aar file for my Kotlin Multiplatform Mobile project that includes the commonMain ...
s

Sayali N

over 2 years ago
How can I build a .aar file for my Kotlin Multiplatform Mobile project that includes the commonMain code as well? I have a KMM app that I would like to render as a widget in existing android and iOS apps. I'm not sure how to get the binaries for android and iOS separately so that I can add those to my existing projects.
s
p
j
  • 3
  • 2
  • 918
Is there a reason why KSP generated classes are not visible by IDE? It is unless you add the followi...
m

marcinmoskala

almost 3 years ago
Is there a reason why KSP generated classes are not visible by IDE? It is unless you add the following code in config. Generated sources are visible when we use Java Annotation Processing.
kotlin.sourceSets.main {
    kotlin.srcDirs(
        file("$buildDir/generated/ksp/main/kotlin"),
    )
}
m
e
o
  • 3
  • 7
  • 917
I have a Scaffold with a TopAppBar. How do you make the bar's background color go all the way to top...
r

robnik

over 4 years ago
I have a Scaffold with a TopAppBar. How do you make the bar's background color go all the way to top edge of screen?
r
b
j
  • 3
  • 11
  • 917
Previous535455Next

kotlinlang

A modern programming language that makes developers happier.

Powered by