- 授权协议: Apache
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/eleme/Amigo
- 软件文档: https://github.com/eleme/Amigo/blob/master/README_zh.md#amigo
- 官方下载: https://github.com/eleme/Amigo/archive/master.zip
软件介绍
Amigo,是一个Android 平台的hotfix库,由饿了么公司开源。
用法
在project 的build.gradle 中
dependencies {
classpath 'me.ele:amigo:0.0.5'
}在module 的build.gradle 中
apply plugin: 'me.ele.amigo'
就这样轻松的集成了Amigo。
生效补丁包
补丁包生效有两种方式可以选择:
稍后生效补丁包
如果不想立即生效而是用户第二次打开App 时才打入补丁包,第二次打开时就会自动生效。可以通过这个方法
File hotfixApk = Amigo.getHotfixApk(context);FileUtils.copyFile(yourApkFile, hotfixApk);Amigo.workLater(context);Amigo.workLater(context, apkFile);
立即生效补丁包
如果想要补丁包立即生效,调用以下两个方法之一,App 会立即重启,并且打入补丁包。
Amigo.work(context);
Amigo.work(context, apkFile);
删除补丁包
如果需要删除掉已经下好的补丁包,可以通过这个方法
Amigo.clear(context);
提示:如果apk 发生了变化,Amigo 会自动清除之前的apk。
相关阅读:
ActionScript 3.0 Cookbook
Joey Lott、Darron Schall、Keith Peters / Adobe Dev Library / 2006-10-11 / GBP 28.50
Well before Ajax and Microsoft's Windows Presentation Foundation hit the scene, Macromedia offered the first method for building web pages with the responsiveness and functionality of desktop programs......一起来看看 《ActionScript 3.0 Cookbook》 这本书的介绍吧!
CSS 压缩/解压工具
在线压缩/解压 CSS 代码
Base64 编码/解码
Base64 编码/解码
