Skip to content

Conversation

@artesmichael
Copy link

Summary

  • Extended DataStoreFile to allow for injection of custom FileManager.SearchPathDirectory
  • Extended DefaultEventDispatcher to allow for injection of custom FileManager.SearchPathDirectory for DataStoreType.file

Users have been raising the issue that they see these technical files inside of their Files app, because the directory for DataStoreFile defaults to .documentsDirectory, which is visible to users. This change allows us to update the directory to .applicationSupportDirectory in DefaultEventDispatcher using DataStoreType.file(directory: .applicationSupportDirectory) and in DefaultDatafileHandler by overriding open func createDataStore(sdkKey: String) -> OPTDataStore.

Test plan

  • Added a new test to verify the custom directory is used by DataStoreFile

Issues

  • None

@artesmichael
Copy link
Author

Hi @muzahidul-opti, could you please review this PR and let me know if any changes are required?

@100hp4ever
Copy link

lgtm

@muzahidul-opti
Copy link
Contributor

Hi @muzahidul-opti, could you please review this PR and let me know if any changes are required?

Sure, we will review it.

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