Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20593] tiapp.xml: support platform elements and attribute values

GitHub Issuen/a
TypeStory
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsTooling
Labelscb-tooling, titaniumlib
ReporterFokke Zandbergen
AssigneeUnknown
Created2016-03-18T14:19:37.000+0000
Updated2020-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>

Comments

No comments

JSON Source