Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug的时候也会插桩,编译慢了不少 #7

Closed
xiaojianli opened this issue Mar 31, 2024 · 7 comments
Closed

Debug的时候也会插桩,编译慢了不少 #7

xiaojianli opened this issue Mar 31, 2024 · 7 comments

Comments

@xiaojianli
Copy link

RT

@JailedBird
Copy link
Owner

遍历所有class然后进行transform确实很慢,有种方式你可以试试:
改一下插件代码,debug阶段关闭transform,这时候会使用Arouter 便利dex获取生成的路由类(首次运行慢一点,第二次会保存在SP里面,调试阶段应该还是有用的);

@JailedBird
Copy link
Owner

我晚点加一个debug的transform启用配置;

@JailedBird
Copy link
Owner

麻烦更新到1.0.2-beta01这个版本试试,
在app模块添加 可以避免debug阶段transform;

arouter_config {
    disableTransformWhenDebugBuild = true
}

@xiaojianli
Copy link
Author

#6 和 这个issue 都验证了,没有问题,能否发个正式版

@JailedBird
Copy link
Owner

ok,晚点弄

@xiaojianli
Copy link
Author

ok,晚点弄
👍

@JailedBird
Copy link
Owner

#6 和 这个issue 都验证了,没有问题,能否发个正式版

已发布1.0.2,可以去看下README

@JailedBird JailedBird pinned this issue Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants