mirror of
https://github.com/moparisthebest/PointsWatcher
synced 2024-12-22 07:28:49 -05:00
Remove un-needed android and blackberry directories
This commit is contained in:
parent
cecf1c6b90
commit
c23c31f643
@ -1,51 +0,0 @@
|
|||||||
<?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.
|
|
||||||
-->
|
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
|
|
||||||
package="com.moparisthebest.pointswatcher" android:versionName="0.1" android:versionCode="1"
|
|
||||||
android:hardwareAccelerated="true">
|
|
||||||
<uses-sdk android:minSdkVersion="7"/>
|
|
||||||
<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.VIBRATE"/>
|
|
||||||
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
|
|
||||||
|
|
||||||
|
|
||||||
<application android:icon="@drawable/icon" android:label="@string/app_name"
|
|
||||||
android:hardwareAccelerated="true"
|
|
||||||
android:debuggable="true">
|
|
||||||
<activity android:name="PointsWatcher" android:label="@string/app_name"
|
|
||||||
android:theme="@android:style/Theme.Black.NoTitleBar"
|
|
||||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale">
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
|
||||||
<category android:name="android.intent.category.LAUNCHER"/>
|
|
||||||
</intent-filter>
|
|
||||||
</activity>
|
|
||||||
</application>
|
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="8"/>
|
|
||||||
</manifest>
|
|
@ -1 +0,0 @@
|
|||||||
Subproject commit e4f22e197deec902652d4c38bbd145ad62371209
|
|
@ -1,19 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module type="JAVA_MODULE" version="4">
|
|
||||||
<component name="FacetManager">
|
|
||||||
<facet type="android" name="Android">
|
|
||||||
<configuration />
|
|
||||||
</facet>
|
|
||||||
</component>
|
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
||||||
<exclude-output />
|
|
||||||
<content url="file://$MODULE_DIR$">
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" />
|
|
||||||
</content>
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
<orderEntry type="library" name="cordova-2.5.0" level="project" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
|||||||
# This file is used to override default values used by the Ant build system.
|
|
||||||
#
|
|
||||||
# This file must be checked into Version Control Systems, as it is
|
|
||||||
# integral to the build system of your project.
|
|
||||||
|
|
||||||
# This file is only used by the Ant script.
|
|
||||||
|
|
||||||
# You can use this to override default values such as
|
|
||||||
# 'source.dir' for the location of your java source folder and
|
|
||||||
# 'out.dir' for the location of your output folder.
|
|
||||||
|
|
||||||
# You can also use it define how the release builds are signed by declaring
|
|
||||||
# the following properties:
|
|
||||||
# 'key.store' for the location of your keystore and
|
|
||||||
# 'key.alias' for the name of the key to use.
|
|
||||||
# The password will be asked during the build when you use the 'release' target.
|
|
||||||
|
|
||||||
key.store=/home/mopar/.config/android.keystore
|
|
||||||
key.alias=android_market
|
|
Binary file not shown.
@ -1,92 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project name="PointsWatcher" default="help">
|
|
||||||
|
|
||||||
<!-- The local.properties file is created and updated by the 'android' tool.
|
|
||||||
It contains the path to the SDK. It should *NOT* be checked into
|
|
||||||
Version Control Systems. -->
|
|
||||||
<property file="local.properties" />
|
|
||||||
|
|
||||||
<!-- The ant.properties file can be created by you. It is only edited by the
|
|
||||||
'android' tool to add properties to it.
|
|
||||||
This is the place to change some Ant specific build properties.
|
|
||||||
Here are some properties you may want to change/update:
|
|
||||||
|
|
||||||
source.dir
|
|
||||||
The name of the source directory. Default is 'src'.
|
|
||||||
out.dir
|
|
||||||
The name of the output directory. Default is 'bin'.
|
|
||||||
|
|
||||||
For other overridable properties, look at the beginning of the rules
|
|
||||||
files in the SDK, at tools/ant/build.xml
|
|
||||||
|
|
||||||
Properties related to the SDK location or the project target should
|
|
||||||
be updated using the 'android' tool with the 'update' action.
|
|
||||||
|
|
||||||
This file is an integral part of the build system for your
|
|
||||||
application and should be checked into Version Control Systems.
|
|
||||||
|
|
||||||
-->
|
|
||||||
<property file="ant.properties" />
|
|
||||||
|
|
||||||
<!-- if sdk.dir was not set from one of the property file, then
|
|
||||||
get it from the ANDROID_HOME env var.
|
|
||||||
This must be done before we load project.properties since
|
|
||||||
the proguard config can use sdk.dir -->
|
|
||||||
<property environment="env" />
|
|
||||||
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
|
|
||||||
<isset property="env.ANDROID_HOME" />
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<!-- The project.properties file is created and updated by the 'android'
|
|
||||||
tool, as well as ADT.
|
|
||||||
|
|
||||||
This contains project specific properties such as project target, and library
|
|
||||||
dependencies. Lower level build properties are stored in ant.properties
|
|
||||||
(or in .classpath for Eclipse projects).
|
|
||||||
|
|
||||||
This file is an integral part of the build system for your
|
|
||||||
application and should be checked into Version Control Systems. -->
|
|
||||||
<loadproperties srcFile="project.properties" />
|
|
||||||
|
|
||||||
<!-- quick check on sdk.dir -->
|
|
||||||
<fail
|
|
||||||
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
|
|
||||||
unless="sdk.dir"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Import per project custom build rules if present at the root of the project.
|
|
||||||
This is the place to put custom intermediary targets such as:
|
|
||||||
-pre-build
|
|
||||||
-pre-compile
|
|
||||||
-post-compile (This is typically used for code obfuscation.
|
|
||||||
Compiled code location: ${out.classes.absolute.dir}
|
|
||||||
If this is not done in place, override ${out.dex.input.absolute.dir})
|
|
||||||
-post-package
|
|
||||||
-post-build
|
|
||||||
-pre-clean
|
|
||||||
-->
|
|
||||||
<import file="custom_rules.xml" optional="true" />
|
|
||||||
|
|
||||||
<!-- Import the actual build file.
|
|
||||||
|
|
||||||
To customize existing targets, there are two options:
|
|
||||||
- Customize only one target:
|
|
||||||
- copy/paste the target into this file, *before* the
|
|
||||||
<import> task.
|
|
||||||
- customize it to your needs.
|
|
||||||
- Customize the whole content of build.xml
|
|
||||||
- copy/paste the content of the rules files (minus the top node)
|
|
||||||
into this file, replacing the <import> task.
|
|
||||||
- customize to your needs.
|
|
||||||
|
|
||||||
***********************
|
|
||||||
****** IMPORTANT ******
|
|
||||||
***********************
|
|
||||||
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
|
|
||||||
in order to avoid having your file be overridden by tools such as "android update project"
|
|
||||||
-->
|
|
||||||
<!-- version-tag: 1 -->
|
|
||||||
<import file="${sdk.dir}/tools/ant/build.xml" />
|
|
||||||
|
|
||||||
</project>
|
|
Binary file not shown.
@ -1,24 +0,0 @@
|
|||||||
# 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.
|
|
||||||
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd )
|
|
||||||
|
|
||||||
bash "$CORDOVA_PATH"/cordova build
|
|
@ -1,24 +0,0 @@
|
|||||||
# 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.
|
|
||||||
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd )
|
|
||||||
|
|
||||||
bash "$CORDOVA_PATH"/cordova clean
|
|
@ -1,167 +0,0 @@
|
|||||||
# 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.
|
|
||||||
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
|
|
||||||
PROJECT_PATH=$( cd "$( dirname "$0" )/.." && pwd )
|
|
||||||
|
|
||||||
function check_devices {
|
|
||||||
# FIXME
|
|
||||||
local devices=`adb devices | awk '/List of devices attached/ { while(getline > 0) { print }}' | grep device`
|
|
||||||
if [ -z "$devices" ] ; then
|
|
||||||
echo "1"
|
|
||||||
else
|
|
||||||
echo "0"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function emulate {
|
|
||||||
declare -a avd_list=($(android list avd | grep "Name:" | cut -f 2 -d ":" | xargs))
|
|
||||||
# we need to start adb-server
|
|
||||||
adb start-server 1>/dev/null
|
|
||||||
|
|
||||||
# Do not launch an emulator if there is already one running or if a device is attached
|
|
||||||
if [ $(check_devices) == 0 ] ; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
local avd_id="1000" #FIXME: hopefully user does not have 1000 AVDs
|
|
||||||
# User has no AVDs
|
|
||||||
if [ ${#avd_list[@]} == 0 ]
|
|
||||||
then
|
|
||||||
echo "You don't have any Android Virtual Devices. Please create at least one AVD."
|
|
||||||
echo "android"
|
|
||||||
fi
|
|
||||||
# User has only one AVD
|
|
||||||
if [ ${#avd_list[@]} == 1 ]
|
|
||||||
then
|
|
||||||
emulator -cpu-delay 0 -no-boot-anim -cache /tmp/cache -avd ${avd_list[0]} 1> /dev/null 2>&1 &
|
|
||||||
# User has more than 1 AVD
|
|
||||||
elif [ ${#avd_list[@]} -gt 1 ]
|
|
||||||
then
|
|
||||||
while [ -z ${avd_list[$avd_id]} ]
|
|
||||||
do
|
|
||||||
echo "Choose from one of the following Android Virtual Devices [0 to $((${#avd_list[@]}-1))]:"
|
|
||||||
for(( i = 0 ; i < ${#avd_list[@]} ; i++ ))
|
|
||||||
do
|
|
||||||
echo "$i) ${avd_list[$i]}"
|
|
||||||
done
|
|
||||||
read -t 5 -p "> " avd_id
|
|
||||||
# default value if input timeout
|
|
||||||
if [ $avd_id -eq 1000 ] ; then avd_id=0 ; fi
|
|
||||||
done
|
|
||||||
emulator -cpu-delay 0 -no-boot-anim -cache /tmp/cache -avd ${avd_list[$avd_id]} 1> /dev/null 2>&1 &
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function clean {
|
|
||||||
ant clean
|
|
||||||
}
|
|
||||||
# has to be used independently and not in conjunction with other commands
|
|
||||||
function log {
|
|
||||||
adb logcat
|
|
||||||
}
|
|
||||||
|
|
||||||
function run {
|
|
||||||
clean && emulate && wait_for_device && install && launch
|
|
||||||
}
|
|
||||||
|
|
||||||
function install {
|
|
||||||
|
|
||||||
declare -a devices=($(adb devices | awk '/List of devices attached/ { while(getline > 0) { print }}' | grep device | cut -f 1))
|
|
||||||
local device_id="1000" #FIXME: hopefully user does not have 1000 AVDs
|
|
||||||
|
|
||||||
if [ ${#devices[@]} == 0 ]
|
|
||||||
then
|
|
||||||
# should not reach here. Emulator should launch or device should be attached
|
|
||||||
echo "Emulator not running or device not attached. Could not install debug package"
|
|
||||||
exit 70
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ${#devices[@]} == 1 ]
|
|
||||||
then
|
|
||||||
export ANDROID_SERIAL=${devices[0]}
|
|
||||||
# User has more than 1 AVD
|
|
||||||
elif [ ${#devices[@]} -gt 1 ]
|
|
||||||
then
|
|
||||||
while [ -z ${devices[$device_id]} ]
|
|
||||||
do
|
|
||||||
echo "Choose from one of the following devices/emulators [0 to $((${#devices[@]}-1))]:"
|
|
||||||
for(( i = 0 ; i < ${#devices[@]} ; i++ ))
|
|
||||||
do
|
|
||||||
echo "$i) ${devices[$i]}"
|
|
||||||
done
|
|
||||||
read -t 5 -p "> " device_id
|
|
||||||
# default value if input timeout
|
|
||||||
if [ $device_id -eq 1000 ] ; then device_id=0 ; fi
|
|
||||||
done
|
|
||||||
export ANDROID_SERIAL=${devices[$device_id]}
|
|
||||||
fi
|
|
||||||
|
|
||||||
ant debug install
|
|
||||||
}
|
|
||||||
|
|
||||||
function clean_after_build(){
|
|
||||||
rm -f assets/www/cordova.js
|
|
||||||
}
|
|
||||||
|
|
||||||
function build {
|
|
||||||
trap clean_after_build EXIT
|
|
||||||
cp libs/cordova-2.5.0.js assets/www/cordova.js
|
|
||||||
ant debug
|
|
||||||
}
|
|
||||||
|
|
||||||
function release {
|
|
||||||
trap clean_after_build EXIT
|
|
||||||
cp libs/cordova-2.5.0.js assets/www/cordova.js
|
|
||||||
ant release
|
|
||||||
}
|
|
||||||
|
|
||||||
function wait_for_device {
|
|
||||||
local i="0"
|
|
||||||
echo -n "Waiting for device..."
|
|
||||||
|
|
||||||
while [ $i -lt 300 ]
|
|
||||||
do
|
|
||||||
if [ $(check_devices) -eq 0 ]
|
|
||||||
then
|
|
||||||
break
|
|
||||||
else
|
|
||||||
sleep 1
|
|
||||||
i=$[i+1]
|
|
||||||
echo -n "."
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
# Device timeout: emulator has not started in time or device not attached
|
|
||||||
if [ $i -eq 300 ]
|
|
||||||
then
|
|
||||||
echo "device timeout!"
|
|
||||||
exit 69
|
|
||||||
else
|
|
||||||
echo "connected!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function launch {
|
|
||||||
local launch_str=$(java -jar "$PROJECT_PATH"/cordova/appinfo.jar "$PROJECT_PATH"/AndroidManifest.xml)
|
|
||||||
adb shell am start -n $launch_str
|
|
||||||
}
|
|
||||||
|
|
||||||
# TODO parse arguments
|
|
||||||
(cd "$PROJECT_PATH" && $1)
|
|
@ -1,24 +0,0 @@
|
|||||||
# 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.
|
|
||||||
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
CORDOVA_PATH=$( cd "$( dirname "$0" )/.." && pwd )
|
|
||||||
|
|
||||||
bash "$CORDOVA_PATH"/cordova/cordova log
|
|
@ -1,24 +0,0 @@
|
|||||||
# 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.
|
|
||||||
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd )
|
|
||||||
|
|
||||||
bash "$CORDOVA_PATH"/cordova release
|
|
@ -1,24 +0,0 @@
|
|||||||
# 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.
|
|
||||||
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd )
|
|
||||||
|
|
||||||
bash "$CORDOVA_PATH"/cordova run
|
|
@ -1,10 +0,0 @@
|
|||||||
/home/mopar/IdeaProjects/pointsplus/PointsWatcher/android/gen/com/moparisthebest/pointswatcher/R.java \
|
|
||||||
: /home/mopar/IdeaProjects/pointsplus/PointsWatcher/android/res/drawable-mdpi/icon.png \
|
|
||||||
/home/mopar/IdeaProjects/pointsplus/PointsWatcher/android/res/drawable-xhdpi/icon.png \
|
|
||||||
/home/mopar/IdeaProjects/pointsplus/PointsWatcher/android/res/layout/main.xml \
|
|
||||||
/home/mopar/IdeaProjects/pointsplus/PointsWatcher/android/res/drawable-hdpi/icon.png \
|
|
||||||
/home/mopar/IdeaProjects/pointsplus/PointsWatcher/android/res/drawable/icon.png \
|
|
||||||
/home/mopar/IdeaProjects/pointsplus/PointsWatcher/android/res/xml/config.xml \
|
|
||||||
/home/mopar/IdeaProjects/pointsplus/PointsWatcher/android/res/values/strings.xml \
|
|
||||||
/home/mopar/IdeaProjects/pointsplus/PointsWatcher/android/res/drawable-ldpi/icon.png \
|
|
||||||
/home/mopar/IdeaProjects/pointsplus/PointsWatcher/android/bin/AndroidManifest.xml \
|
|
@ -1,6 +0,0 @@
|
|||||||
/** Automatically generated file. DO NOT MODIFY */
|
|
||||||
package com.moparisthebest.pointswatcher;
|
|
||||||
|
|
||||||
public final class BuildConfig {
|
|
||||||
public final static boolean DEBUG = true;
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
/*___Generated_by_IDEA___*/
|
|
||||||
|
|
||||||
package com.moparisthebest.pointswatcher;
|
|
||||||
|
|
||||||
/* This stub is for using by IDE only. It is NOT the Manifest class actually packed into APK */
|
|
||||||
public final class Manifest {
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
/*___Generated_by_IDEA___*/
|
|
||||||
|
|
||||||
package com.moparisthebest.pointswatcher;
|
|
||||||
|
|
||||||
/* This stub is for using by IDE only. It is NOT the R class actually packed into APK */
|
|
||||||
public final class R {
|
|
||||||
}
|
|
Binary file not shown.
6461
android/libs/cordova-2.5.0.js
vendored
6461
android/libs/cordova-2.5.0.js
vendored
File diff suppressed because it is too large
Load Diff
@ -1,10 +0,0 @@
|
|||||||
# This file is automatically generated by Android Tools.
|
|
||||||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
|
||||||
#
|
|
||||||
# This file must *NOT* be checked into Version Control Systems,
|
|
||||||
# as it contains information specific to your local configuration.
|
|
||||||
|
|
||||||
# location of the SDK. This is only used by Ant
|
|
||||||
# For customization when using a Version Control System, please read the
|
|
||||||
# header note.
|
|
||||||
sdk.dir=/home/mopar/apps/android-sdk-linux
|
|
@ -1,20 +0,0 @@
|
|||||||
# To enable ProGuard in your project, edit project.properties
|
|
||||||
# to define the proguard.config property as described in that file.
|
|
||||||
#
|
|
||||||
# Add project specific ProGuard rules here.
|
|
||||||
# By default, the flags in this file are appended to flags specified
|
|
||||||
# in ${sdk.dir}/tools/proguard/proguard-android.txt
|
|
||||||
# You can edit the include path and order by changing the ProGuard
|
|
||||||
# include property in project.properties.
|
|
||||||
#
|
|
||||||
# For more details, see
|
|
||||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
||||||
|
|
||||||
# Add any project specific keep options here:
|
|
||||||
|
|
||||||
# If your project uses WebView with JS, uncomment the following
|
|
||||||
# and specify the fully qualified class name to the JavaScript interface
|
|
||||||
# class:
|
|
||||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
|
||||||
# public *;
|
|
||||||
#}
|
|
@ -1,14 +0,0 @@
|
|||||||
# This file is automatically generated by Android Tools.
|
|
||||||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
|
||||||
#
|
|
||||||
# This file must be checked in Version Control Systems.
|
|
||||||
#
|
|
||||||
# To customize properties used by the Ant build system edit
|
|
||||||
# "ant.properties", and override values to adapt the script to your
|
|
||||||
# project structure.
|
|
||||||
#
|
|
||||||
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
|
|
||||||
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
|
|
||||||
|
|
||||||
# Project target.
|
|
||||||
target=Google Inc.:Google APIs:17
|
|
@ -1,13 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="fill_parent"
|
|
||||||
>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Hello World, PointsWatcher"
|
|
||||||
/>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
<string name="app_name">Points Watcher</string>
|
|
||||||
</resources>
|
|
@ -1,49 +0,0 @@
|
|||||||
<?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=".*"/>
|
|
||||||
|
|
||||||
<!-- <content src="http://mysite.com/myapp.html" /> for external pages -->
|
|
||||||
<content src="index.html" />
|
|
||||||
|
|
||||||
<log level="DEBUG"/>
|
|
||||||
<preference name="useBrowserHistory" value="false" />
|
|
||||||
<preference name="exit-on-suspend" value="false" />
|
|
||||||
<plugins>
|
|
||||||
<plugin name="SQLitePlugin" value="com.phonegap.plugin.sqlitePlugin.SQLitePlugin"/>
|
|
||||||
<plugin name="App" value="org.apache.cordova.App"/>
|
|
||||||
<plugin name="Device" value="org.apache.cordova.Device"/>
|
|
||||||
<plugin name="Notification" value="org.apache.cordova.Notification"/>
|
|
||||||
<plugin name="Storage" value="org.apache.cordova.Storage"/>
|
|
||||||
<plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
|
|
||||||
<plugin name="Echo" value="org.apache.cordova.Echo" />
|
|
||||||
<plugin name="InAppBrowser" value="org.apache.cordova.InAppBrowser"/>
|
|
||||||
</plugins>
|
|
||||||
</cordova>
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.moparisthebest.pointswatcher;
|
|
||||||
|
|
||||||
import android.os.Bundle;
|
|
||||||
import org.apache.cordova.*;
|
|
||||||
|
|
||||||
public class PointsWatcher extends DroidGap
|
|
||||||
{
|
|
||||||
@Override
|
|
||||||
public void onCreate(Bundle savedInstanceState)
|
|
||||||
{
|
|
||||||
super.onCreate(savedInstanceState);
|
|
||||||
// Set by <content src="index.html" /> in config.xml
|
|
||||||
super.loadUrl(Config.getStartUrl());
|
|
||||||
//super.loadUrl("file:///android_asset/www/index.html")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,456 +0,0 @@
|
|||||||
<project default="help">
|
|
||||||
<!--
|
|
||||||
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.
|
|
||||||
-->
|
|
||||||
<!-- LOAD PROPERTIES -->
|
|
||||||
|
|
||||||
<property prefix="properties" file="project.properties" />
|
|
||||||
<property name="build.dir" location="build" />
|
|
||||||
<property name="widget.dir" location="${build.dir}/widget" />
|
|
||||||
<property name="code.sign" value="false" />
|
|
||||||
<property name="generate.ext" value="cod" />
|
|
||||||
<property name="globalization" value="false" />
|
|
||||||
|
|
||||||
<!-- BlackBerry WebWorks Packager directory is required. -->
|
|
||||||
<fail unless="properties.blackberry.bbwp.dir" message="Please specify BlackBerry WebWorks Packager directory using 'blackberry.bbwp.dir' in your 'project.properties' file." />
|
|
||||||
|
|
||||||
<!-- OS identification -->
|
|
||||||
<condition property="isMacOSX" else="false">
|
|
||||||
<and>
|
|
||||||
<os family="mac" />
|
|
||||||
<os family="unix" />
|
|
||||||
</and>
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition property="javaloader" value="${properties.blackberry.bbwp.dir}/bin/javaloader" else="${properties.blackberry.bbwp.dir}/bin/javaloader">
|
|
||||||
<equals arg1="${isMacOSX}" arg2="true" />
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition property="bbwp" value="${properties.blackberry.bbwp.dir}/bbwp" else="${properties.blackberry.bbwp.dir}/bbwp">
|
|
||||||
<equals arg1="${isMacOSX}" arg2="true" />
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- LOAD DEVICE -->
|
|
||||||
|
|
||||||
<target name="load-device" depends="package-app">
|
|
||||||
<bbwp code-sign="true" />
|
|
||||||
<exec executable="${javaloader}" dir="." failonerror="true">
|
|
||||||
<arg value="-u" />
|
|
||||||
<arg value="-w${properties.blackberry.sim.password}" />
|
|
||||||
<arg value="load" />
|
|
||||||
<arg file="${build.dir}/StandardInstall/${cod.name}.cod" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- DEBUG-LOAD DEVICE -->
|
|
||||||
|
|
||||||
<target name="debug-device" depends="package-app">
|
|
||||||
<bbwp code-sign="true" debug="true" />
|
|
||||||
<exec executable="${javaloader}" dir="." failonerror="true">
|
|
||||||
<arg value="-u" />
|
|
||||||
<arg value="-w${properties.blackberry.sim.password}" />
|
|
||||||
<arg value="load" />
|
|
||||||
<arg file="${build.dir}/StandardInstall/${cod.name}.cod" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- LOAD SIMULATOR -->
|
|
||||||
|
|
||||||
<target name="load-simulator" depends="build">
|
|
||||||
|
|
||||||
<!-- Find the simulator directory -->
|
|
||||||
<set-simulator-dir />
|
|
||||||
|
|
||||||
<!-- Locate BBWP simulator directory. There may be multiple, so choose the first. -->
|
|
||||||
<path id="bbwp.sim.path">
|
|
||||||
<first>
|
|
||||||
<fileset dir="${properties.blackberry.bbwp.dir}/simpack">
|
|
||||||
<include name="**/handhelds.manifest.txt" />
|
|
||||||
</fileset>
|
|
||||||
</first>
|
|
||||||
</path>
|
|
||||||
<dirname property="bbwp.sim.dir" file="${toString:bbwp.sim.path}" />
|
|
||||||
|
|
||||||
<!-- Simulator directory: Use sim.dir property if set in project.properties file.
|
|
||||||
Otherwise, use bbwp simulator directory. -->
|
|
||||||
<condition
|
|
||||||
property="simulator.dir"
|
|
||||||
value="${properties.blackberry.sim.dir}"
|
|
||||||
else="${bbwp.sim.dir}">
|
|
||||||
<available file="${properties.blackberry.sim.dir}" type="dir" />
|
|
||||||
</condition>
|
|
||||||
<echo message="Simulator directory=${simulator.dir}" />
|
|
||||||
|
|
||||||
<!-- Simulator binary: Use sim.bin property if set in project.properties file
|
|
||||||
or try setting to 'defaultSimulator.bat' in simulator directory. -->
|
|
||||||
<condition
|
|
||||||
property="sim.bin"
|
|
||||||
value="${properties.blackberry.sim.bin}"
|
|
||||||
else="defaultSimulator.bat">
|
|
||||||
<available file="${simulator.dir}/${properties.blackberry.sim.bin}"/>
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<!-- If simulator executable does not exist, use the first device listed
|
|
||||||
in the 'handhelds.manifest.txt' file in the simulator directory. -->
|
|
||||||
<loadfile
|
|
||||||
property="device.list"
|
|
||||||
srcFile="${simulator.dir}/handhelds.manifest.txt">
|
|
||||||
<filterchain>
|
|
||||||
<tokenFilter>
|
|
||||||
<stringtokenizer/>
|
|
||||||
</tokenFilter>
|
|
||||||
</filterchain>
|
|
||||||
</loadfile>
|
|
||||||
|
|
||||||
<propertyregex property="device"
|
|
||||||
input="${device.list}"
|
|
||||||
regexp="^\d{4}"
|
|
||||||
select="\0"
|
|
||||||
override="true" />
|
|
||||||
<property name="device.bin" value="${device}.bat" />
|
|
||||||
|
|
||||||
<condition
|
|
||||||
property="simulator.bin"
|
|
||||||
value="${sim.bin}"
|
|
||||||
else="${device.bin}">
|
|
||||||
<available file="${simulator.dir}/${sim.bin}" />
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<echo message="Simulator executable=${simulator.dir}/${simulator.bin}" />
|
|
||||||
|
|
||||||
<!-- Close running simulators -->
|
|
||||||
<echo message="Closing all running simulators..." />
|
|
||||||
<exec executable="${simulator.dir}/fledgecontroller.exe" dir="${simulator.dir}" spawn="false">
|
|
||||||
<arg value="/execute=kill" />
|
|
||||||
</exec>
|
|
||||||
|
|
||||||
<!-- MDS directory: Use mds.dir property if set in project.properties file.
|
|
||||||
Otherwise, use bbwp MDS directory. -->
|
|
||||||
<condition
|
|
||||||
property="mds.dir"
|
|
||||||
value="${properties.blackberry.mds.dir}"
|
|
||||||
else="${properties.blackberry.bbwp.dir}/mds">
|
|
||||||
<available file="${properties.blackberry.mds.dir}" type="dir" />
|
|
||||||
</condition>
|
|
||||||
<echo message="MDS directory=${mds.dir}" />
|
|
||||||
|
|
||||||
<copy todir="${simulator.dir}">
|
|
||||||
<fileset dir="${build.dir}/StandardInstall" includes="*.cod, *.cso, *.csl, *.alx" />
|
|
||||||
</copy>
|
|
||||||
<exec executable="${mds.dir}/run.bat" dir="${mds.dir}" spawn="true" />
|
|
||||||
<exec executable="${simulator.dir}/${simulator.bin}" dir="${simulator.dir}" spawn="true" />
|
|
||||||
|
|
||||||
<!-- Only invoke FledgeHook.exe if it is found. Newer versions of the
|
|
||||||
WebWorks SDK do not include it. -->
|
|
||||||
<if>
|
|
||||||
<available file="${properties.blackberry.bbwp.dir}/FledgeHook.exe" />
|
|
||||||
<then>
|
|
||||||
<exec executable="${properties.blackberry.bbwp.dir}/FledgeHook.exe" dir="${properties.blackberry.bbwp.dir}" spawn="true" />
|
|
||||||
</then>
|
|
||||||
</if>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="debug-simulator" depends="package-app">
|
|
||||||
<bbwp code-sign="false" debug="true" />
|
|
||||||
|
|
||||||
<!-- Find the simulator directory -->
|
|
||||||
<set-simulator-dir />
|
|
||||||
|
|
||||||
<!-- Locate BBWP simulator directory. There may be multiple, so choose the first. -->
|
|
||||||
<path id="bbwp.sim.path">
|
|
||||||
<first>
|
|
||||||
<fileset dir="${properties.blackberry.bbwp.dir}/simpack">
|
|
||||||
<include name="**/handhelds.manifest.txt" />
|
|
||||||
</fileset>
|
|
||||||
</first>
|
|
||||||
</path>
|
|
||||||
<dirname property="bbwp.sim.dir" file="${toString:bbwp.sim.path}" />
|
|
||||||
|
|
||||||
<!-- Simulator directory: Use sim.dir property if set in project.properties file.
|
|
||||||
Otherwise, use bbwp simulator directory. -->
|
|
||||||
<condition
|
|
||||||
property="simulator.dir"
|
|
||||||
value="${properties.blackberry.sim.dir}"
|
|
||||||
else="${bbwp.sim.dir}">
|
|
||||||
<available file="${properties.blackberry.sim.dir}" type="dir" />
|
|
||||||
</condition>
|
|
||||||
<echo message="Simulator directory=${simulator.dir}" />
|
|
||||||
|
|
||||||
<!-- Simulator binary: Use sim.bin property if set in project.properties file
|
|
||||||
or try setting to 'defaultSimulator.bat' in simulator directory. -->
|
|
||||||
<condition
|
|
||||||
property="sim.bin"
|
|
||||||
value="${properties.blackberry.sim.bin}"
|
|
||||||
else="defaultSimulator.bat">
|
|
||||||
<available file="${simulator.dir}/${properties.blackberry.sim.bin}"/>
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<!-- If simulator executable does not exist, use the first device listed
|
|
||||||
in the 'handhelds.manifest.txt' file in the simulator directory. -->
|
|
||||||
<loadfile
|
|
||||||
property="device.list"
|
|
||||||
srcFile="${simulator.dir}/handhelds.manifest.txt">
|
|
||||||
<filterchain>
|
|
||||||
<tokenFilter>
|
|
||||||
<stringtokenizer/>
|
|
||||||
</tokenFilter>
|
|
||||||
</filterchain>
|
|
||||||
</loadfile>
|
|
||||||
|
|
||||||
<propertyregex property="device"
|
|
||||||
input="${device.list}"
|
|
||||||
regexp="^\d{4}"
|
|
||||||
select="\0"
|
|
||||||
override="true" />
|
|
||||||
<property name="device.bin" value="${device}.bat" />
|
|
||||||
|
|
||||||
<condition
|
|
||||||
property="simulator.bin"
|
|
||||||
value="${sim.bin}"
|
|
||||||
else="${device.bin}">
|
|
||||||
<available file="${simulator.dir}/${sim.bin}" />
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<echo message="Simulator executable=${simulator.dir}/${simulator.bin}" />
|
|
||||||
|
|
||||||
<!-- Close running simulators -->
|
|
||||||
<echo message="Closing all running simulators..." />
|
|
||||||
<exec executable="${simulator.dir}/fledgecontroller.exe" dir="${simulator.dir}" spawn="false">
|
|
||||||
<arg value="/execute=kill" />
|
|
||||||
</exec>
|
|
||||||
|
|
||||||
<!-- MDS directory: Use mds.dir property if set in project.properties file.
|
|
||||||
Otherwise, use bbwp MDS directory. -->
|
|
||||||
<condition
|
|
||||||
property="mds.dir"
|
|
||||||
value="${properties.blackberry.mds.dir}"
|
|
||||||
else="${properties.blackberry.bbwp.dir}/mds">
|
|
||||||
<available file="${properties.blackberry.mds.dir}" type="dir" />
|
|
||||||
</condition>
|
|
||||||
<echo message="MDS directory=${mds.dir}" />
|
|
||||||
|
|
||||||
<copy todir="${simulator.dir}">
|
|
||||||
<fileset dir="${build.dir}/StandardInstall" includes="*.cod, *.cso, *.csl, *.alx" />
|
|
||||||
</copy>
|
|
||||||
<exec executable="${mds.dir}/run.bat" dir="${mds.dir}" spawn="true" />
|
|
||||||
<exec executable="${simulator.dir}/${simulator.bin}" dir="${simulator.dir}" spawn="true" />
|
|
||||||
|
|
||||||
<!-- Only invoke FledgeHook.exe if it is found. Newer versions of the
|
|
||||||
WebWorks SDK do not include it. -->
|
|
||||||
<if>
|
|
||||||
<available file="${properties.blackberry.bbwp.dir}/FledgeHook.exe" />
|
|
||||||
<then>
|
|
||||||
<exec executable="${properties.blackberry.bbwp.dir}/FledgeHook.exe" dir="${properties.blackberry.bbwp.dir}" spawn="true" />
|
|
||||||
</then>
|
|
||||||
</if>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- PACKAGE-APP -->
|
|
||||||
|
|
||||||
<target name="package-app" depends="generate-cod-name, clean">
|
|
||||||
<!-- Copy the WebWorks application -->
|
|
||||||
<mkdir dir="${widget.dir}" />
|
|
||||||
<copy todir="${widget.dir}" overwrite="true">
|
|
||||||
<fileset dir="www" >
|
|
||||||
<exclude name="ext-air/**"/>
|
|
||||||
<exclude name="ext-qnx/**"/>
|
|
||||||
<exclude name="res/resourceBundles/**" unless="${globalization}"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<!-- Package the WebWorks app by zipping the widget dir. -->
|
|
||||||
<mkdir dir="${build.dir}" />
|
|
||||||
<zip compress="false" destfile="${build.dir}/${cod.name}.zip" basedir="${widget.dir}" excludes="**/build/**,**/.settings/**,**/.project" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- BUILD -->
|
|
||||||
|
|
||||||
<target name="build" depends="package-app">
|
|
||||||
<bbwp code-sign="${code.sign}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- BBWP MACRO -->
|
|
||||||
|
|
||||||
<macrodef name="bbwp">
|
|
||||||
<attribute name="code-sign" default="false" />
|
|
||||||
<attribute name="debug" default="false" />
|
|
||||||
<sequential>
|
|
||||||
<!-- check if debug flag was passed in and set an appropriate flag for CLI exec of bbwp -->
|
|
||||||
<if>
|
|
||||||
<equals arg1="@{debug}" arg2="true" />
|
|
||||||
<then>
|
|
||||||
<property name="debug.flag" value="/d" />
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<property name="debug.flag" value="" />
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<!-- Ensure bbwp executable exists. -->
|
|
||||||
<property name="properties.blackberry.bbwp.bin" location="${bbwp}" />
|
|
||||||
<available file="${properties.blackberry.bbwp.bin}" property="properties.blackberry.bbwp.exists" />
|
|
||||||
<fail unless="properties.blackberry.bbwp.exists" message="Cannot find ${properties.blackberry.bbwp.bin}. Please edit 'blackberry.bbwp.dir' in your 'project.properties' file." />
|
|
||||||
|
|
||||||
<if>
|
|
||||||
<equals arg1="@{code-sign}" arg2="true" />
|
|
||||||
<then>
|
|
||||||
<exec executable="${properties.blackberry.bbwp.bin}">
|
|
||||||
<arg file="${build.dir}/${cod.name}.zip" />
|
|
||||||
<arg value="-g" />
|
|
||||||
<arg value="${properties.blackberry.sigtool.password}" />
|
|
||||||
<arg line="${debug.flag} /o" />
|
|
||||||
<arg file="${build.dir}" />
|
|
||||||
</exec>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<exec executable="${properties.blackberry.bbwp.bin}">
|
|
||||||
<arg file="${build.dir}/${cod.name}.zip" />
|
|
||||||
<arg line="${debug.flag} /o" />
|
|
||||||
<arg file="${build.dir}" />
|
|
||||||
</exec>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
|
|
||||||
<!-- CLEAN -->
|
|
||||||
|
|
||||||
<target name="clean">
|
|
||||||
<delete dir="${build.dir}" />
|
|
||||||
<delete dir="${widget.dir}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- CLEAN DEVICE -->
|
|
||||||
|
|
||||||
<target name="clean-device" depends="generate-cod-name">
|
|
||||||
<exec executable="${javaloader}">
|
|
||||||
<arg value="-usb" />
|
|
||||||
<arg value="erase" />
|
|
||||||
<arg value="-f" />
|
|
||||||
<arg value="${cod.name}.cod" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- CLEAN SIMULATOR -->
|
|
||||||
|
|
||||||
<target name="clean-simulator">
|
|
||||||
<!-- Find the simulator directory -->
|
|
||||||
<set-simulator-dir />
|
|
||||||
|
|
||||||
<exec executable="${simulator.dir}/clean.bat" dir="${simulator.dir}" />
|
|
||||||
|
|
||||||
<delete>
|
|
||||||
<fileset dir="${simulator.dir}" includes="*.cod,*.csl,*.cso,*.debug,*.jar" />
|
|
||||||
</delete>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- HELPER TASKS -->
|
|
||||||
|
|
||||||
<target name="generate-cod-name">
|
|
||||||
<xmlproperty file="res/config.xml" prefix="config.xml" />
|
|
||||||
<propertyregex property="cod.name"
|
|
||||||
input="${config.xml.widget.name}"
|
|
||||||
regexp="(\W+)"
|
|
||||||
replace=""
|
|
||||||
casesensitive="false"
|
|
||||||
global="true"
|
|
||||||
defaultValue="${config.xml.widget.name}" />
|
|
||||||
<echo message="Generated name: ${cod.name}.cod" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- MACRO: SET SIMULATOR DIRECTORY -->
|
|
||||||
|
|
||||||
<macrodef name="set-simulator-dir">
|
|
||||||
<sequential>
|
|
||||||
<!-- Locate BBWP simulator directory. There may be multiple, so choose the first. -->
|
|
||||||
<path id="bbwp.sim.path">
|
|
||||||
<first>
|
|
||||||
<fileset dir="${properties.blackberry.bbwp.dir}/simpack">
|
|
||||||
<include name="**/handhelds.manifest.txt" />
|
|
||||||
</fileset>
|
|
||||||
</first>
|
|
||||||
</path>
|
|
||||||
<dirname property="bbwp.sim.dir" file="${toString:bbwp.sim.path}" />
|
|
||||||
|
|
||||||
<!-- Simulator directory: Use sim.dir property if set in project.properties file.
|
|
||||||
Otherwise, use bbwp simulator directory. -->
|
|
||||||
<condition
|
|
||||||
property="simulator.dir"
|
|
||||||
value="${properties.blackberry.sim.dir}"
|
|
||||||
else="${bbwp.sim.dir}">
|
|
||||||
<available file="${properties.blackberry.sim.dir}" type="dir" />
|
|
||||||
</condition>
|
|
||||||
<echo message="Simulator directory=${simulator.dir}" />
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
|
|
||||||
<!-- HELP -->
|
|
||||||
|
|
||||||
<target name="help">
|
|
||||||
<echo>
|
|
||||||
NAME
|
|
||||||
${ant.project.name}
|
|
||||||
|
|
||||||
SYNOPSIS
|
|
||||||
ant TARGET COMMAND [-D<argument>=<value>]...
|
|
||||||
|
|
||||||
DESCRIPTION
|
|
||||||
You can build and deploy your project to a device or simulator.
|
|
||||||
|
|
||||||
TARGETS
|
|
||||||
blackberry ........ Builds a cod file and deploys to a device or simulator
|
|
||||||
|
|
||||||
playbook .......... Builds a bar file and deploys to a device or simulator
|
|
||||||
|
|
||||||
COMMANDS
|
|
||||||
help .............. Show this help menu.
|
|
||||||
ant, ant help
|
|
||||||
|
|
||||||
load-device ....... Builds and deploys project to a connected USB device.
|
|
||||||
ant load-device
|
|
||||||
|
|
||||||
load-simulator .... Builds and deploys project to default simulator.
|
|
||||||
ant load-simulator
|
|
||||||
|
|
||||||
build ............. Compiles and packages the project for deployment.
|
|
||||||
ant build
|
|
||||||
|
|
||||||
clean ............. Remove all files from the build/ directory.
|
|
||||||
ant clean
|
|
||||||
|
|
||||||
clean-device ...... Remove this project from the connected USB device.
|
|
||||||
ant clean-device
|
|
||||||
|
|
||||||
clean-simulator ... Remove this project from the simulator (takes a while).
|
|
||||||
ant clean-simulator
|
|
||||||
|
|
||||||
GETTING STARTED
|
|
||||||
1. Edit project.properties
|
|
||||||
|
|
||||||
2. <ant load-simulator> to run the project on the simulator
|
|
||||||
|
|
||||||
3. Customize your project by editing res/config.xml
|
|
||||||
|
|
||||||
4. To run the project on a BlackBerry device, you will need to obtain
|
|
||||||
code signing keys from RIM. Once you have the key, a project is
|
|
||||||
installed by connecting a BlackBerry via USB and running
|
|
||||||
<ant load-device>.
|
|
||||||
</echo>
|
|
||||||
</target>
|
|
||||||
</project>
|
|
@ -1,160 +0,0 @@
|
|||||||
<project name="Build and Deploy a Cordova BlackBerry WebWorks Project" default="help">
|
|
||||||
<!--
|
|
||||||
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.
|
|
||||||
-->
|
|
||||||
<!-- LOAD ANT-CONTRIB LIBRARY -->
|
|
||||||
|
|
||||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
|
||||||
<classpath>
|
|
||||||
<pathelement location="./lib/ant-contrib/ant-contrib-1.0b3.jar" />
|
|
||||||
</classpath>
|
|
||||||
</taskdef>
|
|
||||||
|
|
||||||
<!-- LOAD PROPERTIES -->
|
|
||||||
|
|
||||||
<property prefix="properties" file="project.properties" />
|
|
||||||
<property name="build.dir" location="build" />
|
|
||||||
<property name="widget.dir" location="${build.dir}/widget" />
|
|
||||||
<property name="code.sign" value="false" />
|
|
||||||
<property name="globalization" value="false" />
|
|
||||||
|
|
||||||
<target name="blackberry" >
|
|
||||||
<property name="subant.file" value="blackberry.xml" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="playbook" >
|
|
||||||
<property name="subant.file" value="playbook.xml" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="qnx" >
|
|
||||||
<property name="subant.file" value="qnx.xml" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="load-device">
|
|
||||||
<subant target="load-device">
|
|
||||||
<fileset dir="." includes="${subant.file}"/>
|
|
||||||
</subant>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="load-simulator">
|
|
||||||
<subant target="load-simulator">
|
|
||||||
<fileset dir="." includes="${subant.file}"/>
|
|
||||||
</subant>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="debug-simulator">
|
|
||||||
<subant target="debug-simulator">
|
|
||||||
<fileset dir="." includes="${subant.file}"/>
|
|
||||||
</subant>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="debug-device">
|
|
||||||
<subant target="debug-device">
|
|
||||||
<fileset dir="." includes="${subant.file}"/>
|
|
||||||
</subant>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="build">
|
|
||||||
<subant target="build">
|
|
||||||
<fileset dir="." includes="${subant.file}"/>
|
|
||||||
</subant>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean">
|
|
||||||
<subant target="clean">
|
|
||||||
<fileset dir="." includes="${subant.file}"/>
|
|
||||||
</subant>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean-device">
|
|
||||||
<subant target="clean-device">
|
|
||||||
<fileset dir="." includes="${subant.file}"/>
|
|
||||||
</subant>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="package-app">
|
|
||||||
<subant target="package-app">
|
|
||||||
<fileset dir="." includes="${subant.file}"/>
|
|
||||||
</subant>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean-simulator">
|
|
||||||
<subant target="clean-simulator">
|
|
||||||
<fileset dir="." includes="${subant.file}"/>
|
|
||||||
</subant>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- HELP -->
|
|
||||||
|
|
||||||
<target name="help">
|
|
||||||
<echo>
|
|
||||||
NAME
|
|
||||||
${ant.project.name}
|
|
||||||
|
|
||||||
SYNOPSIS
|
|
||||||
ant TARGET COMMAND [-D<argument>=<value>]...
|
|
||||||
|
|
||||||
DESCRIPTION
|
|
||||||
You can build and deploy your project to a device or simulator.
|
|
||||||
|
|
||||||
TARGETS
|
|
||||||
blackberry ........ Builds a cod file and deploys to a device or simulator
|
|
||||||
|
|
||||||
playbook .......... Builds a bar file and deploys to a device or simulator
|
|
||||||
|
|
||||||
qnx ............... Builds a bar file and deploys to a device or simulator
|
|
||||||
|
|
||||||
COMMANDS
|
|
||||||
help .............. Show this help menu.
|
|
||||||
ant, ant help
|
|
||||||
|
|
||||||
load-device ....... Builds and deploys project to a connected USB device.
|
|
||||||
ant TARGET load-device
|
|
||||||
|
|
||||||
load-simulator .... Builds and deploys project to default simulator.
|
|
||||||
ant TARGET load-simulator
|
|
||||||
|
|
||||||
build ............. Compiles and packages the project for deployment.
|
|
||||||
ant TARGET build
|
|
||||||
|
|
||||||
package-app ....... Packages the app into a WebWorks-compatible .zip file.
|
|
||||||
ant TARGET package-app
|
|
||||||
|
|
||||||
clean ............. Remove all files from the build/ directory.
|
|
||||||
ant TARGET clean
|
|
||||||
|
|
||||||
clean-device ...... Remove this project from the connected USB device.
|
|
||||||
ant TARGET clean-device
|
|
||||||
|
|
||||||
clean-simulator ... Remove this project from the simulator (takes a while).
|
|
||||||
ant TARGET clean-simulator
|
|
||||||
|
|
||||||
GETTING STARTED
|
|
||||||
1. Edit project.properties
|
|
||||||
|
|
||||||
2. <ant load-simulator> to run the project on the simulator
|
|
||||||
|
|
||||||
3. Customize your project by editing res/config.xml
|
|
||||||
|
|
||||||
4. To run the project on a BlackBerry device, you will need to obtain
|
|
||||||
code signing keys from RIM. Once you have the key, a project is
|
|
||||||
installed by connecting a BlackBerry via USB and running
|
|
||||||
<ant load-device>.
|
|
||||||
</echo>
|
|
||||||
</target>
|
|
||||||
</project>
|
|
@ -1,44 +0,0 @@
|
|||||||
#! /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.
|
|
||||||
|
|
||||||
ANT=$(which ant)
|
|
||||||
|
|
||||||
if [ -z "$1" ]
|
|
||||||
then
|
|
||||||
echo 'usage: build <platform>'
|
|
||||||
echo 'where <platform> can be one of "blackberry", "playbook" or "qnx"'
|
|
||||||
echo 'NOTE: please customize the project.properties file first before using this command!'
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
function clean_after_build(){
|
|
||||||
rm www/cordova.js
|
|
||||||
mv www/config.main.xml www/config.xml
|
|
||||||
}
|
|
||||||
|
|
||||||
cd "$( dirname "$0" )"/..
|
|
||||||
|
|
||||||
if [ "$1" == "blackberry" -o "$1" == "playbook" -o "$1" == "qnx" ]
|
|
||||||
then
|
|
||||||
trap clean_after_build EXIT
|
|
||||||
cp lib/cordova.2.5.0/javascript/cordova-2.5.0.js www/cordova.js
|
|
||||||
mv www/config.xml www/config.main.xml && cp res/config.xml www/config.xml
|
|
||||||
$ANT $1 build
|
|
||||||
else
|
|
||||||
echo 'Platform not recognized! Please use one of "blackberry", "playbook", or "qnx" for the platform parameter.'
|
|
||||||
fi
|
|
@ -1,43 +0,0 @@
|
|||||||
#! /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.
|
|
||||||
|
|
||||||
ANT=$(which ant)
|
|
||||||
|
|
||||||
if [ -z "$1" ]
|
|
||||||
then
|
|
||||||
echo 'usage: run <platform>'
|
|
||||||
echo 'where <platform> can be one of "blackberry", "playbook" or "qnx"'
|
|
||||||
echo 'NOTE: please customize the project.properties file first before using this command!'
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd "$( dirname "$0" )"/..
|
|
||||||
|
|
||||||
if [ "$1" == "blackberry" -o "$1" == "playbook" -o "$1" == "qnx" ]
|
|
||||||
then
|
|
||||||
echo 'Do you have a BlackBerry device connected to your computer? (y/n)'
|
|
||||||
read DEVICE
|
|
||||||
if [ $DEVICE == "y" ]
|
|
||||||
then
|
|
||||||
$ANT $1 debug-device
|
|
||||||
else
|
|
||||||
$ANT $1 load-simulator
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo 'Platform not recognized! Please use one of "blackberry", "playbook", or "qnx" for the platform parameter.'
|
|
||||||
fi
|
|
Binary file not shown.
@ -1,40 +0,0 @@
|
|||||||
<?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.
|
|
||||||
-->
|
|
||||||
<library isWhitelist="true">
|
|
||||||
<extension>
|
|
||||||
<entryClass>org.apache.cordova.network.Network</entryClass>
|
|
||||||
</extension>
|
|
||||||
|
|
||||||
<platforms>
|
|
||||||
<platform value="AIR">
|
|
||||||
<target version="default" config="AIR_XHR" />
|
|
||||||
</platform>
|
|
||||||
</platforms>
|
|
||||||
|
|
||||||
<configurations>
|
|
||||||
<configuration name="AIR_XHR" version="1.0" comment="For XHR architecture for Java implementation">
|
|
||||||
<src type="text/actionscript" path="src" comment="ActionScript implementation" />
|
|
||||||
</configuration>
|
|
||||||
</configurations>
|
|
||||||
|
|
||||||
<features>
|
|
||||||
<feature id="org.apache.cordova" version="1.0.0" />
|
|
||||||
</features>
|
|
||||||
</library>
|
|
@ -1,88 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
* Copyright (c) 2011, Research In Motion Limited.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
package org.apache.cordova.network {
|
|
||||||
import flash.net.NetworkInfo;
|
|
||||||
import flash.net.NetworkInterface;
|
|
||||||
import flash.events.Event;
|
|
||||||
import qnx.system.Device;
|
|
||||||
|
|
||||||
import webworks.extension.DefaultExtension;
|
|
||||||
|
|
||||||
public class Network extends DefaultExtension{
|
|
||||||
|
|
||||||
private var _jsFunctionCallbackIDs:Array = [];
|
|
||||||
private const FEATURE_ID:Array = [ "org.apache.cordova" ];
|
|
||||||
|
|
||||||
public function Network() {
|
|
||||||
//Attach event listener once only
|
|
||||||
NetworkInfo.networkInfo.addEventListener(flash.events.Event.NETWORK_CHANGE, networkChange);
|
|
||||||
}
|
|
||||||
|
|
||||||
override public function getFeatureList():Array {
|
|
||||||
return FEATURE_ID;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getConnectionInfo(param:String):void{
|
|
||||||
if(_jsFunctionCallbackIDs.indexOf(param) < 0){
|
|
||||||
_jsFunctionCallbackIDs.push(param);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getDeviceInfo(id:String):void{
|
|
||||||
evalJavaScriptEvent(id, [{
|
|
||||||
"uuid" : Device.device.pin,
|
|
||||||
"version": Device.device.scmBundle
|
|
||||||
}]);
|
|
||||||
}
|
|
||||||
|
|
||||||
private function networkChange( event: Event ) : void {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Right now, we only care if there is a connection or not, since PlayBook only has WiFi
|
|
||||||
* At the JS layer, we will map this from offline/online.
|
|
||||||
* At some point in the future where there are more connection types on PlayBook,
|
|
||||||
* we will want to attempt to map this to the real Cordova connection types...
|
|
||||||
*/
|
|
||||||
|
|
||||||
var haveCoverage : Boolean = false;
|
|
||||||
var networkStatus : String = "offline";
|
|
||||||
var connectionType = "none";
|
|
||||||
|
|
||||||
NetworkInfo.networkInfo.findInterfaces().some(
|
|
||||||
function callback(item:NetworkInterface, index:int, vector:Vector.<NetworkInterface>):Boolean {
|
|
||||||
this.webView.executeJavaScript("alert('Network Interface ' + item.name)");
|
|
||||||
haveCoverage = item.active || haveCoverage;
|
|
||||||
return haveCoverage;
|
|
||||||
}, this);
|
|
||||||
|
|
||||||
if (haveCoverage) {
|
|
||||||
networkStatus = "online";
|
|
||||||
connectionType = "wifi";
|
|
||||||
}
|
|
||||||
|
|
||||||
for (var i:Number=0; i<_jsFunctionCallbackIDs.length ; i++){
|
|
||||||
evalJavaScriptEvent(_jsFunctionCallbackIDs[i], [{"type" : connectionType, "event" : networkStatus }] );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2010-2011 Research In Motion Limited.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2010-2011 Research In Motion Limited.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
var Whitelist = require("../../lib/policy/whitelist").Whitelist,
|
|
||||||
whitelist = new Whitelist(),
|
|
||||||
noop = function () {};
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
isWhitelisted: function (success, fail, args) {
|
|
||||||
var url = JSON.parse(decodeURIComponent(args[0])),
|
|
||||||
success = success || noop,
|
|
||||||
fail = fail || noop;
|
|
||||||
|
|
||||||
if (url) {
|
|
||||||
success(whitelist.isAccessAllowed(url));
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
error("please provide an url");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"global": false,
|
|
||||||
"namespace": "org.apache.cordova",
|
|
||||||
"dependencies": []
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
Placeholder for native extensions needed on qnx
|
|
Binary file not shown.
10569
blackberry/lib/cordova.2.5.0/javascript/cordova-2.5.0.js
vendored
10569
blackberry/lib/cordova.2.5.0/javascript/cordova-2.5.0.js
vendored
File diff suppressed because it is too large
Load Diff
@ -1,338 +0,0 @@
|
|||||||
<project default="help">
|
|
||||||
<!--
|
|
||||||
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.
|
|
||||||
-->
|
|
||||||
<!-- LOAD PROPERTIES -->
|
|
||||||
|
|
||||||
<property prefix="properties" file="project.properties" />
|
|
||||||
<property name="build.dir" location="build" />
|
|
||||||
<property name="widget.dir" location="${build.dir}/widget" />
|
|
||||||
<property name="code.sign" value="false" />
|
|
||||||
<property name="generate.ext" value="cod" />
|
|
||||||
<property name="build.num.file" value="buildId.txt" />
|
|
||||||
|
|
||||||
<!-- BlackBerry WebWorks Packager for Tablets directory is required. -->
|
|
||||||
<fail unless="properties.playbook.bbwp.dir" message="Please specify BlackBerry WebWorks Packager directory using 'playbook.bbwp.dir' in your 'project.properties' file." />
|
|
||||||
|
|
||||||
<!-- OS identification -->
|
|
||||||
<condition property="isMacOSX" else="false">
|
|
||||||
<and>
|
|
||||||
<os family="mac" />
|
|
||||||
<os family="unix" />
|
|
||||||
</and>
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition property="bbwp" value="${properties.playbook.bbwp.dir}/bbwp" else="${properties.playbook.bbwp.dir}/bbwp.exe">
|
|
||||||
<equals arg1="${isMacOSX}" arg2="true" />
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition property="blackberry-deploy" value="${properties.playbook.bbwp.dir}/blackberry-tablet-sdk/bin/blackberry-deploy" else="${properties.playbook.bbwp.dir}/blackberry-tablet-sdk/bin/blackberry-deploy.bat">
|
|
||||||
<equals arg1="${isMacOSX}" arg2="true" />
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition property="blackberry-debugtokenrequest" value="${properties.playbook.bbwp.dir}/blackberry-tablet-sdk/bin/blackberry-debugtokenrequest" else="${properties.playbook.bbwp.dir}/blackberry-tablet-sdk/bin/blackberry-debugtokenrequest.bat">
|
|
||||||
<equals arg1="${isMacOSX}" arg2="true" />
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<!-- LOAD DEVICE -->
|
|
||||||
|
|
||||||
<target name="load-device" depends="package-app">
|
|
||||||
<bbwp code-sign="true" />
|
|
||||||
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-installApp" />
|
|
||||||
<arg value="-launchApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.playbook.device.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.playbook.device.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${build.dir}/${cod.name}.bar" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- DEBUG-LOAD DEVICE -->
|
|
||||||
|
|
||||||
<target name="debug-device" depends="package-app">
|
|
||||||
<if>
|
|
||||||
<equals arg1="${properties.playbook.device.pin}" arg2="" />
|
|
||||||
<then>
|
|
||||||
<echo>
|
|
||||||
If you fill in the playbook.device.pin value you can use debug tokens!
|
|
||||||
This means you won't have to worry about having a unique version in config.xml every time.
|
|
||||||
</echo>
|
|
||||||
<bbwp code-sign="true" debug="true" />
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<generate-debug-token />
|
|
||||||
<bbwp code-sign="false" debug="true" />
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-installApp" />
|
|
||||||
<arg value="-launchApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.playbook.device.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.playbook.device.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${build.dir}/${cod.name}.bar" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- LOAD SIMULATOR -->
|
|
||||||
|
|
||||||
<target name="load-simulator" depends="build">
|
|
||||||
|
|
||||||
<echo>This tool will not open the simulator for you </echo>
|
|
||||||
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-installApp" />
|
|
||||||
<arg value="-launchApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.playbook.sim.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.playbook.sim.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${build.dir}/${cod.name}.bar" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="debug-simulator" depends="package-app">
|
|
||||||
<bbwp code-sign="false" debug="true" />
|
|
||||||
<echo>This tool will not open the simulator for you </echo>
|
|
||||||
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-installApp" />
|
|
||||||
<arg value="-launchApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.playbook.sim.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.playbook.sim.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${build.dir}/${cod.name}.bar" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
<!-- PACKAGE-APP -->
|
|
||||||
|
|
||||||
<target name="package-app" depends="generate-cod-name, clean">
|
|
||||||
<!-- Copy the WebWorks application -->
|
|
||||||
<mkdir dir="${widget.dir}" />
|
|
||||||
<copy todir="${widget.dir}" overwrite="true">
|
|
||||||
<fileset dir="www" >
|
|
||||||
<exclude name="ext/**"/>
|
|
||||||
<exclude name="ext-air/**"/>
|
|
||||||
<exclude name="res/resourceBundles/**"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<!-- Update WebWorks Packager with the AIR APIs -->
|
|
||||||
<copy todir="${properties.playbook.bbwp.dir}\ext" overwrite="true">
|
|
||||||
<fileset dir="www/ext-air" excludes="README.md" />
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<!-- Package the WebWorks app by zipping the widget dir. -->
|
|
||||||
<mkdir dir="${build.dir}" />
|
|
||||||
<zip compress="false" destfile="${build.dir}/${cod.name}.zip" basedir="${widget.dir}" excludes="**/build/**,**/.settings/**,**/.project" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- BUILD -->
|
|
||||||
|
|
||||||
<target name="build" depends="package-app">
|
|
||||||
<bbwp code-sign="${code.sign}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- BBWP MACRO -->
|
|
||||||
|
|
||||||
<macrodef name="bbwp">
|
|
||||||
<attribute name="code-sign" default="false" />
|
|
||||||
<attribute name="debug" default="false" />
|
|
||||||
<sequential>
|
|
||||||
<!-- check if debug flag was passed in and set an appropriate flag for CLI exec of bbwp -->
|
|
||||||
<if>
|
|
||||||
<equals arg1="@{debug}" arg2="true" />
|
|
||||||
<then>
|
|
||||||
<property name="debug.flag" value="-d" />
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<property name="debug.flag" value="" />
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<buildnumber file="${build.num.file}" />
|
|
||||||
<if>
|
|
||||||
<equals arg1="@{code-sign}" arg2="true" />
|
|
||||||
<then>
|
|
||||||
<exec executable="${bbwp}">
|
|
||||||
<arg file="${build.dir}/${cod.name}.zip" />
|
|
||||||
<arg value="-gcsk" />
|
|
||||||
<arg value="${properties.playbook.sigtool.csk.password}" />
|
|
||||||
<arg value="-gp12" />
|
|
||||||
<arg value="${properties.playbook.sigtool.p12.password}" />
|
|
||||||
<arg value="-o" />
|
|
||||||
<arg file="${build.dir}" />
|
|
||||||
<arg line="${debug.flag} -buildId" />
|
|
||||||
<arg value="${build.number}" />
|
|
||||||
</exec>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<exec executable="${bbwp}">
|
|
||||||
<arg file="${build.dir}/${cod.name}.zip" />
|
|
||||||
<arg value="-o" />
|
|
||||||
<arg file="${build.dir}" />
|
|
||||||
<arg line="${debug.flag} -buildId" />
|
|
||||||
<arg value="${build.number}" />
|
|
||||||
</exec>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
|
|
||||||
<!-- install debug token" -->
|
|
||||||
<macrodef name="generate-debug-token">
|
|
||||||
<sequential>
|
|
||||||
<exec executable="${blackberry-debugtokenrequest}" dir="." failonerror="true">
|
|
||||||
<arg value="-storepass" />
|
|
||||||
<arg value="${properties.playbook.sigtool.csk.password}" />
|
|
||||||
<arg value="-deviceID" />
|
|
||||||
<arg value="0x${properties.playbook.device.pin}" />
|
|
||||||
<arg file="${properties.playbook.bbwp.dir}/debugtoken.bar" />
|
|
||||||
</exec>
|
|
||||||
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-installApp" />
|
|
||||||
<arg value="-launchApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.playbook.device.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.playbook.device.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${properties.playbook.bbwp.dir}/debugtoken.bar" />
|
|
||||||
</exec>
|
|
||||||
|
|
||||||
<replaceregexp
|
|
||||||
file="${properties.playbook.bbwp.dir}/bin/bbwp.properties"
|
|
||||||
match='<debug_token>.*<\/debug_token>'
|
|
||||||
replace='<debug_token>${properties.playbook.bbwp.dir}/debugtoken.bar</debug_token>'
|
|
||||||
byline='true'/>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
|
|
||||||
<!-- CLEAN -->
|
|
||||||
|
|
||||||
<target name="clean">
|
|
||||||
<delete dir="${build.dir}" />
|
|
||||||
<delete dir="${widget.dir}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- CLEAN DEVICE -->
|
|
||||||
|
|
||||||
<target name="clean-device" depends="generate-cod-name">
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-uninstallApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.playbook.device.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.playbook.device.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${build.dir}/${cod.name}.bar" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- CLEAN SIMULATOR -->
|
|
||||||
|
|
||||||
<target name="clean-simulator" depends="generate-cod-name">
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-uninstallApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.playbook.sim.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.playbook.sim.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${build.dir}/${cod.name}.bar" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- HELPER TASKS -->
|
|
||||||
|
|
||||||
<target name="generate-cod-name">
|
|
||||||
<xmlproperty file="res/config.xml" prefix="config.xml" />
|
|
||||||
<propertyregex property="cod.name"
|
|
||||||
input="${config.xml.widget.name}"
|
|
||||||
regexp="(\W+)"
|
|
||||||
replace=""
|
|
||||||
casesensitive="false"
|
|
||||||
global="true"
|
|
||||||
defaultValue="${config.xml.widget.name}" />
|
|
||||||
<echo message="Generated name: ${cod.name}.bar" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- HELP -->
|
|
||||||
|
|
||||||
<target name="help">
|
|
||||||
<echo>
|
|
||||||
NAME
|
|
||||||
${ant.project.name}
|
|
||||||
|
|
||||||
SYNOPSIS
|
|
||||||
ant TARGET COMMAND [-D<argument>=<value>]...
|
|
||||||
|
|
||||||
DESCRIPTION
|
|
||||||
You can build and deploy your project to a device or simulator.
|
|
||||||
|
|
||||||
TARGETS
|
|
||||||
blackberry ........ Builds a cod file and deploys to a device or simulator
|
|
||||||
|
|
||||||
playbook .......... Builds a bar file and deploys to a device or simulator
|
|
||||||
|
|
||||||
COMMANDS
|
|
||||||
help .............. Show this help menu.
|
|
||||||
ant, ant help
|
|
||||||
|
|
||||||
load-device ....... Builds and deploys project to a connected USB device.
|
|
||||||
ant load-device
|
|
||||||
|
|
||||||
load-simulator .... Builds and deploys project to default simulator.
|
|
||||||
ant load-simulator
|
|
||||||
|
|
||||||
build ............. Compiles and packages the project for deployment.
|
|
||||||
ant build
|
|
||||||
|
|
||||||
clean ............. Remove all files from the build/ directory.
|
|
||||||
ant clean
|
|
||||||
|
|
||||||
clean-device ...... Remove this project from the connected USB device.
|
|
||||||
ant clean-device
|
|
||||||
|
|
||||||
clean-simulator ... Remove this project from the simulator (takes a while).
|
|
||||||
ant clean-simulator
|
|
||||||
|
|
||||||
GETTING STARTED
|
|
||||||
1. Edit project.properties
|
|
||||||
|
|
||||||
2. <ant <TARGET> load-simulator> to run the project on the simulator
|
|
||||||
|
|
||||||
3. Customize your project by editing res/config.xml
|
|
||||||
|
|
||||||
4. To run the project on a BlackBerry device, you will need to obtain
|
|
||||||
code signing keys from RIM. Once you have the key, a project is
|
|
||||||
installed by connecting a BlackBerry via USB and running
|
|
||||||
<ant <TARGET> load-device>.
|
|
||||||
</echo>
|
|
||||||
</target>
|
|
||||||
</project>
|
|
@ -1,137 +0,0 @@
|
|||||||
# BlackBerry WebWorks Packager Directory
|
|
||||||
#
|
|
||||||
# The BlackBerry WebWorks Packager (bbwp) is required for compiling and packaging
|
|
||||||
# BlackBerry WebWorks applications for deployment to a BlackBerry device
|
|
||||||
# or simulator. The bbwp utility is installed with the standalone BlackBerry
|
|
||||||
# WebWorks SDK, and as part of the BlackBerry Web Plugin for Eclipse.
|
|
||||||
#
|
|
||||||
# Please specify the location of the BlackBerry WebWorks Packager in your
|
|
||||||
# environment.
|
|
||||||
#
|
|
||||||
# Typical location of bbwp for standalone BlackBerry WebWorks SDK installation:
|
|
||||||
# C:\Program Files (x86)\Research In Motion\BlackBerry Widget Packager
|
|
||||||
#
|
|
||||||
# Typical location of bbwp for BlackBerry Web Plugin for Eclipse installation:
|
|
||||||
# C:\Eclipse-3.5.2\plugins\net.rim.browser.tools.wcpc_1.0.0.201003191451-126\wcpc
|
|
||||||
#
|
|
||||||
# The ANT script is brittle and requires you to escape the backslashes.
|
|
||||||
# e.g. C:\some\path must be C:\\some\\path
|
|
||||||
#
|
|
||||||
# Please remember to:
|
|
||||||
# - Double escape your backslahses (i.e. \ must be \\)
|
|
||||||
# - Do not add a trailing slash (e.g. C:\some\path)
|
|
||||||
#
|
|
||||||
blackberry.bbwp.dir=/home/mopar/devel/priv/BB10-WebWorks-SDK-Linux
|
|
||||||
playbook.bbwp.dir=C:\\Program Files\\Research In Motion\\BlackBerry WebWorks SDK for TabletOS 2.1.0.6\\bbwp
|
|
||||||
qnx.bbwp.dir=/Developer/SDKs/Research In Motion/BlackBerry 10 WebWorks SDK 1.0.4.7
|
|
||||||
|
|
||||||
# (Optional) Simulator Directory
|
|
||||||
#
|
|
||||||
# If sim.dir is not specified, the build script will use the simulator directory
|
|
||||||
# within the BlackBerry WebWorks Packager.
|
|
||||||
#
|
|
||||||
blackberry.sim.dir=C:\\Program Files\\Research In Motion\BlackBerry WebWorks Packager\\simpack\\6.0.0.227
|
|
||||||
|
|
||||||
# (Optional) Simulator Binary
|
|
||||||
#
|
|
||||||
# If sim.bin is not specified, the build script will attempt to use the default
|
|
||||||
# simulator in the simulator directory.
|
|
||||||
#
|
|
||||||
#blackberry.sim.bin=9700.bat
|
|
||||||
|
|
||||||
# (Optional) MDS Directory
|
|
||||||
#
|
|
||||||
# If mds.dir is not specified, the build script will attempt to use the MDS that
|
|
||||||
# is installed with the BlackBerry WebWorks Packager.
|
|
||||||
#
|
|
||||||
blackberry.mds.dir=C:\\Program Files\\Research In Motion\\BlackBerry WebWorks Packager\\mds
|
|
||||||
|
|
||||||
# BlackBerry Code Signing Password
|
|
||||||
#
|
|
||||||
# If you leave this field blank, then
|
|
||||||
# the signing tool will prompt you each time
|
|
||||||
#
|
|
||||||
blackberry.sigtool.password=
|
|
||||||
|
|
||||||
# Playbook Code Signing Password
|
|
||||||
#
|
|
||||||
# If you leave these fields blank, then
|
|
||||||
# signing will fail
|
|
||||||
#
|
|
||||||
playbook.sigtool.csk.password=
|
|
||||||
playbook.sigtool.p12.password=
|
|
||||||
|
|
||||||
# BB10 Code Signing Password
|
|
||||||
qnx.sigtool.password=
|
|
||||||
|
|
||||||
# BlackBerry Simulator Password
|
|
||||||
#
|
|
||||||
# If you leave this field blank, then
|
|
||||||
# you cannot deploy to simulator
|
|
||||||
#
|
|
||||||
blackberry.sim.password=
|
|
||||||
|
|
||||||
# Playbook Simulator IP
|
|
||||||
#
|
|
||||||
# If you leave this field blank, then
|
|
||||||
# you cannot deploy to simulator
|
|
||||||
#
|
|
||||||
playbook.sim.ip=
|
|
||||||
|
|
||||||
# Playbook Simulator Password
|
|
||||||
#
|
|
||||||
# If you leave this field blank, then
|
|
||||||
# you cannot deploy to simulator
|
|
||||||
#
|
|
||||||
playbook.sim.password=
|
|
||||||
|
|
||||||
# Playbook Device IP
|
|
||||||
#
|
|
||||||
# If you leave this field blank, then
|
|
||||||
# you cannot deploy to device
|
|
||||||
#
|
|
||||||
playbook.device.ip=
|
|
||||||
|
|
||||||
# Playbook Device Password
|
|
||||||
#
|
|
||||||
# If you leave this field blank, then
|
|
||||||
# you cannot deploy to device
|
|
||||||
#
|
|
||||||
playbook.device.password=
|
|
||||||
# PlayBook Device PIN
|
|
||||||
#
|
|
||||||
# Fill this value in to use debug tokens when debuging on the device
|
|
||||||
playbook.device.pin=
|
|
||||||
|
|
||||||
# QNX Simulator IP
|
|
||||||
#
|
|
||||||
# If you leave this field blank, then
|
|
||||||
# you cannot deploy to simulator
|
|
||||||
#
|
|
||||||
qnx.sim.ip=
|
|
||||||
|
|
||||||
# QNX Simulator Password
|
|
||||||
#
|
|
||||||
# If you leave this field blank, then
|
|
||||||
# you cannot deploy to simulator
|
|
||||||
#
|
|
||||||
qnx.sim.password=
|
|
||||||
|
|
||||||
# QNX Device IP
|
|
||||||
#
|
|
||||||
# If you leave this field blank, then
|
|
||||||
# you cannot deploy to device
|
|
||||||
#
|
|
||||||
qnx.device.ip=
|
|
||||||
|
|
||||||
# QNX Device Password
|
|
||||||
#
|
|
||||||
# If you leave this field blank, then
|
|
||||||
# you cannot deploy to device
|
|
||||||
#
|
|
||||||
qnx.device.password=
|
|
||||||
|
|
||||||
# QNX Device PIN
|
|
||||||
#
|
|
||||||
# Fill this value in to use debug tokens when debuging on the device
|
|
||||||
qnx.device.pin=
|
|
@ -1,336 +0,0 @@
|
|||||||
<project default="help">
|
|
||||||
<!--
|
|
||||||
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.
|
|
||||||
-->
|
|
||||||
<!-- LOAD PROPERTIES -->
|
|
||||||
|
|
||||||
<property prefix="properties" file="project.properties" />
|
|
||||||
<property name="build.dir" location="build" />
|
|
||||||
<property name="widget.dir" location="${build.dir}/widget" />
|
|
||||||
<property name="code.sign" value="false" />
|
|
||||||
<property name="generate.ext" value="cod" />
|
|
||||||
<property name="build.num.file" value="buildId.txt" />
|
|
||||||
|
|
||||||
<!-- BlackBerry WebWorks Packager for Tablets directory is required. -->
|
|
||||||
<fail unless="properties.qnx.bbwp.dir" message="Please specify BlackBerry WebWorks Packager directory using 'qnx.bbwp.dir' in your 'project.properties' file." />
|
|
||||||
|
|
||||||
<!-- OS identification -->
|
|
||||||
<condition property="isMacOSX" else="false">
|
|
||||||
<and>
|
|
||||||
<os family="mac" />
|
|
||||||
<os family="unix" />
|
|
||||||
</and>
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition property="bbwp" value="${properties.qnx.bbwp.dir}/bbwp" else="${properties.qnx.bbwp.dir}/bbwp.bat">
|
|
||||||
<equals arg1="${isMacOSX}" arg2="true" />
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition property="blackberry-deploy" value="${properties.qnx.bbwp.dir}/dependencies/tools/bin/blackberry-deploy" else="${properties.qnx.bbwp.dir}/dependencies/tools/bin/blackberry-deploy.bat">
|
|
||||||
<equals arg1="${isMacOSX}" arg2="true" />
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition property="blackberry-debugtokenrequest" value="${properties.qnx.bbwp.dir}/dependencies/tools/bin/blackberry-debugtokenrequest" else="${properties.qnx.bbwp.dir}/dependencies/tools/bin/blackberry-debugtokenrequest.bat">
|
|
||||||
<equals arg1="${isMacOSX}" arg2="true" />
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<!-- LOAD DEVICE -->
|
|
||||||
|
|
||||||
<target name="load-device" depends="package-app">
|
|
||||||
<bbwp code-sign="true" />
|
|
||||||
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-installApp" />
|
|
||||||
<arg value="-launchApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.qnx.device.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.qnx.device.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${build.dir}/device/${cod.name}.bar" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- DEBUG-LOAD DEVICE -->
|
|
||||||
|
|
||||||
<target name="debug-device" depends="package-app">
|
|
||||||
<if>
|
|
||||||
<equals arg1="${properties.qnx.device.pin}" arg2="" />
|
|
||||||
<then>
|
|
||||||
<echo>
|
|
||||||
If you fill in the qnx.device.pin value you can use debug tokens!
|
|
||||||
This means you won't have to worry about having a unique version in config.xml every time.
|
|
||||||
</echo>
|
|
||||||
<bbwp code-sign="true" debug="true" />
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<generate-debug-token />
|
|
||||||
<bbwp code-sign="false" debug="true" />
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-installApp" />
|
|
||||||
<arg value="-launchApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.qnx.device.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.qnx.device.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${build.dir}/device/${cod.name}.bar" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- LOAD SIMULATOR -->
|
|
||||||
|
|
||||||
<target name="load-simulator" depends="build">
|
|
||||||
|
|
||||||
<echo>This tool will not open the simulator for you </echo>
|
|
||||||
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-installApp" />
|
|
||||||
<arg value="-launchApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.qnx.sim.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.qnx.sim.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${build.dir}/simulator/${cod.name}.bar" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="debug-simulator" depends="package-app">
|
|
||||||
|
|
||||||
<bbwp code-sign="false" debug="true" />
|
|
||||||
<echo>This tool will not open the simulator for you </echo>
|
|
||||||
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-installApp" />
|
|
||||||
<arg value="-launchApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.qnx.sim.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.qnx.sim.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${build.dir}/simulator/${cod.name}.bar" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- PACKAGE-APP -->
|
|
||||||
|
|
||||||
<target name="package-app" depends="generate-cod-name, clean">
|
|
||||||
<!-- Copy the WebWorks application -->
|
|
||||||
<mkdir dir="${widget.dir}" />
|
|
||||||
<copy todir="${widget.dir}" overwrite="true">
|
|
||||||
<fileset dir="www" >
|
|
||||||
<exclude name="ext/**"/>
|
|
||||||
<exclude name="ext-air/**"/>
|
|
||||||
<exclude name="res/resourceBundles/**"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<!-- Update WebWorks Packager with the QNX APIs -->
|
|
||||||
<copy todir="${properties.qnx.bbwp.dir}\Framework\ext" overwrite="true">
|
|
||||||
<fileset dir="www/ext-qnx" excludes="readme.md" />
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<!-- Package the WebWorks app by zipping the widget dir. -->
|
|
||||||
<mkdir dir="${build.dir}" />
|
|
||||||
<zip compress="false" destfile="${build.dir}/${cod.name}.zip" basedir="${widget.dir}" excludes="**/build/**,**/.settings/**,**/.project" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- BUILD -->
|
|
||||||
|
|
||||||
<target name="build" depends="package-app">
|
|
||||||
<bbwp code-sign="${code.sign}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- BBWP MACRO -->
|
|
||||||
|
|
||||||
<macrodef name="bbwp">
|
|
||||||
<attribute name="code-sign" default="false" />
|
|
||||||
<attribute name="debug" default="false" />
|
|
||||||
<sequential>
|
|
||||||
<!-- check if debug flag was passed in and set an appropriate flag for CLI exec of bbwp -->
|
|
||||||
<if>
|
|
||||||
<equals arg1="@{debug}" arg2="true" />
|
|
||||||
<then>
|
|
||||||
<property name="debug.flag" value="-d" />
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<property name="debug.flag" value="" />
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<buildnumber file="${build.num.file}" />
|
|
||||||
<if>
|
|
||||||
<equals arg1="@{code-sign}" arg2="true" />
|
|
||||||
<then>
|
|
||||||
<exec executable="${bbwp}">
|
|
||||||
<arg file="${build.dir}/${cod.name}.zip" />
|
|
||||||
<arg value="-g" />
|
|
||||||
<arg value="${properties.qnx.sigtool.password}" />
|
|
||||||
<arg value="-o" />
|
|
||||||
<arg file="${build.dir}" />
|
|
||||||
<arg line="${debug.flag} -b" />
|
|
||||||
<arg value="${build.number}" />
|
|
||||||
<arg value="--loglevel" />
|
|
||||||
<arg value="error" />
|
|
||||||
</exec>
|
|
||||||
</then>
|
|
||||||
<else>
|
|
||||||
<exec executable="${bbwp}">
|
|
||||||
<arg file="${build.dir}/${cod.name}.zip" />
|
|
||||||
<arg value="-o" />
|
|
||||||
<arg file="${build.dir}" />
|
|
||||||
<arg line="${debug.flag}" />
|
|
||||||
<arg value="--loglevel" />
|
|
||||||
<arg value="error" />
|
|
||||||
</exec>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
|
|
||||||
<!-- install debug token" -->
|
|
||||||
<macrodef name="generate-debug-token">
|
|
||||||
<sequential>
|
|
||||||
<exec executable="${blackberry-debugtokenrequest}" dir="." failonerror="true">
|
|
||||||
<arg value="-storepass" />
|
|
||||||
<arg value="${properties.qnx.sigtool.password}" />
|
|
||||||
<arg value="-deviceID" />
|
|
||||||
<arg value="0x${properties.qnx.device.pin}" />
|
|
||||||
<arg file="${properties.qnx.bbwp.dir}/debugtoken.bar" />
|
|
||||||
</exec>
|
|
||||||
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-installApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.qnx.device.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.qnx.device.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${properties.qnx.bbwp.dir}/debugtoken.bar" />
|
|
||||||
</exec>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- CLEAN -->
|
|
||||||
|
|
||||||
<target name="clean">
|
|
||||||
<delete dir="${build.dir}" />
|
|
||||||
<delete dir="${widget.dir}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- CLEAN DEVICE -->
|
|
||||||
|
|
||||||
<target name="clean-device" depends="generate-cod-name">
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-uninstallApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.qnx.device.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.qnx.device.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${build.dir}/device/${cod.name}.bar" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- CLEAN SIMULATOR -->
|
|
||||||
|
|
||||||
<target name="clean-simulator" depends="generate-cod-name">
|
|
||||||
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
|
||||||
<arg value="-uninstallApp" />
|
|
||||||
<arg value="-device" />
|
|
||||||
<arg value="${properties.qnx.sim.ip}" />
|
|
||||||
<arg value="-password" />
|
|
||||||
<arg value="${properties.qnx.sim.password}" />
|
|
||||||
<arg value="-package" />
|
|
||||||
<arg file="${build.dir}/simulator/${cod.name}.bar" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- HELPER TASKS -->
|
|
||||||
|
|
||||||
<target name="generate-cod-name">
|
|
||||||
<xmlproperty file="res/config.xml" prefix="config.xml" />
|
|
||||||
<propertyregex property="cod.name"
|
|
||||||
input="${config.xml.widget.name}"
|
|
||||||
regexp="(\W+)"
|
|
||||||
replace=""
|
|
||||||
casesensitive="false"
|
|
||||||
global="true"
|
|
||||||
defaultValue="${config.xml.widget.name}" />
|
|
||||||
<echo message="Generated name: ${cod.name}.bar" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- HELP -->
|
|
||||||
|
|
||||||
<target name="help">
|
|
||||||
<echo>
|
|
||||||
NAME
|
|
||||||
${ant.project.name}
|
|
||||||
|
|
||||||
SYNOPSIS
|
|
||||||
ant TARGET COMMAND [-D<argument>=<value>]...
|
|
||||||
|
|
||||||
DESCRIPTION
|
|
||||||
You can build and deploy your project to a device or simulator.
|
|
||||||
|
|
||||||
TARGETS
|
|
||||||
blackberry ........ Builds a cod file and deploys to a device or simulator
|
|
||||||
|
|
||||||
playbook .......... Builds a bar file and deploys to a device or simulator
|
|
||||||
|
|
||||||
COMMANDS
|
|
||||||
help .............. Show this help menu.
|
|
||||||
ant, ant help
|
|
||||||
|
|
||||||
load-device ....... Builds and deploys project to a connected USB device.
|
|
||||||
ant load-device
|
|
||||||
|
|
||||||
load-simulator .... Builds and deploys project to default simulator.
|
|
||||||
ant load-simulator
|
|
||||||
|
|
||||||
build ............. Compiles and packages the project for deployment.
|
|
||||||
ant build
|
|
||||||
|
|
||||||
clean ............. Remove all files from the build/ directory.
|
|
||||||
ant clean
|
|
||||||
|
|
||||||
clean-device ...... Remove this project from the connected USB device.
|
|
||||||
ant clean-device
|
|
||||||
|
|
||||||
clean-simulator ... Remove this project from the simulator (takes a while).
|
|
||||||
ant clean-simulator
|
|
||||||
|
|
||||||
GETTING STARTED
|
|
||||||
1. Edit project.properties
|
|
||||||
|
|
||||||
2. <ant <TARGET> load-simulator> to run the project on the simulator
|
|
||||||
|
|
||||||
3. Customize your project by editing res/config.xml
|
|
||||||
|
|
||||||
4. To run the project on a BlackBerry device, you will need to obtain
|
|
||||||
code signing keys from RIM. Once you have the key, a project is
|
|
||||||
installed by connecting a BlackBerry via USB and running
|
|
||||||
<ant <TARGET> load-device>.
|
|
||||||
</echo>
|
|
||||||
</target>
|
|
||||||
</project>
|
|
@ -1,112 +0,0 @@
|
|||||||
<?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="0.1" id="PointsWatcher">
|
|
||||||
|
|
||||||
<name>Points Watcher</name>
|
|
||||||
|
|
||||||
<description>
|
|
||||||
Points Watcher is the easiest way to keep track of your Weight Watcher's Points Plus system.
|
|
||||||
</description>
|
|
||||||
|
|
||||||
<author href="http://android.moparisthebest.org" email="android@moparisthebest.com">
|
|
||||||
Travis Burtrum (moparisthebest)
|
|
||||||
</author>
|
|
||||||
|
|
||||||
<license href="https://www.gnu.org/licenses/gpl.html">
|
|
||||||
Copyright (C) 2013 Travis Burtrum (moparisthebest)
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
</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>
|
|
Loading…
Reference in New Issue
Block a user