Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 554
Registered: ‎10-31-2009
My Device: Torch 9800, Bold 9700
My Carrier: Movistar, Telenor
Accepted Solution

Unzip API in WebWorks-Community-APIs

[ Edited ]

Followed instructions except point 3 where it says "compass". Changed to "unzip"

 

  1. Clone the repo to your local machine
  2. Locate your BlackBerry WebWorks SDK C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK \Framework\ext (Windows) or ~/SDKs/BlackBerry 10 WebWorks SDK /Framework/ext (Mac)
  3. Create a new directory community.compass in the ext directory
  4. Copy output/community.unzip/unzipJnext.so to /path/to/sdk/ext/community.unzip/device/unzipJnext.so
  5. Copy everything in javascript_src to /path/to/sdk/ext/community.unzip 

so my "ext" folder contains a folder "community.unzip" and this folder contains:

  •  client.js
  • index.js
  • manifest.json
  • and a folder "device"  containing  unzipJnext.so

my config.xml contains

<feature id="community.unzip" required=true version=1.0.0.0" />

 

all above triple checked

 

refering to community.unzip.unzipPackage

gives message "community.unzip is not defined"

 

And a question. The sample  index file has this statement

 

    <script type="text/javascript" src="local:///chrome/webworks.js"></script>

 

What? Why?  it get another message on this one  "failed to load resource"

If everything seems to be under control, you're just not driving fast enough
-Mario Andretti-
Developer
Posts: 554
Registered: ‎10-31-2009
My Device: Torch 9800, Bold 9700
My Carrier: Movistar, Telenor

Re: Unzip API in WebWorks-Community-APIs

Been doing some thinking. I do not see any link between the combo Chrome/Ripple where the simulator operates and the ext folder buried deep down in the SDK folder. No wonder the ripple simulator cannot find the extension.

 

Tried to put the folder  "community.unzip"  in the "ext" folder in the project folder. Did not help

 

Maybe this only works for a packaged product???

If everything seems to be under control, you're just not driving fast enough
-Mario Andretti-
BlackBerry Development Advisor
Posts: 762
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Unzip API in WebWorks-Community-APIs

Hello,

 

You're right.  The extension will only work in a packages application.  Not in Ripple.

Developer
Posts: 554
Registered: ‎10-31-2009
My Device: Torch 9800, Bold 9700
My Carrier: Movistar, Telenor

Re: Unzip API in WebWorks-Community-APIs

To bad.

 

Thanks for the info

 

Cant say I like the simulator. Got another posting about it

If everything seems to be under control, you're just not driving fast enough
-Mario Andretti-
Developer
Posts: 1,230
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Unzip API in WebWorks-Community-APIs

Hi Ingvar

 

I know what's wrong but am doing a rebuild on my main dev machine so sorry if this is sketchy

 

Yep - Zip fails but I think may work on a Sim (Ripple broken)

 

To elucidate on this answer the community UnZip does FS so you can see what happens next

 

Woo - Win7 again!

 

Soz mate - gotta get the system working - more on this later




Click the like button if you find my posts useful!