Вопрос

I have one code base that creates Android and iOS versions, in Titanium. I want to exclude Android specific images from my iOS build, to keep the package as lean as possible.

Besides manually moving assets out of the app folder prior to doing a build, is there any way to achieve this?

Это было полезно?

Решение

This looks like a good resource for you. I'll admit I knew it was in there and it took me a while to find it.

Platform-specific resources

Titanium gives you various ways to include platform-specific resources, like images, stylesheets, and scripts, in your project. Titanium uses an "overrides" system to make it easy to use platform-specific resources. Any file in the platform-specific Resources directories (Resources/android, Resources/iphone, or Resources/mobileweb) will override, or be used in place of, those in the Resources directory. You don't have to use any special notation in your code to specify that these files should be used.

http://docs.appcelerator.com/titanium/3.0/#!/guide/Supporting_Multiple_Platforms_in_a_Single_Codebase

This is just a snippet of the information, there is more in the docs.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top