From 9ba6fb41dbdd25c038807f96af16f37996bd53f0 Mon Sep 17 00:00:00 2001 From: Mark Rickert Date: Wed, 7 Aug 2013 08:52:19 -0400 Subject: [PATCH] Updated code based on Laurent's suggestion. --- lib/motion/project/template/osx/config.rb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/motion/project/template/osx/config.rb b/lib/motion/project/template/osx/config.rb index 7f3ebf60..e4ea86b3 100644 --- a/lib/motion/project/template/osx/config.rb +++ b/lib/motion/project/template/osx/config.rb @@ -111,15 +111,9 @@ module Motion; module Project; 'NSHumanReadableCopyright' => copyright, 'NSPrincipalClass' => 'NSApplication', 'CFBundleIconFile' => (icon or ''), - 'LSMinimumSystemVersion' => deployment_target - }.merge(category_info_plist).merge(generic_info_plist).merge(dt_info_plist).merge(info_plist)) - end - - def category_info_plist - # For valid values: - # http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html - cat = "public.app-category.#{@category}" unless @category.include?("public.app-category") - {'LSApplicationCategoryType' => cat} + 'LSMinimumSystemVersion' => deployment_target, + 'LSMinimumSystemVersion' => (@category.start_with?('public.app-category') ? @category : 'public.app-category.' + @category) + }.merge(generic_info_plist).merge(dt_info_plist).merge(info_plist)) end def supported_sdk_versions(versions)