Skip to content
This repository has been archived by the owner on Apr 18, 2019. It is now read-only.

Commit

Permalink
createproject.sh: Add whitelist plugin and --link platforms / plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
agrieve committed May 13, 2015
1 parent 675a3d3 commit ccf90b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion createproject.sh
Expand Up @@ -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
Expand Down Expand Up @@ -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 $?

Expand All @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions www/cdvah/harnessmenu.html
Expand Up @@ -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>
Expand Down

0 comments on commit ccf90b0

Please sign in to comment.