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

Native Development

Reply
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone
Accepted Solution

copy project and BlackBerry World APP identical ?

[ Edited ]

I know, that I always have to use the same signing key deploying Apps to BlackBerry World - otherwise it would be "another" app and all sandbox data lost

 

What I don't know:

what are all the criteria to be sure, that the App is the "same" from BB World POV ?

 

my guess:

 

it's only the package name from bar-descriptor.xml

 

am I right ?

 

I'm asking because I have some "old" apps created from older SDK's and IDE's and I want to create them new in a new workspace from newest IDE.

 

so I think this will be ok:

 

  1. create a new Project in Eclipse with the same name
  2. use same package name in bar-descriptor (edited: same as the <id> in .xml - thx Peter Hansen)
  3. copy over from old project:
  4. /src
  5. /assets
  6. /translations/*.ts
  7. /icon.png
  8. make adjustments in .pro (add libs used by the project)
  9. build project and see if compile errors

 

if all ok,

  1. delete the old project content from local Git repo, copy the new one
  2. check the differences
  3. commit and push
  4. go on with normal work

 

next time deploying to BB would be recognized as a new release of the existing app

 

Do you think this is safe ?

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: copy project and BlackBerry World APP identical ?

It should be package <id>, not name. Also the authorId would have to be the same, but of course that's required just to use the same signing keys, so it's kind of forced on your.

The <name> field is, I believe, not relevant, which is good because you should be able to change the name of the app without it losing access to the sandbox data on upgrade.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: copy project and BlackBerry World APP identical ?


peter9477 wrote:
It should be package <id>, not name. Also the authorId would have to be the same, but of course that's required just to use the same signing keys, so it's kind of forced on your.

The <name> field is, I believe, not relevant, which is good because you should be able to change the name of the app without it losing access to the sandbox data on upgrade.

I meant the Package Name, not the App name

but you're right: the Package Name is stored as <id> in bar-descriptor.xml

 

thx Peter

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 410
Registered: ‎06-03-2010
My Device: Z10 Red
My Carrier: Free

Re: copy project and BlackBerry World APP identical ?

Are you sure that a signing keys cannot have different authors?

BlackBerry Development Advisor
Posts: 15,813
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: copy project and BlackBerry World APP identical ?

Author ID is unique to your code signing key.  Author name can change and produce an upgradeable application.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: copy project and BlackBerry World APP identical ?


MSohm wrote:

Author ID is unique to your code signing key.  Author name can change and produce an upgradeable application.


Mark,

thanks verifying this

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 889
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

Re: copy project and BlackBerry World APP identical ?

One of my apps (PIxelated) has gone from being an AIR based app on the PlayBook to being a Cascades based app on BB10. Besides using the same keys, the other component that I needed to match was the Package Name (which is the <id> attribute in your xml).


Read my thoughts on BlackBerry Development at news.ebscer.com
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: copy project and BlackBerry World APP identical ?

so my guesses were correct - thanks to all confirming this

now I have a better feeling to create new projects with new IDE in new workspace to be the container for the old one

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner