Giter Club home page Giter Club logo

hotfixsamples's Introduction

HotFixSamples

这个项目简单演示利用Nuwa实现Android自动化热部署
详细的使用介绍以及以及原理,查看我的博客,点此查看

使用引导

  1. clone this repo, 切换到master分支
  2. 运行并安装apk

image

此时会在app/build/outputs目录下自动生成一个叫nuwa的目录
3. 拷贝此目录到本地一个指定目录,比如:/Users/Documents/nuwa
4. 切换到bugfix分支
5. 在shell中执行如下命令

./gradlew clean nuwaDebugPatch -P NuwaDir=/Users/Documents/nuwa

成功后会在app/build/outputs/nuwa/debug/目录下会自动生成patch.jar文件:
此文件就是我们热部署的补丁文件
6. 我们把补丁文件拷贝到sdcard根目录

adb push app/build/outputs/nuwa/debug/patch.jar /sdcard/

7.重新启动app,Bug Fix😀
image

hotfixsamples's People

Watchers

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