I have to update my widget to add the glance view functionality for devices that support it (at the moment fenix 6 and MARQ series).
The compiler is smart enough:
- it ignore the “(:glance)” related code for devices that don’t support glance view mode
- it include the “(:glance)” related code for devices that support glance view mode
My idea is to build the app package (the .iq file) by setting the minimum SDK version to 1.3.x (I have to support a lot of old and new devices). This approach can work (I tested it with the simulator for all the devices I want to support).
The problem: the export package tool chooses the minimum allowed SDK (>= 1.3.x) to do the build and so it chooses the SDK 3.0.x instead of the required SDK 3.1.x for devices the can support the glance mode.
There is a workaround for this? Is it possible to set the minimum SDK to 1.3.x but force the building tool to use the SDK 3.1.x for some specific devices?
Other approach: build two .iq package, one based on the minimum SDK 1.3.x and the other one based on the minimum SDK 3.1.x. In this case I have to put two packages on the Garmin connect IQ store (and therefore two different widgets). Is it possible to merge the two .iq file in some way?
Thanks