cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhigg...@apache.org
Subject docs commit: CB-5245 [BlackBerry10] Update platform guide for automatic device detection
Date Sun, 10 Nov 2013 20:39:32 GMT
Updated Branches:
  refs/heads/master 29a1cb10a -> 1b2418c9a


CB-5245 [BlackBerry10] Update platform guide for automatic device detection


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/1b2418c9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/1b2418c9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/1b2418c9

Branch: refs/heads/master
Commit: 1b2418c9a2acf78a03614ac92adb9feaa44cb145
Parents: 29a1cb1
Author: Bryan Higgins <bryan@bryanhiggins.net>
Authored: Sun Nov 10 15:38:21 2013 -0500
Committer: Bryan Higgins <bryan@bryanhiggins.net>
Committed: Sun Nov 10 15:38:21 2013 -0500

----------------------------------------------------------------------
 .../edge/guide/platforms/blackberry10/index.md  | 99 +++++++-------------
 1 file changed, 35 insertions(+), 64 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1b2418c9/docs/en/edge/guide/platforms/blackberry10/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/blackberry10/index.md b/docs/en/edge/guide/platforms/blackberry10/index.md
index b34700d..73c68f1 100644
--- a/docs/en/edge/guide/platforms/blackberry10/index.md
+++ b/docs/en/edge/guide/platforms/blackberry10/index.md
@@ -46,17 +46,13 @@ On Windows:
 
 * Append the Native SDK's install directory to the PATH, for example:
 
-    ;C:\bbndk\host_10_1_0_132\darwin\x86\usr\bin\
+    ;C:\bbndk\host_10_2_0_132\darwin\x86\usr\bin\
 
 On Mac and Linux:
 
 * Edit the `~/.bash_profile` file, adding a line such as the
   following, depending on where the Native SDK was installed:
 
-    $ export PATH=${PATH}:/Applications/bbndk/host_10_1_0_132/darwin/x86/usr/bin/
-
-  or for the 10.2 Native SDK:
-
     $ export PATH=${PATH}:/Applications/Momentics.app/host_10_2_0_15/darwin/x86/usr/bin/
 
 * Run the following to apply the change in the current session:
@@ -100,77 +96,35 @@ BlackBerry 10 Simulator.
 * [Getting Started](http://developer.blackberry.com/devzone/develop/simulator/blackberry_10_simulator_start.html)
 
 Before testing an app on either an emulator or a device, you need to
-add a _target_ to your project. Each is identified with a unique name,
-and associated with an IP address. You need to get the IP address from
-the emulator before you use it to view apps.
+enable development mode.
 
 Launch the emulator image, then choose __Settings__ from the home screen:
 
 ![](img/guide/platforms/blackberry10/bb_home.png)
 
 Navigate to the __Security and Privacy &rarr; Development Mode__
-section, enable the option, and obtain the IP address:
+section and enable the option:
 
 ![](img/guide/platforms/blackberry10/bb_devel.png)
 
-An additional set of command-line utilities are included when you set
-up the BlackBerry 10 platform for your project.  The following
-command, in this case invoked from the project top-level directory,
-associates a target named _emu_ with the IP address displayed above.
-
-* On Windows:
-
-    $ platforms\blackberry10\cordova\target.bat add emu 169.254.0.1 -t simulator
-
-* On Mac/Linux:
-
-    $ platforms/blackberry10/cordova/target add emu 169.254.0.1 -t simulator
-
 Then, run the `emulate` command to view the app:
 
-    $ cordova emulate blackberry10
+    $ cordova emulate blackberry10 --devicepass <password>
 
 ## Deploy to Device
 
-To deploy to a device, make sure it is plugged into your computer.
-Enable development mode and obtain the IP address as desribed in the
-emulator section above. You also need to obtain the PIN from the
-__Settings__ application under __About &rarr; Hardware__:
-
-![](img/guide/platforms/blackberry10/bb_pin.png)
-
-Run the target command-line utility to associate a name with an IP
-address, device password and PIN.
-
-* On Windows:
-
-    $ platforms\blackberry10\cordova\target.bat add mydevice 169.254.0.1 -t device --password
123456 --pin FFFF972E
-
-* On Mac/Linux:
-
-    $ platforms/blackberry10/cordova/target add mydevice 169.254.0.1 -t device --password
123456 --pin FFFF972E
-
-where:
-
-* `--password` refers to the password to unlock the device.
-
-* `--pin` refers to the device PIN obtained from the __Settings__ application.
+To deploy to a device, make sure it is plugged into your computer and
+development mode is enabled.
 
 Then, run the `run` command to view the app:
 
-    $ cordova run blackberry10
+    $ cordova run blackberry10 --devicepass <password>
 
 If a debug token is not yet set up for the device, an error message
-prompts you to use the platform run script with the password you
-provided when registering for signing keys.
-
-* On Windows:
-
-    $ platforms\blackberry10\cordova\run.bat --device --keystorepass mysecret
+prompts you to provide the password you defined when configuring your
+computer to sign applications.
 
-* On Mac/Linux:
-
-    $ platforms/blackberry10/cordova/run --device --keystorepass mysecret
+    $ cordova run blackberry10 --devicepass <password> --keystorepass <signing password>
 
 ## Debugging with WebInspector
 
@@ -185,18 +139,35 @@ browser.  For more information, see
 By default, running the `cordova build` command creates an unsigned
 _.bar_ package file suitable for testing on a device or simulator.
 
-You need to run a different `build` command to create a release
-version suitable for distribution through BlackBerry World.  It does
-not rely on the `cordova` CLI tool, and instead uses the following
-syntax:
+Use `--release` to create a release version suitable for distribution
+through BlackBerry World.
+
+    $ cordova build --release --keystorepass <signing password>
+
+The `--keystorepass` option specifies the password you defined when
+configuring your computer to sign applications.
+
+
+## Deploy to Other Locations
+
+The instructions above assume a device is plugged in via USB or a
+simulator is running on the local machine. It is also possible to
+deploy to other locations.
+
+An additional set of command-line utilities are included when you set
+up the BlackBerry 10 platform for your project.  The following
+command, in this case invoked from the project top-level directory,
+associates a target named _emu_ with an IP address.
 
 * On Windows:
 
-    $ platforms\blackberry10\cordova\build.bat --release --keystorepass mysecret
+    $ platforms\blackberry10\cordova\target.bat add emu 192.168.2.24 -t simulator
 
 * On Mac/Linux:
 
-    $ platforms/blackberry10/cordova/build --release --keystorepass mysecret
+    $ platforms/blackberry10/cordova/target add emu 192.168.2.24 -t simulator
 
-The `--keystorepass` option specifies the password you defined when
-configuring your computer to sign applications.
+Once the target is defined, you can provide it to the run command using
+`--target`:
+
+    $ cordova run blackberry10 --target=emu


Mime
View raw message