Miguel Vera Belmonte
01/22/2022, 11:05 AMkotlin-compile-testing
compilation? It seems to be possible using KAPT (using result.classLoader.loadClass("com.pkg.GeneratedClass")
) but so far I haven’t got it to work with KSP. It seems like running the compilation only generates source files, but no .class
files, so I’m guessing there’s some other gradle task involved that is not being run and it’s not possible yet…?ephemient
01/22/2022, 11:10 AMMiguel Vera Belmonte
01/22/2022, 11:27 AMcompilation.kspSourcesDir
I’m able to browse through the generated files), but rather than these generated files are not compiled & added to the classpath, so I can’t load them later at runtime in the test code to perform assertionsjameskleeh
01/22/2022, 8:55 PMMichal Klimczak
06/08/2022, 2:17 PMUnresolved reference: Flow
). It's like I'm missing one more piece at sources = compilation.sources + compilation.kspGeneratedSourceFiles
line?package com.example
import com.futuremind.koru.ToNativeInterface
import kotlinx.coroutines.flow.Flow
@ToNativeInterface
interface A {
suspend fun a(whatever: Int) : Float
}
will result in unresolved reference on ToNativeInterface and Flow