Booster 3.2.0 alpha 发布
Booster 3.2.0 alpha 版本更新内容如下:
- 适配 AGP 
4.2.0-beta02 - 修复 AGP 版本号比较的 bug
 - 支持 AGP 
3.4.2以上的版本通过属性booster.transform.${variant}.enabled来禁用 BoosterTransform ,默认true 
- 禁用特定的 Build Type
1
booster.transform.debug.enabled=false
 - 禁用特定的 Variant
1
booster.transform.demoDebug.enabled=false
 
- 支持通过属性 
booster.transform.diff生成字节码的差异,默认false1
2
3
4
5
6
7
8
9
10
11
12
13
14@@ -19,4 +19,14 @@
LOCALVARIABLE this Lio/github/boostersamples/SampleApplication; L0 L2 0
MAXSTACK = 1
MAXLOCALS = 1
+
+ // access flags 0x1
+ public onCreate()V
+ ALOAD 0
+ INVOKESPECIAL android/app/Application.onCreate ()V
+ LDC ""
+ INVOKESTATIC com/didiglobal/booster/instrument/ActivityThreadHooker.hook (Ljava/lang/String;)V
+ RETURN
+ MAXSTACK = 1
+ MAXLOCALS = 0 - 更新了 
ClassTransformer接口 
- 增加属性 
val name: String - 增加方法 
fun getReport(TransformContext, String): File - 增加方法 
fun getReportDir(TransformContext): File 
正式版本发布计划
由于目前 AGP 4.2.0 还处于 beta 阶段,等 AGP 4.2.0 正式发布后将在第一时间发布 Booster 3.2.0 正式版本。
- 本文链接:https://johnsonlee.io/2020/12/29/booster-v3-2-0-alpha-released/
 - 版权声明:著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。