HuolalaTech / hll-wp-therouter-android

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

为什么传递基本类型参数生成代码的时候会报错?传递其它类型就可以,比如String #171

Closed darkSuperman closed 1 month ago

darkSuperman commented 1 month ago

AActivity:

   @Autowired(name = "NeedCompress")
    var needCompress: Boolean = false

跳转:

 TheRouter.build(RouteUrl.AActivity)
        .withBoolean("NeedCompress", true)
        .navigation()

报错: needCompress 在 AActivity中是 private 访问控制 target.needCompress = variableName0; image

kymjs commented 1 month ago

https://therouter.cn/docs/2023/07/21/01