pajatopmr
03/28/2019, 12:45 PMEllen Shapiro
03/28/2019, 1:14 PMKris Wong
03/28/2019, 7:22 PMKris Wong
03/29/2019, 1:58 PMKris Wong
03/29/2019, 2:09 PMGarouDan
03/29/2019, 4:49 PMjs
, jvm
and native
targets.
The strange thing is I cannot make the js tests fail, it looks it is being ignored.
Does someone had a problem like this or knows an workaround?
This is very strange.GarouDan
03/30/2019, 10:50 AMin myfun getPackage(class_: KClass<*>): String? = class_.qualifiedName?.replace(".${class_.simpleName}", "")
common
module of a multiplatform
project.
The problem is the .qualifiedName
part doesn’t work in JavaScript and because of that I’m receiving the following error:
Unsupported [This reflection API is not supported yet in JavaScript]
It would be very nice to see JavaScript supporting the full reflection API, but, either way, the problem is a bit different.
My code is not compiling in the JavaScript module because of that.
But all of my targets other than the js could benefit from that, so, how could I avoid this error in order to make this code work for native and jvm targets and let js without that?
Where the code could live inside the common
module?pardom
03/30/2019, 8:38 PMpajatopmr
03/31/2019, 12:31 PMDamiano Giusti
04/01/2019, 7:50 AMkotlin-multiplatform
plugin. The build passes, however the annotations and the test methods aren’t visible from test classes. I’m using the groovy build.gradle
commonTest {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-test-common"
implementation "org.jetbrains.kotlin:kotlin-test-annotations-common"
implementation "io.mockk:mockk-common:1.9"
}
}
I started by using testImplementation
but I received such error Could not find method testIplementation() for arguments [org.jetbrains.kotlin:kotlin-test-common] on object of type org.jetbrains.kotlin.gradle.plugin.mpp.DefaultKotlinDependencyHandler
, and then moved to implementation
.
Could someone give me a clue? Thankspandawarrior
04/01/2019, 10:12 AMkotlin.TypeCastException
while using coroutine’s async/await
in common
when running on iOS. But it works well on Android. Any advice to go about this?JoakimForslund
04/01/2019, 12:20 PMimage = UIImage.imageNamed("image/$file.png");
from iOS target?
My current idea is using base64 and storing it common code but it would be pretty sweet if the resources-folder could be used in my static librarymanijshrestha
04/02/2019, 4:40 PMNikolai
04/03/2019, 4:54 AMMarc Knaup
04/03/2019, 10:35 AMo.semen
04/03/2019, 3:07 PMwaqas
04/03/2019, 3:14 PMkotlinOptions.moduleKind = "umd"
in my jsMain block. Whenever I build it I get in sharemodule/build/libs/sharedcode-js.jar
and sharedcode.js file only in /build/classes/kotlin/js/main/sharedcode.js
For now I just want to test shared code in a separate very simple Kotlin-JS project. Which file I am suppose to include in new project to use sharedcode built for JS?Hauke Radtki
04/04/2019, 8:00 AMRyan Perkins
04/04/2019, 3:08 PMPatrick Jackson
04/04/2019, 6:00 PMShan
04/04/2019, 8:48 PMPatrick Jackson
04/05/2019, 2:02 PMJan Stoltman
04/05/2019, 3:54 PMsuspend
functions, this means that I'm restricted to using the UI dispatcher (afaik there is no IO dispatcher for mpp projects?). Everything worked just fine with small files, but when I try to parse this huge json my app freezes. It happens with any CPU-intense operation really.
I've figured out that I could use concurrent.Worker
for CPU-intense operations, as it doesn't block my UI. But I just cannot figure out how to join coroutines and workers, things just explode when I try to launch either one inside the other. Is there a way to get a json file from ktor, inside a coroutine, and then process it with workers?
Do you guys have any recommendations? Any ideas for a direction which I could take?GarouDan
04/06/2019, 1:41 AMpublishToMavenLocal
task of mine:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':myLibrary:generateMetadataFileForMyLibraryIosX64Publication'.
...
Caused by: java.lang.ClassCastException: org.jetbrains.kotlin.gradle.plugin.mpp.HierarchyAttributeContainer cannot be cast to org.gradle.api.internal.attributes.AttributeContainerInternal
Would you have any clue as to what might cause this?
I’m using a configuration like:
compilations["main"].outputKinds("framework")
but even if I disable it I receive the same errorShan
04/07/2019, 4:54 PMjvmTest
)?egorand
04/07/2019, 10:33 PM:samples
module containing Java code that uses types declared in the common
source set of the main module. After the upgrade :samples:compileJava
started failing with a lot of cannot find symbol
errors, pointing to those types. The dependency on the main module is declared as implementation project(path: ':okio', configuration: 'runtimeElements')
. Have there been any changes that could’ve broken our setup?gumil
04/08/2019, 11:18 AMcannot access class <class-name>. check your module or classpath for missing or conflicting dependencies
in Android Studio, but when running, it’s fine and tests are also running?GarouDan
04/09/2019, 2:14 AMandroid
and the source sets androidMain
and androidTest
, can we say that androidTest
will see all androidMain
definitions and dependencies?
Or is it not true?Lawik
04/09/2019, 7:24 AMivan.savytskyi
04/09/2019, 3:28 PMmain.framework