Skip to content

Commit 0922ad3

Browse files
authored
Merge pull request #542 from MMRLApp/overhaul-su
Overhaul su
2 parents 2facd60 + 7a9d13b commit 0922ad3

File tree

211 files changed

+10988
-3788
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+10988
-3788
lines changed

.github/workflows/github.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
- name: Download Official Release APK
2121
uses: actions/download-artifact@v4
2222
with:
23-
name: ${{ inputs.officialAssetName }}
23+
name: ${{ env.OFFICIAL_NAME }}
2424
path: official-apk
2525

2626
- name: Download Spoofed Release APK
2727
uses: actions/download-artifact@v4
2828
with:
29-
name: ${{ inputs.spoofedAssetName }}
29+
name: ${{ env.SPOOFED_NAME }}
3030
path: spoofed-apk
3131

3232
- name: Find APKs by name
@@ -39,6 +39,12 @@ jobs:
3939
echo "OFFICIAL_APK_PATH=$OFFICIAL_APK_PATH" >> $GITHUB_OUTPUT
4040
echo "SPOOFED_APK_PATH=$SPOOFED_APK_PATH" >> $GITHUB_OUTPUT
4141
42+
OFFICIAL_NAME=$(basename "$OFFICIAL_APK_PATH")
43+
echo "OFFICIAL_NAME=$OFFICIAL_NAME" >> $GITHUB_OUTPUT
44+
45+
SPOOFED_NAME=$(basename "$SPOOFED_APK_PATH")
46+
echo "SPOOFED_NAME=$SPOOFED_NAME" >> $GITHUB_OUTPUT
47+
4248
- name: Get commit info and build timestamp
4349
id: meta
4450
run: |
@@ -47,7 +53,7 @@ jobs:
4753
VERSION=$((31320 + COMMIT_COUNT))
4854
4955
if [ -f commits.sh ]; then
50-
MESSAGE=$(bash commits.sh 10000)
56+
MESSAGE=$(bash commits.sh 10000 "${{ env.BRANCH_NAME }}")
5157
else
5258
MESSAGE="Latest commits not available."
5359
fi
@@ -91,7 +97,7 @@ jobs:
9197
with:
9298
upload_url: ${{ steps.create_release.outputs.upload_url }}
9399
asset_path: ${{ steps.find_apks.outputs.OFFICIAL_APK_PATH }}
94-
asset_name: ${{ inputs.officialAssetName }}.apk
100+
asset_name: ${{ steps.find_apks.outputs.OFFICIAL_NAME }}
95101
asset_content_type: application/vnd.android.package-archive
96102
env:
97103
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -102,7 +108,7 @@ jobs:
102108
with:
103109
upload_url: ${{ steps.create_release.outputs.upload_url }}
104110
asset_path: ${{ steps.find_apks.outputs.SPOOFED_APK_PATH }}
105-
asset_name: ${{ inputs.spoofedAssetName }}.apk
111+
asset_name: ${{ steps.find_apks.outputs.SPOOFED_NAME }}
106112
asset_content_type: application/vnd.android.package-archive
107113
env:
108114
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/telegram.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
VERSION=$((31320 + COMMIT_COUNT))
4949
5050
if [ -f commits.sh ]; then
51-
MESSAGE=$(bash commits.sh 950)
51+
MESSAGE=$(bash commits.sh 950 "${{ env.BRANCH_NAME }}")
5252
else
5353
MESSAGE="Latest commits not available."
5454
fi

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
![Google Play Release](https://img.shields.io/endpoint?url=https%3A%2F%2Fplay.cuzi.workers.dev%2Fplay%3Fi%3Dcom.dergoogler.mmrl%26l%3DInstalls%26m%3D%24shortinstalls&label=Google%20Play&color=red)
66
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/MMRLApp/MMRL/total?label=GitHub%20Downloads)
77

8-
MMRL is an Android app that helps manage your own modules repository.
8+
A app for managing, sharing, and exploring Magisk modules across repositories.
99

1010
## Features
1111

app/build.gradle.kts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1+
12
import com.android.build.gradle.internal.api.ApkVariantOutputImpl
2-
import org.gradle.internal.extensions.stdlib.capitalized
3-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
43

