Skip to main content
Ollie Edge
Inspiring
October 2, 2013
Question

iOS & Android icons in descriptor = Conflict

  • October 2, 2013
  • 2 replies
  • 1669 views

Hey Everyone,

Each time I do a build of an application which is on both iOS and Android I'm having to comment out the icon blocks in the app descriptor so that each version gets the correct icons - simply because the android version has visually different icons to the iOS ones. Here's my icons block:

<icon>

             

          <!-- App icons for iOS 6 -->

               <image29x29>icons/29.png</image29x29>

               <image48x48>icons/48.png</image48x48>

               <image57x57>icons/57.png</image57x57>

               <image58x58>icons/58.png</image58x58>

               <image72x72>icons/72.png</image72x72>

               <image114x114>icons/114.png</image114x114>

               <image144x144>icons/114.png</image144x144>

               <image512x512>icons/512.png</image512x512>

      

          <!-- App icons for iOS 7 -->

               <image40x40>icons/40.png</image40x40>

               <image60x60>icons/60.png</image60x60>

               <image76x76>icons/76.png</image76x76>

               <image80x80>icons/80.png</image80x80>

               <image120x120>icons/120.png</image120x120>

               <image152x152>icons/152.png</image152x152>

             

          <!-- App icons for Android -->

               <image36x36>icons/android/36.png</image36x36>

               <image48x48>icons/android/48.png</image48x48>

               <image72x72>icons/android/72.png</image72x72>

               <image96x96>icons/android/96.png</image96x96>

       

</icon>

As you can see there are duplicates of the 48x48 and 72x72 icons which lead to problems with compiling. Does anyone know a way around this?

Cheers,
O.

This topic has been closed for replies.

2 replies

zeh
Inspiring
October 2, 2013

I use 2 separate files - one descriptor for Android, one for iOS.

Colin Holgate
Inspiring
October 2, 2013

Maybe that's an easy way to work in Flash Builder. In Flash Pro I don't see an easy way to switch app descriptors, unless you're using different FLAs for each case.

zeh
Inspiring
October 2, 2013

I use FDT, but you're right - not sure how other IDEs do it. With FDT it's kind of easy. I'd assume one can always use the command line or ANT tasks for that too. Just an option.

Colin Holgate
Inspiring
October 2, 2013

I work differently, and in an easier way I think. I have a text file that lists all of the Android icons, and then all of the iOS ones. I copy the whole iOS block, and paste into the app descriptor file. Then when building Android I copy the Android set, and paste/replace the iOS set.

Ollie Edge
Inspiring
October 2, 2013

I see so basically the same sort of thing? You are physicaslly changing the descriptor each time you want to compile for a single platform?

When you say you have text files, are you talking about something fancy, or literally just a copy of the icon block which you copy & paste when you need to change it?

The way I have at the moment is ok, I just highlight the section and Shift+Command+C comments or uncomments that block, but it's just the fact that if you forget to do when changing platform you've just wasted 50 - 60 seconds - which if you do 40 - 50 builds a day is just shy of an hour of wasted time =).

Colin Holgate
Inspiring
October 2, 2013

I simply copy and paste the icons, and paste replace the whole set. It takes perhaps five seconds. Lot less to get wrong compared to commenting and uncommenting ranges of lines.