-
Notifications
You must be signed in to change notification settings - Fork 55
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
Capacitor #83
base: latest
Are you sure you want to change the base?
Capacitor #83
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.