Giter Club home page Giter Club logo

Comments (6)

supern avatar supern commented on May 8, 2024

可以有多个补丁的啊,补丁会按时间顺序来加载的

from andfix.

yangghost avatar yangghost commented on May 8, 2024

版本1 打了版本2的补丁之后,后续又发布了版本3,
这时候是要打版本2和版本3之间的补丁.还是版本1和版本3之间的补丁?
补丁的名字都相同的.

from andfix.

6a209 avatar 6a209 commented on May 8, 2024

patch 方式有点不透明- - 还是直接指定要替换的方法比较清晰

from andfix.

yangghost avatar yangghost commented on May 8, 2024

现在是打过一次patch后.再打相同名字的patch都不能生效.patch时间都比原来的patch新

from andfix.

caik13 avatar caik13 commented on May 8, 2024

@supern 假如 我已经addPatch apatch1了,然后我要再更新apatch2,apatch2中包含apatch1的内容,这时我需要addPatch apatch1然后再addPatch apatch2么?

from andfix.

seewhy163 avatar seewhy163 commented on May 8, 2024

今天也碰到这个问题了,看源码可以发现第二次的补丁名字不能和第一次相同,否则不会加载。
在PatchManager的addPatch中有这么一段代码:

File src = new File(path);
File dest = new File(mPatchDir, src.getName());
if(!src.exists()){
    throw new FileNotFoundException(path);
}
if (dest.exists()) {
    Log.d(TAG, "patch [" + path + "] has be loaded.");
    return;
}

from andfix.

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.