Correct syntax for jungle file? - excludeAnnotation

Former Member
Former Member
I'm trying to use new 2.4.1 feature of excludeAnnotation - and according to the documentation - this should be done through the jungle file.
However below example is not working at all (my intention is to have a specific version for devices with low memory available). First line is by default, my line is the second one (in fact - there will be several such lines for devices with low memory available)

project.manifest = manifest.xml
approachs60.excludeAnnotation=memoryAbove64


giving error:
BUILD: line 3:29 extraneous input '=' expecting...

Anyone successfully used excludeAnnotation? I guess- I'm doing kind of stupid error...
Thanks!
  • Former Member
    Former Member
    Hey StachUman,

    There was a typo in our original doc. It will be updated with the next release. It should be "excludeAnnotations" with an 's' at the end.

    Thanks,
    -Coleman
  • Former Member
    Former Member
    Thanks a lot! That's it - in documentation this is still excludeAnnotation (without 's')...
  • I have set up an 'excludeAnnotations' in my monkey.jungle file and every thing compiles OK however I can still call the function I have excluded in the simulator no matter what device I 'run as'. Does the simulator reproduce the 'excludeAnnotations' capability and reduce code size or do I need to test this on a device ? Thanks
  • The answer is 'Yes the simulator does work with excludeAnnotations'. You just have to get your 'path' right for the property.

    Example:

    fenix3_hr.excludeAnnotations = $(fenix3_hr.excludeAnnotations);background
    fenix3_hr.excludeAnnotations = $(fenix3_hr.excludeAnnotations);getSensorHistoryAllowed

    not

    fenix3_hr.excludeAnnotations = background
    fenix3_hr.excludeAnnotations = getSensorHistoryAllowed