Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19833

Allow users to access images via Ti.Filesystem when app thinning is enabled

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.1.0
    • Fix Version/s: Release 5.4.0
    • Component/s: iOS
    • Story Points:
      5
    • Sprint:
      2016 Sprint 1 SDK

      Description

      Because of TIMOB-19757 we have made app-thinning of image assets optional (for existing projects).

      This means that when a developer needs to have access to an image via Ti.Filesystem.getFile() he has to disable app-thinning for all images.

      We need a better solution for this.

      Some thoughts:

      • Provide away to exclude images from asset catalogs
        • Requires new folder or meta file
      • Modify Ti.Filesystem.getFile() to find images in asset catalogs
        • Requires hack to recognise image requests under resourceDirectory and translate that to [UIImage imageNamed:@"my-name"];
      • Add Ti.Filesystem.getAsset() to get an asset via [UIImage imageNamed:@"my-name"];
        • Looks like the best option.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cng Chee Kiat Ng (Inactive)
                Reporter:
                fokkezb Fokke Zandbergen
                Reviewer:
                Angel Petkov
              • Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code