update plugin info

pull/28/head
fengyuecanzhu 2 years ago
parent 740bd08f86
commit f710ad4ad5
No known key found for this signature in database
GPG Key ID: 04B78AD06A9D6E6C
  1. 9
      dynamic/src/main/java/xyz/fycz/dynamic/AppLoadImpl.kt
  2. 2
      dynamic/src/main/java/xyz/fycz/dynamic/fix/App246Fix2.kt

@ -27,7 +27,11 @@ import me.fycz.maple.MapleUtils
import me.fycz.maple.MethodHook
import xyz.fycz.dynamic.fix.*
import xyz.fycz.myreader.application.App
import xyz.fycz.myreader.entity.PluginConfig
import xyz.fycz.myreader.ui.activity.MainActivity
import xyz.fycz.myreader.util.SharedPreUtils
import xyz.fycz.myreader.util.utils.GSON
import xyz.fycz.myreader.util.utils.fromJsonObject
/**
* @author fengyue
@ -132,6 +136,9 @@ class AppLoadImpl : IAppLoader {
}
fun getPluginLoadInfo(): String {
return allFixInfoSb.toString()
val pluginConfig = GSON.fromJsonObject<PluginConfig>(
SharedPreUtils.getInstance().getString("pluginConfig")
) ?: PluginConfig("dynamic.dex", 100)
return "当前版本更新日志:\n${pluginConfig.changelog}\n\n插件加载结果:\n" + allFixInfoSb.toString()
}
}

@ -27,7 +27,7 @@ import xyz.fycz.myreader.widget.page.PageView
* @author fengyue
* @date 2022/6/23 20:51
*/
@AppFix([], ["修复阅读界面概率性闪退的问题"], "2022-06-23")
@AppFix([243, 244, 245, 246], ["修复阅读界面概率性闪退的问题"], "2022-06-23")
class App246Fix2 : AppFixHandle {
override fun onFix(key: String): BooleanArray {
return handleFix(

Loading…
Cancel
Save