Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide the ability to specify more specific image assets #276

Open
2 of 3 tasks
bijington opened this issue Jul 12, 2021 · 0 comments
Open
2 of 3 tasks

Provide the ability to specify more specific image assets #276

bijington opened this issue Jul 12, 2021 · 0 comments

Comments

@bijington
Copy link
Contributor

SUMMARY

Currently images are output as

  • Android:
    • drawable-hdpi
    • drawable-mdpi
    • drawable-xhdpi
    • drawable-xxhdpi
    • drawable-xxxhdpi
  • iOS
    • "idiom" : "universal" inside Contents.json

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

  • Android
  • iOS
  • UWP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant