mongodb / stitch-ios-sdk

Apache License 2.0
42 stars 25 forks source link

STITCH-1346 Add support for configuring data directory in StitchAppClient #47

Closed adamchel closed 6 years ago

adamchel commented 6 years ago

Adds support for configuring an optional data directory for a Stitch app client. On iOS, this is set by default to the "Application Support" directory in the app's sandboxed filesystem. This was selected because of this description in the Apple docs:

"In general, this directory includes files that the app uses to run but that should remain hidden from the user. This directory can also include data files, configuration files, templates and modified versions of resources loaded from the app bundle."

The "Application Support" directory is also backed up by default.