MOBILE-4331 native: Build native plugin on hook
parent
f128379b89
commit
e3b8d74b0d
|
@ -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" />
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue