Skip to content

Commit fa4790c

Browse files
6.6.4 - Fix - 修复 RootShell 依赖项无法获取的问题
1 parent d1b2add commit fa4790c

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ sync.ffs_db
2727

2828
/build/
2929
/libs/**/build/
30+
/modules/**/build/
3031
/captures/
3132
/release/
3233
/releases/

app/build.gradle.kts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
77
import java.io.FileInputStream
88
import java.io.FileNotFoundException
99
import java.text.SimpleDateFormat
10-
import java.util.Date
11-
import java.util.Locale
12-
import java.util.Properties
13-
import java.util.TimeZone
10+
import java.util.*
1411
import java.util.zip.CRC32
1512
import kotlin.text.RegexOption.IGNORE_CASE
1613

@@ -133,7 +130,8 @@ dependencies /* Unclassified */ {
133130
implementation("androidx.preference:preference-ktx:1.2.1")
134131

135132
// RootShell
136-
implementation("com.github.Stericson:RootShell:1.6")
133+
// implementation("com.github.Stericson:RootShell:1.6")
134+
implementation(project(":libs:root-shell-1.6"))
137135

138136
// JDeferred
139137
implementation("org.jdeferred:jdeferred-android-aar:1.2.6")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"root-shell-1.6.aar"
2+
.let { path ->
3+
rootProject.extra["configurationName"].toString().let { name ->
4+
configurations.maybeCreate(name)
5+
file(path).takeIf { it.exists() }?.also {
6+
artifacts.add(name, it)
7+
} ?: throw Exception("File not found: \"$path\"")
8+
}
9+
}
41.6 KB
Binary file not shown.

settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ private val libs = listOf(
2929

3030
"markwon-core-4.6.2",
3131
"markwon-syntax-highlight-4.6.2",
32+
33+
"root-shell-1.6",
3234
)
3335

3436
include(

0 commit comments

Comments
 (0)