Add alternative support for QUERY_ALL_PACKAGES in play flavor

This commit is contained in:
世界
2025-12-25 01:49:27 +08:00
parent 104da5d312
commit 08f51d5469
22 changed files with 855 additions and 169 deletions

View File

@@ -79,9 +79,11 @@ android {
sourceSets {
play {
java.srcDirs += ['src/minApi23/java']
aidl.srcDirs += ['src/minApi23/aidl']
}
other {
java.srcDirs += ['src/minApi23/java', 'src/github/java']
aidl.srcDirs += ['src/minApi23/aidl']
}
otherLegacy {
java.srcDirs += ['src/minApi21/java', 'src/github/java']
@@ -202,6 +204,15 @@ dependencies {
otherImplementation "dev.rikka.shizuku:provider:$shizukuVersion"
otherImplementation 'org.lsposed.hiddenapibypass:hiddenapibypass:4.3'
// libsu for ROOT package query (all flavors)
def libsuVersion = '6.0.0'
playImplementation "com.github.topjohnwu.libsu:core:$libsuVersion"
playImplementation "com.github.topjohnwu.libsu:service:$libsuVersion"
otherImplementation "com.github.topjohnwu.libsu:core:$libsuVersion"
otherImplementation "com.github.topjohnwu.libsu:service:$libsuVersion"
otherLegacyImplementation "com.github.topjohnwu.libsu:core:$libsuVersion"
otherLegacyImplementation "com.github.topjohnwu.libsu:service:$libsuVersion"
// Compose dependencies - API 23+ (play/other)
def composeBom23 = platform('androidx.compose:compose-bom:2025.12.01')
def activityVersion23 = "1.12.2"