From 46e524407c5b5954406f8043c8d0ec4a5d71395f Mon Sep 17 00:00:00 2001
From: Maxime Graulich <maxime.graulich@gmail.com>
Date: Mon, 13 Jan 2014 09:24:16 +0000
Subject: [PATCH] iOS: add icons to the project and remove useless icons for
 iOS7

---
 contrib/mobile/iOS/Onelab/Onelab-Info.plist | 52 ++++++++++++++-------
 contrib/mobile/utils/make_icon_ios.sh       |  4 --
 2 files changed, 35 insertions(+), 21 deletions(-)

diff --git a/contrib/mobile/iOS/Onelab/Onelab-Info.plist b/contrib/mobile/iOS/Onelab/Onelab-Info.plist
index 68885ed02e..4a16e04527 100644
--- a/contrib/mobile/iOS/Onelab/Onelab-Info.plist
+++ b/contrib/mobile/iOS/Onelab/Onelab-Info.plist
@@ -6,6 +6,19 @@
 	<string>en</string>
 	<key>CFBundleDisplayName</key>
 	<string>${PRODUCT_NAME}</string>
+	<key>CFBundleDocumentTypes</key>
+	<array>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>onelab</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>Onelab package</string>
+			<key>LSTypeIsPackage</key>
+			<true/>
+		</dict>
+	</array>
 	<key>CFBundleExecutable</key>
 	<string>${EXECUTABLE_NAME}</string>
 	<key>CFBundleIcons</key>
@@ -14,6 +27,24 @@
 		<dict>
 			<key>CFBundleIconFiles</key>
 			<array>
+				<string>icon_app_iphone_retina</string>
+				<string>icon_app_ipad_61</string>
+				<string>ic_launcher.png</string>
+				<string>ic_launcher_retina.png</string>
+			</array>
+		</dict>
+	</dict>
+	<key>CFBundleIcons~ipad</key>
+	<dict>
+		<key>CFBundlePrimaryIcon</key>
+		<dict>
+			<key>CFBundleIconFiles</key>
+			<array>
+				<string>icon_app_ipad</string>
+				<string>icon_app_iphone_61</string>
+				<string>icon_app_ipad_retina</string>
+				<string>icon_app_iphone_retina</string>
+				<string>icon_app_ipad_61</string>
 				<string>ic_launcher.png</string>
 				<string>ic_launcher_retina.png</string>
 			</array>
@@ -33,21 +64,12 @@
 	<string>????</string>
 	<key>CFBundleVersion</key>
 	<string>1.0</string>
-	<key>CFBundleDocumentTypes</key>
-	<array>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>onelab</string>
-			</array>
-            <key>CFBundleTypeName</key>
-            <string>Onelab package</string>
-			<key>LSTypeIsPackage</key>
-            <true/>
-		</dict>
-	</array>
 	<key>LSRequiresIPhoneOS</key>
 	<true/>
+	<key>UIBackgroundModes</key>
+	<array>
+		<string></string>
+	</array>
 	<key>UIFileSharingEnabled</key>
 	<true/>
 	<key>UIMainStoryboardFile</key>
@@ -72,9 +94,5 @@
 		<string>UIInterfaceOrientationLandscapeLeft</string>
 		<string>UIInterfaceOrientationLandscapeRight</string>
 	</array>
-	<key>UIBackgroundModes</key>
-	<array>
-		<string></string>
-	</array>
 </dict>
 </plist>
diff --git a/contrib/mobile/utils/make_icon_ios.sh b/contrib/mobile/utils/make_icon_ios.sh
index 43752d7091..e394b63a85 100755
--- a/contrib/mobile/utils/make_icon_ios.sh
+++ b/contrib/mobile/utils/make_icon_ios.sh
@@ -3,11 +3,7 @@
 mkdir ios.iconset
 # App icons (iPad)
 convert -scale 152 ../../../utils/icons/gmsh_1024x1024.png ios.iconset/icon_app_ipad_retina.png
-convert -scale 144 ../../../utils/icons/gmsh_1024x1024.png ios.iconset/icon_app_ipad_retina_61.png
 convert -scale 76 ../../../utils/icons/gmsh_1024x1024.png ios.iconset/icon_app_ipad.png
-convert -scale 72 ../../../utils/icons/gmsh_1024x1024.png ios.iconset/icon_app_ipad_61.png
 
 # App icons (iPhone)
 convert -scale 120 ../../../utils/icons/gmsh_1024x1024.png ios.iconset/icon_app_iphone_retina.png
-convert -scale 114 ../../../utils/icons/gmsh_1024x1024.png ios.iconset/icon_app_iphone_retina_61.png
-convert -scale 57 ../../../utils/icons/gmsh_1024x1024.png ios.iconset/icon_app_iphone_61.png
-- 
GitLab