Giter Club home page Giter Club logo

tinkersdkdemo's Introduction

demo热修复使用说明:

1 执行assembleRelease打出release包,同时bakApk会生成副本文件
2 做app修复,同时调整tinker.gradle配置:
3 将bakApk会生成副本文件配置到如下path变量中
ext {
    tinkerEnable = true //tinker功能开关
   tinkerID = "1.0"
   tinkerOldApkPath = "${bakPath}/app-release-0806-14-18-36.apk"
   tinkerApplyMappingPath = "${bakPath}/"
   tinkerApplyResourcePath = "${bakPath}/app-release-0806-14-18-36-R.txt"
   tinkerBuildFlavorDirectory = "${bakPath}/"
}
4 执行tinkerPatchRelease生成patch差分包。
5 安装首次assembleRelease在bakApk中生成的apk,同时启动app,
这样会创建 /sdcard/tpatch目录。
6 将生成的patch_singed.apk push到上面的目录中。
7 点击加载patch。
8 重新启动app修复生效。


tinker.gradle在config文件夹下

patchSample附了基准包和修复包,可以直接使用


如果修复失败,则去掉源码和jar包,gradle中放开tinker maven库使用,是一定没问题的。可能我在迭代源码过程中难免会引入问题。
但是相关问题后续会修复。

博客文章:
https://www.jianshu.com/p/29031211f45b

tinkersdkdemo's People

Contributors

zhto0 avatar

Stargazers

 avatar  avatar  avatar  avatar nearby.ren avatar

Watchers

 avatar

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.