mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-19 01:03:56 +00:00
Compare commits
11 Commits
v1.26.0-de
...
v1.26.0-de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b43ac8a1af | ||
|
|
2ff70728b4 | ||
|
|
e5097b5ecd | ||
|
|
d5671db3a7 | ||
|
|
a314ba209d | ||
|
|
12d92ba811 | ||
|
|
ffd08c737c | ||
|
|
e1b768c467 | ||
|
|
df6ecd27dd | ||
|
|
2571cb8c11 | ||
|
|
c327857823 |
@@ -1,3 +1,43 @@
|
|||||||
|
# app [1.26.0-dev.10](https://github.com/ReVanced/revanced-manager/compare/v1.26.0-dev.9...v1.26.0-dev.10) (2025-10-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* prevent back presses during installation ([2ff7072](https://github.com/ReVanced/revanced-manager/commit/2ff70728b490b92f212a82dcf599bc0c23f589e7))
|
||||||
|
|
||||||
|
# app [1.26.0-dev.9](https://github.com/ReVanced/revanced-manager/compare/v1.26.0-dev.8...v1.26.0-dev.9) (2025-10-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Instantly re-fetch patch bundle on pre-release preference update ([d5671db](https://github.com/ReVanced/revanced-manager/commit/d5671db3a77541c07bbbb4c3baca02f3ba0703f2)), closes [#2784](https://github.com/ReVanced/revanced-manager/issues/2784)
|
||||||
|
|
||||||
|
# app [1.26.0-dev.8](https://github.com/ReVanced/revanced-manager/compare/v1.26.0-dev.7...v1.26.0-dev.8) (2025-10-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Offcenter loading indicator in AppSelector ([12d92ba](https://github.com/ReVanced/revanced-manager/commit/12d92ba8110f5d1ac78aeecfa575444b5c53f561))
|
||||||
|
|
||||||
|
# app [1.26.0-dev.7](https://github.com/ReVanced/revanced-manager/compare/v1.26.0-dev.6...v1.26.0-dev.7) (2025-10-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Improve consistency between pre-release toggles ([e1b768c](https://github.com/ReVanced/revanced-manager/commit/e1b768c4679ecae8bff8007bdab56ff6544b12b6))
|
||||||
|
|
||||||
|
# app [1.26.0-dev.6](https://github.com/ReVanced/revanced-manager/compare/v1.26.0-dev.5...v1.26.0-dev.6) (2025-10-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Broken version comparison ([c327857](https://github.com/ReVanced/revanced-manager/commit/c3278578237dcddd9e7ab79ee80a02fdeef9604d))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Open contributor's GitHub profile when clicked ([#2775](https://github.com/ReVanced/revanced-manager/issues/2775)) ([2571cb8](https://github.com/ReVanced/revanced-manager/commit/2571cb8c1108e9c1ed84950f17692c09d66e0556))
|
||||||
|
|
||||||
# app [1.26.0-dev.5](https://github.com/ReVanced/revanced-manager/compare/v1.26.0-dev.4...v1.26.0-dev.5) (2025-10-03)
|
# app [1.26.0-dev.5](https://github.com/ReVanced/revanced-manager/compare/v1.26.0-dev.4...v1.26.0-dev.5) (2025-10-03)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
version = 1.26.0-dev.5
|
version = 1.26.0-dev.10
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package app.revanced.manager.network.api
|
package app.revanced.manager.network.api
|
||||||
|
|
||||||
import android.os.Build
|
import app.revanced.manager.BuildConfig
|
||||||
import app.revanced.manager.domain.manager.PreferencesManager
|
import app.revanced.manager.domain.manager.PreferencesManager
|
||||||
import app.revanced.manager.network.dto.ReVancedAsset
|
import app.revanced.manager.network.dto.ReVancedAsset
|
||||||
import app.revanced.manager.network.dto.ReVancedGitRepository
|
import app.revanced.manager.network.dto.ReVancedGitRepository
|
||||||
@@ -30,7 +30,7 @@ class ReVancedAPI(
|
|||||||
private suspend inline fun <reified T> request(route: String) = request<T>(apiUrl(), route)
|
private suspend inline fun <reified T> request(route: String) = request<T>(apiUrl(), route)
|
||||||
|
|
||||||
suspend fun getAppUpdate() =
|
suspend fun getAppUpdate() =
|
||||||
getLatestAppInfo().getOrThrow().takeIf { it.version != Build.VERSION.RELEASE }
|
getLatestAppInfo().getOrThrow().takeIf { it.version.removePrefix("v") != BuildConfig.VERSION_NAME }
|
||||||
|
|
||||||
suspend fun getLatestAppInfo() =
|
suspend fun getLatestAppInfo() =
|
||||||
request<ReVancedAsset>("manager?prerelease=${prefs.useManagerPrereleases.get()}")
|
request<ReVancedAsset>("manager?prerelease=${prefs.useManagerPrereleases.get()}")
|
||||||
|
|||||||
@@ -177,26 +177,28 @@ fun BundleInformationDialog(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (src.isDefault) {
|
if (src.isDefault) {
|
||||||
val usePrereleases by prefs.usePatchesPrereleases.getAsState()
|
val useBundlePrerelease by prefs.usePatchesPrereleases.getAsState()
|
||||||
|
|
||||||
BundleListItem(
|
BundleListItem(
|
||||||
headlineText = stringResource(R.string.patches_prereleases),
|
headlineText = stringResource(R.string.patches_prereleases),
|
||||||
supportingText = stringResource(R.string.patches_prereleases_description),
|
supportingText = stringResource(R.string.patches_prereleases_description, src.name),
|
||||||
trailingContent = {
|
trailingContent = {
|
||||||
HapticSwitch(
|
HapticSwitch(
|
||||||
checked = usePrereleases,
|
checked = useBundlePrerelease,
|
||||||
onCheckedChange = {
|
onCheckedChange = {
|
||||||
composableScope.launch {
|
composableScope.launch {
|
||||||
prefs.usePatchesPrereleases.update(
|
prefs.usePatchesPrereleases.update(
|
||||||
it
|
it
|
||||||
)
|
)
|
||||||
|
onUpdate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
modifier = Modifier.clickable {
|
modifier = Modifier.clickable {
|
||||||
composableScope.launch {
|
composableScope.launch {
|
||||||
prefs.usePatchesPrereleases.update(!usePrereleases)
|
prefs.usePatchesPrereleases.update(!useBundlePrerelease)
|
||||||
|
onUpdate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -234,7 +234,13 @@ fun AppSelectorScreen(
|
|||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
item { LoadingIndicator() }
|
item {
|
||||||
|
Box(
|
||||||
|
modifier = Modifier.fillParentMaxSize(), contentAlignment = Alignment.Center
|
||||||
|
) {
|
||||||
|
LoadingIndicator()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ import app.revanced.manager.ui.model.StepCategory
|
|||||||
import app.revanced.manager.ui.viewmodel.PatcherViewModel
|
import app.revanced.manager.ui.viewmodel.PatcherViewModel
|
||||||
import app.revanced.manager.util.APK_MIMETYPE
|
import app.revanced.manager.util.APK_MIMETYPE
|
||||||
import app.revanced.manager.util.EventEffect
|
import app.revanced.manager.util.EventEffect
|
||||||
|
import app.revanced.manager.util.toast
|
||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@Composable
|
@Composable
|
||||||
@@ -76,11 +77,10 @@ fun PatcherScreen(
|
|||||||
var showInstallPicker by rememberSaveable { mutableStateOf(false) }
|
var showInstallPicker by rememberSaveable { mutableStateOf(false) }
|
||||||
var showDismissConfirmationDialog by rememberSaveable { mutableStateOf(false) }
|
var showDismissConfirmationDialog by rememberSaveable { mutableStateOf(false) }
|
||||||
|
|
||||||
fun onPageBack() {
|
fun onPageBack() = when {
|
||||||
if(patcherSucceeded == null)
|
patcherSucceeded == null -> showDismissConfirmationDialog = true
|
||||||
showDismissConfirmationDialog = true
|
viewModel.isInstalling -> context.toast(context.getString(R.string.patcher_install_in_progress))
|
||||||
else
|
else -> onLeave()
|
||||||
onLeave()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BackHandler(onBack = ::onPageBack)
|
BackHandler(onBack = ::onPageBack)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package app.revanced.manager.ui.screen.settings
|
package app.revanced.manager.ui.screen.settings
|
||||||
|
|
||||||
import androidx.compose.foundation.border
|
import androidx.compose.foundation.border
|
||||||
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.BoxWithConstraints
|
import androidx.compose.foundation.layout.BoxWithConstraints
|
||||||
@@ -34,6 +35,8 @@ import androidx.compose.ui.Modifier
|
|||||||
import androidx.compose.ui.draw.clip
|
import androidx.compose.ui.draw.clip
|
||||||
import androidx.compose.ui.input.nestedscroll.nestedScroll
|
import androidx.compose.ui.input.nestedscroll.nestedScroll
|
||||||
import androidx.compose.ui.layout.ContentScale
|
import androidx.compose.ui.layout.ContentScale
|
||||||
|
import androidx.compose.ui.platform.LocalUriHandler
|
||||||
|
import androidx.compose.ui.platform.UriHandler
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.text.font.FontWeight
|
import androidx.compose.ui.text.font.FontWeight
|
||||||
import androidx.compose.ui.text.style.TextOverflow
|
import androidx.compose.ui.text.style.TextOverflow
|
||||||
@@ -57,6 +60,7 @@ fun ContributorSettingsScreen(
|
|||||||
) {
|
) {
|
||||||
val repositories = viewModel.repositories
|
val repositories = viewModel.repositories
|
||||||
val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState())
|
val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState())
|
||||||
|
val uriHandler = LocalUriHandler.current
|
||||||
|
|
||||||
Scaffold(
|
Scaffold(
|
||||||
topBar = {
|
topBar = {
|
||||||
@@ -93,7 +97,8 @@ fun ContributorSettingsScreen(
|
|||||||
) {
|
) {
|
||||||
ContributorsCard(
|
ContributorsCard(
|
||||||
title = it.name,
|
title = it.name,
|
||||||
contributors = it.contributors
|
contributors = it.contributors,
|
||||||
|
uriHandler = uriHandler
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -115,7 +120,8 @@ fun ContributorsCard(
|
|||||||
title: String,
|
title: String,
|
||||||
contributors: List<ReVancedContributor>,
|
contributors: List<ReVancedContributor>,
|
||||||
itemsPerPage: Int = 12,
|
itemsPerPage: Int = 12,
|
||||||
numberOfRows: Int = 2
|
numberOfRows: Int = 2,
|
||||||
|
uriHandler: UriHandler
|
||||||
) {
|
) {
|
||||||
val itemsPerRow = (itemsPerPage / numberOfRows)
|
val itemsPerRow = (itemsPerPage / numberOfRows)
|
||||||
|
|
||||||
@@ -172,7 +178,11 @@ fun ContributorsCard(
|
|||||||
contributorsByPage[page].forEach {
|
contributorsByPage[page].forEach {
|
||||||
if (itemSize > 100.dp) {
|
if (itemSize > 100.dp) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.width(itemSize - 1.dp), // we delete 1.dp to account for not-so divisible numbers
|
modifier = Modifier
|
||||||
|
.width(itemSize - 1.dp)
|
||||||
|
.clickable {
|
||||||
|
uriHandler.openUri("https://github.com/${it.username}")
|
||||||
|
}, // we delete 1.dp to account for not-so divisible numbers
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
horizontalArrangement = Arrangement.spacedBy(12.dp)
|
horizontalArrangement = Arrangement.spacedBy(12.dp)
|
||||||
) {
|
) {
|
||||||
@@ -203,6 +213,9 @@ fun ContributorsCard(
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.size(size = (itemSize - 1.dp).coerceAtMost(50.dp)) // we delete 1.dp to account for not-so divisible numbers
|
.size(size = (itemSize - 1.dp).coerceAtMost(50.dp)) // we delete 1.dp to account for not-so divisible numbers
|
||||||
.clip(CircleShape)
|
.clip(CircleShape)
|
||||||
|
.clickable {
|
||||||
|
uriHandler.openUri("https://github.com/${it.username}")
|
||||||
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,7 @@
|
|||||||
<string name="patcher_notification_text">Tap to return to the patcher</string>
|
<string name="patcher_notification_text">Tap to return to the patcher</string>
|
||||||
<string name="patcher_stop_confirm_title">Stop patcher</string>
|
<string name="patcher_stop_confirm_title">Stop patcher</string>
|
||||||
<string name="patcher_stop_confirm_description">Are you sure you want to stop the patching process?</string>
|
<string name="patcher_stop_confirm_description">Are you sure you want to stop the patching process?</string>
|
||||||
|
<string name="patcher_install_in_progress">Installation is in progress. Please wait</string>
|
||||||
<string name="execute_patches">Execute patches</string>
|
<string name="execute_patches">Execute patches</string>
|
||||||
<string name="executing_patch">Execute %s</string>
|
<string name="executing_patch">Execute %s</string>
|
||||||
<string name="failed_to_execute_patch">Failed to execute %s</string>
|
<string name="failed_to_execute_patch">Failed to execute %s</string>
|
||||||
@@ -437,8 +438,8 @@
|
|||||||
<string name="auto_update">Auto update</string>
|
<string name="auto_update">Auto update</string>
|
||||||
<string name="add_patches">Add patches</string>
|
<string name="add_patches">Add patches</string>
|
||||||
<string name="auto_update_description">Automatically update when a new version is available</string>
|
<string name="auto_update_description">Automatically update when a new version is available</string>
|
||||||
<string name="patches_prereleases">Prereleases</string>
|
<string name="patches_prereleases">Use pre-releases</string>
|
||||||
<string name="patches_prereleases_description">Use prerelease versions</string>
|
<string name="patches_prereleases_description">Use pre-release versions of %s</string>
|
||||||
<string name="patches_url">Patches URL</string>
|
<string name="patches_url">Patches URL</string>
|
||||||
<string name="incompatible_patches_dialog">These patches are not compatible with the selected app version (%1$s).\n\nClick on the patches to see more details.</string>
|
<string name="incompatible_patches_dialog">These patches are not compatible with the selected app version (%1$s).\n\nClick on the patches to see more details.</string>
|
||||||
<string name="incompatible_patch">Incompatible patch</string>
|
<string name="incompatible_patch">Incompatible patch</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user