Merge branch 'kmmiio99o:main' into main
Some checks failed
Build Debug App / build (push) Failing after 5s
Build & Publish Release App / publish (push) Failing after 5s

This commit is contained in:
OTKUSteyler 2025-11-10 23:22:51 +01:00 • committed by GitHub
commit bbfc129d1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 3 deletions

View file

@ -25,7 +25,7 @@ android {
defaultConfig {
minSdk = 28
targetSdk = 36
versionCode = 10_10_00
versionCode = 10_11_00
versionName = "1.1.0"
vectorDrawables {
useSupportLibrary = true

View file

@ -224,7 +224,11 @@ class HomeModel(
},
screenModelScope.launch(Dispatchers.IO) {
wtGithub.getLatestXposedRelease().fold(
success = { latestShiggyXposedVersion = SemVer.parse(it.name) },
success = {
val versionName = it.name
val truncatedVersion = versionName.split(".").take(3).joinToString(".")
latestShiggyXposedVersion = SemVer.parse(truncatedVersion)
},
fail = { Log.w(BuildConfig.TAG, "Failed to fetch latest ShiggyXposed version", it) },
)
},

View file

@ -73,6 +73,10 @@ class PatchOptionsModel(
var showNetworkWarningDialog by mutableStateOf(!alreadyShownNetworkWarning && isNetworkDangerous())
private set
// Expose current installer option
val currentInstaller: com.aliucord.manager.manager.InstallerSetting
get() = prefs.installer
fun hideNetworkWarning(neverShow: Boolean) {
showNetworkWarningDialog = false
alreadyShownNetworkWarning = true

View file

@ -73,7 +73,9 @@ class PatchOptionsScreen(
)
}
UnknownSourcesPermissionDialog()
if (model.currentInstaller == com.aliucord.manager.manager.InstallerSetting.PM) {
UnknownSourcesPermissionDialog()
}
PatchOptionsScreenContent(
isUpdate = prefilledOptions != null,