Conversation
|
Thanks @ronwondaal for the contribution. Some more explanation would be helpful. Also should this only apply to iOS? |
|
Thats a good question @brodybits, let me check that and if it also applies for Android I’ll put in another pull. Ionic/Angular has an assets folder, and all files should be kept in this folder and are written to the www/assets folder on build. Therefor the addition of the www/assets folder. Capacitor no longer builds a ‘www’ folder but instead builds to a ‘public’ folder, so I added ‘public’ and ‘public/assets’ to the pre-populated paths that the plugin is checking. |
|
@brodybits, I cleaned up the iOS code and added code form android to check multiple paths. Same applied there, Capacitor now writes to public/assets. |
|
What's the status of this PR? |
Added 3 more paths to the iOS CopyFromResource function to allow copy of pre-populated database from Ionic Capacitor folder structures.
The database resides in this folder structure under Public->dbname or Public->assets->dbname.