Skip to content

Bundling assets only on a specific platform (and remove assets on another platform) #64993

@fzyzcjy

Description

@fzyzcjy

Steps to Reproduce

Hi thanks for the wonderful Flutter! I have some images (1.1MB) that should only be used in Android, not iOS. Therefore, I want to remove those images from the IPA file in iOS. I have read the official doc, but it did not mention things like this :/

Expected results:

Give some options, such as (pubspec.yaml):

flutter:
  assets:
    android:
      - some_images_only_in_android/
    ios:
      - some_images_only_in_ios/
   all:
      - some_images_for_both/

Actual results: No such feature

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions