Kris Wong
09/06/2019, 1:42 PMKris Wong
09/06/2019, 1:43 PMegorand
09/08/2019, 1:03 PMkotlin {
jvm() {
withJava()
}
sourceSets {
commonMain {
// Declares class Person in platform-agnostic Kotlin
}
jvmKotlinInteropMain {
dependsOn jvmMain
// Declares class Person with Java interop annotations
}
jvmJavaMain {
dependsOn jvmMain
// Declares class Person written in Java
}
}
}
egorand
09/08/2019, 1:05 PMlouiscad
09/10/2019, 9:50 AMkotlin
block after I setup the targets, and I make sure I add the AndroidX test runner dependency:
fun KotlinMultiplatformExtension.setupAndroidTestSourceSetsAndDependencies() {
val androidTargets = targets.filterIsInstance<KotlinAndroidTarget>()
if (androidTargets.isEmpty()) return
val project = androidTargets.first().project
project.configurations.matching { it.name.startsWith("androidTest") }.all {
val configurationName = name
dependencies.all {
val dependency = this
project.dependencies {
configurationName.replaceFirst("androidTest", "test")(dependency)
}
}
}
}
Konstantin Petrukhnov
09/11/2019, 6:26 AMansman
09/12/2019, 2:21 PMactual typealias
when the target is an inline class
? I would like to define a Duration
that is typealiased to kotlin.time.Duration
but I’m getting the error:
The following declaration is incompatible because modifiers are different (companion, inner, inline):
public final expect class Duration
saket
09/12/2019, 2:44 PMsaket
09/12/2019, 2:44 PMansman
09/12/2019, 3:45 PMKris Wong
09/12/2019, 3:50 PMimport org.jetbrains.kotlin.gradle.tasks.FatFrameworkTask
?louiscad
09/12/2019, 4:16 PMKris Wong
09/12/2019, 7:26 PMDico
09/14/2019, 12:38 PMansman
09/14/2019, 6:38 PMEvan R.
09/18/2019, 1:57 AMMarko Mitic
09/21/2019, 7:21 PMKapil Godhwani
09/23/2019, 3:54 PMansman
09/25/2019, 2:01 PMmatchingFallbacks = ["release"]
for the additional build type but it feels strange that consumers are required to do thatNikolay Kasyanov
09/27/2019, 2:17 PMSylvain Patenaude
09/27/2019, 4:26 PMSylvain Patenaude
09/30/2019, 3:27 PMSylvain Patenaude
09/30/2019, 5:12 PMSylvain Patenaude
09/30/2019, 5:31 PMJustin
09/30/2019, 7:06 PMJustin
09/30/2019, 7:07 PMSylvain Patenaude
10/07/2019, 4:26 PMSylvain Patenaude
10/07/2019, 5:09 PMSylvain Patenaude
10/08/2019, 6:26 PMankushg
10/10/2019, 6:19 PMkotlinx.android.parcel.Parcelize
annotation on models in Multiplatform-land?
If I were to do it myself, I would try to:
- expect Parcelize
and Parcelable
in common
(probably using OptionalExpectation
for @Parcelize
)
- typealias them for Android
- make an empty interface for Parcelable
on other platforms
I just wanted to check if there was an "official" way to do it, or plans to bring it into the stdlib as a built-in OptionalExpectation
like other ones