-
Notifications
You must be signed in to change notification settings - Fork 293
getting start
0.thanks to feicien
感谢feicien创建了这个项目
1.clone or download this as zip
下载这个包
2.create a folder named "update" In your project, copy all files IN "library"(in zip file) to it
在你的项目里面建一个 update 文件夹,把下载的library里面的文件 复制进去
3.open android studio 3,(导入方法:)
File->project structure->open ->Dependencies
then click "+" button at right, select "Module dependency", chose the update moldue in popup.
右侧点击+号,选择"Module dependency",然后弹出框选择 update
4.setting "update_url" in Constants.java
更新参数在这个文件里,自己修改
/src/main/java/com/loveplusplus/update/Constants.java
5.create a json file like below, put it on server, same location in "update_url".
根据下面格式,建立一个json(格式utf-8),并上传到服务器上(url要和设置的update_url一致)
{"url":"http://192.168.../app_v3.0.1.apk","versionCode":2,"updateMessage":"check me out!!"}
时间匆忙,格式混乱,先看着用吧 :D