ok i talked w/ AndoridX folks and got the buy in t...
# ksp
y
ok i talked w/ AndoridX folks and got the buy in to ship the testing artifact. We'll annotate them w/ some requires opt in though and will still NOT advertise (so no API stability, release notes etc, for now). as things progress, we can consider upgrading it to a real library if it becomes useful for many libraries. meanwhile, i highligy recommend proguarding it. Idk if javaap or KSP does any classloader isolation
🎉 3
t
Filed an issue for classloader isolation: https://github.com/google/ksp/issues/336
Currently targeting at Q2. If there is some non-trivial issue reported, we can try to do it earlier.
y
created a CL here. There is a build cut tomorrow but this is not very likely to catch it. https://android-review.googlesource.com/c/platform/frameworks/support/+/1612688 I'll share an androidx.snapshot maven url once it gets merged cc: @elihart
🙏 1
@elihart do you generate kotlin code or java? I'm asking because this library does some weird things to act like a java processor (e.g. synthesizes a new parameter for suspend methods). I'm thinking that the XProcessingEnv will receive target langauge as parameter to change that behavior. Also, I want to change the element API to not return methods and fields and instead return properties and methods.
but not priority right now (first want to move all room compiler tests to this API)
e
we generate both kotlin and java (mostly java, some kotlin extension functions and interfaces) passing a language param makes sense
y
meanwhile, i'm assuming your existing kotlin code generation code already expects the output of kapt (e.g. java stubs) so it should work as is for now
so this did get into beta03 (the test processor). And it should also be available in the latest snapshot build: http://androidx.dev/
🎉 2
beta03 will go out next week
e
thanks! i’ve had to deal with some fires, but will hopefully be able to spend some time on KSP within the next week
👍 1