Skip to content

Conversation

@xmadera
Copy link
Member

@xmadera xmadera commented Feb 18, 2025

No description provided.

@github-actions
Copy link

github-actions bot commented Feb 18, 2025

1 Error
🚫 Only develop, hotfix and release can point to main.
4 Warnings
⚠️ Feature or fix PR title should include JIRA-ID and short description.
⚠️ Feature or fix PR branch name should include JIRA-ID and short description.
⚠️ Please start subject with capital letter.
2442c61
⚠️ Please start subject with capital letter.
c4a375a

Generated by 🚫 Danger

import androidx.datastore.preferences.preferencesDataStore
import app.futured.androidprojecttemplate.tools.Constants

val Context.dataStore: DataStore<Preferences> by preferencesDataStore(name = Constants.DataStore.DEFAULT_DATASTORE_NAME)
Copy link
Member

Choose a reason for hiding this comment

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

This extension is only used to create a datastore in Hilt module, and could be potentially misused by user to create a new datastore instead of injecting it. I would remove this and implement everything inside ApplicationModule, or at least move it to the ApplicationModule file and make it private.

@xmadera xmadera merged commit 0e3f147 into main Feb 20, 2025
1 of 2 checks passed
@xmadera xmadera deleted the feature/datastore branch February 20, 2025 07:53
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.

3 participants