Skip to content

Rename Constants to Follow Kotlin Naming Conventions #6107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

Akshaykomar890
Copy link
Contributor

Fixes:
This PR refactors constant names in the project to adhere to Kotlin's UPPERCASE_SNAKE_CASE naming convention, improving code readability and maintaining consistency across the codebase.

Renamed the following constants in LoginActivity:
saveProgressDialog → SAVE_PROGRESS_DIALOG
saveErrorMessage → SAVE_ERROR_MESSAGE
saveUsername → SAVE_USERNAME
savePassword → SAVE_PASSWORD

Updated all references to these constants throughout the project.

>This PR refactors constant names in the project to adhere to Kotlin's UPPERCASE_SNAKE_CASE naming convention, improving code readability and maintaining consistency across the codebase.

>Renamed the following constants in LoginActivity:
>saveProgressDialog → SAVE_PROGRESS_DIALOG
>saveErrorMessage → SAVE_ERROR_MESSAGE
>saveUsername → SAVE_USERNAME
>savePassword → SAVE_PASSWORD

>Updated all references to these constants throughout the project.
@neeldoshii
Copy link
Contributor

neeldoshii commented Jan 6, 2025

Thank you for contributing!
LGTM. Left one nitpick changes.

Tried performing login everything works!

<inspection_tool class="PreviewPickerAnnotation" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this is local ide changes which can be reverted.

@Akshaykomar890
Copy link
Contributor Author

Thank you @neeldoshii for pointing this out! I've reverted the IDE-specific file changes and ensured it's excluded from version control. Let me know if there's anything else to address.

@misaochan
Copy link
Member

Thanks for reviewing, @neeldoshii . :)

@misaochan misaochan merged commit ecb19d6 into commons-app:main Jan 6, 2025
1 check passed
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.

4 participants