Adam Brown
06/03/2022, 4:29 AMeygraber
06/03/2022, 1:59 PMCopyOnWriteArrayList
?Charles Prado
06/03/2022, 2:03 PMsealed interface SomeInterface {
data class SomeInnerClass(
val internalObj: SomeInternalObj,
) : SomeInterface
data class AnotherInnerClass(
val internalObj: AnotherInternalObj
) : SomeInterface
}
🔴 SomeInterface.SomeInnerClass
is not exposed to iOS
If I try the same, but using a class, it works:
sealed class SomeClass {
data class SomeInnerClass(
val internalObj: SomeInternalObj,
) : SomeClass
data class AnotherInnerClass(
val internalObj: AnotherInternalObj
) : SomeClass
}
🟢 SomeClass.SomeInnerClass
is exposed to iOS
Is it possible to make the internal classes visible to iOS using an interface instead of a class?Jonathan Ellis
06/03/2022, 6:12 PMFrancis Mariano
06/03/2022, 8:29 PMAdam Brown
06/04/2022, 5:40 AMios()
to my common gradle file, it starts failing to resolve my dependencies:
Could not resolve org.jetbrains.compose.foundation:foundation:1.1.0.
Required by:
project :common
michaelv
06/05/2022, 12:50 AMAdam Brown
06/05/2022, 1:16 AMfun LifecycleRegistry(): LifecycleRegistry = LifecycleRegistryImpl()
isn't referenced anywhere in my own Kotlin code, so it doesnt appear to be present in the header file. If i add a public variable w\ that type to one of my classes, then it does appear in the header. Is there anyway to force it to add everything to the header regardless of if it is in a public interface somewhere?Adam Brown
06/05/2022, 7:15 PMMendess
06/06/2022, 1:41 PMJakub Sieprawski
06/06/2022, 1:51 PMorg.gradle.internal.component.AmbiguousVariantSelectionException: The consumer was configured to find an API of a component, preferably optimized for Android, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug'. However we cannot choose between the following variants of project :common:
- Configuration ':common:debugApiElements' variant android-aidl declares an API of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'artifactType' with value 'android-aidl' but the consumer didn't ask for it
- Provides attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.1' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'debug' but the consumer didn't ask for it
Am I doing something wrong?xxfast
06/06/2022, 2:48 PMFrancis Mariano
06/06/2022, 3:44 PMNorbi
06/06/2022, 7:43 PM@java.lang.annotation.Inherited
in Java.)christophsturm
06/06/2022, 10:47 PMclasspath = sourceSets["test"].runtimeClasspath
Orhan Tozan
06/07/2022, 11:09 AMjava.time
inside of commonMain
? I'm using kotlinx-datetime
as a dependency.jean
06/07/2022, 12:42 PMMendess
06/07/2022, 1:00 PMClassDefNotFound
exception. How could I start debugging this?kkovach
06/07/2022, 1:53 PMMarc
06/07/2022, 7:26 PMshota jolbordi
06/08/2022, 12:17 AMandylamax
06/08/2022, 3:00 AMStefan Oltmann
06/08/2022, 2:57 PM@SharedImmutable
private val backgroundDispatcher: CoroutineDispatcher = Dispatchers.Default
and it looks like that every Job started by backgroundDispatcher.launch()
runs on the same NSThread. I use 1.6.1-native-mt
. The same code on JVM runs every job on another thread.
Do I have to do something extra to get this parallel?Alper Tekin
06/08/2022, 6:00 PMactual
class.
I do follow the example in KaMPKit. Although everything works fine in KaMPKit standalone project, in my project which is a separate project and implements shared lib can not resolve actual
class imports in androidMain
but resolves iosMain
😄 Any thoughts about what the reason might be? Thanks in advance.xiaobailong24
06/09/2022, 2:34 PMJonathan Ellis
06/09/2022, 2:49 PMMarco Righini
06/09/2022, 8:17 PMxiaobailong24
06/10/2022, 1:46 AMDimitri Giani
06/10/2022, 7:26 AMBruno Vaillant
06/10/2022, 12:08 PM