dansiegel / Mobile.BuildTools

The Mobile.BuildTools makes it easier to develop code bases in a clean, consistent, secure, and configurable way. Determine at Build which environment your app needs to run on, and what Client Secrets it should have. Plus many more amazing features!
http://mobilebuildtools.com
MIT License
228 stars 29 forks source link

Provide the ability to specify more specific image assets #276

Open bijington opened 3 years ago

bijington commented 3 years ago

SUMMARY

Currently images are output as

Propose that more complex scenarios can be catered for differentiating between iPad and iPhone screens (e.g. idiom in Contents.json) and the more complex android naming for resources (e.g. drawable-sw600dp). I am still trying to hunt down the Android link for the valuable detail on this.

DETAILS

I am still trying to work out how this might work. I was assuming it could slot in to the additionalOutputs option within a specific platform entry in an image.json file, e.g.

{
  "$schema": "http://mobilebuildtools.com/schemas/v2/resourceDefinition.schema.json",
  "name": "logo",
  "scale": 1.0,
  "ios": {
    "additionalOutputs": [
      {
        "name": "logo",
        "idiom": "ipad"
      }
    ]
  }
}

PLATFORMS