From 979f5828986b03044fc14654671f5420314d59e0 Mon Sep 17 00:00:00 2001 From: xz-dev Date: Tue, 3 Nov 2020 17:08:04 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=B7=BB=E5=8A=A0=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=A3=80=E6=9F=A5=E6=9B=B4=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 5 ++--- .../server/update/UpdateServiceBroadcastReceiver.kt | 1 + build.gradle | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 5a70c0e9e..822f9ae89 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -62,7 +62,7 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.2.0' - implementation 'androidx.constraintlayout:constraintlayout:2.0.2' + implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.preference:preference-ktx:1.1.1' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' @@ -99,9 +99,8 @@ dependencies { implementation 'com.squareup.okhttp3:okhttp-urlconnection:4.9.0' // Firebase - implementation 'com.google.firebase:firebase-core:17.5.1' implementation 'com.google.firebase:firebase-perf:19.0.8' - implementation 'com.google.firebase:firebase-analytics:17.6.0' + implementation 'com.google.firebase:firebase-analytics:18.0.0' implementation 'com.google.firebase:firebase-crashlytics:17.2.2' configurations.compile.exclude group: 'com.google.protobuf', module: 'protobuf-lite' diff --git a/app/src/main/java/net/xzos/upgradeall/server/update/UpdateServiceBroadcastReceiver.kt b/app/src/main/java/net/xzos/upgradeall/server/update/UpdateServiceBroadcastReceiver.kt index 1f6c2ff4e..0b2e2358a 100644 --- a/app/src/main/java/net/xzos/upgradeall/server/update/UpdateServiceBroadcastReceiver.kt +++ b/app/src/main/java/net/xzos/upgradeall/server/update/UpdateServiceBroadcastReceiver.kt @@ -18,6 +18,7 @@ class UpdateServiceBroadcastReceiver : BroadcastReceiver() { private val context = MyApplication.context private val ACTION_SNOOZE = "${context.packageName}.UPDATE_SERVICE_BROADCAST" fun setAlarms(t_h: Int) { + if (t_h <= 0) return val alarmTime: Long = t_h.toLong() * 60 * 60 * 1000 val alarmIntent = PendingIntent.getBroadcast( context, 0, diff --git a/build.gradle b/build.gradle index 6fe1b8646..f362921d3 100644 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ buildscript { classpath 'com.google.gms:google-services:4.3.4' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0' - classpath 'com.google.firebase:perf-plugin:1.3.2' + classpath 'com.google.firebase:perf-plugin:1.3.3' } }