Would it be possible to uss KSP to freeze every object in its initialization?
Our code is super fragile because we basically always need to remember to freeze all the objects we create or we see crashes on ios
j
jw
02/02/2021, 4:55 PM
No. You cannot modify classes.
You'll need to write a compiler plugin
p
Paul Woitaschek
02/02/2021, 5:53 PM
From the KSP readme:
Kotlin Symbol Processing (KSP) is an API that you can use to develop lightweight compiler plugins.