Fix a crash

This commit is contained in:
Mygod
2020-07-18 02:26:49 +08:00
parent a23b519a53
commit c344dbfa4a
3 changed files with 3 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ buildscript {
dependencies { dependencies {
classpath(kotlin("gradle-plugin", kotlinVersion)) classpath(kotlin("gradle-plugin", kotlinVersion))
classpath("com.android.tools.build:gradle:4.1.0-beta04") classpath("com.android.tools.build:gradle:4.1.0-beta04")
classpath("com.github.ben-manes:gradle-versions-plugin:0.28.0") classpath("com.github.ben-manes:gradle-versions-plugin:0.29.0")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.2.0") classpath("com.google.firebase:firebase-crashlytics-gradle:2.2.0")
classpath("com.google.android.gms:oss-licenses-plugin:0.10.2") classpath("com.google.android.gms:oss-licenses-plugin:0.10.2")
classpath("com.google.gms:google-services:4.3.3") classpath("com.google.gms:google-services:4.3.3")

View File

@@ -11,6 +11,7 @@ plugins {
android { android {
val javaVersion = JavaVersion.VERSION_1_8 val javaVersion = JavaVersion.VERSION_1_8
val targetSdk = 29 val targetSdk = 29
buildToolsVersion("30.0.1")
compileOptions { compileOptions {
isCoreLibraryDesugaringEnabled = true isCoreLibraryDesugaringEnabled = true
sourceCompatibility = javaVersion sourceCompatibility = javaVersion

View File

@@ -71,7 +71,7 @@ class RootSession : AutoCloseable {
RootSession() RootSession()
} }
revertCommands.forEach { shell.submit(it) } revertCommands.forEach { shell.submit(it) }
} catch (e: RuntimeException) { // if revert fails, it should fail silently } catch (e: Exception) { // if revert fails, it should fail silently
Timber.d(e) Timber.d(e)
} finally { } finally {
revertCommands.clear() revertCommands.clear()