Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
12b9a45
update actions
DerGoogler Oct 9, 2026
0f885ed
Update mmrlx libs and local Maven repo
DerGoogler Oct 9, 2026
a8b99af
Remove SuperUser and app profile screens
DerGoogler Oct 9, 2026
e7b7265
Refactor module description WebUI routing
DerGoogler Oct 9, 2026
16943bf
[skip ci] fuck this shit
DerGoogler Oct 9, 2026
740673c
.
DerGoogler Oct 11, 2026
8dfcfb4
Handle back press in module description view
DerGoogler Oct 11, 2026
c41b207
Refactor repository screen and toolbar state
DerGoogler Oct 11, 2026
f48c02a
Add WebUI X branding for config permissions
DerGoogler Oct 11, 2026
dad70c4
Hide repo bulk install for invalid platforms
DerGoogler Oct 11, 2026
457acbd
Bump library modules to compileSdk 37
DerGoogler Oct 11, 2026
edb82f1
Refine repository search and menu state
DerGoogler Oct 11, 2026
22394ec
Remove repositories fast scrollbar
DerGoogler Oct 11, 2026
0931788
Animate repository list header transitions
DerGoogler Oct 11, 2026
1904fe7
[skip ci] update workflows
DerGoogler Oct 11, 2026
0734e46
.
DerGoogler Oct 11, 2026
ecc350b
[skip ci] Update build.gradle.kts
DerGoogler Oct 11, 2026
9d67705
Migrate UI to MMRLX toolbar, theme and scaffold
DerGoogler Oct 18, 2026
f7b6ec4
Migrate settings UI to mmrlx list and scaffold
DerGoogler Oct 18, 2026
a8146f9
add warning for dev builds
DerGoogler Oct 18, 2026
43b6575
.
DerGoogler Oct 25, 2026
612f623
.
DerGoogler Oct 25, 2026
f563294
.
DerGoogler Oct 25, 2026
4c5838e
.
DerGoogler Oct 25, 2026
f761251
.
DerGoogler Nov 1, 2026
04e5e0e
Batch-load versions per repo to speed up listing
DerGoogler Nov 1, 2026
8cd26e2
.
DerGoogler Nov 1, 2026
3bded0f
Update MMRLx and repository navigation
DerGoogler Nov 5, 2026
85e1772
.
DerGoogler Nov 5, 2026
ce78e4b
.
DerGoogler Nov 5, 2026
84924b7
clean: move install confirm and downloader into own components
DerGoogler Nov 6, 2026
d8d6c73
Handle download permission failures
DerGoogler Nov 6, 2026
d7136a4
fix: when ptr is used with fadePinnedScrollbehavior the toolbar backg…
DerGoogler Nov 6, 2026
8b123a1
Refresh detailed module cards
DerGoogler Nov 6, 2026
10e8f7d
Migrate repository menu to MMRLX components
DerGoogler Nov 6, 2026
2a022b5
Provide RepositoryViewModel via CompositionLocal
DerGoogler Nov 6, 2026
2e7d9a2
Show module icons and add back button to repo
DerGoogler Nov 6, 2026
4088f6b
Align description screen colors with app theme
DerGoogler Nov 6, 2026
1f47d48
Block JavaScript namespaces in module descriptions
DerGoogler Nov 6, 2026
98d0d08
Use ZIP headers for update timestamps
DerGoogler Nov 6, 2026
e40e21d
Paginate repository module listings
DerGoogler Nov 6, 2026
1dafd0c
Update module installation and terminal UI
DerGoogler Nov 7, 2026
0350ea2
Manage terminal PTY lifecycle and cancellation
DerGoogler Nov 7, 2026
886adef
Apply theme colors to action terminal
DerGoogler Nov 7, 2026
3d19d7d
.
DerGoogler Nov 7, 2026
abdcdd4
[skip ci] Add navigation rail to main screens
DerGoogler Nov 7, 2026
a8d90b9
Add developer controls to trigger module failures
DerGoogler Nov 7, 2026
4682327
Improve terminal error formatting and exit codes
DerGoogler Nov 7, 2026
4d6647f
Update MMRLX and migrate list styling
DerGoogler Nov 12, 2026
0470cac
Refresh repository and module card layouts
DerGoogler Nov 12, 2026
0157264
Restyle explore repositories card
DerGoogler Nov 12, 2026
b187e59
Use shared pull-to-refresh components
DerGoogler Nov 12, 2026
a4fae99
Migrate repository exploration UI to MMRLX
DerGoogler Nov 12, 2026
a8d5d06
Use muted colors for repository metadata
DerGoogler Nov 12, 2026
c40049c
[skip ci] Redesign installed module cards with MMRLX
DerGoogler Nov 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .github/actions/build-apk/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,10 @@ runs:
shell: bash
run: |
apk_path=$(find app/build/outputs/apk/${{ env.FLAVOR_LOWERCASE }}/${{ env.BUILD_TYPE_LOWERCASE }} -name "*.apk" -print -quit)
mapping_path=$(find app/build/outputs/mapping/${{ env.FLAVOR_LOWERCASE }}${{ env.BUILD_TYPE_CAPITALIZED }} -name "mapping.txt" -print -quit)
name=$(basename "$apk_path" .apk)

