Git Product home page Git Product logo

Comments (4)

inused avatar inused commented on July 22, 2024

修改了下代码测试了一下,将开关状态判断逻辑放在了 afterHookedMethod() 方法中,里面是重新new出来的 XSharedPreferences 获取开关状态,确实可以实时生效,但是安装一次应用会疯狂重复打印一堆日志,这是会重复进行很多次验证吗,那么应该会多消耗一些资源,但是比起功能来说影响不算大,不知道有没有其他更好的方式

from corepatch.

coderstory avatar coderstory commented on July 22, 2024

如果要实时生效必然每次调用前都需要读取一次配置
XSharedPreferences 有reload方法 不需要每次都new 一个

from corepatch.

coderstory avatar coderstory commented on July 22, 2024

旧版本都是这么干的 只是新版本 代码全部重写了 没加上去

from corepatch.

coderstory avatar coderstory commented on July 22, 2024

预计3.6上线

from corepatch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.