From ad877dd43451ce71c67bea0a240a819a9cca127a Mon Sep 17 00:00:00 2001 From: kmmiio99o <164557248+kmmiio99o@users.noreply.github.com> Date: Sat, 25 Oct 2025 20:58:53 +0200 Subject: [PATCH] Bump app version and use static contributors Replace HTTP contributors API call with a curated static list of GitHub usernames and avatar URLs to avoid depending on a specific repo. Update versionCode to 100030 and versionName to 1.0.3 --- app/build.gradle.kts | 4 +- .../manager/ui/screens/about/AboutModel.kt | 40 +++++++++++++++---- 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 10f1d0c..decf0a5 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -24,8 +24,8 @@ android { defaultConfig { minSdk = 28 targetSdk = 36 - versionCode = 10_00_20 - versionName = "1.0.2" + versionCode = 10_00_30 + versionName = "1.0.3" vectorDrawables { useSupportLibrary = true } diff --git a/app/src/main/kotlin/com/aliucord/manager/ui/screens/about/AboutModel.kt b/app/src/main/kotlin/com/aliucord/manager/ui/screens/about/AboutModel.kt index 75db429..6078302 100644 --- a/app/src/main/kotlin/com/aliucord/manager/ui/screens/about/AboutModel.kt +++ b/app/src/main/kotlin/com/aliucord/manager/ui/screens/about/AboutModel.kt @@ -8,6 +8,9 @@ import com.aliucord.manager.network.utils.fold import com.aliucord.manager.ui.util.toUnsafeImmutable import com.aliucord.manager.util.launchIO import io.ktor.client.request.url +import kotlinx.serialization.Serializable +import kotlinx.serialization.SerialName +import kotlinx.collections.immutable.persistentListOf class AboutModel( private val http: HttpService, @@ -19,15 +22,36 @@ class AboutModel( fun fetchContributors() = screenModelScope.launchIO { mutableState.value = AboutScreenState.Loading - val response = http.request> { url(CONTRIBUTORS_API_URL) } - - mutableState.value = response.fold( - success = { AboutScreenState.Loaded(it.toUnsafeImmutable()) }, - fail = { AboutScreenState.Failure }, + // Use a curated static list of GitHub usernames (profiles + static avatar URLs). + // This avoids pulling from a specific repo and lets us include people + // who are not contributors to any particular repository. + val staticContributors = persistentListOf( + Contributor( + username = "rushiiMachine", + avatarUrl = "https://github.com/rushiiMachine.png", + commits = 0, + repositories = persistentListOf() + ), + Contributor( + username = "maisymoe", + avatarUrl = "https://github.com/maisymoe.png", + commits = 0, + repositories = persistentListOf() + ), + Contributor( + username = "kmmiio99o", + avatarUrl = "https://github.com/kmmiio99o.png", + commits = 0, + repositories = persistentListOf() + ), + Contributor( + username = "pylixonly", + avatarUrl = "https://github.com/pylixonly.png", + commits = 0, + repositories = persistentListOf() + ) ) - } - companion object { - private const val CONTRIBUTORS_API_URL = "https://api.rushii.dev/aliucord/contributors" + mutableState.value = AboutScreenState.Loaded(staticContributors.toUnsafeImmutable()) } }