From c5ae5d47c30c32549d84f73b8a2cd2788476db87 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Mon, 11 Jan 2016 10:56:14 -0300 Subject: [PATCH] Fix Android duplicated plugin --- cordova/build.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cordova/build.sh b/cordova/build.sh index 4a658fb5d..0bcbe3bc9 100755 --- a/cordova/build.sh +++ b/cordova/build.sh @@ -84,11 +84,14 @@ if [ ! -d $PROJECT ]; then cordova plugin add https://github.com/florentvaldelievre/virtualartifacts-webIntent.git checkOK - cordova plugin add https://github.com/phonegap/phonegap-plugin-barcodescanner.git - checkOK - - cordova plugin add https://github.com/tjwoon/csZBar.git - checkOK + if [ $CURRENT_OS == "IOS" ] + then + cordova plugin add https://github.com/tjwoon/csZBar.git + checkOK + else + cordova plugin add https://github.com/phonegap/phonegap-plugin-barcodescanner.git + checkOK + fi cordova plugin add cordova-plugin-splashscreen checkOK