Updated code based on Laurent's suggestion.

This commit is contained in:
Mark Rickert
2013-08-07 08:52:19 -04:00
parent 32c1125262
commit 9ba6fb41db

View File

@@ -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)