[core][Android] Generate bindings for custom converters (#21023)# Why Added a way for users to add a custom converter for any type. # How To achieve the desired developer experience, I ut
[core][Android] Generate bindings for custom converters (#21023)# Why Added a way for users to add a custom converter for any type. # How To achieve the desired developer experience, I utilized an annotation processor that produces a connection between user functions that provide a converter and an internal `TypeConverterProvider` class that handles all converters. This connection is established by generating a new class with a single method responsible for invoking the user's implementation. To prevent interference with any existing package, this newly generated class is placed in a prefixed package. However, a downside to this approach is that it has a global impact, as each package will be aware of the converter. # Test Plan Usage: ```kotlin class CustomType { // ... } @ConverterBinder fun converter(): TypeConverter<CustomType> { return object : TypeConverter<CustomType>() { override fun convert(value: Any?): CustomType? { // converter body } } } ```
show more ...