Skip to content
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

refactor: rudderpreferencemanager class #463

Open
wants to merge 21 commits into
base: feat/android
Choose a base branch
from

Conversation

ChryssaAliferi
Copy link
Contributor

Ticket

Description

In this PR we are refactoring the RudderPreferenceManager, by separating the keys, the interface and the implementations in different classes. This refactor will simplify the storage to the Android prefs file but also help further refactors down the road

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Refactor

Implementation Details

  • Created SharedPrefs file with constants
  • Created SharedPrefsRepository interface
  • Created SharedPrefsStore implementation file
  • Replaces old implementation with new
  • Removes RudderPreferenceManager class

Checklist:

  • Version upgraded (project, README, gradle, podspec etc)
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added unit tests for the code
  • I have made corresponding changes to the documentation

Screenshots

  • All the modules and tests are running as expected. Also, the kotlin sample application is built like normal.

@ChryssaAliferi ChryssaAliferi requested a review from a team as a code owner July 19, 2024 11:41
Copy link
Contributor

@1abhishekpandey 1abhishekpandey left a comment

Choose a reason for hiding this comment

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

Very nice!

ChryssaAliferi and others added 3 commits July 19, 2024 18:42
…haredPrefsStore.kt


refactor: replaces with correct method

Co-authored-by: Abhishek Pandey <64667840+1abhishekpandey@users.noreply.github.com>
…/FillDefaultsPlugin.kt


refactor: replace with isNullOrEmpty

Co-authored-by: Abhishek Pandey <64667840+1abhishekpandey@users.noreply.github.com>
Copy link

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.

2 participants