You found a bug! We've classified it as SDKTOOLS-300 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member intellix's Avatar
    Join Date
    Mar 2012
    Location
    UK + Malta
    Posts
    263
    Vote Rating
    18
    intellix will become famous soon enough

      0  

    Exclamation Cmd - Native packaging/building has hardcoded image directories

    Cmd - Native packaging/building has hardcoded image directories


    Hey, not sure if this is absolutely required on iOS but I was using a different directory structure for my images (as I'm doing whitelabel/skinning of our application).

    I noticed this was hardcoded inside /3.0.0.250/plugins/touch/current/app-build.js

    Code:
    if (packagerConfig.platform.match(/iOS/)) {
                            copy(
                                resolvePath(joinPath(src, 'resources', 'icons')),
                                resolvePath(destination),
                                ignoreFilter);
                            copy(
                                resolvePath(joinPath(src, 'resources', 'loading')),
                                resolvePath(destination),
                                ignoreFilter);
                        }
    Which dies because mine are elsewhere:

    resources/images/core/stuff.png
    resources/images/skin/batman/icons/57.png
    resources/images/skin/batman/startup/320x460.jpg
    resources/images/skin/robin/icons/57.png
    resources/images/skin/robin/startup/320x460.jpg

    We just change the required skin name upon build and put them into seperate locations so theres only 1 codebase.

    I'm using Architect and created my packager item and noticed theres only a config for 'icon' but nothing for 'startupImage' (despite it being hardcoded in the copy/paste inside this file anyway).

    So I guess I have 2 questions:
    1) Does iOS Native not allow you to specify the startupImage/icon location (has to be in a particular place)
    2) If it is allowed, can we get the ability to specify where the startupImages are and use the 'icon' parameter for copying them over.

    Cheeeers

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,547
    Vote Rating
    872
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member intellix's Avatar
    Join Date
    Mar 2012
    Location
    UK + Malta
    Posts
    263
    Vote Rating
    18
    intellix will become famous soon enough

      0  

    Default


    Theeee actual sencha touch startupImage values are still inconsistent and wrong as well:

    '320x460': 'resources/startup/320x460.jpg',
    '640x920': 'resources/startup/640x920.png',

    When it's actually 320x480 and 640x960. Should it look like this?
    Code:
    '320x460': 'resources/startup/320x480.jpg',
    '640x920': 'resources/startup/640x960.png',
    or like this?
    Code:
    '320x480': 'resources/startup/320x480.jpg',
    '640x960': 'resources/startup/640x960.png',

Thread Participants: 1