[ALOY-862] index.xml in subfolder throws error if it doesn't have a top-level container
|Fix Version/s||Alloy 1.3.0, 2013 Sprint 22|
DescriptionThere's a check in place to ensure that the main index.xml has at least one top-level view in it as a launching point for the app. Unfortunately that check looks at only the filename. This means that a file in a subfolder named index.xml also needs to abide by this rule, which is invalid.
- Tony Lukasavage 2013-10-25
This can be tested with the following steps
Create a default Alloy app
Create a "views/test/index.xml" file with just the
tag in it
alloy compile --platform ios
The compile should run without errorPrior to this fix, you would get something like the following error:
[ERROR] Compile failed. index.xml must have a top-level container element. [ERROR] Valid elements: [Ti.UI.Window,Ti.UI.iPad.SplitWindow,Ti.UI.TabGroup,Ti.UI.iOS.NavigationWindow,Alloy.Collection,Alloy.Model] [ERROR] Alloy compiler failed
- Federico Casali 2013-12-04 Verified compiling with no errors. TiSDK 3.2.0.v20131203104847 CLI 3.2.0-beta Alloy 1.3.0-beta Closing.