mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-14 10:09:14 +08:00
Updated code based on Laurent's suggestion.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user