echo "name=$name" >> $GITHUB_OUTPUT
echo "path=$apk_path" >> $GITHUB_OUTPUT
echo "mapping=$mapping_path" >> $GITHUB_OUTPUT

- name: Upload mapping as artifact
if: ${{ steps.apk.outputs.mapping != '' }}
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.flavor }}-${{ inputs.buildType }}-mapping
path: ${{ steps.apk.outputs.mapping }}

- name: Upload APK as artifact
uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
id: create_release
uses: actions/create-release@v1
with:
prerelease: ${{ github.event.inputs.track == 'beta' }}
tag_name: v${{ env.VERSION }}
release_name: v${{ env.VERSION }}
body: |
Expand Down Expand Up @@ -111,4 +112,4 @@ jobs:
asset_name: ${{ steps.find_apks.outputs.SPOOFED_NAME }}
asset_content_type: application/vnd.android.package-archive
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 3 additions & 5 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release CI

permissions:
contents: read
contents: write
packages: read

on:
Expand Down Expand Up @@ -30,8 +30,6 @@ on:
options:
- production
- beta
- alpha
- qa

jobs:
# Build step for both official & spoofed flavors
Expand Down Expand Up @@ -104,8 +102,8 @@ jobs:
run: |
[ -f gradle.properties ] && [ "$(tail -c1 gradle.properties)" != "" ] && echo >> gradle.properties
{
echo "gpr.user=${{ inputs.username }}"
echo "gpr.key=${{ inputs.token }}"
echo "gpr.user=${{ secrets.ACTOR }}"
echo "gpr.key=${{ secrets.GH_TOKEN }}"
} >> gradle.properties

- name: Set up JDK
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/telegram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
${{ env.MESSAGE }}

