五香鱼cc
五香鱼cc
不知道是不是和arouter一样支持组件化呢?
When I use such code in Activity: Call call = client.newCall(request); call.enqueue(new Callback() { @Override public void onFailure(Call call, IOException e) { } @Override public void onResponse(Call call, Response response)...
I see the code of Retrofit, and realize that it use RetentionPolicy.RUNTIME. I want to know why not use RetentionPolicy.CLASS instead, because many frames such as ButterKnife , Dagger, xUtils3,...
ARouter在整合各个module编译期间生成的RouterMap的时候,是在ARouter.init()的时候去dex文件中查找具体的class,虽然这块有通过sp存储来做优化,但对于第一次使用,还是会存在通过dex中查找RouterrMap class的过程。 所以:是否可以通过Transfrom,在编译期间就查找到所有的RouterMap,然后注入到Arouter.init()方法中,免去自爱运行时从dex查找class的过程呢? 这是我实现的一个小demo:https://github.com/dndxxiangyu/accumulate/blob/master/Android%E5%9F%BA%E4%BA%8EGradle%E6%8F%92%E4%BB%B6%E7%9A%84%E6%A8%A1%E5%9D%97%E5%8C%96map%E6%95%B4%E5%90%88.md 好处:可以避免查找dex
亲测无软用
从3m到2.5m,效果不是很明显。
why are you so diao?