Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10850] Ti Studio: when creating a new project, <iphone> and <mobileweb> sections are added to TiApp.xml. Project is Android only.

GitHub Issuen/a
TypeStory
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-29T18:46:00.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsMobileWeb, Tooling
Labelscore
ReporterDavide Cassenti
AssigneeChris Barber
Created2012-09-05T10:38:05.000+0000
Updated2018-08-02T22:20:07.000+0000

Description

Problem

When you create a New | Titanium Mobile Project, and sections get added to the initial TiApp.xml file, even though the project is Android only (iPhone and Mobile Web were unchecked).

Expected Behavior

No or sections should be added to the initial TiApp.xml file when creating a new Android-only project. Likewise, no or sections should be added when creating an iPhone-only project.

Actual Behavior

Create a New | Titanium Mobile Project.

Uncheck Mobile Web and iPhone.

The resulting TiApp.xml file will have and sections in it.

Comments

  1. Lee Morris 2017-06-29

    Resolving ticket as "Won't fix" as MobileWeb has been deprecated.
  2. Shawn Lipscomb 2017-06-29

    Lee, that doesn't address the issue though. If a project is Android only, no iPhone section should be added to TiApp.xml either. And vice versa. And if MobileWeb is going away, then no MobileWeb section should be created at all, under any circumstances.
  3. Chris Barber 2017-06-29

    I agree with [~bitshftr] that this ticket should not have been closed because "MobileWeb has been deprecated", however it's pretty safe to say we are not going to fix this ticket. The tiapp.xml is just a static file that we copy into new projects. The <deployment-targets> is a Studio thing that the CLI doesn't care about. We intentionally leave the platform specific sections in there in case you are developing your app on multiple machines (or in a team) and targeting machine-specific platforms. For example, you create your project on a Mac, but then check it out on Windows to build for Windows Phone. In any case, the <mobileweb> section of the tiapp.xml will get ripped out as soon as we have the green light to rip it out of the Titanium SDK. To make this even less of an issue, there's going to be discussions in the coming months about the shortcomings of the tiapp.xml and the future of project settings file.
  4. Eric Merriman 2018-08-02

    Closing old "Won't fix" tickets. If you disagree, please reopen.

JSON Source