GithubHelp home page GithubHelp logo

tinkerapp-master's Introduction

TinkerApp

本项目使用Tinker进行热修复的过程;

1.运行项目;

2.此时将编译生产在bakApk包下的文件替换gradle中的对应版本;

ext {
tinkerEnabled = true
// 基础版本apk
tinkerOldApkPath = "${bakPath}/mytinker-debug-20170629-16-41-16.apk"
//proguard mapping file to build patch apk
tinkerApplyMappingPath = "${bakPath}/"
// 与基础版本一起生成的R.text文件
tinkerApplyResourcePath = "${bakPath}/mytinker-debug-20170629-16-41-16-R.txt"
//only use for build all flavor, if not, just ignore this field
tinkerBuildFlavorDirectory = "${bakPath}/"
}

3.运行脚本,得到patch_signed_7zip.apk

4.根据代码中的路径,patch_signed_7zip.apk放在手机中对应路径

	String patch = Environment.getExternalStorageDirectory()+ File.separator+"tinker" + "/patch_signed_7zip.apk" ;

5.最后执行加载补丁

tinkerapp-master's People

Contributors

xiangjiaowangzi avatar

Stargazers

dbaspider 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.