Libgdx Robovm iOS icons with Gradle
Asked Answered
P

1

5

I cant find anywhere on the internet on how to add icons for iOS with the Gradle libgdx how will I do so?

Pusillanimity answered 27/3, 2014 at 8:33 Comment(0)
R
7

Follow these steps:

  • Create a folder (eg. resources) under the root of RoboVM project (usually your-project-ios)
  • Put your icons in that folder (make sure your icons have valid names according to guidelines, but you can generate them with lot of online tools, for example: http://makeappicon.com)
  • Edit your robovm.xml file and add these lines into the resources:
<resource>
    <directory>resources</directory>
</resource>

You will get something similar to this:

<resources>
    <resource>
        <directory>../android/assets</directory>
        <includes>
            <include>**</include>
        </includes>
        <skipPngCrush>true</skipPngCrush>
    </resource>
    <resource>
        <directory>resources</directory>
    </resource>
</resources>
  • Edit your Info.plist.xml file and add these lines at the end (before </dict></plist>)
<key>CFBundleIcons</key>
<dict>
    <key>CFBundlePrimaryIcon</key>
    <dict>
        <key>CFBundleIconFiles</key>
        <array>
            <string>Icon</string>
            <string>Icon-72</string>
        </array>
    </dict>
</dict>

Source

Respective answered 7/4, 2014 at 10:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.