{"id":13611375,"url":"https://github.com/ryanw-mobile/XLauncherIcons","last_synced_at":"2025-04-13T04:34:24.348Z","repository":{"id":185442259,"uuid":"673137483","full_name":"ryanw-mobile/XLauncherIcons","owner":"ryanw-mobile","description":"Sample App: Changing Launcher Icon Programmatically","archived":false,"fork":false,"pushed_at":"2024-05-21T03:51:06.000Z","size":8439,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-21T04:50:54.330Z","etag":null,"topics":["android","jetpack-compose","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanw-mobile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-01T00:52:29.000Z","updated_at":"2024-05-30T00:38:03.180Z","dependencies_parsed_at":null,"dependency_job_id":"b7903b03-390e-4a21-8644-4e4d3a474b24","html_url":"https://github.com/ryanw-mobile/XLauncherIcons","commit_stats":null,"previous_names":["ryanwong-uk/xlaunchericons","ryanw-mobile/xlaunchericons"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanw-mobile%2FXLauncherIcons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanw-mobile%2FXLauncherIcons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanw-mobile%2FXLauncherIcons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanw-mobile%2FXLauncherIcons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanw-mobile","download_url":"https://codeload.github.com/ryanw-mobile/XLauncherIcons/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223568201,"owners_count":17166616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","jetpack-compose","kotlin"],"created_at":"2024-08-01T19:01:54.666Z","updated_at":"2024-11-07T18:30:28.928Z","avatar_url":"https://github.com/ryanw-mobile.png","language":"Kotlin","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"readme":"# Changing the Android App Icon Programmatically \u003cbr/\u003e![Gradle Build](https://github.com/ryanw-mobile/XLauncherIcons/actions/workflows/main_build.yml/badge.svg) [![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)\n\n\u003cdiv style=\"text-align:center\"\u003e\u003cimg src=\"Screenshot_20230802_212139_framed.png\" /\u003e\u003c/div\u003e\n\n### Complementary Article\n\nThis Sample App implements the approach mentioned in my Medium article\nat: https://medium.com/@callmeryan/changing-the-android-app-icon-programmatically-c913550330d\n\n### The Underlying Working Principle\n\nWe can create multiple launcher icons by declaring `activity-alias` elements\nin` AndroidManifest.xml`. The effect of changing the app icon is achieved by disabling the current\none and enabling a new one. While some say this does not work with things like crashlytics, deep\nlink, etc., indeed this is how Reddit implements this feature in their Android App.\n\n### Let's download and run it!\n\nThis project was configured to build using Android Studio Iguana | 2023.2.1. You will need to have\nJava 17 to build the project.\n\nAlternatively, you can find the ready-to-install APKs and App Bundles under\nthe [release section](https://github.com/ryanw-mobile/XLauncherIcons/releases).\n\n### Credits\n\nSince greg never uses Android, I put him on an Android App. However,\nplease [subscribe to greg for $1](https://twitter.com/greg16676935420)\n\n### Technical details\n\n### Dependencies\n\n* [AndroidX Core KTX](https://developer.android.com/jetpack/androidx/releases/core) - Apache 2.0 - Extensions to Java APIs for Android development\n* [JUnit](https://junit.org/junit5/) - EPL 2.0 - A simple framework to write repeatable tests\n* [AndroidX Test Ext JUnit](https://developer.android.com/jetpack/androidx/releases/test) - Apache 2.0 - Extensions for Android testing\n* [AndroidX Espresso](https://developer.android.com/training/testing/espresso) - Apache 2.0 - UI testing framework\n* [AndroidX Lifecycle](https://developer.android.com/jetpack/androidx/releases/lifecycle) - Apache 2.0 - Lifecycles-aware components\n* [AndroidX Activity Compose](https://developer.android.com/jetpack/androidx/releases/activity) - Apache 2.0 - Jetpack Compose integration with Activity\n* [Jetpack Compose BOM](https://developer.android.com/jetpack/compose/bom) - Apache 2.0 - Bill of Materials for Jetpack Compose\n* [AndroidX Compose UI](https://developer.android.com/jetpack/androidx/releases/compose-ui) - Apache 2.0 - UI components for Jetpack Compose\n* [AndroidX Material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) - Apache 2.0 - Material Design components for Jetpack Compose\n\n### Plugins\n\n* [Android Application Plugin](https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration) - Google - Plugin for building Android applications\n* [Jetbrains Kotlin Android Plugin](https://kotlinlang.org/docs/gradle.html) - JetBrains - Plugin for Kotlin Android projects\n* [Ktlint Plugin](https://github.com/JLLeitschuh/ktlint-gradle) - JLLeitschuh - Plugin for Kotlin linter\n* [Compose Compiler Plugin](https://developer.android.com/jetpack/compose) - JetBrains - Plugin for Jetpack Compose\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanw-mobile%2FXLauncherIcons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanw-mobile%2FXLauncherIcons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanw-mobile%2FXLauncherIcons/lists"}