[ALOY-1646] Allow platform xml namespaces to be used with xml attributes in Alloy
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-06-19T22:58:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | CLI Release 7.1.0, Alloy 1.14.0 |
Components | n/a |
Labels | alloy, attribute, namespace, titanium, xml |
Reporter | Brenton House |
Assignee | Brenton House |
Created | 2019-03-06T23:34:41.000+0000 |
Updated | 2019-06-19T22:58:20.000+0000 |
Description
Would be great to allow using xml namespaces to filter attributes based on platform. For example: {noformat} {noformat} This is a probably over-simplistic example but the only way to do this right now is to have two separate elements: {noformat} {noformat} and {noformat} {noformat} This can cause problems with some tags/elements where it thinks you have duplicate tags and throws a compile time error.Comments
- Brenton House 2019-03-07 Created PR: https://github.com/appcelerator/alloy/pull/922
- Keerthi Mahalingam 2019-06-19
Tested and verified the changes on CLI 7.1.0-master.22.able to include Platform xml namespaces.Works as expected.closing.
Name = Mac OS X Version = 10.13.6 Architecture = 64bit # CPUs = 8 Memory = 17179869184 Node.js Node.js Version = 10.13.0 npm Version = 6.4.1 Titanium CLI CLI Version = 5.2.1 Titanium SDK SDK Version = 8.2.0.v20190619100154 Device =iPhone 6s plus iOS 12.NEXUS 5 android 5