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
02/02/2021, 4:55 PM
No. You cannot modify classes.
You'll need to write a compiler plugin
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.