Acknowledged
CIQQA-4127

Add device identifier variable to Monkey Jungle

It would be very helpful if Monkey Jungle provided a built-in variable for the target device identifier (e.g. fr255, fenix7) during the build process. Currently, device-specific handling often requires defining paths per device. Introducing a predefined variable such as $(device) that resolves to the current target device would enable dynamic inclusion of device-specific directories in source and resource paths and remove the need to define paths separately for each device.

For example:

base.sourcePath=somedirectory/$(device)
Parents
  • why does the epix2pro47mm need its own source files, for example? 

    One use case for device-specific source folders is device-specific properties. I am not a fan of CIQ resource properties, because they cannot be changed once the app is installed. When an update is installed, the previous property value is kept, even if the update contains a new one.

    Instead, I use a singleton base class that defines the default property values and checks whether an override class exists. These override classes are placed in the device-specific source folders.

Comment
  • why does the epix2pro47mm need its own source files, for example? 

    One use case for device-specific source folders is device-specific properties. I am not a fan of CIQ resource properties, because they cannot be changed once the app is installed. When an update is installed, the previous property value is kept, even if the update contains a new one.

    Instead, I use a singleton base class that defines the default property values and checks whether an override class exists. These override classes are placed in the device-specific source folders.

Children
No Data