54
plugins {
65
alias(libs.plugins.self.application)
@@ -56,7 +55,7 @@ android {
5655
keyAlias = project.releaseKeyAlias
5756
keyPassword = project.releaseKeyPassword
5857
enableV2Signing = true
59-
enableV3Signing = true
58+
enableV3Signing = false
6059
}
6160
} else {
6261
signingConfigs.getByName("debug")
@@ -262,8 +261,14 @@ dependencies {
262261
implementation(libs.square.logging.interceptor)
263262
implementation(libs.square.moshi)
264263
ksp(libs.square.moshi.kotlin)
264+
265+
implementation("dev.chrisbanes.haze:haze:1.6.10")
266+
implementation("dev.chrisbanes.haze:haze-materials:1.6.10")
267+
268+
implementation(libs.composedestinations.core)
269+
ksp(libs.composedestinations.ksp)
265270
}
266271

267272
tasks.register("version") {
268273
println(appVersion)
269-
}
274+
}

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
<uses-permission android:name="${webuiPermissionId}.permission.WEBUI_X" />
1515
<uses-permission android:name="${webuiPermissionId}.permission.WEBUI_LEGACY" />
16+
<uses-permission android:name="${webuiPermissionId}.permission.MODCONF" />
1617

1718
<uses-permission
1819
android:name="android.permission.READ_EXTERNAL_STORAGE"

app/src/main/assets/markdown.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ body {
88
background-color: var(--background);
99
}
1010

11+
.toolbar {
12+
height: var(--window-inset-top, 0px);
13+
}
14+
15+
.bottom-bar {
16+
height: var(--window-inset-bottom, 0px);
17+
}
18+
1119
.markdown-body {
1220
user-select: none;
1321
-ms-text-size-adjust: 100%;

app/src/main/assets/markdown.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
<!DOCTYPE html>
2+
<!--suppress HtmlRequiredLangAttribute, HtmlRequiredTitleElement -->
23
<html>
34

45
<head>
56
<meta charset="UTF-8" />
67
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
78
<link href="https://mui.kernelsu.org/internal/assets/markdown.css" rel="stylesheet" />
89
<link href="https://mui.kernelsu.org/internal/colors.css" rel="stylesheet" />
10+
<link href="https://mui.kernelsu.org/internal/insets.css" rel="stylesheet" />
911
</head>
1012

1113
<body>
14+
<div class="toolbar"></div>
1215
<div class="markdown-body" id="content"></div>
16+
<div class="bottom-bar"></div>
1317
<script type="module">
1418
import { Marked } from "https://mui.kernelsu.org/internal/assets/marked/index.mjs";
1519
import markedAlert from "https://mui.kernelsu.org/internal/assets/marked/alert.mjs";

app/src/main/kotlin/com/dergoogler/mmrl/App.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import android.app.Application
44
import android.content.Context
55
import com.dergoogler.mmrl.app.utils.NotificationUtils
66
import com.dergoogler.mmrl.network.NetworkUtils
7-
import com.dergoogler.mmrl.platform.Platform
87
import com.dergoogler.mmrl.platform.PlatformManager
98
import com.toxicbakery.logging.Arbor
109
import com.toxicbakery.logging.LogCatSeedling

app/src/main/kotlin/com/dergoogler/mmrl/app/Const.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
package com.dergoogler.mmrl.app
22

33
import android.os.Environment
4+
import com.dergoogler.mmrl.platform.PlatformManager
45
import java.io.File
56

7+
typealias PLM = PlatformManager
8+
69
object Const {
710
val PUBLIC_DOWNLOADS: File = Environment.getExternalStoragePublicDirectory(
811
Environment.DIRECTORY_DOWNLOADS

app/src/main/kotlin/com/dergoogler/mmrl/database/dao/OnlineDao.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ interface OnlineDao {
1414
@Query("SELECT * FROM onlineModules WHERE id = :id AND repoUrl = :repoUrl")
1515
suspend fun getAllByIdAndUrl(id: String, repoUrl: String): List<OnlineModuleEntity>
1616

17+
@Query("SELECT * FROM onlineModules WHERE repoUrl = :repoUrl")
18+
suspend fun getAllByUrl(repoUrl: String): List<OnlineModuleEntity>
19+
1720
@Insert(onConflict = OnConflictStrategy.REPLACE)
1821
suspend fun insert(list: List<OnlineModuleEntity>)
1922

0 commit comments

Comments
 (0)