Delphi FireMonkey - How to set a file to deploy to different locations on Android and iOS?

StackOverflow https://stackoverflow.com/questions/22976207

  •  30-06-2023
  •  | 
  •  

Question

I am an old-timer to Delphi but only very new to Delphi XE5 and FireMonkey.

I am trying to write a cross-platform iOS/Android app to display some videos.

From tutorials like this -> http://blogs.embarcadero.com/davidi/2013/11/23/43005/ <- I can deploy a file, and I can play it under both platforms.

HOWEVER, this deployment screen is driving me nuts; no matter whether I select 'Android platform' or 'iOS platform' whenever I add a file it shows as being for "[Android,iOSDevice,iOSSimulator]" platforms. I can't work out how to just add a file to one platform, or how to remove platforms.

I can see the .dproj file is plain text but surely I don't need to resort to editing it? Why can't I simply say, from Project/Deployment, this file is for Android and this file is for iOS?

Thanks !

Was it helpful?

Solution

When you add the file or files, select them and double click on the platforms column. You should go into edit mode with a button to the right (three dots on it). Now if that fails the first time try double clicking some more. The designer is very badly made for file deployment.

Ok then click the button with the three dots and you will get a dropdown with all available platforms. Select the ones you want and that is it.

I should write a resource management app as the designer that comes with Delphi is horrible, but I have no time to work on it :(

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top