Hello everyone, I have ran into a change of behavi...
# android
j
Hello everyone, I have ran into a change of behaviour starting with kotlin 2.1.20. We have our own flavour of the ASOP that we also use to build the SDK "android.jar" that we use with
compileOnly
in our application, to get access to some `@SystemApi`s or
@hide
, however starting with 2.1.20 classes that are hidden are still working but
@SystemApi
methods no longer resolve. I managed to get around it by setting the library manually in the
KotlinCompile
task like so
tasks.withType(KotlinCompile::class.java) { libraries.setFrom("pathToLib") }
. We could have also stripped the
@SystemApi
annotation from the sources but we didn't want to rebuild it and have to maintain all those changes. Is anyone aware that this change was intensional? simply making the compile stricter in relation to its dependencies?