Skip to content

v2.2.0

Compare
Choose a tag to compare
@jiongxuan jiongxuan released this 23 Aug 03:15
· 194 commits to master since this release

replugin-host-lib

Breaking Changes 核心改动

  • (#296) Support "UI process" as a plug-in management process - @jiongxuan

支持以“UI进程”作为插件管理进程。换言之,可以做到“仅一个进程”就能开启插件。有关“插件管理进程”的详述,请点击这里查看《插件的管理》中“插件管理进程”一节

补充:在RePlugin 2.1.7及以前版本,必须要开启“两个进程”(分别为当前进程和“常驻进程”),这也是出于性能和插件管理角度考虑。如今仅需要一个进程即可。

  • (#264) Support multidex feature in plugin application for the ROM below LOLLIPOP - @wangfuda

完美支持 Android 4.4 及以下的插件的MultiDex(分包技术)的支持。

补充:主程序MultiDex一直都是“天然支持的”。而在RePlugin 2.1.7及以前版本,仅支持 Android 5.0 及以上版本的插件的MultiDex

  • (#288) Support for dynamically assign plugin's custom processes - @cundong

支持“动态分配进程坑位”方案,无需“填写Meta-data来分配进程”即可。有关进程坑位的信息,请参见《插件的组件》中“多进程坑位”一节

补充:在RePlugin 2.1.7及以前版本,常驻进程名不能修改,只可以为“[主程序包名]:GuardService”。从该版本开始,不仅可以修改常驻进程名,还可以选择“关闭常驻进程”

Main Changes 主要更新

Bug Fixes 修复错误

  • (#285) Fixed the installation will fail when you install the same version of the plug-in multiple - @jiongxuan
  • (#286) Resolved the issue of "Overwriting the plug-in, it may not be notified to other processes" - @jiongxuan
  • (#294) 解决P-n插件升级为“新插件”的问题 - @kevinfen9

Mirror Changes 精致优化

  • (#279) Set RePluginClassLoader to Thread's ContextClassLoader - @jiongxuan
  • (#302) Modify the number of translucent singleInstance Activity - @cundong
  • (#300) The return value of the fetchViewByLayoutName method is changed to "generic" - @jiongxuan
  • (#284) Remove unused files - @cundong

replugin-host-gradle

Main Changes 主要更新

Mirror Changes 精致优化

  • (#296) Added the PERSISTENT_ENABLE field, and adjust the "android:process" field in host's AndroidManifest - @jiongxuan
  • (#302) Modify the number of translucent singleInstance Activity - @cundong

replugin-plugin-lib

Mirror Changes 精致优化

  • (#290) Added the RePluginCompat class to be compatible with the old host-lib - @jiongxuan
  • (#290) Added RePlugin.fetchResourceIdByName/fetchViewByLayoutName in plugin-lib - @jiongxuan