Skip to content

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

Closed

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

Activity

  1. jonahwilliams commented on Sep 1, 2020

    @jonahwilliams
    Contributor

    duplicate of #8230

  2. fzyzcjy commented on Sep 1, 2020

    @fzyzcjy
    ContributorAuthor

    @jonahwilliams Sorry IMHO that is not a duplicate... I want to bundle those 1MB photos only in Android. Thus, in the final .ipa file of iOS, there are no such photos taking space. Thanks!

  3. github-actions commented on Aug 13, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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