Skip to content

Commit

Permalink
feat: 增加ButterKnife知识点
Browse files Browse the repository at this point in the history
  • Loading branch information
feelschaotic committed Jan 23, 2019
1 parent 0793480 commit cf40e94
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ node_modules/
!.npmignore
!.cise.ym
.history/
.idea/
.idea/
/_book
6 changes: 2 additions & 4 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,9 @@

* Picasso

* 依赖注入
* [依赖注入]()

* butterknife

* apt
* [ButterKnife](开源库/依赖注入/ButterKnife.md)

* Dagger2

Expand Down
22 changes: 22 additions & 0 deletions 开源库/依赖注入/ButterKnife.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# ButterKnife
### 前言

J 神出品,必属精品,又是一个小而美的开源框架,重点在于 ButterKnife 不断迭代完善的历史进程,从之前的运行时反射处理注解,再到改为无损性能的 apt,再到巧思支持 lib。这都体现了 ButterKnife 与时俱进,追求最优的态度。

### 源码分析

- [how-butterknife-actually-works](https://medium.com/@lgvalle/how-butterknife-actually-works-85be0afbc5ab)
- [ButterKnife源码分析](https://www.jianshu.com/p/1c449c1b0fa2)

### 进阶

- [拆 Jake Wharton 系列之 ButterKnife](https://www.jianshu.com/p/b8b59fb80554)
> 从不同角度阐述了ButterKnife优秀的设计,很多源码解析文章往往只顾着大点,比如全网都着重在于ButterKnife的APT,而本篇文章留意到了细节,比如单测、Lint、R2,可谓非常优秀了。
- [ButterKnife 是怎么解决 library 的 R 问题的](https://blog.csdn.net/pouloghost/article/details/80901364)

- [一文应用 AOP | 最全选型考量 + 边剖析经典开源库边实践,美滋滋](https://juejin.im/post/5c179c136fb9a049e66029dd)
> 图解ButterKnife的工作流程,从全局上掌握ButterKnife设计。
- [AOP 最后一块拼图 | AST 抽象语法树 —— 最轻量级的AOP方法](https://juejin.im/post/5c45bce5f265da612c5e2d3f)
> 全网少有的剖析ButterKnife AST的博文,详细说明了为什么ButterKnife要使用AST?解决了什么问题?怎样解决的?

0 comments on commit cf40e94

Please sign in to comment.