Skip to content
Browse files

fixed the Info.plist generation to take into account app-level settin…

…gs defined after a call to app.info_plist
  • Loading branch information...
1 parent a69ada8 commit c832971ec0093e5bf86e79bb482a366f816c2146 @lrz lrz committed
Showing with 7 additions and 5 deletions.
  1. +7 −5 lib/motion/project/config.rb
View
12 lib/motion/project/config.rb
@@ -60,6 +60,7 @@ def relpath(path)
def initialize(project_dir, build_mode)
@project_dir = project_dir
@files = Dir.glob(File.join(project_dir, 'app/**/*.rb'))
+ @info_plist = {}
@dependencies = {}
@frameworks = ['UIKit', 'Foundation', 'CoreGraphics']
@weak_frameworks = []
@@ -549,7 +550,11 @@ def status_bar_style_const
end
def info_plist
- @info_plist ||= {
+ @info_plist
+ end
+
+ def info_plist_data
+ info_plist.merge!({
'BuildMachineOSBuild' => `sw_vers -buildVersion`.strip,
'MinimumOSVersion' => deployment_target,
'CFBundleDevelopmentRegion' => 'en',
@@ -584,10 +589,7 @@ def info_plist
'DTPlatformVersion' => '5.1',
'DTXcodeBuild' => '4E1019',
'DTPlatformBuild' => '9B176'
- }
- end
-
- def info_plist_data
+ })
Motion::PropertyList.to_s(info_plist)
end

0 comments on commit c832971

Please sign in to comment.
Something went wrong with that request. Please try again.