http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/cordova/build ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/cordova/build b/cordova-lib/spec-plugman/projects/android_one/cordova/build new file mode 100755 index 0000000..3cbd9c1 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/cordova/build @@ -0,0 +1,23 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e + +CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd ) + +bash "$CORDOVA_PATH"/lib/cordova build "$@"
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/cordova/clean ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/cordova/clean b/cordova-lib/spec-plugman/projects/android_one/cordova/clean new file mode 100755 index 0000000..f52966a --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/cordova/clean @@ -0,0 +1,23 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e + +CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd ) + +bash "$CORDOVA_PATH"/lib/cordova clean "$@" http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/cordova/lib/cordova ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/cordova/lib/cordova b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/cordova new file mode 100755 index 0000000..be343e9 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/cordova @@ -0,0 +1,386 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +PROJECT_PATH=$( cd "$( dirname "$0" )/../.." && pwd ) + +function list_devices { + IFS=$'\n' + devices=`adb devices | awk '/List of devices attached/ { while(getline > 0) { print }}' | grep 'device' | grep -v 'emulator'` + device_list=($devices) + if [[ ${#device_list[@]} > 0 ]] ; then + for i in ${devices[@]} + do + # remove space and 'device' + echo ${i/[^a-zA-Z0-9._]device/} + done + else + echo "No devices found." + exit 2 + fi +} + +function list_started_emulators { + IFS=$'\n' + devices=`adb devices | awk '/List of devices attached/ { while(getline > 0) { print }}' | grep 'device' | grep 'emulator'` + emulator_list=($devices) + if [[ ${#emulator_list[@]} > 0 ]] ; then + for i in ${emulator_list[@]} + do + # remove space and 'device' + echo ${i/[^a-zA-Z0-9._]device/} + done + else + echo "No started emulators found, you can start an emulator by using the command" + echo " 'cordova/lib/start-emulator'" + exit 2 + fi +} + +function list_emulator_images { + emulator_images=`android list avds | grep "Name:" | cut -f 2 -d ":"` + emulator_list=($emulator_images) + if [[ ${#emulator_list[@]} > 0 ]] ; then + for i in ${emulator_list[@]} + do + echo ${i/[^a-zA-Z0-9._]/} + done + else + echo "No emulators found, if you would like to create an emulator follow the instructions" + echo " provided here : http://developer.android.com/tools/devices/index.html" + echo " Or run 'android create avd --name <name> --target <targetID>' in on the command line." + exit 2 + fi +} + +function start_emulator { + emulator_images=`android list avds | grep "Name:" | cut -f 2 -d ":"` + # if target emulator is provided + if [[ "$#" -eq 1 ]] ; then + # check that it exists + if [[ $emulator_images =~ $1 ]] ; then + #xterm -e emulator -avd $1 & + emulator -avd $1 1> /dev/null 2>&1 & + else + echo "Could not find the provided emulator, make sure the emulator exists" + echo " by checking 'cordova/lib/list-emulator-images'" + exit 2 + fi + else + # start first emulator + emulator_list=($emulator_images) + if [[ ${#emulator_list[@]} > 0 ]] ; then + #xterm -e emulator -avd ${emulator_list[0]} & + emulator -avd ${emulator_list[0]/[^a-zA-Z0-9._]/} 1> /dev/null 2>&1 & + else + echo "No emulators found, if you would like to create an emulator follow the instructions" + echo " provided here : http://developer.android.com/tools/devices/index.html" + echo " Or run 'android create avd --name <name> --target <targetID>' in on the command line." + exit 2 + fi + fi +} + +function install_device { + IFS=$'\n' + devices=`adb devices | awk '/List of devices attached/ { while(getline > 0) { print }}' | grep 'device' | grep -v 'emulator'` + device_list=($devices) + if [[ ${#device_list[@]} > 0 ]] ; then + apks=`find $PROJECT_PATH/bin -type f -maxdepth 1 | egrep '\.apk$'` + apk_list=($apks) + if [[ ${#apk_list[@]} > 0 ]] ; then + local target + # handle target emulator + if [[ "$#" -eq 1 ]] ; then + # deploy to given target + target=${1/--target=/} + else + # delete trailing space and 'device' after device ID + target=${device_list[0]/[^a-zA-Z0-9._]device/} + fi + echo "Installing ${apk_list[0]} onto device $target..." + adb -s $target install -r ${apk_list[0]}; + echo "Launching application..." + local launch_str=$(java -jar "$PROJECT_PATH"/cordova/appinfo.jar "$PROJECT_PATH"/AndroidManifest.xml) + adb -s $target shell am start -W -a android.intent.action.MAIN -n $launch_str + else + echo "Application package not found, could not install to device" + echo " make sure your application is built before deploying." + exit 2 + fi + else + echo "No devices found to deploy to. Please make sure your device is connected" + echo " and you can view it using the 'cordova/lib/list-devices' command." + exit 2 + fi +} + +function install_emulator { + IFS=$'\n' + # check that there is an emulator to deploy to + emulator_string=`adb devices | awk '/List of devices attached/ { while(getline > 0) { print }}' | grep 'emulator'` + emulator_list=($emulator_string) + if [[ ${#emulator_list[@]} > 0 ]] ; then + apks=`find $PROJECT_PATH/bin -type f -maxdepth 1 | egrep '\.apk$'` + apk_list=($apks) + if [[ ${#apk_list[@]} > 0 ]] ; then + local target + # handle target emulator + if [[ "$#" -eq 1 ]] ; then + # deploy to given target + target=${1/--target=/} + else + # delete trailing space and 'device' after emulator ID + target=${emulator_list[0]/[^a-zA-Z0-9._]device/} + fi + echo "Installing ${apk_list[0]} onto $target..." + adb -s $target install -r ${apk_list[0]}; + echo "Launching application..." + local launch_str=$(java -jar "$PROJECT_PATH"/cordova/appinfo.jar "$PROJECT_PATH"/AndroidManifest.xml) + adb -s $target shell am start -W -a android.intent.action.MAIN -n $launch_str + + else + echo "Application package not found, could not install to device" + echo " make sure your application is built before deploying." + exit 2 + fi + else + echo "No emulators found to deploy to. Please make sure your emulator is started" + echo " and you can view it using the 'cordova/lib/list-started-emulators' command." + exit 2 + fi +} + +# cleans the project +function clean { + echo "Cleaning project..." + ant clean +} + +# has to be used independently and not in conjunction with other commands +function log { + # filter out nativeGetEnabledTags spam from latest sdk bug. + adb logcat | grep -v nativeGetEnabledTags +} + + +function build { + if [[ "$#" -eq 1 ]] ; then + if [[ $1 == "--debug" ]] ; then + clean + ant debug -f "$PROJECT_PATH"/build.xml + elif [[ $1 == "--release" ]] ; then + clean + ant release -f "$PROJECT_PATH"/build.xml + elif [[ $1 == "--nobuild" ]] ; then + echo "Skipping build..." + else + echo "Error : Build command '$1' not recognized." + exit 2 + fi + else + echo "Warning : [ --debug | --release | --nobuild ] not specified, defaulting to --debug" + clean + ant debug -f "$PROJECT_PATH"/build.xml + fi +} + + +function wait_for_emulator { + emulator_string=`adb devices | awk '/List of devices attached/ { while(getline > 0) { print }}' | grep 'device' | grep 'emulator'` + old_started=($emulator_string) + local new_started + local new_emulator_name + local i="0" + echo -n "Waiting for emulator..." + while [ $i -lt 300 ] + do + emulator_string=`adb devices | awk '/List of devices attached/ { while(getline > 0) { print }}' | grep 'device' | grep 'emulator'` + new_started=($emulator_string) + if [[ ${#new_started[@]} > ${#old_started[@]} && -z "$new_emulator_name" ]] ; then + # get the name of the started emulator + local count="0" + if [[ ${#old_started[@]} == 0 ]] ; then + new_emulator_name=${new_started[$count]/[^a-zA-Z0-9._]device/} + else + for count in {0...${#old_started[@]}} + do + if [[ ! ${new_started[$count]} == ${old_started[$count]} ]] ; then + new_emulator_name=${new_started[$count]/[^a-zA-Z0-9._]device/} + fi + done + if [[ -z "$new_emulator_name" ]] ; then + count=$[count+1] + new_emulator_name=${new_started[$count]/[^a-zA-Z0-9._]device/} + fi + fi + elif [[ "$new_emulator_name" ]] ; then + boot_anim=`adb -s $new_emulator_name shell getprop init.svc.bootanim` + if [[ $boot_anim =~ "stopped" ]] ; then + break + else + sleep 1 + i=$[i+1] + echo -n "." + fi + else + sleep 1 + i=$[i+1] + echo -n "." + fi + done + # Device timeout: emulator has not started in time + if [ $i -eq 300 ] + then + echo "emulator timeout!" + exit 69 + else + echo "connected!" + fi +} + +function run { + IFS=$'\n' + if [[ "$#" -eq 2 ]] ; then + build $2 + if [[ $1 == "--device" ]] ; then + install_device + elif [[ $1 == "--emulator" ]] ; then + install_emulator + elif [[ $1 =~ "--target=" ]]; then + install_device $1 + else + echo "Error : '$1' is not recognized as an install option" + fi + elif [[ "$#" -eq 1 ]] ; then + if [[ $1 == "--debug" || $1 == "--release" || $1 == "--nobuild" ]] ; then + build $1 + elif [[ $1 == "--device" ]] ; then + install_device + elif [[ $1 == "--emulator" ]] ; then + install_emulator + elif [[ $1 =~ "--target=" ]]; then + install_device $1 + else + echo "Error : '$1' is not recognized as an install option" + fi + else + echo "Warning : [ --device | --emulate | --target=<targetID> ] not specified, using defaults." + build + devices=`adb devices | awk '/List of devices attached/ { while(getline > 0) { print }}' | grep 'device' | grep -v 'emulator'` + device_list=($devices) + emulator_string=`adb devices | awk '/List of devices attached/ { while(getline > 0) { print }}' | grep 'device' | grep 'emulator'` + emulator_list=($emulator_string) + if [[ ${#device_list[@]} > 0 ]] ; then + install_device + elif [[ ${#emulator_list[@]} > 0 ]] ; then + install_emulator + else + emulator_images=`android list avds | grep "Name:" | cut -f 2 -d ":"` + echo $emulator_images + emulator_image_list=($emulator_images) + if [[ ${#emulator_image_list[@]} > 0 ]] ; then + echo "Starting emulator : ${emulator_image_list[0]}" + emulator -avd ${emulator_image_list[0]/[^.\w]/} 1> /dev/null 2>&1 & + wait_for_emulator + install_emulator + else + # TODO : look for emulator images and start one if it's available + echo "Error : there are no available devices or emulators to deploy to." + echo " create an emulator or connect your device to run this command." + echo "If you would like to create an emulator follow the instructions" + echo " provided here : http://developer.android.com/tools/devices/index.html" + echo " Or run 'android create avd --name <name> --target <targetID>' in on the command line." + exit 2 + fi + fi + fi +} + +# parse command line arguments + +if [[ $# > 3 ]] ; then + echo "Error : too many arguments." + exit 2 +elif [[ $# == 3 ]] ; then + if [[ $1 == "run" ]] ; then + run $2 $3 + else + echo "Error : too many arguments for '$1'" + exit 2 + fi +elif [[ $# == 2 ]] ; then + if [[ $1 == "run" ]] ; then + if [[ $2 == "--emulator" || $2 == "--device" || $2 =~ "--target=" ]] ; then + run $2 '' + elif [[ $2 == "--debug" || $2 == "--release" || $2 == "--nobuild" ]] ; then + run '' $2 + else + echo "Error : '$2' is not recognized as a run option." + exit 2 + fi + elif [[ $1 == "build" ]] ; then + build $2 + elif [[ $1 == "start-emulator" ]] ; then + start_emulator $2 + elif [[ $1 == "install-device" ]] ; then + if [[ $2 =~ "--target=" ]] ; then + install_device $2 + else + echo "Error : '$2' is not recognized as an install option" + exit 2 + fi + elif [[ $1 == "install-emulator" ]] ; then + if [[ $2 =~ "--target=" ]] ; then + install_emulator $2 + else + echo "Error : '$2' is not recognized as an install option" + exit 2 + fi + else + echo "Error : '$1' is not recognized as an option that takes arguments" + exit 2 + fi +elif [[ $# == 1 ]] ; then + if [[ $1 == "run" ]] ; then + run + elif [[ $1 == "build" ]]; then + build + elif [[ $1 == "clean" ]]; then + clean + elif [[ $1 == "log" ]]; then + log + elif [[ $1 == "list-devices" ]]; then + list_devices + elif [[ $1 == "list-emulator-images" ]]; then + list_emulator_images + elif [[ $1 == "list-started-emulators" ]]; then + list_started_emulators + elif [[ $1 == "install-device" ]]; then + install_device + elif [[ $1 == "install-emulator" ]]; then + install_emulator + elif [[ $1 == "start-emulator" ]]; then + start_emulator + else + echo "Error : '$1' is not recognized as a tooling command." + exit 2 + fi +else + echo "Error : No command received, exiting..." + exit 2 +fi \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/cordova/lib/install-device ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/cordova/lib/install-device b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/install-device new file mode 100755 index 0000000..604b5ae --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/install-device @@ -0,0 +1,23 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e + +CORDOVA_LIB_PATH=$( cd "$( dirname "$0" )" && pwd ) + +bash "$CORDOVA_LIB_PATH"/cordova install-device "$@" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/cordova/lib/install-emulator ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/cordova/lib/install-emulator b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/install-emulator new file mode 100755 index 0000000..105e2ee --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/install-emulator @@ -0,0 +1,23 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e + +CORDOVA_LIB_PATH=$( cd "$( dirname "$0" )" && pwd ) + +bash "$CORDOVA_LIB_PATH"/cordova install-emulator "$@" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/cordova/lib/list-devices ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/cordova/lib/list-devices b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/list-devices new file mode 100755 index 0000000..7a5b2f5 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/list-devices @@ -0,0 +1,23 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e + +CORDOVA_LIB_PATH=$( cd "$( dirname "$0" )" && pwd ) + +bash "$CORDOVA_LIB_PATH"/cordova list-devices \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/cordova/lib/list-emulator-images ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/cordova/lib/list-emulator-images b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/list-emulator-images new file mode 100755 index 0000000..db8e563 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/list-emulator-images @@ -0,0 +1,23 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e + +CORDOVA_LIB_PATH=$( cd "$( dirname "$0" )" && pwd ) + +bash "$CORDOVA_LIB_PATH"/cordova list-emulator-images \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/cordova/lib/list-started-emulators ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/cordova/lib/list-started-emulators b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/list-started-emulators new file mode 100755 index 0000000..7911763 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/list-started-emulators @@ -0,0 +1,23 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e + +CORDOVA_LIB_PATH=$( cd "$( dirname "$0" )" && pwd ) + +bash "$CORDOVA_LIB_PATH"/cordova list-started-emulators \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/cordova/lib/start-emulator ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/cordova/lib/start-emulator b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/start-emulator new file mode 100755 index 0000000..8e8964d --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/cordova/lib/start-emulator @@ -0,0 +1,23 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e + +CORDOVA_LIB_PATH=$( cd "$( dirname "$0" )" && pwd ) + +bash "$CORDOVA_LIB_PATH"/cordova start-emulator "$@" \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/cordova/log ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/cordova/log b/cordova-lib/spec-plugman/projects/android_one/cordova/log new file mode 100755 index 0000000..01fe107 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/cordova/log @@ -0,0 +1,23 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e + +CORDOVA_PATH=$( cd "$( dirname "$0" )/.." && pwd ) + +bash "$CORDOVA_PATH"/cordova/lib/cordova log "$@" http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/cordova/run ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/cordova/run b/cordova-lib/spec-plugman/projects/android_one/cordova/run new file mode 100755 index 0000000..ec352b0 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/cordova/run @@ -0,0 +1,23 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e + +CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd ) + +bash "$CORDOVA_PATH"/lib/cordova run "$@" http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/cordova/version ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/cordova/version b/cordova-lib/spec-plugman/projects/android_one/cordova/version new file mode 100755 index 0000000..5760e95 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/cordova/version @@ -0,0 +1,32 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e + +CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P) +PROJECT_PATH="$(dirname "$CORDOVA_PATH")" + +VERSION_FILE_PATH="$PROJECT_PATH/assets/www/cordova.js" + +if [ -f "$VERSION_FILE_PATH" ]; then + JSVersion=$(sed -n '2,2p' $VERSION_FILE_PATH) + echo $JSVersion | sed -e 's/\/\/ //'| cut -f 1 -d '-' +else + echo "The file \"$VERSION_FILE_PATH\" does not exist." + exit 1 +fi http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/res/xml/plugins.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/res/xml/plugins.xml b/cordova-lib/spec-plugman/projects/android_one/res/xml/plugins.xml new file mode 100644 index 0000000..9cee85e --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_one/res/xml/plugins.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + + Copyright 2013 Anis Kadri + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<plugins> + <plugin name="App" value="com.phonegap.App"/> + <plugin name="Geolocation" value="com.phonegap.GeoBroker"/> + <plugin name="Device" value="com.phonegap.Device"/> + <plugin name="Accelerometer" value="com.phonegap.AccelListener"/> + <plugin name="Compass" value="com.phonegap.CompassListener"/> + <plugin name="Media" value="com.phonegap.AudioHandler"/> + <plugin name="Camera" value="com.phonegap.CameraLauncher"/> + <plugin name="Contacts" value="com.phonegap.ContactManager"/> + <plugin name="Crypto" value="com.phonegap.CryptoHandler"/> + <plugin name="File" value="com.phonegap.FileUtils"/> + <plugin name="Network Status" value="com.phonegap.NetworkManager"/> + <plugin name="Notification" value="com.phonegap.Notification"/> + <plugin name="Storage" value="com.phonegap.Storage"/> + <plugin name="Temperature" value="com.phonegap.TempListener"/> + <plugin name="FileTransfer" value="com.phonegap.FileTransfer"/> + <plugin name="Capture" value="com.phonegap.Capture"/> +</plugins> http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_one/src/.gitkeep ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_one/src/.gitkeep b/cordova-lib/spec-plugman/projects/android_one/src/.gitkeep new file mode 100644 index 0000000..e69de29 http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_two/AndroidManifest.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_two/AndroidManifest.xml b/cordova-lib/spec-plugman/projects/android_two/AndroidManifest.xml new file mode 100644 index 0000000..0c52803 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_two/AndroidManifest.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + + Copyright 2013 Anis Kadri + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan" + package="com.alunny.childapp" android:versionName="1.1" android:versionCode="5"> + <supports-screens + android:largeScreens="true" + android:normalScreens="true" + android:smallScreens="true" + android:xlargeScreens="true" + android:resizeable="true" + android:anyDensity="true" + /> + + <uses-permission android:name="android.permission.CAMERA" /> + <uses-permission android:name="android.permission.VIBRATE" /> + <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> + <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> + <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /> + <uses-permission android:name="android.permission.INTERNET" /> + <uses-permission android:name="android.permission.RECEIVE_SMS" /> + <uses-permission android:name="android.permission.RECORD_AUDIO" /> + <uses-permission android:name="android.permission.RECORD_VIDEO"/> + <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> + <uses-permission android:name="android.permission.READ_CONTACTS" /> + <uses-permission android:name="android.permission.WRITE_CONTACTS" /> + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> + <uses-permission android:name="android.permission.GET_ACCOUNTS" /> + <uses-permission android:name="android.permission.BROADCAST_STICKY" /> + + <uses-feature android:name="android.hardware.camera" /> + <uses-feature android:name="android.hardware.camera.autofocus" /> + + <application android:icon="@drawable/icon" android:label="@string/app_name" + android:debuggable="true"> + <activity android:name="ChildApp" android:label="@string/app_name" + android:configChanges="orientation|keyboardHidden"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + <activity android:name="com.phonegap.DroidGap" android:label="@string/app_name" + android:configChanges="orientation|keyboardHidden"> + <intent-filter> + </intent-filter> + </activity> + </application> + + <uses-sdk android:minSdkVersion="5" /> +</manifest> http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_two/assets/www/.gitkeep ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_two/assets/www/.gitkeep b/cordova-lib/spec-plugman/projects/android_two/assets/www/.gitkeep new file mode 100644 index 0000000..e69de29 http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_two/res/xml/config.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_two/res/xml/config.xml b/cordova-lib/spec-plugman/projects/android_two/res/xml/config.xml new file mode 100644 index 0000000..d37aba5 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_two/res/xml/config.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<cordova> + <!-- + access elements control the Android whitelist. + Domains are assumed blocked unless set otherwise + --> + + <access origin="http://127.0.0.1*"/> <!-- allow local pages --> + + <!-- <access origin="https://example.com" /> allow any secure requests to example.com --> + <!-- <access origin="https://example.com" subdomains="true" /> such as above, but including subdomains, such as www --> + <!-- <access origin=".*"/> Allow all domains, suggested development use only --> + + <log level="DEBUG"/> + <preference name="useBrowserHistory" value="false" /> +<plugins> + <plugin name="App" value="org.apache.cordova.App"/> + <plugin name="Geolocation" value="org.apache.cordova.GeoBroker"/> + <plugin name="Device" value="org.apache.cordova.Device"/> + <plugin name="Accelerometer" value="org.apache.cordova.AccelListener"/> + <plugin name="Compass" value="org.apache.cordova.CompassListener"/> + <plugin name="Media" value="org.apache.cordova.AudioHandler"/> + <plugin name="Camera" value="org.apache.cordova.CameraLauncher"/> + <plugin name="Contacts" value="org.apache.cordova.ContactManager"/> + <plugin name="File" value="org.apache.cordova.FileUtils"/> + <plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager"/> + <plugin name="Notification" value="org.apache.cordova.Notification"/> + <plugin name="Storage" value="org.apache.cordova.Storage"/> + <plugin name="Temperature" value="org.apache.cordova.TempListener"/> + <plugin name="FileTransfer" value="org.apache.cordova.FileTransfer"/> + <plugin name="Capture" value="org.apache.cordova.Capture"/> + <plugin name="Battery" value="org.apache.cordova.BatteryListener"/> + <plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/> +</plugins> +</cordova> + http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_two/src/.gitkeep ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_two/src/.gitkeep b/cordova-lib/spec-plugman/projects/android_two/src/.gitkeep new file mode 100644 index 0000000..e69de29 http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_two_no_perms/AndroidManifest.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_two_no_perms/AndroidManifest.xml b/cordova-lib/spec-plugman/projects/android_two_no_perms/AndroidManifest.xml new file mode 100644 index 0000000..6e4b480 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_two_no_perms/AndroidManifest.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + + Copyright 2013 Anis Kadri + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan" + package="com.alunny.childapp" android:versionName="1.1" android:versionCode="5"> + <supports-screens + android:largeScreens="true" + android:normalScreens="true" + android:smallScreens="true" + android:xlargeScreens="true" + android:resizeable="true" + android:anyDensity="true" + /> + + <application android:icon="@drawable/icon" android:label="@string/app_name" + android:debuggable="true"> + <activity android:name="ChildApp" android:label="@string/app_name" + android:configChanges="orientation|keyboardHidden"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + <activity android:name="com.phonegap.DroidGap" android:label="@string/app_name" + android:configChanges="orientation|keyboardHidden"> + <intent-filter> + </intent-filter> + </activity> + </application> + + <uses-sdk android:minSdkVersion="5" /> +</manifest> http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_two_no_perms/assets/www/.gitkeep ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_two_no_perms/assets/www/.gitkeep b/cordova-lib/spec-plugman/projects/android_two_no_perms/assets/www/.gitkeep new file mode 100644 index 0000000..e69de29 http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_two_no_perms/res/xml/config.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_two_no_perms/res/xml/config.xml b/cordova-lib/spec-plugman/projects/android_two_no_perms/res/xml/config.xml new file mode 100644 index 0000000..d37aba5 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_two_no_perms/res/xml/config.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<cordova> + <!-- + access elements control the Android whitelist. + Domains are assumed blocked unless set otherwise + --> + + <access origin="http://127.0.0.1*"/> <!-- allow local pages --> + + <!-- <access origin="https://example.com" /> allow any secure requests to example.com --> + <!-- <access origin="https://example.com" subdomains="true" /> such as above, but including subdomains, such as www --> + <!-- <access origin=".*"/> Allow all domains, suggested development use only --> + + <log level="DEBUG"/> + <preference name="useBrowserHistory" value="false" /> +<plugins> + <plugin name="App" value="org.apache.cordova.App"/> + <plugin name="Geolocation" value="org.apache.cordova.GeoBroker"/> + <plugin name="Device" value="org.apache.cordova.Device"/> + <plugin name="Accelerometer" value="org.apache.cordova.AccelListener"/> + <plugin name="Compass" value="org.apache.cordova.CompassListener"/> + <plugin name="Media" value="org.apache.cordova.AudioHandler"/> + <plugin name="Camera" value="org.apache.cordova.CameraLauncher"/> + <plugin name="Contacts" value="org.apache.cordova.ContactManager"/> + <plugin name="File" value="org.apache.cordova.FileUtils"/> + <plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager"/> + <plugin name="Notification" value="org.apache.cordova.Notification"/> + <plugin name="Storage" value="org.apache.cordova.Storage"/> + <plugin name="Temperature" value="org.apache.cordova.TempListener"/> + <plugin name="FileTransfer" value="org.apache.cordova.FileTransfer"/> + <plugin name="Capture" value="org.apache.cordova.Capture"/> + <plugin name="Battery" value="org.apache.cordova.BatteryListener"/> + <plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/> +</plugins> +</cordova> + http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_two_no_perms/src/.gitkeep ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_two_no_perms/src/.gitkeep b/cordova-lib/spec-plugman/projects/android_two_no_perms/src/.gitkeep new file mode 100644 index 0000000..e69de29 http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_uninstall/AndroidManifest.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_uninstall/AndroidManifest.xml b/cordova-lib/spec-plugman/projects/android_uninstall/AndroidManifest.xml new file mode 100644 index 0000000..b5fea9d --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_uninstall/AndroidManifest.xml @@ -0,0 +1,20 @@ +<?xml version='1.0' encoding='utf-8'?> +<manifest android:versionCode="5" android:versionName="1.1" android:windowSoftInputMode="adjustPan" package="cordova.test.uninstall" xmlns:android="http://schemas.android.com/apk/res/android"> + <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> + <application android:debuggable="true" android:icon="@drawable/icon" android:label="@string/app_name"> + <activity android:configChanges="orientation|keyboardHidden" android:label="@string/app_name" android:name="ChildApp"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + <activity android:configChanges="orientation|keyboardHidden" android:label="@string/app_name" android:name="com.phonegap.DroidGap"> + <intent-filter> + </intent-filter> + </activity> + <activity android:label="@string/app_name" android:name="com.phonegap.plugins.dummyplugin.DummyPlugin"> + <intent-filter /> + </activity> + </application> + <uses-sdk android:minSdkVersion="5" /> +</manifest> http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_uninstall/cordova/version ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_uninstall/cordova/version b/cordova-lib/spec-plugman/projects/android_uninstall/cordova/version new file mode 100644 index 0000000..01f68fd --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_uninstall/cordova/version @@ -0,0 +1 @@ +echo 9.0.0 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/android_uninstall/cordova/version.bat ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/android_uninstall/cordova/version.bat b/cordova-lib/spec-plugman/projects/android_uninstall/cordova/version.bat new file mode 100644 index 0000000..c637d7c --- /dev/null +++ b/cordova-lib/spec-plugman/projects/android_uninstall/cordova/version.bat @@ -0,0 +1,2 @@ +@ECHO OFF +echo 9.0.0 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/blackberry10/native/device/chrome/.gitkeep ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/blackberry10/native/device/chrome/.gitkeep b/cordova-lib/spec-plugman/projects/blackberry10/native/device/chrome/.gitkeep new file mode 100644 index 0000000..e69de29 http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/blackberry10/native/device/plugins/jnext/auth.txt ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/blackberry10/native/device/plugins/jnext/auth.txt b/cordova-lib/spec-plugman/projects/blackberry10/native/device/plugins/jnext/auth.txt new file mode 100644 index 0000000..0983f4f --- /dev/null +++ b/cordova-lib/spec-plugman/projects/blackberry10/native/device/plugins/jnext/auth.txt @@ -0,0 +1,3 @@ +local:/// * +file:// * +http:// * \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/blackberry10/native/simulator/chrome/.gitkeep ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/blackberry10/native/simulator/chrome/.gitkeep b/cordova-lib/spec-plugman/projects/blackberry10/native/simulator/chrome/.gitkeep new file mode 100644 index 0000000..e69de29 http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/blackberry10/native/simulator/plugins/jnext/auth.txt ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/blackberry10/native/simulator/plugins/jnext/auth.txt b/cordova-lib/spec-plugman/projects/blackberry10/native/simulator/plugins/jnext/auth.txt new file mode 100644 index 0000000..0983f4f --- /dev/null +++ b/cordova-lib/spec-plugman/projects/blackberry10/native/simulator/plugins/jnext/auth.txt @@ -0,0 +1,3 @@ +local:/// * +file:// * +http:// * \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/0318d8cd/cordova-lib/spec-plugman/projects/blackberry10/www/config.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/projects/blackberry10/www/config.xml b/cordova-lib/spec-plugman/projects/blackberry10/www/config.xml new file mode 100644 index 0000000..1dc8fe8 --- /dev/null +++ b/cordova-lib/spec-plugman/projects/blackberry10/www/config.xml @@ -0,0 +1,97 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<!-- + Widget Configuration Reference: + http://docs.blackberry.com/en/developers/deliverables/15274/ +--> + +<widget xmlns="http://www.w3.org/ns/widgets" + xmlns:rim="http://www.blackberry.com/ns/widgets" + version="1.0.0.0" id="cordovaExample"> + + <name>cordovaExample</name> + + <author>Your Name Here</author> + + <description> + A sample Apache Cordova application that responds to the deviceready event. + </description> + + <license href="http://opensource.org/licenses/alphabetical"> + </license> + + <!-- Cordova API --> + <feature id="blackberry.system" required="true" version="1.0.0.0" /> + <feature id="org.apache.cordova" required="true" version="1.0.0" /> + <feature id="blackberry.find" required="true" version="1.0.0.0" /> + <feature id="blackberry.identity" required="true" version="1.0.0.0" /> + <feature id="blackberry.identity.phone" required="true" version="1.0.0.0" /> + <feature id="blackberry.pim.Address" required="true" version="1.0.0.0" /> + <feature id="blackberry.pim.Contact" required="true" version="1.0.0.0" /> + <feature id="blackberry.io.file" required="true" version="1.0.0.0" /> + <feature id="blackberry.utils" required="true" version="1.0.0.0" /> + <feature id="blackberry.io.dir" required="true" version="1.0.0.0" /> + <feature id="blackberry.app" required="true" version="1.0.0.0" /> + <feature id="blackberry.app.event" required="true" version="1.0.0.0" /> + <feature id="blackberry.system.event" required="true" version="1.0.0.0"/> + <feature id="blackberry.widgetcache" required="true" version="1.0.0.0"/> + <feature id="blackberry.media.camera" /> + <feature id="blackberry.ui.dialog" /> + <feature id="blackberry.connection" /> + <feature id="blackberry.bbm.platform" /> + <feature id="blackberry.invoke.card" /> + <feature id="blackberry.pim.contacts" /> + <feature id="blackberry.ui.contextmenu" /> + <feature id="blackberry.io.filetransfer" /> + <feature id="blackberry.io" /> + <feature id="blackberry.invoke" /> + <feature id="blackberry.invoked" /> + <feature id="blackberry.push" /> + <feature id="blackberry.media.microphone" required="true" version="1.0.0.0"/> + + <!-- Cordova API --> + <access subdomains="true" uri="file:///store/home" /> + <access subdomains="true" uri="file:///SDCard" /> + + <!-- Expose access to all URIs, including the file and http protocols --> + <access subdomains="true" uri="*" /> + + + <icon rim:hover="false" src="res/icon/blackberry/icon-80.png" /> + <icon rim:hover="true" src="res/icon/blackberry/icon-80.png" /> + + <rim:loadingScreen backgroundColor="#CFCFCF" + foregroundImage="res/screen/blackberry/screen-225.png" + onFirstLaunch="true"> + <rim:transitionEffect type="fadeOut" /> + </rim:loadingScreen> + + <content src="index.html" /> + + <rim:permissions> + <rim:permit>use_camera</rim:permit> + <rim:permit>read_device_identifying_information</rim:permit> + <rim:permit>access_shared</rim:permit> + <rim:permit>read_geolocation</rim:permit> + <rim:permit>record_audio</rim:permit> + <rim:permit>access_pimdomain_contacts</rim:permit> + </rim:permissions> + +</widget>
