Monkey.jungle and crossover

Hi,

Trying to tweak a project to include the crossover.

I had previously used an exclusion annotation to separate code for semioctagon (which had getSubScreen) from the rest (which doesn't) but now there is the Instinct2 Crossover which is semioctagon but has not got a subscreen.

Short of doing a "WatchUI has :getSubScreen" which i would prefer to avoid, is there a way to distinguish it in the monkey jungle? It seems to share both shape and size with the Instinct2.

G

  • in the jungle you can use the qualifier

    instinctcrossover

  • The problem with monkey.jungle is that it's almost always very much tailored to each app. If I understand what you wrote then you have 2 features: semioctogon, subscreen. So probably your monkey.jungle file has (or should have :) excludeAnnotations like:

    semioctogon, subscreen
    no_semioctogon, subscreen
    semioctogon, no_subscreen
    no_semioctogon, no_subscreen

    (maybe some combinations are not possible, I'm not that much familiar with these "features")

    So now you'll need to use these 4 annotations on your functions: semioctogon, subscreen, no_semioctogon, no_subscreen and make sure you "cover" all the legal possibilities (don't worry, you'll find what's missing when you'll try to compile for all the devices you support)

  • I find in cases where "has" might not be the best, I'll use different mc files (typically just the view) and do this in the monkey.jungle:

    base.sourcePath=source;source-basic
    semioctagon.sourcePath=source;source-soss
    instinctcrossover.sourcePath=source;source-socross

    I think you end up with cleaner code than having a bunch of annotations, but I do use annotations in some cases.