MOBILE-4331 native: Build native plugin on hook

main
Noel De Martin 2023-07-10 17:58:17 +02:00
parent f128379b89
commit e3b8d74b0d
2 changed files with 9 additions and 0 deletions

View File

@ -18,6 +18,7 @@
<allow-intent href="sms:*" /> <allow-intent href="sms:*" />
<allow-intent href="mailto:*" /> <allow-intent href="mailto:*" />
<allow-intent href="geo:*" /> <allow-intent href="geo:*" />
<hook src="scripts/cordova-hooks/before_plugin_add.sh" type="before_plugin_add" />
<preference name="permissions" value="none" /> <preference name="permissions" value="none" />
<preference name="orientation" value="default" /> <preference name="orientation" value="default" />
<preference name="target-device" value="universal" /> <preference name="target-device" value="universal" />

View File

@ -0,0 +1,8 @@
#!/bin/bash
if [[ $CORDOVA_PLUGINS == *cordova-plugin-moodleapp* ]]; then
echo "Building cordova-plugin-moodleapp"
cd cordova-plugin-moodleapp
npm run prod
fi