Fix a crash
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user