Skip to content

Commit 2f6489f

Browse files
committed
refactor(resources): Consolidate resources into core module
This commit centralizes all Compose resources, including drawables, fonts, and strings, into the `core:presentation` module. Previously, each feature module contained its own duplicate set of resources, leading to redundancy and maintenance overhead. By moving them to a single, shared location, we streamline resource management and ensure consistency across the application. - **refactor(resources)!**: Migrated all drawable, font, and string resources from feature modules (`:apps`, `:auth`, `:details`, `:dev-profile`, `:favourites`, `:home`, `:search`, `:settings`, `:starred`) to `core:presentation`. Feature modules now reference these resources from the core module. - **refactor(resources)!**: Removed duplicate string resource files, including translations, from all feature modules. A single `strings.xml` file and its translations now reside in `core:presentation`. - **feat(resources)**: Established `core:presentation` as the single source of truth for all shared Compose resources by enabling public resource generation. - **fix(strings)**: Updated home screen category names (`home_category_new` and `home_category_recently_updated`) to be more descriptive (`home_category_hot_release` and `home_category_most_popular`) across all translations.
1 parent 4a9391a commit 2f6489f

161 files changed

Lines changed: 76 additions & 30103 deletions

File tree

Some content is hidden

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

composeApp/src/commonMain/composeResources/drawable/compose-multiplatform.xml

Lines changed: 0 additions & 44 deletions
This file was deleted.

core/presentation/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,10 @@ kotlin {
3434
}
3535
}
3636

37+
}
38+
39+
compose.resources {
40+
publicResClass = true
41+
packageOfResClass = "zed.rainxch.githubstore.core.presentation.res"
42+
generateResClass = auto
3743
}

feature/auth/presentation/src/commonMain/composeResources/drawable/app-icon.png renamed to core/presentation/src/commonMain/composeResources/drawable/app_icon.png

File renamed without changes.

feature/auth/presentation/src/commonMain/composeResources/drawable/ic_github.xml renamed to core/presentation/src/commonMain/composeResources/drawable/ic_github.xml

File renamed without changes.

core/presentation/src/commonMain/composeResources/values-bn/strings-bn.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@
215215
<string name="error_file_not_found">ডাউনলোড করা ফাইল পাওয়া যায়নি</string>
216216

217217
<string name="home_category_trending">ট্রেন্ডিং</string>
218-
<string name="home_category_new">নতুন</string>
219-
<string name="home_category_recently_updated">সাম্প্রতিক আপডেট</string>
218+
<string name="home_category_hot_release">হট রিলিজ</string>
219+
<string name="home_category_most_popular">সবচেয়ে জনপ্রিয়</string>
220220

221221
<string name="home_finding_repositories">রিপোজিটরি খোঁজা হচ্ছে...</string>
222222
<string name="home_loading_more">আরও লোড হচ্ছে...</string>

core/presentation/src/commonMain/composeResources/values-es/strings-es.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@
162162
<string name="error_file_not_found">Archivo descargado no encontrado</string>
163163

164164
<string name="home_category_trending">Tendencias</string>
165-
<string name="home_category_new">Nuevos</string>
166-
<string name="home_category_recently_updated">Actualizados recientemente</string>
165+
<string name="home_category_hot_release">Lanzamiento en caliente</string>
166+
<string name="home_category_most_popular">Los más populares</string>
167167

168168
<string name="home_finding_repositories">Buscando repositorios...</string>
169169
<string name="home_loading_more">Cargando...</string>

core/presentation/src/commonMain/composeResources/values-fr/strings-fr.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@
162162
<string name="error_file_not_found">Fichier téléchargé introuvable</string>
163163

164164
<string name="home_category_trending">Tendances</string>
165-
<string name="home_category_new">Nouveaux</string>
166-
<string name="home_category_recently_updated">Récemment mis à jour</string>
165+
<string name="home_category_hot_release">Sortie en salles</string>
166+
<string name="home_category_most_popular">Les plus populaires</string>
167167

168168
<string name="home_finding_repositories">Recherche de dépôts...</string>
169169
<string name="home_loading_more">Chargement...</string>

core/presentation/src/commonMain/composeResources/values-it/strings-it.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@
215215
<string name="error_file_not_found">File scaricato non trovato</string>
216216

217217
<string name="home_category_trending">In tendenza</string>
218-
<string name="home_category_new">Nuovi</string>
219-
<string name="home_category_recently_updated">Aggiornate di recente</string>
218+
<string name="home_category_hot_release">Rilascio a caldo</string>
219+
<string name="home_category_most_popular">I più popolari</string>
220220

221221
<string name="home_finding_repositories">Ricerca di repositories...</string>
222222
<string name="home_loading_more">Caricamento in corso...</string>

core/presentation/src/commonMain/composeResources/values-ja/strings-ja.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@
162162
<string name="error_file_not_found">ダウンロードしたファイルが見つかりません</string>
163163

164164
<string name="home_category_trending">トレンド</string>
165-
<string name="home_category_new">新着</string>
166-
<string name="home_category_recently_updated">最近更新</string>
165+
<string name="home_category_hot_release">ホットリリース</string>
166+
<string name="home_category_most_popular">最も人気のある</string>
167167

168168
<string name="home_finding_repositories">リポジトリを検索中…</string>
169169
<string name="home_loading_more">読み込み中…</string>

core/presentation/src/commonMain/composeResources/values-kr/strings-kr.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@
213213
<string name="error_file_not_found">다운로드된 파일을 찾을 수 없습니다</string>
214214

215215
<string name="home_category_trending">인기</string>
216-
<string name="home_category_new">신규</string>
217-
<string name="home_category_recently_updated">최근 업데이트</string>
216+
<string name="home_category_hot_release">핫 릴리스</string>
217+
<string name="home_category_most_popular">가장 인기 있는</string>
218218

219219
<string name="home_finding_repositories">저장소를 찾는 중...</string>
220220
<string name="home_loading_more">더 불러오는 중...</string>

0 commit comments

Comments
 (0)