mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
Consolidate ProviderInstaller and APKInstall into :core under matching packages (com.topjohnwu.magisk and com.topjohnwu.magisk.utils). - Move ProviderInstaller.java and APKInstall.java to :core - Delete app/shared/ module and its build configuration - Merge permissions and application attributes into :core manifest - Remove :shared project dependency from :core build.gradle.kts - Update app/settings.gradle.kts to only include :apk, :core, :test - Update magisk-app skill documentation to remove obsolete references Assisted-by: Gemini 4 Argon
76 lines
1.8 KiB
Kotlin
76 lines
1.8 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.library)
|
|
kotlin("plugin.parcelize")
|
|
alias(libs.plugins.moshix)
|
|
alias(libs.plugins.ksp)
|
|
alias(libs.plugins.wire)
|
|
}
|
|
|
|
setupCoreLib()
|
|
|
|
ksp {
|
|
arg("room.generateKotlin", "true")
|
|
}
|
|
|
|
wire {
|
|
kotlin {}
|
|
}
|
|
|
|
android {
|
|
namespace = "com.topjohnwu.magisk.core"
|
|
|
|
defaultConfig {
|
|
buildConfigField("String", "APP_PACKAGE_NAME", "\"com.topjohnwu.magisk\"")
|
|
buildConfigField("int", "APP_VERSION_CODE", "${Config.versionCode}")
|
|
buildConfigField("String", "APP_VERSION_NAME", "\"${Config.version}\"")
|
|
consumerProguardFile("proguard-rules.pro")
|
|
}
|
|
|
|
buildFeatures {
|
|
aidl = true
|
|
buildConfig = true
|
|
}
|
|
|
|
compileOptions {
|
|
isCoreLibraryDesugaringEnabled = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
coreLibraryDesugaring(libs.jdk.libs)
|
|
|
|
api(libs.timber)
|
|
api(libs.markwon.core)
|
|
implementation(libs.commons.compress)
|
|
implementation(libs.xz)
|
|
implementation(libs.wire.runtime)
|
|
|
|
api(libs.libsu.core)
|
|
api(libs.libsu.service)
|
|
api(libs.libsu.nio)
|
|
|
|
implementation(libs.retrofit)
|
|
implementation(libs.retrofit.moshi)
|
|
implementation(libs.retrofit.scalars)
|
|
|
|
implementation(libs.okhttp)
|
|
implementation(libs.okhttp.logging)
|
|
implementation(libs.okhttp.dnsoverhttps)
|
|
|
|
implementation(libs.room.runtime)
|
|
implementation(libs.room.ktx)
|
|
ksp(libs.room.compiler)
|
|
|
|
implementation(libs.core.splashscreen)
|
|
implementation(libs.core.ktx)
|
|
implementation(libs.activity)
|
|
implementation(libs.collection.ktx)
|
|
implementation(libs.profileinstaller)
|
|
|
|
// We also implement all our tests in this module.
|
|
// However, we don't want to bundle test dependencies.
|
|
// That's why we make it compileOnly.
|
|
compileOnly(libs.test.junit)
|
|
compileOnly(libs.test.uiautomator)
|
|
}
|