Skip to content

Commit

Permalink
发布2.3.8版本
Browse files Browse the repository at this point in the history
  • Loading branch information
ch committed Jan 7, 2021
1 parent 5b3f53c commit 78b8622
Show file tree
Hide file tree
Showing 15 changed files with 48 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ dependencies {
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
testCompile 'junit:junit:4.12'
compile 'cn.bingoogolapple:bga-qrcode-zxing:1.3.6'
//compile project(':qnscalesdk')
compile("com.github.YolandaQingniu:qnscalesdk:2.3.7") {
compile project(':qnscalesdk')
/* compile("com.github.YolandaQingniu:qnscalesdk:2.3.7") {
exclude module: "support-v4"//防止和module引用的v4资源版本不同
}
}*/
}
19 changes: 19 additions & 0 deletions app/src/main/java/com/qingniu/qnble/demo/view/SettingActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public class SettingActivity extends AppCompatActivity implements RadioGroup.OnC
Spinner scaleShowHeartRate;
@BindView(R.id.scale_show_weather)
Spinner scaleShowWeather;
@BindView(R.id.scale_show_weightExtend)
Spinner scaleShowweightExtend;

private Config mBleConfig; //蓝牙配置对象
private String mGender = "male";//用户性别
Expand Down Expand Up @@ -319,6 +321,23 @@ public void onNothingSelected(AdapterView<?> parent) {
}
});

scaleShowweightExtend.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {

@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
if (position == 0) {
qnIndicateConfig.setWeightExtend(true);
} else {
qnIndicateConfig.setWeightExtend(false);
}
}

@Override
public void onNothingSelected(AdapterView<?> parent) {
qnIndicateConfig.setWeightExtend(true);
}
});

}

@Override
Expand Down
15 changes: 15 additions & 0 deletions app/src/main/res/layout/activity_setting.xml
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,21 @@
android:layout_height="wrap_content"
android:entries="@array/choiceArray"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
style="@style/user_small_text"
android:text="@string/wsp_show_weight_extend" />

<Spinner
android:id="@+id/scale_show_weightExtend"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:entries="@array/choiceArray"/>
</LinearLayout>
</LinearLayout>

<TextView
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
<string name="wsp_show_water">显示体水分</string>
<string name="wsp_show_heartrate">显示心率</string>
<string name="wsp_show_weather">显示天气</string>
<string name="wsp_show_weight_extend">显示体重变化趋势</string>
<string name="wsp_location_info">位置信息</string>
<string name="longitude">经度</string>
<string name="latitude">纬度</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
<string name="wsp_show_water">Show body water</string>
<string name="wsp_show_heartrate">Show heart rate</string>
<string name="wsp_show_weather">Show weather</string>
<string name="wsp_show_weight_extend">Show weight change trend</string>
<string name="wsp_location_info">location information</string>
<string name="longitude">longitude</string>
<string name="latitude">latitude</string>
Expand Down
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

buildscript {
repositories {
maven { url 'https://maven.google.com' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://jitpack.io' }
maven { url 'https://maven.google.com' }
jcenter()
}
dependencies {
Expand All @@ -16,6 +19,9 @@ buildscript {

allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.google.com' }
maven { url 'https://jitpack.io' }
jcenter()
Expand Down
4 changes: 2 additions & 2 deletions qnscalesdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {
minSdkVersion 15//MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
versionCode 1
versionName "qnsdk-2.3.7"
versionName "qnsdk-2.3.8"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand All @@ -30,6 +30,6 @@ dependencies {
})
testCompile 'junit:junit:4.12'
compile "com.android.support:support-v4:$ANDROID_SUPPORT_VERSION"
compile files('libs/qnsdk-2.3.7.jar')
compile files('libs/qnsdk-2.3.8.jar')

}
Binary file not shown.
Binary file modified qnscalesdk/src/main/jniLibs/arm64-v8a/libyolanda_calc.so
Binary file not shown.
Binary file modified qnscalesdk/src/main/jniLibs/armeabi-v7a/libyolanda_calc.so
Binary file not shown.
Binary file modified qnscalesdk/src/main/jniLibs/armeabi/libyolanda_calc.so
Binary file not shown.
Binary file modified qnscalesdk/src/main/jniLibs/mips/libyolanda_calc.so
Binary file not shown.
Binary file modified qnscalesdk/src/main/jniLibs/mips64/libyolanda_calc.so
Binary file not shown.
Binary file modified qnscalesdk/src/main/jniLibs/x86/libyolanda_calc.so
Binary file not shown.
Binary file modified qnscalesdk/src/main/jniLibs/x86_64/libyolanda_calc.so
Binary file not shown.

0 comments on commit 78b8622

Please sign in to comment.