xcres 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +33 -0
- data/.travis.yml +18 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +85 -0
- data/LICENSE.txt +22 -0
- data/README.md +181 -0
- data/Rakefile +58 -0
- data/bin/xcres +12 -0
- data/lib/xcres/analyzer/aggregate_analyzer.rb +48 -0
- data/lib/xcres/analyzer/analyzer.rb +141 -0
- data/lib/xcres/analyzer/resources_aggregate_analyzer.rb +27 -0
- data/lib/xcres/analyzer/resources_analyzer/base_resources_analyzer.rb +133 -0
- data/lib/xcres/analyzer/resources_analyzer/bundle_resources_analyzer.rb +68 -0
- data/lib/xcres/analyzer/resources_analyzer/loose_resources_analyzer.rb +39 -0
- data/lib/xcres/analyzer/resources_analyzer/xcassets_analyzer.rb +62 -0
- data/lib/xcres/analyzer/strings_analyzer.rb +255 -0
- data/lib/xcres/builder/file_builder.rb +61 -0
- data/lib/xcres/builder/resources_builder.rb +184 -0
- data/lib/xcres/builder/string_builder.rb +31 -0
- data/lib/xcres/command/build_command.rb +83 -0
- data/lib/xcres/command/command.rb +58 -0
- data/lib/xcres/command/install_command.rb +173 -0
- data/lib/xcres/command/main_command.rb +14 -0
- data/lib/xcres/command/project_command.rb +111 -0
- data/lib/xcres/command/version_command.rb +12 -0
- data/lib/xcres/helper/file_helper.rb +16 -0
- data/lib/xcres/logger.rb +148 -0
- data/lib/xcres/model/section.rb +43 -0
- data/lib/xcres/model/xcassets/bundle.rb +55 -0
- data/lib/xcres/model/xcassets/resource.rb +141 -0
- data/lib/xcres/model/xcassets/resource_image.rb +134 -0
- data/lib/xcres/version.rb +9 -0
- data/lib/xcres.rb +9 -0
- data/spec/fixtures/Example/Example/AppDelegate.h +15 -0
- data/spec/fixtures/Example/Example/AppDelegate.m +49 -0
- data/spec/fixtures/Example/Example/Example-Info.plist +38 -0
- data/spec/fixtures/Example/Example/Example-Prefix.pch +16 -0
- data/spec/fixtures/Example/Example/Images/doge.jpeg +0 -0
- data/spec/fixtures/Example/Example/Images/nyanCat.png +0 -0
- data/spec/fixtures/Example/Example/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/fixtures/Example/Example/Images.xcassets/Doge.imageset/Contents.json +18 -0
- data/spec/fixtures/Example/Example/Images.xcassets/Doge.imageset/doge.png +0 -0
- data/spec/fixtures/Example/Example/Images.xcassets/Doge.imageset/doge@2x.png +0 -0
- data/spec/fixtures/Example/Example/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/fixtures/Example/Example/de.lproj/Localizable.strings +12 -0
- data/spec/fixtures/Example/Example/en.lproj/InfoPlist.strings +2 -0
- data/spec/fixtures/Example/Example/en.lproj/Localizable.strings +15 -0
- data/spec/fixtures/Example/Example/main.m +18 -0
- data/spec/fixtures/Example/Example.xcodeproj/project.pbxproj +449 -0
- data/spec/fixtures/Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/spec/fixtures/ExampleOSX/ExampleOSX/AppDelegate.h +15 -0
- data/spec/fixtures/ExampleOSX/ExampleOSX/AppDelegate.m +18 -0
- data/spec/fixtures/ExampleOSX/ExampleOSX/Base.lproj/MainMenu.xib +680 -0
- data/spec/fixtures/ExampleOSX/ExampleOSX/ExampleOSX-Info.plist +34 -0
- data/spec/fixtures/ExampleOSX/ExampleOSX/ExampleOSX-Prefix.pch +9 -0
- data/spec/fixtures/ExampleOSX/ExampleOSX/Images.xcassets/AppIcon.appiconset/Contents.json +58 -0
- data/spec/fixtures/ExampleOSX/ExampleOSX/en.lproj/Credits.rtf +29 -0
- data/spec/fixtures/ExampleOSX/ExampleOSX/en.lproj/InfoPlist.strings +2 -0
- data/spec/fixtures/ExampleOSX/ExampleOSX/main.m +14 -0
- data/spec/fixtures/ExampleOSX/ExampleOSX.xcodeproj/project.pbxproj +481 -0
- data/spec/fixtures/ExampleOSX/ExampleOSX.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/spec/fixtures/ExampleOSX/ExampleOSXTests/ExampleOSXTests-Info.plist +22 -0
- data/spec/fixtures/ExampleOSX/ExampleOSXTests/ExampleOSXTests.m +34 -0
- data/spec/fixtures/ExampleOSX/ExampleOSXTests/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/build/after/Example/Example/AppDelegate.h +15 -0
- data/spec/integration/build/after/Example/Example/AppDelegate.m +49 -0
- data/spec/integration/build/after/Example/Example/Example-Info.plist +38 -0
- data/spec/integration/build/after/Example/Example/Example-Prefix.pch +16 -0
- data/spec/integration/build/after/Example/Example/Icons.bundle/tab_bar/tabbar_list.png +0 -0
- data/spec/integration/build/after/Example/Example/Icons.bundle/tab_bar/tabbar_list@2x.png +0 -0
- data/spec/integration/build/after/Example/Example/Icons.bundle/tab_bar/tabbar_map.png +0 -0
- data/spec/integration/build/after/Example/Example/Icons.bundle/tab_bar/tabbar_map@2x.png +0 -0
- data/spec/integration/build/after/Example/Example/Images/doge.jpeg +0 -0
- data/spec/integration/build/after/Example/Example/Images/nyanCat.png +0 -0
- data/spec/integration/build/after/Example/Example/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/build/after/Example/Example/Images.xcassets/Doge.imageset/Contents.json +18 -0
- data/spec/integration/build/after/Example/Example/Images.xcassets/Doge.imageset/doge.png +0 -0
- data/spec/integration/build/after/Example/Example/Images.xcassets/Doge.imageset/doge@2x.png +0 -0
- data/spec/integration/build/after/Example/Example/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/integration/build/after/Example/Example/de.lproj/Localizable.strings +12 -0
- data/spec/integration/build/after/Example/Example/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/build/after/Example/Example/en.lproj/Localizable.strings +15 -0
- data/spec/integration/build/after/Example/Example/main.m +18 -0
- data/spec/integration/build/after/Example/Example.xcodeproj.yaml +168 -0
- data/spec/integration/build/after/R.h +39 -0
- data/spec/integration/build/after/R.m +29 -0
- data/spec/integration/build/after/execution_output.txt +19 -0
- data/spec/integration/build/before/Example/Example/AppDelegate.h +15 -0
- data/spec/integration/build/before/Example/Example/AppDelegate.m +49 -0
- data/spec/integration/build/before/Example/Example/Example-Info.plist +38 -0
- data/spec/integration/build/before/Example/Example/Example-Prefix.pch +16 -0
- data/spec/integration/build/before/Example/Example/Icons.bundle/tab_bar/tabbar_list.png +0 -0
- data/spec/integration/build/before/Example/Example/Icons.bundle/tab_bar/tabbar_list@2x.png +0 -0
- data/spec/integration/build/before/Example/Example/Icons.bundle/tab_bar/tabbar_map.png +0 -0
- data/spec/integration/build/before/Example/Example/Icons.bundle/tab_bar/tabbar_map@2x.png +0 -0
- data/spec/integration/build/before/Example/Example/Images/doge.jpeg +0 -0
- data/spec/integration/build/before/Example/Example/Images/nyanCat.png +0 -0
- data/spec/integration/build/before/Example/Example/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/build/before/Example/Example/Images.xcassets/Doge.imageset/Contents.json +18 -0
- data/spec/integration/build/before/Example/Example/Images.xcassets/Doge.imageset/doge.png +0 -0
- data/spec/integration/build/before/Example/Example/Images.xcassets/Doge.imageset/doge@2x.png +0 -0
- data/spec/integration/build/before/Example/Example/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/integration/build/before/Example/Example/de.lproj/Localizable.strings +12 -0
- data/spec/integration/build/before/Example/Example/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/build/before/Example/Example/en.lproj/Localizable.strings +15 -0
- data/spec/integration/build/before/Example/Example/main.m +18 -0
- data/spec/integration/build/before/Example/Example.xcodeproj/project.pbxproj +453 -0
- data/spec/integration/build/before/Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/spec/integration/build-keyword-clash/after/Example/Example/AppDelegate.h +15 -0
- data/spec/integration/build-keyword-clash/after/Example/Example/AppDelegate.m +49 -0
- data/spec/integration/build-keyword-clash/after/Example/Example/Default-568h@2x.png +0 -0
- data/spec/integration/build-keyword-clash/after/Example/Example/Default.png +0 -0
- data/spec/integration/build-keyword-clash/after/Example/Example/Default@2x.png +0 -0
- data/spec/integration/build-keyword-clash/after/Example/Example/Example-Info.plist +38 -0
- data/spec/integration/build-keyword-clash/after/Example/Example/Example-Prefix.pch +16 -0
- data/spec/integration/build-keyword-clash/after/Example/Example/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/build-keyword-clash/after/Example/Example/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/build-keyword-clash/after/Example/Example/main.m +18 -0
- data/spec/integration/build-keyword-clash/after/Example/Example.xcodeproj.yaml +160 -0
- data/spec/integration/build-keyword-clash/after/R.h +15 -0
- data/spec/integration/build-keyword-clash/after/R.m +15 -0
- data/spec/integration/build-keyword-clash/after/execution_output.txt +14 -0
- data/spec/integration/build-keyword-clash/before/Example/Example/AppDelegate.h +15 -0
- data/spec/integration/build-keyword-clash/before/Example/Example/AppDelegate.m +49 -0
- data/spec/integration/build-keyword-clash/before/Example/Example/Default-568h@2x.png +0 -0
- data/spec/integration/build-keyword-clash/before/Example/Example/Default.png +0 -0
- data/spec/integration/build-keyword-clash/before/Example/Example/Default@2x.png +0 -0
- data/spec/integration/build-keyword-clash/before/Example/Example/Example-Info.plist +38 -0
- data/spec/integration/build-keyword-clash/before/Example/Example/Example-Prefix.pch +16 -0
- data/spec/integration/build-keyword-clash/before/Example/Example/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/build-keyword-clash/before/Example/Example/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/build-keyword-clash/before/Example/Example/main.m +18 -0
- data/spec/integration/build-keyword-clash/before/Example/Example.xcodeproj/project.pbxproj +427 -0
- data/spec/integration/build-keyword-clash/before/Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/AppDelegate.h +15 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/AppDelegate.m +49 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Example-Info.plist +38 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Example-Prefix.pch +16 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Icons.bundle/tab_bar/tabbar_list.png +0 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Icons.bundle/tab_bar/tabbar_list@2x.png +0 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Icons.bundle/tab_bar/tabbar_map.png +0 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Icons.bundle/tab_bar/tabbar_map@2x.png +0 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Images/doge.jpeg +0 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Images/nyanCat.png +0 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Images.xcassets/Doge.imageset/Contents.json +18 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Images.xcassets/Doge.imageset/doge.png +0 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Images.xcassets/Doge.imageset/doge@2x.png +0 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/de.lproj/Localizable.strings +12 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/en.lproj/Localizable.strings +15 -0
- data/spec/integration/build-var-infoplist/after/Example/Example/main.m +18 -0
- data/spec/integration/build-var-infoplist/after/Example/Example.xcodeproj.yaml +168 -0
- data/spec/integration/build-var-infoplist/after/R.h +39 -0
- data/spec/integration/build-var-infoplist/after/R.m +29 -0
- data/spec/integration/build-var-infoplist/after/execution_output.txt +19 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/AppDelegate.h +15 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/AppDelegate.m +49 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Example-Info.plist +38 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Example-Prefix.pch +16 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Icons.bundle/tab_bar/tabbar_list.png +0 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Icons.bundle/tab_bar/tabbar_list@2x.png +0 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Icons.bundle/tab_bar/tabbar_map.png +0 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Icons.bundle/tab_bar/tabbar_map@2x.png +0 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Images/doge.jpeg +0 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Images/nyanCat.png +0 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Images.xcassets/Doge.imageset/Contents.json +18 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Images.xcassets/Doge.imageset/doge.png +0 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Images.xcassets/Doge.imageset/doge@2x.png +0 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/de.lproj/Localizable.strings +12 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/en.lproj/Localizable.strings +15 -0
- data/spec/integration/build-var-infoplist/before/Example/Example/main.m +18 -0
- data/spec/integration/build-var-infoplist/before/Example/Example.xcodeproj/project.pbxproj +453 -0
- data/spec/integration/build-var-infoplist/before/Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/spec/integration/help/after/execution_output.txt +18 -0
- data/spec/integration/help/before/.gitkeep +0 -0
- data/spec/integration/install/after/Example/Example/AppDelegate.h +15 -0
- data/spec/integration/install/after/Example/Example/AppDelegate.m +49 -0
- data/spec/integration/install/after/Example/Example/Example-Info.plist +38 -0
- data/spec/integration/install/after/Example/Example/Example-Prefix.pch +18 -0
- data/spec/integration/install/after/Example/Example/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/install/after/Example/Example/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/integration/install/after/Example/Example/Resources/R.h +19 -0
- data/spec/integration/install/after/Example/Example/Resources/R.m +17 -0
- data/spec/integration/install/after/Example/Example/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/install/after/Example/Example/main.m +18 -0
- data/spec/integration/install/after/Example/Example.xcodeproj/project.pbxproj +898 -0
- data/spec/integration/install/after/Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/spec/integration/install/after/Example/Example.xcodeproj.yaml +172 -0
- data/spec/integration/install/after/execution_output.txt +22 -0
- data/spec/integration/install/before/Example/Example/AppDelegate.h +15 -0
- data/spec/integration/install/before/Example/Example/AppDelegate.m +49 -0
- data/spec/integration/install/before/Example/Example/Example-Info.plist +38 -0
- data/spec/integration/install/before/Example/Example/Example-Prefix.pch +16 -0
- data/spec/integration/install/before/Example/Example/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/install/before/Example/Example/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/integration/install/before/Example/Example/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/install/before/Example/Example/main.m +18 -0
- data/spec/integration/install/before/Example/Example.xcodeproj/project.pbxproj +421 -0
- data/spec/integration/install/before/Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/spec/integration/install-again/after/Example/Example/AppDelegate.h +15 -0
- data/spec/integration/install-again/after/Example/Example/AppDelegate.m +49 -0
- data/spec/integration/install-again/after/Example/Example/Example-Info.plist +38 -0
- data/spec/integration/install-again/after/Example/Example/Example-Prefix.pch +18 -0
- data/spec/integration/install-again/after/Example/Example/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/install-again/after/Example/Example/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/integration/install-again/after/Example/Example/Resources/R.h +19 -0
- data/spec/integration/install-again/after/Example/Example/Resources/R.m +17 -0
- data/spec/integration/install-again/after/Example/Example/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/install-again/after/Example/Example/main.m +18 -0
- data/spec/integration/install-again/after/Example/Example.xcodeproj.yaml +172 -0
- data/spec/integration/install-again/after/execution_output.txt +23 -0
- data/spec/integration/install-again/before/Example/Example/AppDelegate.h +15 -0
- data/spec/integration/install-again/before/Example/Example/AppDelegate.m +49 -0
- data/spec/integration/install-again/before/Example/Example/Example-Info.plist +38 -0
- data/spec/integration/install-again/before/Example/Example/Example-Prefix.pch +18 -0
- data/spec/integration/install-again/before/Example/Example/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/install-again/before/Example/Example/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/integration/install-again/before/Example/Example/Resources/R.h +19 -0
- data/spec/integration/install-again/before/Example/Example/Resources/R.m +17 -0
- data/spec/integration/install-again/before/Example/Example/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/install-again/before/Example/Example/main.m +18 -0
- data/spec/integration/install-again/before/Example/Example.xcodeproj/project.pbxproj +898 -0
- data/spec/integration/install-again/before/Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/spec/integration/install-moved-supporting-files/after/Example/Example.xcodeproj.yaml +173 -0
- data/spec/integration/install-moved-supporting-files/after/Example/Supporting_Files/Example-Info.plist +38 -0
- data/spec/integration/install-moved-supporting-files/after/Example/Supporting_Files/Example-Prefix.pch +18 -0
- data/spec/integration/install-moved-supporting-files/after/Example/Supporting_Files/Resources/R.h +19 -0
- data/spec/integration/install-moved-supporting-files/after/Example/Supporting_Files/Resources/R.m +17 -0
- data/spec/integration/install-moved-supporting-files/after/Example/Supporting_Files/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/install-moved-supporting-files/after/Example/Supporting_Files/main.m +18 -0
- data/spec/integration/install-moved-supporting-files/after/Example/res/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/install-moved-supporting-files/after/Example/res/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/integration/install-moved-supporting-files/after/Example/src/AppDelegate.h +15 -0
- data/spec/integration/install-moved-supporting-files/after/Example/src/AppDelegate.m +49 -0
- data/spec/integration/install-moved-supporting-files/after/execution_output.txt +22 -0
- data/spec/integration/install-moved-supporting-files/before/Example/Example.xcodeproj/project.pbxproj +431 -0
- data/spec/integration/install-moved-supporting-files/before/Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/spec/integration/install-moved-supporting-files/before/Example/Supporting_Files/Example-Info.plist +38 -0
- data/spec/integration/install-moved-supporting-files/before/Example/Supporting_Files/Example-Prefix.pch +16 -0
- data/spec/integration/install-moved-supporting-files/before/Example/Supporting_Files/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/install-moved-supporting-files/before/Example/Supporting_Files/main.m +18 -0
- data/spec/integration/install-moved-supporting-files/before/Example/res/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/install-moved-supporting-files/before/Example/res/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/integration/install-moved-supporting-files/before/Example/src/AppDelegate.h +15 -0
- data/spec/integration/install-moved-supporting-files/before/Example/src/AppDelegate.m +49 -0
- data/spec/integration/install-no-supporting-files/after/Example/Example.xcodeproj.yaml +173 -0
- data/spec/integration/install-no-supporting-files/after/Example/Resources/R.h +19 -0
- data/spec/integration/install-no-supporting-files/after/Example/Resources/R.m +17 -0
- data/spec/integration/install-no-supporting-files/after/Example/Supporting_Files/Example-Info.plist +38 -0
- data/spec/integration/install-no-supporting-files/after/Example/Supporting_Files/Example-Prefix.pch +18 -0
- data/spec/integration/install-no-supporting-files/after/Example/Supporting_Files/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/install-no-supporting-files/after/Example/Supporting_Files/main.m +18 -0
- data/spec/integration/install-no-supporting-files/after/Example/res/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/install-no-supporting-files/after/Example/res/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/integration/install-no-supporting-files/after/Example/src/AppDelegate.h +15 -0
- data/spec/integration/install-no-supporting-files/after/Example/src/AppDelegate.m +49 -0
- data/spec/integration/install-no-supporting-files/after/execution_output.txt +23 -0
- data/spec/integration/install-no-supporting-files/before/Example/Example.xcodeproj/project.pbxproj +430 -0
- data/spec/integration/install-no-supporting-files/before/Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/spec/integration/install-no-supporting-files/before/Example/Supporting_Files/Example-Info.plist +38 -0
- data/spec/integration/install-no-supporting-files/before/Example/Supporting_Files/Example-Prefix.pch +16 -0
- data/spec/integration/install-no-supporting-files/before/Example/Supporting_Files/en.lproj/InfoPlist.strings +2 -0
- data/spec/integration/install-no-supporting-files/before/Example/Supporting_Files/main.m +18 -0
- data/spec/integration/install-no-supporting-files/before/Example/res/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
- data/spec/integration/install-no-supporting-files/before/Example/res/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
- data/spec/integration/install-no-supporting-files/before/Example/src/AppDelegate.h +15 -0
- data/spec/integration/install-no-supporting-files/before/Example/src/AppDelegate.m +49 -0
- data/spec/integration/version/after/execution_output.txt +3 -0
- data/spec/integration/version/before/.gitkeep +0 -0
- data/spec/integration.rb +86 -0
- data/spec/spec_helper/xcodeproj_project_yaml.rb +26 -0
- data/spec/unit/analyzer/aggregate_analyzer_spec.rb +61 -0
- data/spec/unit/analyzer/analyzer_spec.rb +123 -0
- data/spec/unit/analyzer/resources_aggregate_analyzer_spec.rb +46 -0
- data/spec/unit/analyzer/resources_analyzer/base_resources_analyzer_spec.rb +126 -0
- data/spec/unit/analyzer/resources_analyzer/bundle_resources_analyzer_spec.rb +57 -0
- data/spec/unit/analyzer/resources_analyzer/loose_resources_analyzer_spec.rb +22 -0
- data/spec/unit/analyzer/strings_analyzer_spec.rb +99 -0
- data/spec/unit/builder/file_builder_spec.rb +46 -0
- data/spec/unit/builder/resources_builder_spec.rb +50 -0
- data/spec/unit/builder/string_builder_spec.rb +76 -0
- data/spec/unit/command/main_command_spec.rb +5 -0
- data/spec/unit/command/project_command_spec.rb +23 -0
- data/spec/unit/helper/file_helper_spec.rb +24 -0
- data/spec/unit/logger_spec.rb +142 -0
- data/spec/unit/model/section_spec.rb +47 -0
- data/spec/unit/model/xcassets/bundle_spec.rb +154 -0
- data/spec/unit/model/xcassets/resource_image_spec.rb +141 -0
- data/spec/unit/model/xcassets/resource_spec.rb +174 -0
- data/spec/unit/model/xcassets/spec_helper.rb +31 -0
- data/spec/unit/spec_helper.rb +17 -0
- data/xcres.gemspec +42 -0
- metadata +811 -0
data/spec/integration/install-no-supporting-files/before/Example/Example.xcodeproj/project.pbxproj
ADDED
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
// !$*UTF8*$!
|
|
2
|
+
{
|
|
3
|
+
archiveVersion = 1;
|
|
4
|
+
classes = {
|
|
5
|
+
};
|
|
6
|
+
objectVersion = 46;
|
|
7
|
+
objects = {
|
|
8
|
+
|
|
9
|
+
/* Begin PBXBuildFile section */
|
|
10
|
+
71239DA81912BFF70058657F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71239DA71912BFF70058657F /* Foundation.framework */; };
|
|
11
|
+
71239DAA1912BFF70058657F /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71239DA91912BFF70058657F /* CoreGraphics.framework */; };
|
|
12
|
+
71239DAC1912BFF70058657F /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71239DAB1912BFF70058657F /* UIKit.framework */; };
|
|
13
|
+
71239DC11912BFF80058657F /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71239DC01912BFF80058657F /* XCTest.framework */; };
|
|
14
|
+
71239DC21912BFF80058657F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71239DA71912BFF70058657F /* Foundation.framework */; };
|
|
15
|
+
71239DC31912BFF80058657F /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71239DAB1912BFF70058657F /* UIKit.framework */; };
|
|
16
|
+
71ECD7EE19AE84F300F86877 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 71ECD7EC19AE84F300F86877 /* Images.xcassets */; };
|
|
17
|
+
71ECD7F419AE852900F86877 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 71ECD7F219AE850700F86877 /* main.m */; };
|
|
18
|
+
71ECD7F819AE854800F86877 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 71ECD7F619AE854800F86877 /* InfoPlist.strings */; };
|
|
19
|
+
71ECD7FB19AE85B700F86877 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 71ECD7FA19AE85B700F86877 /* AppDelegate.m */; };
|
|
20
|
+
/* End PBXBuildFile section */
|
|
21
|
+
|
|
22
|
+
/* Begin PBXContainerItemProxy section */
|
|
23
|
+
71239DC41912BFF80058657F /* PBXContainerItemProxy */ = {
|
|
24
|
+
isa = PBXContainerItemProxy;
|
|
25
|
+
containerPortal = 71239D9C1912BFF70058657F /* Project object */;
|
|
26
|
+
proxyType = 1;
|
|
27
|
+
remoteGlobalIDString = 71239DA31912BFF70058657F;
|
|
28
|
+
remoteInfo = Example;
|
|
29
|
+
};
|
|
30
|
+
/* End PBXContainerItemProxy section */
|
|
31
|
+
|
|
32
|
+
/* Begin PBXFileReference section */
|
|
33
|
+
71239DA41912BFF70058657F /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
34
|
+
71239DA71912BFF70058657F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
|
35
|
+
71239DA91912BFF70058657F /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
|
|
36
|
+
71239DAB1912BFF70058657F /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
|
37
|
+
71239DBF1912BFF80058657F /* ExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
38
|
+
71239DC01912BFF80058657F /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
|
|
39
|
+
71ECD7EC19AE84F300F86877 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
|
|
40
|
+
71ECD7F019AE850700F86877 /* Example-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Example-Info.plist"; sourceTree = "<group>"; };
|
|
41
|
+
71ECD7F119AE850700F86877 /* Example-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Example-Prefix.pch"; sourceTree = "<group>"; };
|
|
42
|
+
71ECD7F219AE850700F86877 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
|
43
|
+
71ECD7F719AE854800F86877 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = InfoPlist.strings; sourceTree = "<group>"; };
|
|
44
|
+
71ECD7F919AE85B700F86877 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = src/AppDelegate.h; sourceTree = "<group>"; };
|
|
45
|
+
71ECD7FA19AE85B700F86877 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = src/AppDelegate.m; sourceTree = "<group>"; };
|
|
46
|
+
/* End PBXFileReference section */
|
|
47
|
+
|
|
48
|
+
/* Begin PBXFrameworksBuildPhase section */
|
|
49
|
+
71239DA11912BFF70058657F /* Frameworks */ = {
|
|
50
|
+
isa = PBXFrameworksBuildPhase;
|
|
51
|
+
buildActionMask = 2147483647;
|
|
52
|
+
files = (
|
|
53
|
+
71239DAA1912BFF70058657F /* CoreGraphics.framework in Frameworks */,
|
|
54
|
+
71239DAC1912BFF70058657F /* UIKit.framework in Frameworks */,
|
|
55
|
+
71239DA81912BFF70058657F /* Foundation.framework in Frameworks */,
|
|
56
|
+
);
|
|
57
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
58
|
+
};
|
|
59
|
+
71239DBC1912BFF80058657F /* Frameworks */ = {
|
|
60
|
+
isa = PBXFrameworksBuildPhase;
|
|
61
|
+
buildActionMask = 2147483647;
|
|
62
|
+
files = (
|
|
63
|
+
71239DC11912BFF80058657F /* XCTest.framework in Frameworks */,
|
|
64
|
+
71239DC31912BFF80058657F /* UIKit.framework in Frameworks */,
|
|
65
|
+
71239DC21912BFF80058657F /* Foundation.framework in Frameworks */,
|
|
66
|
+
);
|
|
67
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
68
|
+
};
|
|
69
|
+
/* End PBXFrameworksBuildPhase section */
|
|
70
|
+
|
|
71
|
+
/* Begin PBXGroup section */
|
|
72
|
+
71239D9B1912BFF70058657F = {
|
|
73
|
+
isa = PBXGroup;
|
|
74
|
+
children = (
|
|
75
|
+
71ECD7E819AE849100F86877 /* src */,
|
|
76
|
+
71ECD7E919AE84F300F86877 /* res */,
|
|
77
|
+
71ECD7EF19AE850700F86877 /* Supporting_Files */,
|
|
78
|
+
71239DA61912BFF70058657F /* Frameworks */,
|
|
79
|
+
71239DA51912BFF70058657F /* Products */,
|
|
80
|
+
);
|
|
81
|
+
sourceTree = "<group>";
|
|
82
|
+
};
|
|
83
|
+
71239DA51912BFF70058657F /* Products */ = {
|
|
84
|
+
isa = PBXGroup;
|
|
85
|
+
children = (
|
|
86
|
+
71239DA41912BFF70058657F /* Example.app */,
|
|
87
|
+
71239DBF1912BFF80058657F /* ExampleTests.xctest */,
|
|
88
|
+
);
|
|
89
|
+
name = Products;
|
|
90
|
+
sourceTree = "<group>";
|
|
91
|
+
};
|
|
92
|
+
71239DA61912BFF70058657F /* Frameworks */ = {
|
|
93
|
+
isa = PBXGroup;
|
|
94
|
+
children = (
|
|
95
|
+
71239DA71912BFF70058657F /* Foundation.framework */,
|
|
96
|
+
71239DA91912BFF70058657F /* CoreGraphics.framework */,
|
|
97
|
+
71239DAB1912BFF70058657F /* UIKit.framework */,
|
|
98
|
+
71239DC01912BFF80058657F /* XCTest.framework */,
|
|
99
|
+
);
|
|
100
|
+
name = Frameworks;
|
|
101
|
+
sourceTree = "<group>";
|
|
102
|
+
};
|
|
103
|
+
71ECD7E819AE849100F86877 /* src */ = {
|
|
104
|
+
isa = PBXGroup;
|
|
105
|
+
children = (
|
|
106
|
+
71ECD7F919AE85B700F86877 /* AppDelegate.h */,
|
|
107
|
+
71ECD7FA19AE85B700F86877 /* AppDelegate.m */,
|
|
108
|
+
);
|
|
109
|
+
name = src;
|
|
110
|
+
sourceTree = "<group>";
|
|
111
|
+
};
|
|
112
|
+
71ECD7E919AE84F300F86877 /* res */ = {
|
|
113
|
+
isa = PBXGroup;
|
|
114
|
+
children = (
|
|
115
|
+
71ECD7EC19AE84F300F86877 /* Images.xcassets */,
|
|
116
|
+
);
|
|
117
|
+
path = res;
|
|
118
|
+
sourceTree = "<group>";
|
|
119
|
+
};
|
|
120
|
+
71ECD7EF19AE850700F86877 /* Supporting_Files */ = {
|
|
121
|
+
isa = PBXGroup;
|
|
122
|
+
children = (
|
|
123
|
+
71ECD7F019AE850700F86877 /* Example-Info.plist */,
|
|
124
|
+
71ECD7F619AE854800F86877 /* InfoPlist.strings */,
|
|
125
|
+
71ECD7F219AE850700F86877 /* main.m */,
|
|
126
|
+
71ECD7F119AE850700F86877 /* Example-Prefix.pch */,
|
|
127
|
+
);
|
|
128
|
+
path = Supporting_Files;
|
|
129
|
+
sourceTree = "<group>";
|
|
130
|
+
};
|
|
131
|
+
/* End PBXGroup section */
|
|
132
|
+
|
|
133
|
+
/* Begin PBXNativeTarget section */
|
|
134
|
+
71239DA31912BFF70058657F /* Example */ = {
|
|
135
|
+
isa = PBXNativeTarget;
|
|
136
|
+
buildConfigurationList = 71239DD01912BFF80058657F /* Build configuration list for PBXNativeTarget "Example" */;
|
|
137
|
+
buildPhases = (
|
|
138
|
+
71239DA01912BFF70058657F /* Sources */,
|
|
139
|
+
71239DA11912BFF70058657F /* Frameworks */,
|
|
140
|
+
71239DA21912BFF70058657F /* Resources */,
|
|
141
|
+
);
|
|
142
|
+
buildRules = (
|
|
143
|
+
);
|
|
144
|
+
dependencies = (
|
|
145
|
+
);
|
|
146
|
+
name = Example;
|
|
147
|
+
productName = Example;
|
|
148
|
+
productReference = 71239DA41912BFF70058657F /* Example.app */;
|
|
149
|
+
productType = "com.apple.product-type.application";
|
|
150
|
+
};
|
|
151
|
+
71239DBE1912BFF80058657F /* ExampleTests */ = {
|
|
152
|
+
isa = PBXNativeTarget;
|
|
153
|
+
buildConfigurationList = 71239DD31912BFF80058657F /* Build configuration list for PBXNativeTarget "ExampleTests" */;
|
|
154
|
+
buildPhases = (
|
|
155
|
+
71239DBB1912BFF80058657F /* Sources */,
|
|
156
|
+
71239DBC1912BFF80058657F /* Frameworks */,
|
|
157
|
+
71239DBD1912BFF80058657F /* Resources */,
|
|
158
|
+
);
|
|
159
|
+
buildRules = (
|
|
160
|
+
);
|
|
161
|
+
dependencies = (
|
|
162
|
+
71239DC51912BFF80058657F /* PBXTargetDependency */,
|
|
163
|
+
);
|
|
164
|
+
name = ExampleTests;
|
|
165
|
+
productName = ExampleTests;
|
|
166
|
+
productReference = 71239DBF1912BFF80058657F /* ExampleTests.xctest */;
|
|
167
|
+
productType = "com.apple.product-type.bundle.unit-test";
|
|
168
|
+
};
|
|
169
|
+
/* End PBXNativeTarget section */
|
|
170
|
+
|
|
171
|
+
/* Begin PBXProject section */
|
|
172
|
+
71239D9C1912BFF70058657F /* Project object */ = {
|
|
173
|
+
isa = PBXProject;
|
|
174
|
+
attributes = {
|
|
175
|
+
LastUpgradeCheck = 0510;
|
|
176
|
+
ORGANIZATIONNAME = XCRes;
|
|
177
|
+
TargetAttributes = {
|
|
178
|
+
71239DBE1912BFF80058657F = {
|
|
179
|
+
TestTargetID = 71239DA31912BFF70058657F;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
buildConfigurationList = 71239D9F1912BFF70058657F /* Build configuration list for PBXProject "Example" */;
|
|
184
|
+
compatibilityVersion = "Xcode 3.2";
|
|
185
|
+
developmentRegion = English;
|
|
186
|
+
hasScannedForEncodings = 0;
|
|
187
|
+
knownRegions = (
|
|
188
|
+
en,
|
|
189
|
+
de,
|
|
190
|
+
);
|
|
191
|
+
mainGroup = 71239D9B1912BFF70058657F;
|
|
192
|
+
productRefGroup = 71239DA51912BFF70058657F /* Products */;
|
|
193
|
+
projectDirPath = "";
|
|
194
|
+
projectRoot = "";
|
|
195
|
+
targets = (
|
|
196
|
+
71239DA31912BFF70058657F /* Example */,
|
|
197
|
+
71239DBE1912BFF80058657F /* ExampleTests */,
|
|
198
|
+
);
|
|
199
|
+
};
|
|
200
|
+
/* End PBXProject section */
|
|
201
|
+
|
|
202
|
+
/* Begin PBXResourcesBuildPhase section */
|
|
203
|
+
71239DA21912BFF70058657F /* Resources */ = {
|
|
204
|
+
isa = PBXResourcesBuildPhase;
|
|
205
|
+
buildActionMask = 2147483647;
|
|
206
|
+
files = (
|
|
207
|
+
71ECD7EE19AE84F300F86877 /* Images.xcassets in Resources */,
|
|
208
|
+
71ECD7F819AE854800F86877 /* InfoPlist.strings in Resources */,
|
|
209
|
+
);
|
|
210
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
211
|
+
};
|
|
212
|
+
71239DBD1912BFF80058657F /* Resources */ = {
|
|
213
|
+
isa = PBXResourcesBuildPhase;
|
|
214
|
+
buildActionMask = 2147483647;
|
|
215
|
+
files = (
|
|
216
|
+
);
|
|
217
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
218
|
+
};
|
|
219
|
+
/* End PBXResourcesBuildPhase section */
|
|
220
|
+
|
|
221
|
+
/* Begin PBXSourcesBuildPhase section */
|
|
222
|
+
71239DA01912BFF70058657F /* Sources */ = {
|
|
223
|
+
isa = PBXSourcesBuildPhase;
|
|
224
|
+
buildActionMask = 2147483647;
|
|
225
|
+
files = (
|
|
226
|
+
71ECD7FB19AE85B700F86877 /* AppDelegate.m in Sources */,
|
|
227
|
+
71ECD7F419AE852900F86877 /* main.m in Sources */,
|
|
228
|
+
);
|
|
229
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
230
|
+
};
|
|
231
|
+
71239DBB1912BFF80058657F /* Sources */ = {
|
|
232
|
+
isa = PBXSourcesBuildPhase;
|
|
233
|
+
buildActionMask = 2147483647;
|
|
234
|
+
files = (
|
|
235
|
+
);
|
|
236
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
237
|
+
};
|
|
238
|
+
/* End PBXSourcesBuildPhase section */
|
|
239
|
+
|
|
240
|
+
/* Begin PBXTargetDependency section */
|
|
241
|
+
71239DC51912BFF80058657F /* PBXTargetDependency */ = {
|
|
242
|
+
isa = PBXTargetDependency;
|
|
243
|
+
target = 71239DA31912BFF70058657F /* Example */;
|
|
244
|
+
targetProxy = 71239DC41912BFF80058657F /* PBXContainerItemProxy */;
|
|
245
|
+
};
|
|
246
|
+
/* End PBXTargetDependency section */
|
|
247
|
+
|
|
248
|
+
/* Begin PBXVariantGroup section */
|
|
249
|
+
71ECD7F619AE854800F86877 /* InfoPlist.strings */ = {
|
|
250
|
+
isa = PBXVariantGroup;
|
|
251
|
+
children = (
|
|
252
|
+
71ECD7F719AE854800F86877 /* en */,
|
|
253
|
+
);
|
|
254
|
+
name = InfoPlist.strings;
|
|
255
|
+
path = en.lproj;
|
|
256
|
+
sourceTree = "<group>";
|
|
257
|
+
};
|
|
258
|
+
/* End PBXVariantGroup section */
|
|
259
|
+
|
|
260
|
+
/* Begin XCBuildConfiguration section */
|
|
261
|
+
71239DCE1912BFF80058657F /* Debug */ = {
|
|
262
|
+
isa = XCBuildConfiguration;
|
|
263
|
+
buildSettings = {
|
|
264
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
265
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
266
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
267
|
+
CLANG_ENABLE_MODULES = YES;
|
|
268
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
269
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
270
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
271
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
272
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
273
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
274
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
275
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
276
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
277
|
+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
|
278
|
+
COPY_PHASE_STRIP = NO;
|
|
279
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
280
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
|
281
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
|
282
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
283
|
+
"DEBUG=1",
|
|
284
|
+
"$(inherited)",
|
|
285
|
+
);
|
|
286
|
+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
287
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
288
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
289
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
290
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
291
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
292
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
293
|
+
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
|
|
294
|
+
ONLY_ACTIVE_ARCH = YES;
|
|
295
|
+
SDKROOT = iphoneos;
|
|
296
|
+
};
|
|
297
|
+
name = Debug;
|
|
298
|
+
};
|
|
299
|
+
71239DCF1912BFF80058657F /* Release */ = {
|
|
300
|
+
isa = XCBuildConfiguration;
|
|
301
|
+
buildSettings = {
|
|
302
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
303
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
304
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
305
|
+
CLANG_ENABLE_MODULES = YES;
|
|
306
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
307
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
308
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
309
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
310
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
311
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
312
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
313
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
314
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
315
|
+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
|
316
|
+
COPY_PHASE_STRIP = YES;
|
|
317
|
+
ENABLE_NS_ASSERTIONS = NO;
|
|
318
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
319
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
320
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
321
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
322
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
323
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
324
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
325
|
+
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
|
|
326
|
+
SDKROOT = iphoneos;
|
|
327
|
+
VALIDATE_PRODUCT = YES;
|
|
328
|
+
};
|
|
329
|
+
name = Release;
|
|
330
|
+
};
|
|
331
|
+
71239DD11912BFF80058657F /* Debug */ = {
|
|
332
|
+
isa = XCBuildConfiguration;
|
|
333
|
+
buildSettings = {
|
|
334
|
+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
335
|
+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
|
|
336
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
|
337
|
+
GCC_PREFIX_HEADER = "Supporting_Files/Example-Prefix.pch";
|
|
338
|
+
INFOPLIST_FILE = "Supporting_Files/Example-Info.plist";
|
|
339
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
340
|
+
WRAPPER_EXTENSION = app;
|
|
341
|
+
};
|
|
342
|
+
name = Debug;
|
|
343
|
+
};
|
|
344
|
+
71239DD21912BFF80058657F /* Release */ = {
|
|
345
|
+
isa = XCBuildConfiguration;
|
|
346
|
+
buildSettings = {
|
|
347
|
+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
348
|
+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
|
|
349
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
|
350
|
+
GCC_PREFIX_HEADER = "Supporting_Files/Example-Prefix.pch";
|
|
351
|
+
INFOPLIST_FILE = "Supporting_Files/Example-Info.plist";
|
|
352
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
353
|
+
WRAPPER_EXTENSION = app;
|
|
354
|
+
};
|
|
355
|
+
name = Release;
|
|
356
|
+
};
|
|
357
|
+
71239DD41912BFF80058657F /* Debug */ = {
|
|
358
|
+
isa = XCBuildConfiguration;
|
|
359
|
+
buildSettings = {
|
|
360
|
+
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Example.app/Example";
|
|
361
|
+
FRAMEWORK_SEARCH_PATHS = (
|
|
362
|
+
"$(SDKROOT)/Developer/Library/Frameworks",
|
|
363
|
+
"$(inherited)",
|
|
364
|
+
"$(DEVELOPER_FRAMEWORKS_DIR)",
|
|
365
|
+
);
|
|
366
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
|
367
|
+
GCC_PREFIX_HEADER = "Example/Example-Prefix.pch";
|
|
368
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
369
|
+
"DEBUG=1",
|
|
370
|
+
"$(inherited)",
|
|
371
|
+
);
|
|
372
|
+
INFOPLIST_FILE = "ExampleTests/ExampleTests-Info.plist";
|
|
373
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
374
|
+
TEST_HOST = "$(BUNDLE_LOADER)";
|
|
375
|
+
WRAPPER_EXTENSION = xctest;
|
|
376
|
+
};
|
|
377
|
+
name = Debug;
|
|
378
|
+
};
|
|
379
|
+
71239DD51912BFF80058657F /* Release */ = {
|
|
380
|
+
isa = XCBuildConfiguration;
|
|
381
|
+
buildSettings = {
|
|
382
|
+
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Example.app/Example";
|
|
383
|
+
FRAMEWORK_SEARCH_PATHS = (
|
|
384
|
+
"$(SDKROOT)/Developer/Library/Frameworks",
|
|
385
|
+
"$(inherited)",
|
|
386
|
+
"$(DEVELOPER_FRAMEWORKS_DIR)",
|
|
387
|
+
);
|
|
388
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
|
389
|
+
GCC_PREFIX_HEADER = "Example/Example-Prefix.pch";
|
|
390
|
+
INFOPLIST_FILE = "ExampleTests/ExampleTests-Info.plist";
|
|
391
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
392
|
+
TEST_HOST = "$(BUNDLE_LOADER)";
|
|
393
|
+
WRAPPER_EXTENSION = xctest;
|
|
394
|
+
};
|
|
395
|
+
name = Release;
|
|
396
|
+
};
|
|
397
|
+
/* End XCBuildConfiguration section */
|
|
398
|
+
|
|
399
|
+
/* Begin XCConfigurationList section */
|
|
400
|
+
71239D9F1912BFF70058657F /* Build configuration list for PBXProject "Example" */ = {
|
|
401
|
+
isa = XCConfigurationList;
|
|
402
|
+
buildConfigurations = (
|
|
403
|
+
71239DCE1912BFF80058657F /* Debug */,
|
|
404
|
+
71239DCF1912BFF80058657F /* Release */,
|
|
405
|
+
);
|
|
406
|
+
defaultConfigurationIsVisible = 0;
|
|
407
|
+
defaultConfigurationName = Release;
|
|
408
|
+
};
|
|
409
|
+
71239DD01912BFF80058657F /* Build configuration list for PBXNativeTarget "Example" */ = {
|
|
410
|
+
isa = XCConfigurationList;
|
|
411
|
+
buildConfigurations = (
|
|
412
|
+
71239DD11912BFF80058657F /* Debug */,
|
|
413
|
+
71239DD21912BFF80058657F /* Release */,
|
|
414
|
+
);
|
|
415
|
+
defaultConfigurationIsVisible = 0;
|
|
416
|
+
defaultConfigurationName = Release;
|
|
417
|
+
};
|
|
418
|
+
71239DD31912BFF80058657F /* Build configuration list for PBXNativeTarget "ExampleTests" */ = {
|
|
419
|
+
isa = XCConfigurationList;
|
|
420
|
+
buildConfigurations = (
|
|
421
|
+
71239DD41912BFF80058657F /* Debug */,
|
|
422
|
+
71239DD51912BFF80058657F /* Release */,
|
|
423
|
+
);
|
|
424
|
+
defaultConfigurationIsVisible = 0;
|
|
425
|
+
defaultConfigurationName = Release;
|
|
426
|
+
};
|
|
427
|
+
/* End XCConfigurationList section */
|
|
428
|
+
};
|
|
429
|
+
rootObject = 71239D9C1912BFF70058657F /* Project object */;
|
|
430
|
+
}
|
data/spec/integration/install-no-supporting-files/before/Example/Supporting_Files/Example-Info.plist
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>en</string>
|
|
7
|
+
<key>CFBundleDisplayName</key>
|
|
8
|
+
<string>${PRODUCT_NAME}</string>
|
|
9
|
+
<key>CFBundleExecutable</key>
|
|
10
|
+
<string>${EXECUTABLE_NAME}</string>
|
|
11
|
+
<key>CFBundleIdentifier</key>
|
|
12
|
+
<string>io.github.xcres.${PRODUCT_NAME:rfc1034identifier}</string>
|
|
13
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
14
|
+
<string>6.0</string>
|
|
15
|
+
<key>CFBundleName</key>
|
|
16
|
+
<string>${PRODUCT_NAME}</string>
|
|
17
|
+
<key>CFBundlePackageType</key>
|
|
18
|
+
<string>APPL</string>
|
|
19
|
+
<key>CFBundleShortVersionString</key>
|
|
20
|
+
<string>1.0</string>
|
|
21
|
+
<key>CFBundleSignature</key>
|
|
22
|
+
<string>????</string>
|
|
23
|
+
<key>CFBundleVersion</key>
|
|
24
|
+
<string>1.0</string>
|
|
25
|
+
<key>LSRequiresIPhoneOS</key>
|
|
26
|
+
<true/>
|
|
27
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
28
|
+
<array>
|
|
29
|
+
<string>armv7</string>
|
|
30
|
+
</array>
|
|
31
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
32
|
+
<array>
|
|
33
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
34
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
35
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
36
|
+
</array>
|
|
37
|
+
</dict>
|
|
38
|
+
</plist>
|
data/spec/integration/install-no-supporting-files/before/Example/Supporting_Files/Example-Prefix.pch
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Prefix header
|
|
3
|
+
//
|
|
4
|
+
// The contents of this file are implicitly included at the beginning of every source file.
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
#import <Availability.h>
|
|
8
|
+
|
|
9
|
+
#ifndef __IPHONE_3_0
|
|
10
|
+
#warning "This project uses features only available in iOS SDK 3.0 and later."
|
|
11
|
+
#endif
|
|
12
|
+
|
|
13
|
+
#ifdef __OBJC__
|
|
14
|
+
#import <UIKit/UIKit.h>
|
|
15
|
+
#import <Foundation/Foundation.h>
|
|
16
|
+
#endif
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//
|
|
2
|
+
// main.m
|
|
3
|
+
// Example
|
|
4
|
+
//
|
|
5
|
+
// Created by Marius Rackwitz on 01.05.14.
|
|
6
|
+
// Copyright (c) 2014 XCRes. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <UIKit/UIKit.h>
|
|
10
|
+
|
|
11
|
+
#import "AppDelegate.h"
|
|
12
|
+
|
|
13
|
+
int main(int argc, char * argv[])
|
|
14
|
+
{
|
|
15
|
+
@autoreleasepool {
|
|
16
|
+
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"idiom" : "iphone",
|
|
5
|
+
"size" : "29x29",
|
|
6
|
+
"scale" : "2x"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"idiom" : "iphone",
|
|
10
|
+
"size" : "40x40",
|
|
11
|
+
"scale" : "2x"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"idiom" : "iphone",
|
|
15
|
+
"size" : "60x60",
|
|
16
|
+
"scale" : "2x"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"info" : {
|
|
20
|
+
"version" : 1,
|
|
21
|
+
"author" : "xcode"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"images" : [
|
|
3
|
+
{
|
|
4
|
+
"orientation" : "portrait",
|
|
5
|
+
"idiom" : "iphone",
|
|
6
|
+
"extent" : "full-screen",
|
|
7
|
+
"minimum-system-version" : "7.0",
|
|
8
|
+
"scale" : "2x"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"orientation" : "portrait",
|
|
12
|
+
"idiom" : "iphone",
|
|
13
|
+
"subtype" : "retina4",
|
|
14
|
+
"extent" : "full-screen",
|
|
15
|
+
"minimum-system-version" : "7.0",
|
|
16
|
+
"scale" : "2x"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"info" : {
|
|
20
|
+
"version" : 1,
|
|
21
|
+
"author" : "xcode"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AppDelegate.h
|
|
3
|
+
// Example
|
|
4
|
+
//
|
|
5
|
+
// Created by Marius Rackwitz on 01.05.14.
|
|
6
|
+
// Copyright (c) 2014 XCRes. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <UIKit/UIKit.h>
|
|
10
|
+
|
|
11
|
+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
|
|
12
|
+
|
|
13
|
+
@property (strong, nonatomic) UIWindow *window;
|
|
14
|
+
|
|
15
|
+
@end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AppDelegate.m
|
|
3
|
+
// Example
|
|
4
|
+
//
|
|
5
|
+
// Created by Marius Rackwitz on 01.05.14.
|
|
6
|
+
// Copyright (c) 2014 XCRes. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "AppDelegate.h"
|
|
10
|
+
|
|
11
|
+
@implementation AppDelegate
|
|
12
|
+
|
|
13
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
14
|
+
{
|
|
15
|
+
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
|
16
|
+
// Override point for customization after application launch.
|
|
17
|
+
self.window.backgroundColor = [UIColor whiteColor];
|
|
18
|
+
[self.window makeKeyAndVisible];
|
|
19
|
+
return YES;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
- (void)applicationWillResignActive:(UIApplication *)application
|
|
23
|
+
{
|
|
24
|
+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
|
25
|
+
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
- (void)applicationDidEnterBackground:(UIApplication *)application
|
|
29
|
+
{
|
|
30
|
+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
|
31
|
+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
- (void)applicationWillEnterForeground:(UIApplication *)application
|
|
35
|
+
{
|
|
36
|
+
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
- (void)applicationDidBecomeActive:(UIApplication *)application
|
|
40
|
+
{
|
|
41
|
+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
- (void)applicationWillTerminate:(UIApplication *)application
|
|
45
|
+
{
|
|
46
|
+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@end
|
|
File without changes
|