I’m writing a form-entry app that needs to work offline, and thus uses reference data files to store information like a list of approved products the user can select from. These lists are just arrays, saved as text files so that we can update them with a simple HTML download and not require an HTML change that forces an app update.
Is there a way I can include these .txt files in a src/app/defaultFiles/ folder, and then read them from within the application itself?
I intend to copy them from within the app to device storage so that updating them is easier (I already have reading from and writing to external storage working). I just need a way to get some default files included in the app during installation, then sort of “unpack” them to external storage, so that I’m not forcing users to go online to download them before they use the app.