Skip to content

refactor: extract hardcoded strings and asset paths to constants - #1840

Open
Atuoha wants to merge 1 commit into
freeCodeCamp:mainfrom
Atuoha:refactor/extract-constants
Open

Atuoha wants to merge 1 commit into
freeCodeCamp:mainfrom
Atuoha:refactor/extract-constants

Conversation

@Atuoha

@Atuoha Atuoha commented Sep 17, 2026

Copy link
Copy Markdown

This commit centralizes hardcoded configuration keys and asset paths across the codebase to improve maintainability and prevent typo-related bugs.

  • Created StringConstants for environment variables, SharedPreferences keys, and dialog state keys.
  • Created AssetConstants for image paths and test runner assets.
  • Replaced magic strings with constant references across ViewModels, Services, and UI components.

Checklist:

This commit centralizes hardcoded configuration keys and asset paths across the codebase to improve maintainability and prevent typo-related bugs.

- Created `StringConstants` for environment variables, SharedPreferences keys, and dialog state keys.
- Created `AssetConstants` for image paths and test runner assets.
- Replaced magic strings with constant references across ViewModels, Services, and UI components.
@Atuoha
Atuoha requested a review from a team as a code owner September 17, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant