Skip to content

2.2.1

Compare
Choose a tag to compare
@shifujun shifujun released this 18 Nov 07:29
· 127 commits to master since this release

2021-11-18

Build System / Dependencies
  • 去掉对ANDROID_HOME环境变量的依赖 (f80ece3)
  • 去掉所有jar-wrapper工程 (089e026)
  • 添加CommonAarSettingsPlugin (c639945)
  • 添加AarToJarPlugin (bf33970)
  • 升级Gradle到7.0.2,AGP到7.0.3,kotlin到1.5.31 (87ba969)
Chores
  • 去掉AutoMakeMissingClassPool的测试用例 (9575fcd)
  • 升级maven sample依赖Shadow版本到2.1.1 (9de3cdc)
New Features
  • core.gradle-plugin: 自动创建Flavor,并只在plugin上应用Transform (e38755e)
  • 从AndroidManifest中解析Receiver的action信息 (d27e984)
  • 支持NativeActivity (b3c9a9e)
  • core: support PackageManager getServiceInfo and resolveService (cf8a22f)
  • core.transform: ShadowTransform声明为支持build cache (7aa65f7)
Bug Fixes
  • core:
    • 支持Fragment override getContext方法 (ea59e39)
    • 插件Activity在getSystemService时默认委托给宿主Activity (80bc328)
    • 插件的LayoutInflater改为总是从Context取单例 (10ce022)
  • transform-kit: debugWriteJar时忽略META-INF/目录文件 (5528372)
  • core.loader: 像普通ClassLoader一样优先findLoadedClass (a335b19)
  • core.transform: newMethod引用当前类名时使用Placeholder (d4b6e9e)
  • core.runtime:
    • 补全Service的3参startForeground方法 (85c80f5)
    • 支持Application.getProcessName()方法 (a75c81c)
  • core.transform-kit: Transform启动前清空debug用的临时目录 (d9fd8cd)
  • core.manager: 提供释放db接口,去掉getLastPlugins中关闭db的操作 (a499e0d)
Performance Improvements
  • core.loader: 插件ClassLoader白名单采用前缀树进行匹配 (cc8f6d0)
Refactors
  • dynamic: 抽出dynamic-apk模块以便复用于其他动态加载apk的场景 (159ab13)
Tests
  • 修复API 29以上虚拟机自动化测试 (352561d)