Module: Blackberry

Included in:
PhoneGap
Defined in:
lib/devices/blackberry.rb

Instance Method Summary collapse

Instance Method Details

#blackberry_supported?Boolean

FIXME

Returns:

  • (Boolean)


3
4
5
# File 'lib/devices/blackberry.rb', line 3

def blackberry_supported?
  false
end

#build_blackberry(path) ⇒ Object

FIXME



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/devices/blackberry.rb', line 8

def build_blackberry(path)
=begin
Blackberry uses something rapc.exe to do builds.
http://www.blackberry.com/developers/javaknowledge/bbJDE/kpa0203190506.shtml

From the command line something like this should work:

>> rapc.exe import=c:\foo\net_rim_api.jar codename=phonegap-bitches -midlet jad=my-app-properties-metadata.jad @file-list.txt

"@file-list.txt" is a newline separated list of .java files to include

It requires (at leaset) rapc.exe from the Blackberry JDE (which I am
not sure if we can redistribute or not) and JDK.

To sign the app from the command line you do this:

>> java -jar "SignatureTool.jar" -a -c -p <mypass> c:\phonegap-bitches.cod


There is also a handy projects that links all this to ANT tasks if we
want http://bb-ant-tools.sourceforge.net/
=end     
  FileUtils.mkdir_p(File.join(bin,'blackberry')) if blackberry_supported?
end