mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
add detect_dependencies variable to resolve file dependencies
This commit is contained in:
@@ -138,8 +138,10 @@ module Motion; module Project;
|
||||
end
|
||||
|
||||
# Resolve file dependencies
|
||||
deps = Dependency.new(config.files).run
|
||||
config.dependencies = deps.merge(config.dependencies)
|
||||
if config.detect_dependencies == true
|
||||
deps = Dependency.new(config.files).run
|
||||
config.dependencies = deps.merge(config.dependencies)
|
||||
end
|
||||
|
||||
# Feed builders with work.
|
||||
builder_i = 0
|
||||
|
||||
@@ -52,7 +52,7 @@ module Motion; module Project
|
||||
:resources_dir, :specs_dir, :identifier, :codesign_certificate,
|
||||
:provisioning_profile, :device_family, :interface_orientations, :version,
|
||||
:short_version, :icons, :prerendered_icon, :background_modes, :seed_id,
|
||||
:entitlements, :fonts, :status_bar_style, :motiondir
|
||||
:entitlements, :fonts, :status_bar_style, :motiondir, :detect_dependencies
|
||||
|
||||
# Internal only.
|
||||
attr_accessor :build_mode, :spec_mode, :distribution_mode, :dependencies
|
||||
@@ -62,6 +62,7 @@ module Motion; module Project
|
||||
@files = Dir.glob(File.join(project_dir, 'app/**/*.rb'))
|
||||
@info_plist = {}
|
||||
@dependencies = {}
|
||||
@detect_dependencies = false
|
||||
@frameworks = ['UIKit', 'Foundation', 'CoreGraphics']
|
||||
@weak_frameworks = []
|
||||
@framework_search_paths = []
|
||||
|
||||
Reference in New Issue
Block a user