| applicationId "aicare.net.cn.sdk.iweightdemo" | applicationId "aicare.net.cn.sdk.iweightdemo" | ||||
| minSdkVersion 18 | minSdkVersion 18 | ||||
| targetSdkVersion 29 | targetSdkVersion 29 | ||||
| versionCode 13 | |||||
| versionName "1.3.1" | |||||
| versionCode 14 | |||||
| versionName "1.3.2" | |||||
| } | } | ||||
| buildTypes { | buildTypes { | ||||
| release { | release { | ||||
| implementation 'com.google.android.material:material:1.1.0' | implementation 'com.google.android.material:material:1.1.0' | ||||
| implementation 'androidx.constraintlayout:constraintlayout:1.1.3' | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' | ||||
| testImplementation 'junit:junit:4.12' | testImplementation 'junit:junit:4.12' | ||||
| implementation 'com.github.elinkthings:BodyFatScaleSDKRepositoryAndroid:1.3.1' | |||||
| implementation 'com.github.elinkthings:BodyFatScaleSDKRepositoryAndroid:1.3.2' | |||||
| } | } |
| WeightData weightData = new WeightData(); | WeightData weightData = new WeightData(); | ||||
| weightData.setAdc(data.getAdc()); | weightData.setAdc(data.getAdc()); | ||||
| weightData.setCmdType(data.getAgreementType()); | weightData.setCmdType(data.getAgreementType()); | ||||
| weightData.setAlgorithmType(data.getAlgorithmId()); | |||||
| weightData.setDeviceType(broadData.getDeviceType()); | weightData.setDeviceType(broadData.getDeviceType()); | ||||
| switch (data.getUnitType()) { | switch (data.getUnitType()) { | ||||
| case 1: | case 1: |