Skip to content

Commit

Permalink
perf: 添加关闭自动检查更新的功能
Browse files Browse the repository at this point in the history
  • Loading branch information
xz-dev committed Nov 3, 2020
1 parent 4f132c5 commit 979f582
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand Down

0 comments on commit 979f582

Please sign in to comment.