[TIMOB-20593] tiapp.xml: support platform elements and attribute values
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Tooling |
Labels | cb-tooling, titaniumlib |
Reporter | Fokke Zandbergen |
Assignee | Unknown |
Created | 2016-03-18T14:19:37.000+0000 |
Updated | 2020-03-06T21:35:14.000+0000 |
Description
It might be helpful if
tiapp.xml
would allow for platform specific XML elements and attribute values.
Either use namespaces:
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<id>my.app</id>
<!-- leave default value as text node -->
<name ios:value="My Cool App">My App</name>
<!-- define default value as attribute -->
<sdk-version ios:value="5.1.0.GA" value="5.2.0.GA" />
<!-- make whole element platform specific -->
<android:navbar-hidden>false</android:navbar-hidden>
<modules>
<!-- could also be used instead of <module platform="android" /> -->
<android:module>ti.map</module>
<module>ti.facebook</module>
</modules>
</ti:app>
Or the existing platform specific sections:
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<id>my.app</id>
<run-on-main-thread>true</run-on-main-thread>
<property name="ti.ui.defaultunit" type="string">dp</property>
<ios>
<run-on-main-thread>false</run-on-main-thread>
<property name="ti.ui.defaultunit">px</property>
</ios>
</ti:app>
No comments