lib/ib/project.rb in ib-0.3.5 vs lib/ib/project.rb in ib-0.4.0

- old
+ new

@@ -15,10 +15,16 @@ Motion::Project::App.config.platforms[0] == 'MacOSX' ? :osx : :ios end end end + def app_files + Motion::Project::App.config.files.select do |file| + file =~ /^(\.\/)?app\// + end + end + def write ib_project = "ib.xcodeproj" project = Xcodeproj::Project.new(ib_project) target = project.new_target(:static_library, 'ib', platform) @@ -30,10 +36,10 @@ pods = project.new_group("Pods") pods.path = pods_headers_path generator = IB::Generator.new(detect_platform) - generator.write(Motion::Project::App.config.files, ib_project) + generator.write(app_files, ib_project) support.new_file "ib.xcodeproj/Stubs.h" file = support.new_file "ib.xcodeproj/Stubs.m" target.add_file_references([ file ])