Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC49B183E8 for ; Sat, 29 Aug 2015 00:42:12 +0000 (UTC) Received: (qmail 73311 invoked by uid 500); 29 Aug 2015 00:42:12 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 73174 invoked by uid 500); 29 Aug 2015 00:42:12 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 73159 invoked by uid 99); 29 Aug 2015 00:42:12 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Aug 2015 00:42:12 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 529DBE0974; Sat, 29 Aug 2015 00:42:12 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: dblotsky@apache.org To: commits@cordova.apache.org Date: Sat, 29 Aug 2015 00:42:13 -0000 Message-Id: <41c2ac51446b40c1bbaff2342b0acdd1@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/2] docs commit: Fixing illegal characters in docs. Fixing illegal characters in docs. Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/be0b6ab5 Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/be0b6ab5 Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/be0b6ab5 Branch: refs/heads/cordova-website Commit: be0b6ab5377bfea8a32daf2b4fc94efca6383a9d Parents: f5e76ed Author: Dmitry Blotsky Authored: Fri Aug 28 12:36:54 2015 -0700 Committer: Dmitry Blotsky Committed: Fri Aug 28 12:36:54 2015 -0700 ---------------------------------------------------------------------- .../sqlresultsetlist/sqlresultsetlist.md | 16 +- .../sqlresultsetlist/sqlresultsetlist.md | 16 +- .../sqlresultsetlist/sqlresultsetlist.md | 16 +- .../guide/getting-started/blackberry10/index.md | 370 +++++++++---------- 4 files changed, 209 insertions(+), 209 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/be0b6ab5/www/docs/en/1.5.0/phonegap/storage/sqlresultsetlist/sqlresultsetlist.md ---------------------------------------------------------------------- diff --git a/www/docs/en/1.5.0/phonegap/storage/sqlresultsetlist/sqlresultsetlist.md b/www/docs/en/1.5.0/phonegap/storage/sqlresultsetlist/sqlresultsetlist.md index 0c6a094..9b0ffc2 100644 --- a/www/docs/en/1.5.0/phonegap/storage/sqlresultsetlist/sqlresultsetlist.md +++ b/www/docs/en/1.5.0/phonegap/storage/sqlresultsetlist/sqlresultsetlist.md @@ -52,17 +52,17 @@ Execute SQL Quick Example } function querySuccess(tx, results) { - var len = results.rows.length; - ��� console.log("DEMO table: " + len + " rows found."); - ��� for (var i=0; i http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/be0b6ab5/www/docs/en/1.6.0/cordova/storage/sqlresultsetlist/sqlresultsetlist.md ---------------------------------------------------------------------- diff --git a/www/docs/en/1.6.0/cordova/storage/sqlresultsetlist/sqlresultsetlist.md b/www/docs/en/1.6.0/cordova/storage/sqlresultsetlist/sqlresultsetlist.md index 2cd43e9..91af2ab 100644 --- a/www/docs/en/1.6.0/cordova/storage/sqlresultsetlist/sqlresultsetlist.md +++ b/www/docs/en/1.6.0/cordova/storage/sqlresultsetlist/sqlresultsetlist.md @@ -52,17 +52,17 @@ Execute SQL Quick Example } function querySuccess(tx, results) { - var len = results.rows.length; - ��� console.log("DEMO table: " + len + " rows found."); - ��� for (var i=0; i http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/be0b6ab5/www/docs/en/1.6.1/cordova/storage/sqlresultsetlist/sqlresultsetlist.md ---------------------------------------------------------------------- diff --git a/www/docs/en/1.6.1/cordova/storage/sqlresultsetlist/sqlresultsetlist.md b/www/docs/en/1.6.1/cordova/storage/sqlresultsetlist/sqlresultsetlist.md index 0918583..254f15e 100644 --- a/www/docs/en/1.6.1/cordova/storage/sqlresultsetlist/sqlresultsetlist.md +++ b/www/docs/en/1.6.1/cordova/storage/sqlresultsetlist/sqlresultsetlist.md @@ -52,17 +52,17 @@ Execute SQL Quick Example } function querySuccess(tx, results) { - var len = results.rows.length; - ��� console.log("DEMO table: " + len + " rows found."); - ��� for (var i=0; i http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/be0b6ab5/www/docs/en/2.8.0/guide/getting-started/blackberry10/index.md ---------------------------------------------------------------------- diff --git a/www/docs/en/2.8.0/guide/getting-started/blackberry10/index.md b/www/docs/en/2.8.0/guide/getting-started/blackberry10/index.md index e5e6b21..a801948 100644 --- a/www/docs/en/2.8.0/guide/getting-started/blackberry10/index.md +++ b/www/docs/en/2.8.0/guide/getting-started/blackberry10/index.md @@ -1,185 +1,185 @@ ---- -license: 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. ---- - -Getting Started with BlackBerry 10 -================================== - -Apache Cordova is an application development platform that allows you to use common web technologies�primarily HTML5, JavaScript, and CSS�to create applications for mobile devices. Cordova uses a standard set of APIs to access common device features. Additional plugins allow you to access BlackBerry specific APIs, so that you can extend your application to tightly integrate with the BlackBerry 10 OS. - -Requirements ------------- - -Cordova for BlackBerry has the following software requirements: - -- Windows XP (32-bit) or Windows 7 (32-bit and 64-bit) or Mac OSX 10.6.4+ -- node.js (> 0.9.9) [Download node.js now](http://nodejs.org/) -- BlackBerry 10 Native SDK. [Download the BlackBerry 10 Native SDK now.](http://developer.blackberry.com/native/download/) - -Setting up your signing keys ----------------------------- - -Before starting development, you�ll need to register for your code signing key and debug token. The signing key allows you to sign your completed app so that you can distribute it through BlackBerry World. The debug token allows you to test an unsigned app on a BlackBerry 10 device. You do not need to create and install the debug token yourself; if you supply the keystore password, the build script will create and install the debug token for you. - -- [Register for your code signing key now.](https://www.blackberry.com/SignedKeys/codesigning.html) -- [Set your computer up for code signing. ](http://developer.blackberry.com/html5/documentation/set_up_for_signing.html) -- [Learn more about debug tokens.](http://developer.blackberry.com/html5/documentation/running_your_bb10_app_2008471_11.html) - -Creating your project -------------------------- - -To create a new project, you use the `create` command to set up the folder structure for your app. - -1. On the command line, navigate to the folder where you extracted Cordova. -2. Run the `create` command using the following syntax: - ``` - bin/create - ``` - -This command creates the folder structure for your project at the specified location. All of your project resource files should be stored in the **/www folder, or in a subfolder within it. - -Adding and managing targets ---------------------------- - -A target refers to a BlackBerry device or simulator that you will use to test your app. Targets are added directly to your project; you can add multiple targets to your project, each with a unique name. Then, when you want to deploy your app to a particular target, you can simply refer to that target by name when you run your script. - -###Add a target - -To add a target, on the command line, type the following command: - -``` -/cordova/target add [-t ] [-p | --password ] [--pin ] -``` - -where - -- `` specifies a unique name for the target. -- `` specifies the ip address of the BlackBerry device or simulator. -- `-t ` specifies the target type. If not provided, the default value is device. -- `-p|--password ` specifies the password for the device or simulator. This is required only if the device or simulator is password protected. -- `--pin ` specifies the PIN of the BlackBerry device, which identifies that device as a valid host for the debug token. This argument is required only if you are creating a debug token. - -###Remove a target - -To remove a target, on the command line, type the following command: - -``` -/cordova/target remove -``` - -###Set a target as the default - -To specify a specific target as the default, on the command line, type the following command: - -``` -/cordova/target default -``` - -Building your app ------------------ - -To build your app, run the build script. You can build the app in either release mode or in debug mode. - -- When you build the app in release mode, you are preparing it for distribution through BlackBerry World. The script packages your app resources and plugins together in a .bar file, then signs the app. -- When you build the app in debug mode, you are preparing it to be tested. The script packages your app resources and plugins together in a .bar file, but does not sign it. The script can also deploy the app onto a previously defined target. If you have not already created and installed a debug token, you can supply the keystore password, and the build script will create and install the debug token for you as well. - - Debug mode also enables Web Inspector for the app, which allows you to remotely inspect the source code. A prompt displays the URL that you can use to connect to and inspect your app. For more information on using Web Inspector, see [Debugging using Web Inspector](http://developer.blackberry.com/html5/documentation/web_inspector_overview_1553586_11.html). - -###Build your app in release mode - -To build your app in release mode, on the command line, type the following command: - -``` -/cordova/build release -k|--keystorepass [-b|--buildId ] [-p|--params ] -``` - -where - -- `-k|--keystorepass ` specifies the password you defined when you configured your computer to sign applications. -- `-b|--buildId ` specifies the build version number of your application. Typically, this number should be incremented from the previous signed version. This argument is optional. -- `-p|--params ` specifies a JSON file containing additional parameters to pass to downstream tools. This argument is optional. - -###Build your app in debug mode - -To build your app in release mode, on the command line, type the following command: - -``` -/cordova/build debug [] [-k|--keystorepass ] [-p|--params ] [-ll|--loglevel ] -``` - -where - -- `` specifies the name of a previously added target. If `` is not specified, the default target is used, if one has been created. This argument is only required if you want the script to deploy your app to a BlackBerry device or simulator and you have not created a default target. Additionally, if `` is a device, then that device must be connected to your computer by USB connection or be connected to the same Wi-Fi network as your computer. -- `-k|--keystorepass ` specifies the password you defined when you configured your computer to sign applications. This password is also used to create your debug token. This argument is only required if you want the script to create and install the debug token for you. -- `-p|--params ` specifies a JSON file containing additional parameters to pass to downstream tools. -- `-ll|--loglevel ` specifies the log level. The log level may be one of `error`, `warn`, or `verbose`. - -Note that all of these parameters are optional. If you have previously defined a default target (and installed a debug token, if that target is a BlackBerry device), you can run the script with no arguments, and the script will package your app and deploy it to the default target. For example: - -``` -/cordova/build debug -``` - -Deploying an app -------------------------- - -You can test your app using either a BlackBerry device or a simulator. Before deploying your app, you must first create a target for the device or simulator you want to deploy your app to. - -The run script will first build your app. If you intend to deploy an app to a physical device for testing, you must first install a debug token on that device. If you specify the `--keystorepass ` argument when running the run script, the script will create and install the debug token for you. You do not need a debug token to test your app on a simulator, even if that app is unsigned. - -To deploy your app to a device or simulator, on a command line type the following command: - -``` -/cordova/run [--no-build] -``` - -where -- `` specifies the name of a previously added target. If `` is a device, then that device must be connected to your computer by USB connection or be connected to the same Wi-Fi network as your computer. - -- `-no--build` will use the most recently built version of the application rather than re-building. This is useful to test an application in release mode. - -Adding and managing plugins ---------------------------- - -To add additional functionality that is outside of the core features of Cordova, you�ll need to add plugins. A plugin represents a set of APIs that provide access to additional features of the platform. - -In order to use a plugin, you must first add it into your project. Once added into your project, the plugin will be bundled with your project during the build process, to ensure that your app has access to all the APIs it needs. - -###Add a plugin - -To add a plugin, on the command line, type the following command: - -``` -/cordova/plugin add -``` - -###Remove a plugin - -To remove a plugin, on the command line, type the following command: - -``` -/cordova/plugin rm -``` - -###View a list of installed plugins - -To view a list of installed plugins, on the command line, type the following command: - -``` -/cordova/plugin ls -``` +--- +license: 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. +--- + +Getting Started with BlackBerry 10 +================================== + +Apache Cordova is an application development platform that allows you to use common web technologies - primarily HTML5, JavaScript, and CSS - to create applications for mobile devices. Cordova uses a standard set of APIs to access common device features. Additional plugins allow you to access BlackBerry specific APIs, so that you can extend your application to tightly integrate with the BlackBerry 10 OS. + +Requirements +------------ + +Cordova for BlackBerry has the following software requirements: + +- Windows XP (32-bit) or Windows 7 (32-bit and 64-bit) or Mac OSX 10.6.4+ +- node.js (> 0.9.9) [Download node.js now](http://nodejs.org/) +- BlackBerry 10 Native SDK. [Download the BlackBerry 10 Native SDK now.](http://developer.blackberry.com/native/download/) + +Setting up your signing keys +---------------------------- + +Before starting development, you'll need to register for your code signing key and debug token. The signing key allows you to sign your completed app so that you can distribute it through BlackBerry World. The debug token allows you to test an unsigned app on a BlackBerry 10 device. You do not need to create and install the debug token yourself; if you supply the keystore password, the build script will create and install the debug token for you. + +- [Register for your code signing key now.](https://www.blackberry.com/SignedKeys/codesigning.html) +- [Set your computer up for code signing. ](http://developer.blackberry.com/html5/documentation/set_up_for_signing.html) +- [Learn more about debug tokens.](http://developer.blackberry.com/html5/documentation/running_your_bb10_app_2008471_11.html) + +Creating your project +------------------------- + +To create a new project, you use the `create` command to set up the folder structure for your app. + +1. On the command line, navigate to the folder where you extracted Cordova. +2. Run the `create` command using the following syntax: + ``` + bin/create + ``` + +This command creates the folder structure for your project at the specified location. All of your project resource files should be stored in the **/www folder, or in a subfolder within it. + +Adding and managing targets +--------------------------- + +A target refers to a BlackBerry device or simulator that you will use to test your app. Targets are added directly to your project; you can add multiple targets to your project, each with a unique name. Then, when you want to deploy your app to a particular target, you can simply refer to that target by name when you run your script. + +###Add a target + +To add a target, on the command line, type the following command: + +``` +/cordova/target add [-t ] [-p | --password ] [--pin ] +``` + +where + +- `` specifies a unique name for the target. +- `` specifies the ip address of the BlackBerry device or simulator. +- `-t ` specifies the target type. If not provided, the default value is device. +- `-p|--password ` specifies the password for the device or simulator. This is required only if the device or simulator is password protected. +- `--pin ` specifies the PIN of the BlackBerry device, which identifies that device as a valid host for the debug token. This argument is required only if you are creating a debug token. + +###Remove a target + +To remove a target, on the command line, type the following command: + +``` +/cordova/target remove +``` + +###Set a target as the default + +To specify a specific target as the default, on the command line, type the following command: + +``` +/cordova/target default +``` + +Building your app +----------------- + +To build your app, run the build script. You can build the app in either release mode or in debug mode. + +- When you build the app in release mode, you are preparing it for distribution through BlackBerry World. The script packages your app resources and plugins together in a .bar file, then signs the app. +- When you build the app in debug mode, you are preparing it to be tested. The script packages your app resources and plugins together in a .bar file, but does not sign it. The script can also deploy the app onto a previously defined target. If you have not already created and installed a debug token, you can supply the keystore password, and the build script will create and install the debug token for you as well. + + Debug mode also enables Web Inspector for the app, which allows you to remotely inspect the source code. A prompt displays the URL that you can use to connect to and inspect your app. For more information on using Web Inspector, see [Debugging using Web Inspector](http://developer.blackberry.com/html5/documentation/web_inspector_overview_1553586_11.html). + +###Build your app in release mode + +To build your app in release mode, on the command line, type the following command: + +``` +/cordova/build release -k|--keystorepass [-b|--buildId ] [-p|--params ] +``` + +where + +- `-k|--keystorepass ` specifies the password you defined when you configured your computer to sign applications. +- `-b|--buildId ` specifies the build version number of your application. Typically, this number should be incremented from the previous signed version. This argument is optional. +- `-p|--params ` specifies a JSON file containing additional parameters to pass to downstream tools. This argument is optional. + +###Build your app in debug mode + +To build your app in release mode, on the command line, type the following command: + +``` +/cordova/build debug [] [-k|--keystorepass ] [-p|--params ] [-ll|--loglevel ] +``` + +where + +- `` specifies the name of a previously added target. If `` is not specified, the default target is used, if one has been created. This argument is only required if you want the script to deploy your app to a BlackBerry device or simulator and you have not created a default target. Additionally, if `` is a device, then that device must be connected to your computer by USB connection or be connected to the same Wi-Fi network as your computer. +- `-k|--keystorepass ` specifies the password you defined when you configured your computer to sign applications. This password is also used to create your debug token. This argument is only required if you want the script to create and install the debug token for you. +- `-p|--params ` specifies a JSON file containing additional parameters to pass to downstream tools. +- `-ll|--loglevel ` specifies the log level. The log level may be one of `error`, `warn`, or `verbose`. + +Note that all of these parameters are optional. If you have previously defined a default target (and installed a debug token, if that target is a BlackBerry device), you can run the script with no arguments, and the script will package your app and deploy it to the default target. For example: + +``` +/cordova/build debug +``` + +Deploying an app +------------------------- + +You can test your app using either a BlackBerry device or a simulator. Before deploying your app, you must first create a target for the device or simulator you want to deploy your app to. + +The run script will first build your app. If you intend to deploy an app to a physical device for testing, you must first install a debug token on that device. If you specify the `--keystorepass ` argument when running the run script, the script will create and install the debug token for you. You do not need a debug token to test your app on a simulator, even if that app is unsigned. + +To deploy your app to a device or simulator, on a command line type the following command: + +``` +/cordova/run [--no-build] +``` + +where +- `` specifies the name of a previously added target. If `` is a device, then that device must be connected to your computer by USB connection or be connected to the same Wi-Fi network as your computer. + +- `-no--build` will use the most recently built version of the application rather than re-building. This is useful to test an application in release mode. + +Adding and managing plugins +--------------------------- + +To add additional functionality that is outside of the core features of Cordova, you'll need to add plugins. A plugin represents a set of APIs that provide access to additional features of the platform. + +In order to use a plugin, you must first add it into your project. Once added into your project, the plugin will be bundled with your project during the build process, to ensure that your app has access to all the APIs it needs. + +###Add a plugin + +To add a plugin, on the command line, type the following command: + +``` +/cordova/plugin add +``` + +###Remove a plugin + +To remove a plugin, on the command line, type the following command: + +``` +/cordova/plugin rm +``` + +###View a list of installed plugins + +To view a list of installed plugins, on the command line, type the following command: + +``` +/cordova/plugin ls +``` --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org