From 9b87ef967d3ba70ce125cc5fe841cd236e74dfca Mon Sep 17 00:00:00 2001
From: Der_Googler <54764558+DerGoogler@users.noreply.github.com>
Date: Sat, 27 Jun 2026 20:34:40 +0200
Subject: [PATCH] Migrate module description to WebUI core
Replaced the custom HybridWebUI-based description screen with `dev.mmrlx` WebUI state/view APIs, updated path handlers to the new WebUI interfaces, and switched markdown loading to fetch `/internal/readme.md` from the internal handler.
Also added `webui.core`/version-catalog dependency entries, introduced a context `packages` helper to use launchable apps on Google Play builds, and split manifest behavior so `QUERY_ALL_PACKAGES` is present in main but removed for the Play Store flavor.
---
app/build.gradle.kts | 3 +-
app/src/main/AndroidManifest.xml | 2 +
app/src/main/assets/markdown.html | 28 +--
.../mmrl/pathHandler/AssetsPathHandler.kt | 19 +-
.../mmrl/pathHandler/InternalPathHandler.kt | 36 ++--
.../moduleView/ViewDescriptionScreen.kt | 189 +++++-------------
.../dergoogler/mmrl/utils/PackageManager.kt | 46 +++++
.../mmrl/viewmodel/SuperUserViewModel.kt | 4 +-
app/src/playstore/AndroidManifest.xml | 7 +
gradle/libs.versions.toml | 3 +
10 files changed, 152 insertions(+), 185 deletions(-)
create mode 100644 app/src/main/kotlin/com/dergoogler/mmrl/utils/PackageManager.kt
create mode 100644 app/src/playstore/AndroidManifest.xml
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 602582fac..2ae18e4ef 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -271,7 +271,8 @@ dependencies {
implementation(libs.square.moshi)
ksp(libs.square.moshi.kotlin)
- implementation("dev.mmrlx:terminal:1.0.3")
+ implementation(libs.mmrlx.terminal)
+ implementation(libs.mmrlx.webui.core)
implementation("dev.chrisbanes.haze:haze:1.6.10")
implementation("dev.chrisbanes.haze:haze-materials:1.6.10")
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index e45ad9e76..b86633827 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -10,6 +10,8 @@