Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
createproject.sh: Add whitelist plugin and --link platforms / plugins
  • Loading branch information
agrieve committed May 13, 2015
1 parent 675a3d3 commit ccf90b06e56a4967c149a40f1d272680c408156b
Showing 2 changed files with 7 additions and 1 deletion.
@@ -108,7 +108,7 @@ perl -i -pe "s/{VERSION}/$APP_VERSION/g" config.xml || exit 1
PLATFORM_ARGS="${PLATFORMS/android/$AH_PATH/node_modules/cordova-android}"

set -x
$CORDOVA platform add $PLATFORM_ARGS || exit 1
$CORDOVA platform add $PLATFORM_ARGS --link || exit 1
set +x

if [[ "$PLATFORMS" = *android* ]]; then
@@ -142,6 +142,7 @@ set -x
org.chromium.sockets.tcpserver \
org.chromium.system.network \
org.chromium.zip \
--link \
--searchpath="$PLUGIN_SEARCH_PATH" \
$PLUGIN_REGISTRY_FLAG || exit $?

@@ -164,6 +165,8 @@ if [[ "$2" = "--allplugins" ]]; then
org.apache.cordova.splashscreen \
org.apache.cordova.statusbar \
org.apache.cordova.vibration \
org.apache.cordova.whitelist \
--link \
--searchpath="$PLUGIN_SEARCH_PATH" \
$PLUGIN_REGISTRY_FLAG || exit $?
# Skipped core plugins:
@@ -20,6 +20,9 @@
<html>
<head>
<title>Cordova App Harness</title>
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-inline' 'unsafe-eval'">
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="stylesheet" type="text/css" href="generated/style.css" />
<script>THIS_IS_APP_HARNESS=true</script>
<script type="text/javascript" src="../cordova.js"></script>
<script type="text/javascript" src="js/libs/slice.js"></script>

0 comments on commit ccf90b0

Please sign in to comment.