Sam Garfinkel
04/11/2020, 7:31 PMproject(":foo")
style dependencies supported when the callee is a kotlin("jvm")
project and the project foo
is a multiplatform project?pablisco
04/11/2020, 7:55 PMKurt Renzo Acosta
04/12/2020, 4:36 AMDavide Giuseppe Farella
04/12/2020, 6:26 AMdomain
module, how can another Android module use “its jvm”, avoiding to declare an useless Android target for domain
?Brendan Weinstein
04/13/2020, 3:29 AMcinterop
to manually wire objc/swift dependencies into iosMain or have folks managed to get the cocoapods plugin to smoothly do this by declaring a pod?Euler
04/13/2020, 12:19 PMSergio Casero
04/13/2020, 12:27 PMFirebase
, take a look and please, if you know a better way to do that, please, share! https://gist.github.com/sergiocasero/eca986497c2025d703074cc995ed3618curioustechizen
04/14/2020, 8:39 AMSergio Casero
04/14/2020, 8:42 AMfun UIViewController.hello() { println("Hello from kotlin") }
Patrick Jackson
04/15/2020, 2:05 PMBrendan Weinstein
04/16/2020, 1:53 AMvanniktech
04/16/2020, 4:37 PMapply
method on iOS that’s behaving similar to Kotlin’s apply?Brendan Weinstein
04/17/2020, 6:23 AMIncorrectDereferenceException
from swift code that depends on a shared kotlin module.
The error specified ExitEntity$impl
as the problematic class which is a data class
code generated by sqldelight. I thought IncorrectDereferenceException is just thrown when some top-level variable is accessed off the main thread and isn't annotated with @ThreadLocal or @SharedImmutable. I was able to address by making the query within the kotlin module and freezing the object before it is used on the swift-side.
I started off debugging by writing an iosTest
within my shared kotlin module that retrieves an ExitEntity from the database on one thread and then accesses a field of the object on a different thread. The test passes without an exception being thrown.
My takeaway is that kotlin objects referenced in swift need to be frozen if passed between threads, even though the same object can be passed between threads without issue if solely in kotlin code.Rob Murdock
04/17/2020, 3:24 PMoctylFractal
04/17/2020, 8:41 PM.d.ts
generation available in multiplatform JS? I can't seem to get it to produce the output in the build folder, only the .js
filestreelzebub
04/17/2020, 10:42 PMJavier
04/18/2020, 3:37 PMplugins {
id("com.android.library")
kotlin("multiplatform") version "1.4-M1"
id("maven-publish")
}
saket
04/18/2020, 8:44 PMJavier
04/18/2020, 8:52 PM.../commonTest/kotlin/sample/SampleTests.kt: (3, 20): Unresolved reference: Test
saket
04/18/2020, 10:55 PMtask checkiOS {
def device = project.findProperty("iosDevice")?.toString() ?: "iPhone 8"
dependsOn 'linkDebugTestIos'
group = JavaBasePlugin.VERIFICATION_GROUP
description = "Runs tests for target 'ios' on an iOS simulator"
doLast {
def binary = kotlin.targets.ios.binaries.getTest('DEBUG').outputFile
exec {
commandLine 'xcrun', 'simctl', 'spawn', '--standalone', device, binary.absolutePath
}
}
}
tasks.check.dependsOn checkiOS
saket
04/19/2020, 12:55 AMAmanjeet Singh
04/19/2020, 1:34 PMDavide Giuseppe Farella
04/19/2020, 6:42 PMsquareup.okio
on the shared code? The doc uses File
which is only a jvm typeemmano
04/19/2020, 9:05 PMTestCoroutineScope
and TestCoroutineDispatcher
to control delays, how can the same kind of test be written for KN? Namely, it seems that runBlockingTest{}
is a JVM only construct. Probably because it uses DelayController
which is not available in KN (or so it seems). Here is the test class. The first test passes in both platforms, The second one only passes in JVM land. Any help will be appreciated.Derek Ellis
04/20/2020, 12:37 AMJavier
04/20/2020, 8:58 AMFriedger
04/20/2020, 10:31 AM/home/friedger/_repos/github/openintents/stacks-transactions-kotlin/build/js/packages/StacksTransactions-shared/kotlin/StacksTransactions-shared.js:11
}(this, function (_, Kotlin) {
^
TypeError: Cannot read property 'prototype' of undefined
at /home/friedger/_repos/github/openintents/stacks-transactions-kotlin/build/js/packages/StacksTransactions-shared/kotlin/StacksTransactions-shared.js:265:49
Any ideas what is going wrong?dimsuz
04/20/2020, 11:36 AMkapt
, but I'd really like to be able to also generate common code.
I know about kotlin compiler plugins, but this seems like an overkill.edenman
04/20/2020, 7:55 PMedenman
04/20/2020, 11:21 PMcommonTest
? I see gradle tasks for the various platforms (jvmTest
, jsTest
, etc) but nothing for just running commonTest
edenman
04/20/2020, 11:21 PMcommonTest
? I see gradle tasks for the various platforms (jvmTest
, jsTest
, etc) but nothing for just running commonTest
jvmTest
i get this compilation error on my test in `commonTest`: Unresolved reference: Test
emmano
04/21/2020, 12:04 AMedenman
04/21/2020, 12:09 AMgmazzo
04/21/2020, 8:14 AMtests
between two MP modules?
I mean, given A
and B
, both MPP, to B
’s commonTest
to have all clases defined in `A`’s commonTest
for instance.
I’m playing around Gradle’s Variants but it’s not an easy task to do.Kris Wong
04/21/2020, 12:57 PM