Titanium Mobile
  1. Titanium Mobile
  2. TIMOB-2585

Include paths for iphone and android are not based on the same starting point

    Details

      Description

      {html}<div><p>This issue is making me nuts! </p>
      <p>I have broken my app into small, manageable pieces and link
      things together using Titanium.include and the 'url' property when
      creating a new window.</p>
      <p>Both of these require a 'path' to a .js file. The trouble is,
      one platform seems to want it relative to the root and the other
      relative to where the file is being included from. The url property
      used to be the same (iphone vs android) until 1.5, but after I
      upgraded today I found that it had changed on android requiring me
      to fiddle the paths to get the app working again.</p>
      <p>Can we please have it one way or the other on all platforms? I
      am trying to build a core of code that will work across all
      platforms and having to deal with varying path models is just
      making my code that much more complex.</p>
      <p>Thanks.</p></div>{html}

        Activity

        Hide
        Bill Dawson added a comment -
        {html}<div><p>QE: This is the Android ticket re pathing in Ti.include(). A set
        of drillbit tests to be sure that Ti.include() can handle relative
        and absolute pathing has been added to drillbit (see the "includes"
        test suite in drillbit.) Android passes those tests but at that
        moment iOS doesn't. iOS will be handled in ticket <a href=
        "/projects/32238/tickets/3349" title="Ticket #3349">#3349</a>, so
        for purposes of setting this to resolved you need only test the
        Android part in drillbit.</p></div>{html}
        Show
        Bill Dawson added a comment - {html}<div><p>QE: This is the Android ticket re pathing in Ti.include(). A set of drillbit tests to be sure that Ti.include() can handle relative and absolute pathing has been added to drillbit (see the "includes" test suite in drillbit.) Android passes those tests but at that moment iOS doesn't. iOS will be handled in ticket <a href= "/projects/32238/tickets/3349" title="Ticket #3349">#3349</a>, so for purposes of setting this to resolved you need only test the Android part in drillbit.</p></div>{html}
        Hide
        Bill Dawson added a comment -
        {html}<div><p>Interested parties follow <a href="/projects/32238/tickets/3349"
        title="Ticket #3349">#3349</a> for the iOS part.</p></div>{html}
        Show
        Bill Dawson added a comment - {html}<div><p>Interested parties follow <a href="/projects/32238/tickets/3349" title="Ticket #3349">#3349</a> for the iOS part.</p></div>{html}
        Hide
        Natalie Huynh added a comment -
        {html}<div><p>Tested with Titanium SDK version: 1.7.0 (03/15/11 11:42
        1f6dbfe)<br>
        Ran Drillbit on Emulator 2.1, ran includes test suite all pass<br>
        relativeDown true 9 Success<br>
        slashToRoot true 16 Success<br>
        dotdotSlash true 23 Success<br>
        dotSlash true 23 Success<br>
        lotsOfDots true 37 Success</p></div>{html}
        Show
        Natalie Huynh added a comment - {html}<div><p>Tested with Titanium SDK version: 1.7.0 (03/15/11 11:42 1f6dbfe)<br> Ran Drillbit on Emulator 2.1, ran includes test suite all pass<br> relativeDown true 9 Success<br> slashToRoot true 16 Success<br> dotdotSlash true 23 Success<br> dotSlash true 23 Success<br> lotsOfDots true 37 Success</p></div>{html}
        Hide
        Bill Dawson added a comment -
        {html}<div><p>(from <a href=
        "/projects/32238/changesets/dbac80a64d0dec1ce02d327f21226ad9aac6483d"
        title=
        "Changeset [dbac80a64d0dec1ce02d327f21226ad9aac6483d]">[dbac80a64d0dec1ce02d327f21226ad9aac6483d]</a>)
        Re-work absoluteUrl() to better handle relative pathing for
        includes and such. [<a href="/projects/32238/tickets/2585" title=
        "Ticket #2585">#2585</a>] <a href=
        "https://github.com/appcelerator/titanium_mobile/commit/dbac80a64d0dec1ce02d327f21226ad9aac6483d">
        https://github.com/appcelerator/titanium_mobile/commit/dbac80a64d0d...</a></p></div>{html}
        Show
        Bill Dawson added a comment - {html}<div><p>(from <a href= "/projects/32238/changesets/dbac80a64d0dec1ce02d327f21226ad9aac6483d" title= "Changeset [dbac80a64d0dec1ce02d327f21226ad9aac6483d] "> [dbac80a64d0dec1ce02d327f21226ad9aac6483d] </a>) Re-work absoluteUrl() to better handle relative pathing for includes and such. [<a href="/projects/32238/tickets/2585" title= "Ticket #2585">#2585</a>] <a href= "https://github.com/appcelerator/titanium_mobile/commit/dbac80a64d0dec1ce02d327f21226ad9aac6483d"> https://github.com/appcelerator/titanium_mobile/commit/dbac80a64d0d ...</a></p></div>{html}
        Hide
        Don Thorp added a comment -
        {html}<div><p>Since a new iOS ticket has been created, converting this to
        Android only.</p></div>{html}
        Show
        Don Thorp added a comment - {html}<div><p>Since a new iOS ticket has been created, converting this to Android only.</p></div>{html}

          People

          • Assignee:
            Don Thorp
            Reporter:
            PaulT
          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development