Commit 0a066091 by wjg

add install app

parent f572ff3a
...@@ -18,8 +18,8 @@ android { ...@@ -18,8 +18,8 @@ android {
applicationId "com.ihaoin.hooloo.device" applicationId "com.ihaoin.hooloo.device"
minSdkVersion 26 minSdkVersion 26
targetSdkVersion 30 targetSdkVersion 30
versionCode 5 versionCode 1
versionName "1.0.5" versionName "1.0.1"
ndk { ndk {
//选择要添加的对应 cpu 类型的 .so 库。 //选择要添加的对应 cpu 类型的 .so 库。
......
...@@ -16,11 +16,11 @@ public abstract class NetworkHandler extends Handler { ...@@ -16,11 +16,11 @@ public abstract class NetworkHandler extends Handler {
@Override @Override
public void handleMessage(@NonNull Message msg) { public void handleMessage(@NonNull Message msg) {
super.handleMessage(msg); super.handleMessage(msg);
if (AppConfig.DEBUG) { // if (AppConfig.DEBUG) {
String url = msg.getData().getString("url"); String url = msg.getData().getString("url");
String msgText = String.format("请求:%s, 返回状态:%s, 返回内容:%s", url, msg.what, msg.obj); String msgText = String.format("请求:%s, 返回状态:%s, 返回内容:%s", url, msg.what, msg.obj);
Utils.i(AppConfig.TAG_NETWORK, msgText); Utils.i(AppConfig.TAG_NETWORK, msgText);
} // }
// if (msg == null || msg.what == 0) { // if (msg == null || msg.what == 0) {
// return; // return;
// } // }
......
...@@ -41,6 +41,7 @@ public class UpdateService extends Thread { ...@@ -41,6 +41,7 @@ public class UpdateService extends Thread {
@Override @Override
public void handleMessage(@NonNull Message msg) { public void handleMessage(@NonNull Message msg) {
try { try {
super.handleMessage(msg);
// CheckUpdateVo updateVo = new CheckUpdateVo(); // CheckUpdateVo updateVo = new CheckUpdateVo();
// updateVo.setUrl("https://testapi.pecktoy.com/files/upload_test/signed-v10.apk"); // updateVo.setUrl("https://testapi.pecktoy.com/files/upload_test/signed-v10.apk");
// updateVo.setVersion("1.0.10"); // updateVo.setVersion("1.0.10");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment