Commit a6536e2d authored by hywang's avatar hywang

1.用阿里云的仓库

parent 387f4f1d
...@@ -5,6 +5,7 @@ import android.bluetooth.BluetoothDevice; ...@@ -5,6 +5,7 @@ import android.bluetooth.BluetoothDevice;
import android.content.Intent; import android.content.Intent;
import android.os.IBinder; import android.os.IBinder;
import android.util.Log; import android.util.Log;
import android.widget.Toast;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
...@@ -20,6 +21,7 @@ import cn.wandersnail.bluetooth.BTManager; ...@@ -20,6 +21,7 @@ import cn.wandersnail.bluetooth.BTManager;
import cn.wandersnail.bluetooth.ConnectCallback; import cn.wandersnail.bluetooth.ConnectCallback;
import cn.wandersnail.bluetooth.Connection; import cn.wandersnail.bluetooth.Connection;
import cn.wandersnail.bluetooth.EventObserver; import cn.wandersnail.bluetooth.EventObserver;
import cn.wandersnail.commons.util.ToastUtils;
import me.goldze.mvvmhabit.bus.RxBus; import me.goldze.mvvmhabit.bus.RxBus;
public class BtService extends Service implements EventObserver { public class BtService extends Service implements EventObserver {
...@@ -68,6 +70,7 @@ public class BtService extends Service implements EventObserver { ...@@ -68,6 +70,7 @@ public class BtService extends Service implements EventObserver {
String data = new String(value); String data = new String(value);
Log.e(TAG, "onRead: " + data); Log.e(TAG, "onRead: " + data);
// ToastUtils.showShort("onRead: " + data);
String weightData = data.substring(data.indexOf("wn") + 3, data.indexOf("kg") - 2); String weightData = data.substring(data.indexOf("wn") + 3, data.indexOf("kg") - 2);
EventMsg eventMsg = new EventMsg(); EventMsg eventMsg = new EventMsg();
......
...@@ -4,6 +4,14 @@ buildscript { ...@@ -4,6 +4,14 @@ buildscript {
repositories { repositories {
google() google()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
jcenter() jcenter()
mavenCentral() mavenCentral()
maven { url 'https://jitpack.io' } maven { url 'https://jitpack.io' }
...@@ -21,6 +29,13 @@ buildscript { ...@@ -21,6 +29,13 @@ buildscript {
allprojects { allprojects {
repositories { repositories {
google() google()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
jcenter() jcenter()
mavenCentral() mavenCentral()
maven { url 'https://jitpack.io' } maven { url 'https://jitpack.io' }
......
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