lib update, fix warnings

This commit is contained in:
Milos Kozak 2023-09-24 15:17:00 +02:00
parent 405fc985a8
commit 80226a6029
4 changed files with 7 additions and 3 deletions

View file

@ -5,7 +5,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript { buildscript {
ext { ext {
kotlin_version = '1.9.10' kotlin_version = '1.9.10'
core_version = '1.10.1' core_version = '1.12.0'
rxjava_version = '3.1.7' rxjava_version = '3.1.7'
rxandroid_version = '3.0.2' rxandroid_version = '3.0.2'
rxkotlin_version = '3.0.1' rxkotlin_version = '3.0.1'
@ -17,7 +17,7 @@ buildscript {
fragmentktx_version = '1.6.1' fragmentktx_version = '1.6.1'
ormLite_version = '4.46' ormLite_version = '4.46'
gson_version = '2.10.1' gson_version = '2.10.1'
nav_version = '2.7.0' nav_version = '2.7.3'
appcompat_version = '1.6.1' appcompat_version = '1.6.1'
material_version = '1.9.0' material_version = '1.9.0'
gridlayout_version = '1.0.0' gridlayout_version = '1.0.0'

View file

@ -31,12 +31,13 @@ public class InsightPairingInformationActivity extends DaggerAppCompatActivity {
private final ServiceConnection serviceConnection = new ServiceConnection() { private final ServiceConnection serviceConnection = new ServiceConnection() {
@Override @Override
@SuppressWarnings({"deprecation"})
public void onServiceConnected(ComponentName name, IBinder binder) { public void onServiceConnected(ComponentName name, IBinder binder) {
connectionService = ((InsightConnectionService.LocalBinder) binder).getService(); connectionService = ((InsightConnectionService.LocalBinder) binder).getService();
if (!connectionService.isPaired()) { if (!connectionService.isPaired()) {
overridePendingTransition(0, 0); overridePendingTransition(0, 0);
finish(); finish();
startActivity(new Intent(InsightPairingInformationActivity.this, InsightPairingActivity.class)); startActivity(new Intent(InsightPairingInformationActivity.this, InsightPairingActivity.class).setAction("app.apps.InsightPairingInformationActivity"));
} else { } else {
serialNumber.setText(connectionService.getPumpSystemIdentification().getSerialNumber()); serialNumber.setText(connectionService.getPumpSystemIdentification().getSerialNumber());
manufacturingDate.setText(connectionService.getPumpSystemIdentification().getManufacturingDate()); manufacturingDate.setText(connectionService.getPumpSystemIdentification().getManufacturingDate());

View file

@ -257,6 +257,7 @@ class OpenHumansUploaderPlugin @Inject internal constructor(
displayInfo.put("height", displayMetrics.heightPixels) displayInfo.put("height", displayMetrics.heightPixels)
displayInfo.put("width", displayMetrics.widthPixels) displayInfo.put("width", displayMetrics.widthPixels)
displayInfo.put("density", displayMetrics.density) displayInfo.put("density", displayMetrics.density)
@Suppress("DEPRECATION")
displayInfo.put("scaledDensity", displayMetrics.scaledDensity) displayInfo.put("scaledDensity", displayMetrics.scaledDensity)
displayInfo.put("xdpi", displayMetrics.xdpi) displayInfo.put("xdpi", displayMetrics.xdpi)
displayInfo.put("ydpi", displayMetrics.ydpi) displayInfo.put("ydpi", displayMetrics.ydpi)

View file

@ -127,6 +127,7 @@ class PrepareBasalDataWorker(
data.overviewData.basalLineGraphSeries = LineGraphSeries(Array(basalLineArray.size) { i -> basalLineArray[i] }).also { data.overviewData.basalLineGraphSeries = LineGraphSeries(Array(basalLineArray.size) { i -> basalLineArray[i] }).also {
it.setCustomPaint(Paint().also { paint -> it.setCustomPaint(Paint().also { paint ->
paint.style = Paint.Style.STROKE paint.style = Paint.Style.STROKE
@Suppress("DEPRECATION")
paint.strokeWidth = rh.getDisplayMetrics().scaledDensity * 2 paint.strokeWidth = rh.getDisplayMetrics().scaledDensity * 2
paint.pathEffect = DashPathEffect(floatArrayOf(2f, 4f), 0f) paint.pathEffect = DashPathEffect(floatArrayOf(2f, 4f), 0f)
paint.color = rh.gac(ctx, info.nightscout.core.ui.R.attr.basal) paint.color = rh.gac(ctx, info.nightscout.core.ui.R.attr.basal)
@ -135,6 +136,7 @@ class PrepareBasalDataWorker(
data.overviewData.absoluteBasalGraphSeries = LineGraphSeries(Array(absoluteBasalLineArray.size) { i -> absoluteBasalLineArray[i] }).also { data.overviewData.absoluteBasalGraphSeries = LineGraphSeries(Array(absoluteBasalLineArray.size) { i -> absoluteBasalLineArray[i] }).also {
it.setCustomPaint(Paint().also { absolutePaint -> it.setCustomPaint(Paint().also { absolutePaint ->
absolutePaint.style = Paint.Style.STROKE absolutePaint.style = Paint.Style.STROKE
@Suppress("DEPRECATION")
absolutePaint.strokeWidth = rh.getDisplayMetrics().scaledDensity * 2 absolutePaint.strokeWidth = rh.getDisplayMetrics().scaledDensity * 2
absolutePaint.color = rh.gac(ctx, info.nightscout.core.ui.R.attr.basal) absolutePaint.color = rh.gac(ctx, info.nightscout.core.ui.R.attr.basal)
}) })