HuolalaTech / hll-wp-therouter-android

A framework for assisting in the renovation of Android componentization(帮助 App 进行组件化改造的动态路由框架)
https://therouter.cn/
Apache License 2.0
1.1k stars 129 forks source link

AutoWrite 的 bug #104

Closed xiaolei123 closed 1 year ago

xiaolei123 commented 1 year ago

我有两个类: interface ICar class RedCar : ICar,Parcelable

在A页面进行路由,注入 withParcelable("car",new RedCar())

在B页面接收: class BActivity{ @AutoWrite late val car : ICar }

这时候,我获取不到我的值。我查看源码,是在处理注入的时候,没有考虑超类的问题。

kymjs commented 1 year ago

是的,场景比较少,暂时不考虑支持这种情况。
ICar换成具体类,或者用withObject()都可以解决