Branch: ${{ env.BRANCH_NAME }}
Track: ${{ github.event.inputs.track }}
[Workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
files: |
${{ steps.find_apks.outputs.OFFICIAL_APK_PATH }}
Expand Down
13 changes: 8 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ android {
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
resValue("string", "app_name", baseAppName)
buildConfigField("Boolean", "IS_DEV_VERSION", "false")
buildConfigField("Boolean", "IS_GOOGLE_PLAY_BUILD", "false")
isDebuggable = false
Expand Down Expand Up @@ -174,10 +173,14 @@ android {

androidComponents {
onVariants { variant ->
val distributionFlavor = variant.productFlavors
.firstOrNull { it.first == "distribution" }
?.second

variant.outputs.filterIsInstance<VariantOutputImpl>().forEach { output ->
output.outputFileName.set(
output.versionName.map { vName ->
"MMRL-${vName}-${variant.buildType ?: variant.name}.apk"
"MMRL-$vName-$distributionFlavor.apk"
}
)
}
Expand All @@ -188,6 +191,7 @@ androidComponents {
}

dependencies {
testImplementation(libs.junit)
implementation(libs.androidx.lifecycle.process)
implementation(libs.androidx.swiperefreshlayout)
compileOnly(projects.hiddenApi)
Expand All @@ -197,9 +201,6 @@ dependencies {
implementation(projects.compat)
implementation(projects.datastore)

implementation(libs.webuix.hwui)
implementation(libs.webuix.helper)

implementation(libs.kotlin.stdlib)

implementation(libs.hiddenApiBypass)
Expand Down Expand Up @@ -272,6 +273,8 @@ dependencies {
ksp(libs.square.moshi.kotlin)

implementation(libs.mmrlx.terminal)
implementation(libs.mmrlx.ui)
implementation(libs.mmrlx.utilities)
implementation(libs.mmrlx.webui.core)

implementation("dev.chrisbanes.haze:haze:1.6.10")
Expand Down
86 changes: 86 additions & 0 deletions app/src/main/kotlin/com/dergoogler/mmrl/database/dao/JoinDao.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,89 @@ import kotlinx.coroutines.flow.Flow

@Dao
interface JoinDao {
@Query(
"""
SELECT m.*
FROM onlineModules m
JOIN repos r ON m.repoUrl = r.url
LEFT JOIN localModules l ON l.id = m.id
LEFT JOIN localModules_updatable u ON u.id = m.id
WHERE r.enable = 1 AND r.version = :version AND (:repoUrl = '' OR m.repoUrl = :repoUrl)
AND (:repoUrl != '' OR NOT EXISTS (
SELECT 1 FROM onlineModules other
JOIN repos otherRepo ON other.repoUrl = otherRepo.url
WHERE other.id = m.id AND otherRepo.enable = 1 AND otherRepo.version = :version
AND (other.versionCode > m.versionCode OR
(other.versionCode = m.versionCode AND other.rowid < m.rowid))
))
AND (
(:prefix = '' AND (instr(lower(m.name), lower(:search)) > 0
OR instr(lower(m.author), lower(:search)) > 0
OR instr(lower(m.description), lower(:search)) > 0))
OR (:prefix = 'id' AND m.id = :search COLLATE NOCASE)
OR (:prefix = 'name' AND m.name = :search COLLATE NOCASE)
OR (:prefix = 'author' AND m.author = :search COLLATE NOCASE)
OR (:prefix = 'category' AND m.categories LIKE :categoryPattern ESCAPE '\')
)
ORDER BY
CASE WHEN :pinUpdatable AND l.author = m.author AND l.versionCode < m.versionCode
AND (u.updatable IS NULL OR u.updatable = 1) THEN 1 ELSE 0 END DESC,
CASE WHEN :pinInstalled AND l.author = m.author THEN 1 ELSE 0 END DESC,
CASE WHEN :sort = 'Name' AND NOT :descending THEN lower(m.name) END ASC,
CASE WHEN :sort = 'Name' AND :descending THEN lower(m.name) END DESC,
CASE WHEN :sort = 'UpdatedTime' AND NOT :descending THEN COALESCE(
(SELECT v.timestamp FROM versions v JOIN repos vr ON v.repoUrl = vr.url
WHERE v.id = m.id AND vr.enable = 1 AND vr.version = :version
AND (:repoUrl = '' OR v.repoUrl = m.repoUrl)
ORDER BY CASE WHEN :repoUrl = '' THEN v.versionCode END DESC, v.rowid LIMIT 1), 0)
END DESC,
CASE WHEN :sort = 'UpdatedTime' AND :descending THEN COALESCE(
(SELECT v.timestamp FROM versions v JOIN repos vr ON v.repoUrl = vr.url
WHERE v.id = m.id AND vr.enable = 1 AND vr.version = :version
AND (:repoUrl = '' OR v.repoUrl = m.repoUrl)
ORDER BY CASE WHEN :repoUrl = '' THEN v.versionCode END DESC, v.rowid LIMIT 1), 0)
END ASC,
m.rowid
LIMIT :limit OFFSET :offset
""",
)
suspend fun getRepositoryPage(
repoUrl: String,
search: String,
prefix: String,
categoryPattern: String,
sort: String,
descending: Boolean,
pinInstalled: Boolean,
pinUpdatable: Boolean,
limit: Int,
offset: Int,
version: Int = ModulesJson.CURRENT_VERSION,
): List<OnlineModuleEntity>

@Query(
"""
SELECT (SELECT COUNT(*) FROM onlineModules) + (SELECT COUNT(*) FROM repos) +
(SELECT COUNT(*) FROM versions) + (SELECT COUNT(*) FROM localModules) +
(SELECT COUNT(*) FROM localModules_updatable)
""",
)
fun observeRepositoryChanges(): Flow<Int>

@Query(
"""
SELECT v.* FROM versions v JOIN repos r ON v.repoUrl = r.url
WHERE v.id IN (:ids) AND r.enable = 1 AND r.version = :version
AND (:repoUrl = '' OR v.repoUrl = :repoUrl)
ORDER BY CASE WHEN :repoUrl = '' THEN v.versionCode END DESC, v.rowid
""",
)
suspend fun getRepositoryVersions(
ids: List<String>,
repoUrl: String,
version: Int = ModulesJson.CURRENT_VERSION,
): List<VersionItemEntity>

@Query(
"SELECT m.* " +
"FROM onlineModules m " +
Expand Down Expand Up @@ -62,4 +145,7 @@ interface JoinDao {
repoUrl: String,
version: Int = ModulesJson.CURRENT_VERSION,
): List<VersionItemEntity>

@Query("SELECT * FROM versions WHERE repoUrl = :repoUrl")
fun getVersionsByRepoUrl(repoUrl: String): List<VersionItemEntity>
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ interface LocalDao {
@Query("SELECT * FROM localModules")
fun getAll(): List<LocalModuleEntity>

@Query("SELECT * FROM localModules WHERE id IN (:ids)")
suspend fun getByIds(ids: List<String>): List<LocalModuleEntity>

@Query("SELECT * FROM localModules_updatable WHERE id IN (:ids)")
suspend fun getUpdatableTagsByIds(ids: List<String>): List<LocalModuleUpdatable>

@Query("SELECT * FROM localModules WHERE id = :id LIMIT 1")
suspend fun getByIdOrNull(id: String): LocalModuleEntity?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ data class VersionItemEntity(

fun toItem() =
VersionItem(
moduleId = id,
repoUrl = repoUrl,
timestamp = timestamp,
version = version,
Expand Down
41 changes: 24 additions & 17 deletions app/src/main/kotlin/com/dergoogler/mmrl/model/json/UpdateJson.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.dergoogler.mmrl.model.json

import android.util.Log
import com.dergoogler.mmrl.model.online.VersionItem
import com.dergoogler.mmrl.network.NetworkUtils
import com.squareup.moshi.JsonClass
Expand Down Expand Up @@ -39,28 +40,34 @@ data class UpdateJson(
suspend fun loadToVersionItem(url: String): VersionItem? {
if (!NetworkUtils.isUrl(url)) return null

val result =
NetworkUtils.request(url) { body, headers ->
val adapter =
Moshi
.Builder()
.build()
.adapter<UpdateJson>()
val result = NetworkUtils.request(url) { body, headers ->
val adapter = Moshi.Builder().build().adapter<UpdateJson>()
adapter.fromJson(body.string()) to headers
}

if (!result.isSuccess) {
Log.d("UpdateJson", "request failed: ${result.exceptionOrNull()}")
return null
}

adapter.fromJson(body.string()) to headers
}
val (json, _) = result.getOrThrow()
if (json == null) return null

if (result.isSuccess) {
val (json, headers) = result.getOrThrow()
if (json != null) {
val t = headers.getInstant("Last-Modified")?.toEpochMilli()
val timestamp = (t ?: 0L) / 1000f
val zipResult = NetworkUtils.requestHead(json.zipUrl)

return json.toItemOrNull(timestamp)
}
if (!zipResult.isSuccess) {
Log.d("UpdateJson", "zip head request failed: ${zipResult.exceptionOrNull()}")
return null
}

return null
val headers = zipResult.getOrThrow()

val instant = headers.getInstant("Last-Modified") ?: headers.getInstant("Date")
val t = instant?.toEpochMilli()
val timestamp = (t ?: 0L) / 1000f

return json.toItemOrNull(timestamp)
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import com.dergoogler.mmrl.R
import com.dergoogler.mmrl.datastore.model.WorkingMode
import com.dergoogler.mmrl.ui.component.listItem.dsl.component.RadioDialogItem
import dev.mmrlx.compose.ui.list.component.RadioDialogOption

data class FeaturedManager(
private val nameAs: Any,
Expand All @@ -15,7 +15,7 @@ data class FeaturedManager(
) {
@Composable
fun toRadioDialogItem() =
RadioDialogItem(
RadioDialogOption(
title = name,
value = workingMode,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import kotlin.contracts.contract
@Serializable
@JsonClass(generateAdapter = true)
data class VersionItem(
var moduleId: String = "",
@Json(ignore = true) val repoUrl: String = "",
val timestamp: Float,
val version: String,
Expand All @@ -25,7 +26,8 @@ data class VersionItem(
val isEmpty get() = this == EMPTY

companion object {
val EMPTY = VersionItem(timestamp = 0f, version = "", versionCode = 0, zipUrl = "")
val EMPTY =
VersionItem(moduleId = "", timestamp = 0f, version = "", versionCode = 0, zipUrl = "")
}
}

Expand Down
26 changes: 23 additions & 3 deletions app/src/main/kotlin/com/dergoogler/mmrl/network/NetworkUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ object NetworkUtils {
.matches(url)

fun createOkHttpClient(): OkHttpClient {
val builder = OkHttpClient.Builder().cache(cacheOrNull)
val builder = OkHttpClient.Builder()
.cache(cacheOrNull)
.followRedirects(true)
.followSslRedirects(true)

if (BuildConfig.DEBUG) {
builder.addInterceptor(
Expand All @@ -59,10 +62,11 @@ object NetworkUtils {
},
)
} else {
builder.connectionSpecs(listOf(ConnectionSpec.MODERN_TLS))
builder.connectionSpecs(listOf(ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS))
}

builder.dns(DnsResolver(builder.build(), useDoh))
val bootstrapClient = OkHttpClient.Builder().build()
builder.dns(DnsResolver(bootstrapClient, useDoh))

builder.addInterceptor { chain ->
val request = chain.request().newBuilder()
Expand All @@ -74,6 +78,7 @@ object NetworkUtils {
return builder.build()
}


fun createRetrofit(): Retrofit.Builder {
val client = createOkHttpClient()

Expand All @@ -99,6 +104,21 @@ object NetworkUtils {
}
}

suspend fun requestHead(url: String): Result<Headers> = withContext(Dispatchers.IO) {
runCatching {
val client = createOkHttpClient()
val request = Request.Builder()
.url(url)
.head() // Tells the server to only return headers, no body
.build()

client.newCall(request).execute().use { response ->
if (!response.isSuccessful) throw Exception(response.toString())
response.headers
}
}
}

suspend fun requestString(url: String) =
request(
url = url,
Expand Down
Loading
Loading