1234567891011121314151617181920212223 |
- #!/bin/bash
- # ---------- ---------- ---------- ---------- ---------- ----------
- #TODO: Refactor for plugins.
- # ---------- ---------- ---------- ---------- ---------- ----------
- #get the android sdk
- #then get ant
- #sudo apt-get install -y ant
- name=$1
- path=$2
- target=${3:-"android-25"}
- package=${4:-"community.peers.hundreds"}
- activity=${5:-"MainActivity"}
- pathToAndroid=plugins/path-to-android.sh
- android=$([ -e ${pathToAndroid} ] && echo $(${pathToAndroid}) || (echo "android"))
- echo ${android}
- ${android} create project --name ${name} --path ${path} --target ${target} --package ${package} --activity ${activity}
|