Tobi
02/11/2019, 4:25 PMTobi
02/12/2019, 9:06 AMjava.lang.NoClassDefFoundError: kotlinx/serialization/json/Json
when executing tests in a multiplatform project.
Any help would be much appreciated 🙏Dico
02/12/2019, 7:38 PMmetadata
artifact?
I was trying to add com.soywiz:klock
to my multiplatform project, and I was struggling because I couldn't find a recent version for which all artifacts are present in the maven repository.
I cloned its source and installed it to my local maven repository. The klock
artifact is not present, but I tried adding klock-metadata
as a dependency.
It worked in one subproject, although I didn't try compiling, but not in another.
@Deactivated Usergalex
02/13/2019, 10:57 AMIvan
02/13/2019, 2:40 PMlouiscad
02/13/2019, 7:04 PMChris Zhang
02/13/2019, 7:27 PMsitepodmatt
02/14/2019, 4:34 AMbasher
02/14/2019, 7:40 PMMatouš Skála
02/16/2019, 9:50 PMcom.android.library
plugin, but during compilation I still get Unresolved reference: android
when trying to access classes from android sdk. Do I miss something here?
https://github.com/MattSkala/kotlin-examples/commit/22477f5b24badb23d158f1dd3760ee2780d01a9asubin s v
02/17/2019, 12:33 PMdewildte
02/17/2019, 5:12 PMjvmMain
project I keep getting a unresolved reference to ktor's HttpClient
class that exists in commonMain
.ribesg
02/18/2019, 10:34 AMribesg
02/18/2019, 1:36 PM> Task :generateMetadataFileForAndroidReleasePublication FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':generateMetadataFileForAndroidReleasePublication'.
> org.jetbrains.kotlin.gradle.plugin.mpp.HierarchyAttributeContainer cannot be cast to org.gradle.api.internal.attributes.AttributeContainerInternal
natpryce
02/18/2019, 3:55 PMDico
02/19/2019, 2:31 AMkotlin.UninitializedPropertyAccessException: lateinit property compilation has not been initialized
ribesg
02/19/2019, 9:17 AMfun cinterops(action: NamedDomainObjectContainer<DefaultCInteropSettings>.() -> Unit) = cinterops.action()
fun cinterops(action: Action<NamedDomainObjectContainer<DefaultCInteropSettings>>) = action.execute(cinterops)
These functions of KotlinNativeCompilation
are identical and I can’t call any of them because both match anything I write, any idea?ribesg
02/19/2019, 9:53 AMThrowable
into a NSError
or NSException
?ribesg
02/19/2019, 3:41 PMDico
02/19/2019, 5:02 PMactual inline class
to define expect class
in the future?
This to me seems like a prime use case of inline classes, as type aliases are not an option if there are tiny differences between the expected and actual type.
I previously assumed that this is already possible, but it isn't, and I don't see a reason why it shouldn't be other than a bit of implementation complexity.dewildte
02/19/2019, 10:32 PMdewildte
02/20/2019, 1:19 AMprivate val httpClient: HttpClient = HttpClient {
install(JsonFeature) {
serializer = KotlinxSerializer().apply {
setMapper(GloUserDTO::class, GloUserDTO.serializer())
}
}
}
It produces:
Error:(15, 57) Kotlin: [net.publicmethod.multi_glo_sdk.jvmMain] Unresolved reference: serializer
natpryce
02/20/2019, 9:56 AMribesg
02/20/2019, 9:59 AMthis::class.simpleName
? Is there a list of things part of stdlib
?louiscad
02/20/2019, 12:06 PMkotlin {
sourceSets {
filter { it.name.startsWith("android") }.forEach {
it.languageSettings.apply {
useExperimentalAnnotation("kotlin.Experimental")
}
}
}
}
but I'm getting an error because the test sourceSets defined by the Android Gradle plugin (version 3.3.1) don't have the experimental annotation.
How can I solve that issue to enable this experimental annotation in my android source sets defined my Kotlin multiplatform gradle plugin?
The exact error message is the following:
Inconsistent settings for Kotlin source sets: 'androidDebugAndroidTest' depends on 'androidAndroidTest'
'androidDebugAndroidTest': set of experimental annotations in use is []
'androidAndroidTest': set of experimental annotations in use is [kotlin.Experimental]
The dependent source set must use all experimental annotations that its dependency uses.
pardom
02/20/2019, 4:52 PMpardom
02/20/2019, 5:00 PMinterval
function that isn’t as terrible as this one I just wrote:altavir
02/21/2019, 6:54 AMhmole
02/21/2019, 7:37 AMincludeBuild
dependency substition on a preset of an mpp project? In a non-mpp android module I have a dependency mpp-module-android
, and trying to substitute it with mpp-module
, but it fails with Unable to find module with Gradle path
natpryce
02/21/2019, 8:46 AM