aleyn97 / router

Routing framework for Android.
Apache License 2.0
99 stars 11 forks source link

无法传递Parcelable嵌套,@Autowired不能注解内部子类,编译时报错 #7

Closed CallMeLyric closed 2 months ago

CallMeLyric commented 11 months ago

image image

CallMeLyric commented 11 months ago

image 补充:通过flatBundle传递

CallMeLyric commented 11 months ago

Parcelable数据传递失败是因为我没写默认值也不能为null。。。。

aleyn97 commented 11 months ago

image image

生成模板类导包的问题,问题会记录下来,下版本解决。你可以先不写成内部类,写在同一个文件平行一下,如下:

@Parcelize
data class RpUserInfo(
    val tag: Tag
) : Parcelable

@Parcelize
data class Tag(
    val name: String
) : Parcelable