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
ekke
Posts: 1,502
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

HowTo manage different API Level with a little help from Git

the BB10 world was easy in January where we only had 10.0

 

then 10.1 comes up and many different SDK versions and Momentics mixed SDK's and API causing many developers to be confused ;-) (see all the threads about this)

 

now with Momentics 10.2 this is much easier:

  • API Level and SDK's are unb unbundled and easier to manage
  • you can have projects of different API Levels in the same workspace without restarting the IDE

 

this makes it much easier to work with different API Levels.

 

But this doesn't solve the problem to manage more then one API Level and different features. There are still 10.0 devices out there and on the other side you have to support Q10 with ShortCuts on 10.1 and upcoming 10.2 will bring again many new features / functionality

 

There's an article at BlackBerry Developer Blog and a Thread HowTo use Versioning Macros, but they only work in C++ - perhaps at some time in the future there will also be Versioning Macros for QML.

 

As always: there are more then one way to solve this. I personally don#t like Versioning Macros cluttering the code - so I'm using Git Branches and Cherry-Picking. If you're interested how this will work:

 

here's a blog I just wrote about this.

Perhaps it helps some of you to get some ideas HowTo solve API Levels in your own projects.

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

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
zezke
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (red Limited Edition)
My Carrier: Mobile Vikings

Re: HowTo manage different API Level with a little help from Git

Thanks ekke, interesting stuff! Btw, you still haven't replied on my Twitter question :smileywink:

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Please use plain text.
Developer
ekke
Posts: 1,502
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: HowTo manage different API Level with a little help from Git


zezke wrote:

Thanks ekke, interesting stuff! Btw, you still haven't replied on my Twitter question :smileywink:


what's your twitter account ?

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

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.