mbonnin
11/16/2022, 11:27 AMcompilation.kotlinOptions.freeCompilerArgs += arrayOf("-linker-options", "-lsqlite3")
but it seems we now need binary.linkerOpts("-lsqlite3")
?napperley
11/16/2022, 10:39 PMnapperley
11/18/2022, 1:57 AMpublic actual fun mainPaletteColor(paletteValue: UInt): Color = lv_palette_main(paletteValue).toColor()
The lv_palette_main
symbol exists in the liblvgl.a file. Below is the output after running `nm liblvgl.a | grep lv_palette_main`:
U lv_palette_main
U lv_palette_main
U lv_palette_main
U lv_palette_main
U lv_palette_main
U lv_palette_main
0000000000000777 T lv_palette_main
Anmol Verma
11/18/2022, 8:56 AMhfhbd
11/18/2022, 11:22 AMxcframework successfully written out to: clients/build/XCFrameworks/debug/clients.xcframework
> Task :clients:linkReleaseFrameworkIosArm64
> Task :clients:assembleReleaseIosFatFrameworkForClientsXCFramework SKIPPED
> Task :clients:linkReleaseFrameworkIosSimulatorArm64
> Task :clients:assembleReleaseIosSimulatorFatFrameworkForClientsXCFramework SKIPPED
> Task :clients:assembleClientsReleaseXCFramework
xcframework successfully written out to: clients/build/XCFrameworks/release/clients.xcframework
> Task :clients:assembleXCFramework
> Task :clients:compileIosArm64MainKotlinMetadata FAILED
Anmol Verma
11/18/2022, 4:13 PMsymbol multiply defined!
? and how can i resolve this ?
I am using a pod in a library project A
and now i have declared the pod in my Main Project
which uses this library A
so that the framework is found in the runtime but the compilation fails with the following
Compilation failed: Linking globals named 'knifunptr_cocoapods_GRPCClient8_TransportIDIsEqual': symbol multiply defined!
ankushg
11/19/2022, 12:03 AMxcodebuild
as a task from Gradle?
I’ve got a suite of Swift tests that consume my KMP artifact, and I’d like to include them as a dependency of my check
or test
tasks, and have them run as part of a Gradle continuous buildandrew
11/20/2022, 8:08 PMRohde Fischer
11/22/2022, 3:54 PMSortedMap
? E.g., when I'm deserializing a json
map where the order is important 🙂 It seems that Map
happens to be sorted, but I assume it's the same as for Java - there is no guarantee it will stay that way, am I correct in that assumption? If so what can/should I do?Slackbot
11/24/2022, 12:00 PMayodele
11/26/2022, 9:30 AM黄文和
11/26/2022, 9:36 AMMiroslav Sobotka
11/26/2022, 10:12 AM.toShort()
every time I use it.
Options: redefine each constant directly in the def file or subsequently in the kotlin code.hfhbd
12/01/2022, 5:24 PMkevin.cianfarini
12/04/2022, 2:31 PMisStatic
option correct in that when embedded within cocoapods, dependencies would be statically linked to the output framework and the consuming iOS application wouldn't have to introduce that cocoapods dep?
kotlin {
cocoapods {
framework {
isStatic = true
}
}
}
Adam S
12/04/2022, 5:11 PMitnoles
12/04/2022, 11:05 PMmacos_x64
František Jeřábek
12/05/2022, 12:32 PMlinuxArm64
and linuxX64
. I published the library to my local maven repo. Now when i try to use the library in some project on linuxX64
the build goes fine, but when i try to compile for linuxArm64
i get cannot find -l<library name>
and bunch of undefined reference to <something>
. The library has def
file with different linker paths for each architecture and build of the library goes fine for all build targets. The problem is only when i try to use the published library. So i am wondering what might be wrong here ?Landry Norris
12/05/2022, 3:14 PM__attribute__((objc_subclassing_restricted))
__attribute__((swift_name("FooKt")))
@interface FooKt : FooBase
+ (void) bar:(Baz) receiver
@end
but I don’t see this generated. I do see it if I make my extension function in an object, though.Gavin Novate
12/06/2022, 7:50 AMval time = measureTime {
repeat(10000) {
floatArray = floatArrayOf(
1f, 0f, 0f, 0f,
0f, 1f, 0f, 0f,
0f, 0f, 1f, 0f,
0f, 0f, 0f, 1f
)
}
}
println("timeTest = $time")
Logs
# Android
timeTest = 1.169792ms
timeTest = 993.229us
timeTest = 978.125us
timeTest = 843.229us
timeTest = 933.854us
timeTest = 769.271us
timeTest = 1.307812ms
timeTest = 859.375us
timeTest = 938.02us
timeTest = 900us
timeTest = 1.047396ms
timeTest = 844.271us
timeTest = 1.460417ms
# iOS (iPhone 13 Pro)
timeTest = 17.078459ms
timeTest = 11.881083ms
timeTest = 14.285167ms
timeTest = 14.382958ms
timeTest = 14.487708ms
timeTest = 9.521209ms
timeTest = 17.071583ms
timeTest = 17.293083ms
timeTest = 18.362084ms
timeTest = 17.979125ms
Seiya Kokushi
12/06/2022, 8:09 AMkotlinArtifacts
.
I found that new way doesn’t register embedAndSignAppleFrameworkForXcode
gradle task.
How can I execute embedAndSignAppleFrameworkForXcode
task with new DSL? or tell me how to register the gradle task embedAndSignAppleFrameworkForXcode
.Jon Olson
12/06/2022, 8:46 PMCP15 barrier instruction
errors on our Cortex a53 CPU ARMv8-A and our process is unable to load the .so at runtime - the process freezes.
This issue did not occur on Kotlin 1.6.10 or earlier.
The issue also is resolved by disabling the experimental memory model using kotlin.native.binary.memoryModel=experimental
On the other hand, Kotlin 1.7.20 has the experimental memory model enabled by default, and KTOR library also requires it to be on and we depend on KTOR.
I plan on creating a YouTrack ticket but would like to start by asking here first in case I get lucky.Pat Teruel
12/07/2022, 5:31 AMDigory Doolittle
12/08/2022, 7:09 AMlibnative_symbols()->kotlin.root.ch.digorydoo.kangaroo.doSomething(42);
Is the call to libnative_symbol() fast enough so I can do this on every call (from a C++ macro)? Or should I cache the result in a variable?Slackbot
12/08/2022, 1:22 PMsimon.vergauwen
12/09/2022, 9:05 AM/usr/bin/openssl
and /usr/bin/base64
from Kotlin Native, no? I'm trying to wrap these to generate JWT tokens. Anyone has a good example I could look at?Pablichjenkov
12/11/2022, 12:40 AMactual/expect
feature has over regular interface/abstract class design.
Perhaps not having to write down the interface 🤔Eric Womer
12/11/2022, 9:14 AM@Composable
fun DiceRollerView() {
LazyColumn {
/* DO Image */
Image(painter = painterResource(id = R.drawable.dice_1), "") // <- This Line
/* Do Button */
}
}
complaining "@Composable invocations can only happen from the context of a @Composable function"?Eric Womer
12/11/2022, 9:24 AMEric Womer
12/11/2022, 9:27 AMEric Womer
12/11/2022, 9:27 AM