bjonnh
01/03/2020, 8:52 PMRené
01/04/2020, 3:05 PMRené
01/04/2020, 3:06 PMegorand
01/05/2020, 5:30 PM> Task :kotlinNpmInstall FAILED
error Couldn't find package "wire-wire-runtime@3.1.0-SNAPSHOT" required by "wire-wire-runtime-test@3.1.0-SNAPSHOT" on the "npm" registry.
Pretty sure it’s an issue with my local machine’s config as the CI works fine, any idea how to diagnose this? Also, here’s the `build.gradle`: https://github.com/square/wire/blob/master/wire-runtime/build.gradlenrobi
01/06/2020, 11:30 AMKtor
backend module from a KMP
project to Heroku, but I’m getting A problem occurred configuring project ':app'. > kotlin.KotlinNullPointerException (no error message)
for Task :buildSrc:build
. Anyone who had similar issues?Daniel Gruber
01/06/2020, 1:25 PMtest
source set can access the internal declarations of main
);”Joey
01/08/2020, 8:53 AMA POM cannot have multiple artifacts with the same type and classifier
when running ./gradlew install
Himanshu Sharma
01/08/2020, 7:35 PMcorneil
01/09/2020, 4:07 PMDmitri Sh
01/09/2020, 10:10 PM@Suppress("CONFLICTING_OVERLOADS")
Which removes the compile problem but its not visible on the Swift side.Piasy
01/10/2020, 1:13 PMmzgreen
01/11/2020, 4:04 PMsikri
01/14/2020, 9:52 AMsendoav
01/16/2020, 2:18 PMsendoav
01/16/2020, 2:18 PMclass TransfersPresenter{
fun doTransfer(){
presenterScope.launch {
doTransferUseCaseContract.execute(onSuccess:{
view.hideAnimatedLoadingDirectly()
})
}
}
}
sendoav
01/16/2020, 2:18 PMsendoav
01/16/2020, 2:19 PM@Test
fun `on do transfer and successfully completed should hide animated loading directly and navigate to the transfers confirmation in the bank transfers process`() {
presenter.doTransfer()
val successCaptor = slot<() -> Unit>()
coVerify{ doTransferUseCase.execute(capture(successCaptor)) }
successCaptor.captured()
verify { view.hideAnimatedLoadingDirectly() }
}
sendoav
01/16/2020, 2:19 PMdoTransferUseCase.execute
is a suspend functionsendoav
01/16/2020, 2:20 PMsendoav
01/16/2020, 2:22 PMsendoav
01/16/2020, 2:23 PM@Test
fun `on do transfer and successfully completed should hide animated loading directly and navigate to the transfers confirmation in the bank transfers process`() {
presenter.doTransfer()
val successCaptor = slot<() -> Unit>()
verify {runTest { doTransferUseCase.execute(capture(successCaptor)) }}
successCaptor.captured()
verify { view.hideAnimatedLoadingDirectly() }
}
sendoav
01/16/2020, 2:23 PMsendoav
01/16/2020, 2:23 PMactual fun <T> runTest(block: suspend CoroutineScope.() -> T) {
TestCoroutineDispatcher().runBlockingTest { block() }
}
sendoav
01/16/2020, 2:24 PMsendoav
01/16/2020, 2:26 PMShan
01/19/2020, 2:03 AMShan
01/19/2020, 10:16 PMjvmMainApi
and jvmCompile
and all sorts of variations of configs that are supplied by the multiplatform plugin, but the one I needed was jvmDefault
.
api(project(":android-remote","jvmDefault"))
It now sees `android-remote`'s dependencies correctly!darkmoon_uk
01/20/2020, 7:35 AMCarter
01/20/2020, 3:00 PM./gradlew :modelLib:check
gets me this message:
The Kotlin source set commonTest was configured but not added to any Kotlin compilation. You can add a source set to a target's compilation by connecting it with the compilation's default source set using 'dependsOn'.
See <https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets>
And only the tests in my jvmTest source set are run. the commonTest tests are ignored.Carter
01/20/2020, 3:00 PMkotlin {
jvm()
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
}
}
jvmTest {
dependencies {
implementation kotlin('test')
implementation kotlin('test-junit')
}
}
}
}