ObjectStore sample in 2.1

Former Member
Former Member
I found something interesting in the ObjectStore example in 2.1.

If you compile with -a, -i, -u, -p arguments (apparently not needed in 2.1 anymore) you will get an error on runtime (when tapping) in DefaultPropertiesView.mc:88 , which is:
onTap(null);

while the method signature is:
function onTap()

If you leave the a,i,u,p compile arguments out, you don't get the error.

Are optional method parameters something new and it is OK to add arguments in such way in 2.1? Or it's a bug?
  • Former Member
    Former Member
    I found something interesting in the ObjectStore example in 2.1.

    If you compile with -a, -i, -u, -p arguments (apparently not needed in 2.1 anymore) you will get an error on runtime (when tapping) in DefaultPropertiesView.mc:88 , which is:
    onTap(null);

    while the method signature is:
    function onTap()

    If you leave the a,i,u,p compile arguments out, you don't get the error.

    Are optional method parameters something new and it is OK to add arguments in such way in 2.1? Or it's a bug?


    Starting in 2.1.0 we began packaging some of the SDK files into the compiler's JAR file so the JAR could be used as a stand alone executable (outside of the SDK). This was intended to make it easier for other teams at Garmin to pull in CIQ features and as a side effect we thought it would be nice for developers using the command line to not have to specify as many arguments. You still should be able to specify those values and if you do the files you specify should be used instead of the packaged files.

    As far as the app crashing when you specify those files it's possibly the versions you're supplying aren't compatible with the source code. Could you send the copies of the files you're passing to the compiler to [email][email protected][/email] so we can investigate this? Also please include a link to this forum thread so we'll know where the discussion originated. Thanks!
  • Former Member
    Former Member
    It is the ObjectStore sample in 2.1.