.PHONY:plugins ios-platform android-platform wp8-platform

plugins:
	cordova plugin add https://github.com/cmgustavo/Custom-URL-scheme.git --variable URL_SCHEME=bitcoin --variable SECOND_URL_SCHEME=*APPURI*
	cordova prepare
	rm -rf platforms/android/res/values-es

wp8-platform:
	cordova platforms add $(subst -platform,,$@) || echo "Platform already added"

wp: wp8-platform plugins
	cordova plugin add https://github.com/jrontend/phonegap-plugin-barcodescanner

build-wp8:
	cordova build $(subst build-,,$@)

run:
	cordova run --device
