ARouter
ARouter copied to clipboard
💪 A framework for assisting in the renovation of Android componentization (帮助 Android App 进行组件化改造的路由框架)
1、添加对 `getIntent()`、`getIntent().getExtras()`、`getArguments()`可能为`null`的情况进行判断。 最终生成的代码示例如下: Activity: ``` android.os.Bundle bundle = substitute.getIntent().getExtras(); ``` Fragment: ``` android.os.Bundle bundle = substitute.getArguments(); ``` ``` substitute.age = bundle == null ? substitute.age : bundle.getInt("age", substitute.age); substitute.height =...
版本 A : api 'com.alibaba:arouter-api:1.5.0' annotationProcessor 'com.alibaba:arouter-compiler:1.2.2' 版本 B : api 'com.alibaba:arouter-api:1.5.1' annotationProcessor 'com.alibaba:arouter-compiler:1.5.1' 使用 Arouter获取FragmentA,此时不传递param1参数. 版本 A : 不会报错 版本 B : ARouter.getInstance().inject会报空指针的错误 也就是说在版本B中, 如果类中定义了参数, 但是你没有传这个参数, 就会有如下报错:  从版本A升级到版本B升级建议,...
目前ARouter不支持App Bundle,目前国内华为市场也要求支持App Bundle,以后可能会有更多市场跟进,希望能做下兼容。
优化:当Interceptor的process未回调onContinue或者onInterrupt时,框架默认让拦截链继续下去。防止CountDownLatch始终未到0,线程必须等待300s超时,防止线程池等待队列满掉。
看了 Arouter 的源码,我有一个疑问 在 RouterProcessor.java 中,获取 Fragment 的 RouteMeta 信息代码部分: ``` } else if (types.isSubtype(tm, fragmentTm) || types.isSubtype(tm, fragmentTmV4)) { logger.info(">>> Found fragment route: " + tm.toString() + " Found...
Aroute进程间通信怎么操作呀,求相关文档,谢谢
Fragment中无法接收onActivityResult回调,navigation现有方法未对Fragment接收onActivityResult的情形做支持,希望可以公开相关API。
Interface `android.app.SharedElementCallback(classpath class)` used as super class of `androidx.core.app.ActivityCompat$SharedElementCallback21Impl`. 