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
|
@@ -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
|
|
Binary file
|
|
@@ -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>
|
|
@@ -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,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,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,160 @@
|
|
|
1
|
+
|
|
2
|
+
File References:
|
|
3
|
+
- Example:
|
|
4
|
+
- AppDelegate.h
|
|
5
|
+
- AppDelegate.m
|
|
6
|
+
- Supporting Files:
|
|
7
|
+
- Default-568h@2x.png
|
|
8
|
+
- Default.png
|
|
9
|
+
- Default@2x.png
|
|
10
|
+
- Example-Info.plist
|
|
11
|
+
- InfoPlist.strings:
|
|
12
|
+
- en
|
|
13
|
+
- main.m
|
|
14
|
+
- Example-Prefix.pch
|
|
15
|
+
- Frameworks:
|
|
16
|
+
- Foundation.framework
|
|
17
|
+
- CoreGraphics.framework
|
|
18
|
+
- UIKit.framework
|
|
19
|
+
- XCTest.framework
|
|
20
|
+
- Products:
|
|
21
|
+
- Example.app
|
|
22
|
+
- ExampleTests.xctest
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Targets:
|
|
27
|
+
- Example:
|
|
28
|
+
Build Phases:
|
|
29
|
+
- SourcesBuildPhase:
|
|
30
|
+
- AppDelegate.m
|
|
31
|
+
- main.m
|
|
32
|
+
- FrameworksBuildPhase:
|
|
33
|
+
- CoreGraphics.framework
|
|
34
|
+
- UIKit.framework
|
|
35
|
+
- Foundation.framework
|
|
36
|
+
- ResourcesBuildPhase:
|
|
37
|
+
- Default@2x.png
|
|
38
|
+
- InfoPlist.strings
|
|
39
|
+
- Default-568h@2x.png
|
|
40
|
+
- Default.png
|
|
41
|
+
Build Configurations:
|
|
42
|
+
- Debug:
|
|
43
|
+
Build Settings:
|
|
44
|
+
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
|
|
45
|
+
GCC_PRECOMPILE_PREFIX_HEADER: 'YES'
|
|
46
|
+
GCC_PREFIX_HEADER: Example/Example-Prefix.pch
|
|
47
|
+
INFOPLIST_FILE: Example/Example-Info.plist
|
|
48
|
+
PRODUCT_NAME: "$(TARGET_NAME)"
|
|
49
|
+
WRAPPER_EXTENSION: app
|
|
50
|
+
- Release:
|
|
51
|
+
Build Settings:
|
|
52
|
+
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
|
|
53
|
+
GCC_PRECOMPILE_PREFIX_HEADER: 'YES'
|
|
54
|
+
GCC_PREFIX_HEADER: Example/Example-Prefix.pch
|
|
55
|
+
INFOPLIST_FILE: Example/Example-Info.plist
|
|
56
|
+
PRODUCT_NAME: "$(TARGET_NAME)"
|
|
57
|
+
WRAPPER_EXTENSION: app
|
|
58
|
+
- ExampleTests:
|
|
59
|
+
Build Phases:
|
|
60
|
+
- SourcesBuildPhase: []
|
|
61
|
+
- FrameworksBuildPhase:
|
|
62
|
+
- XCTest.framework
|
|
63
|
+
- UIKit.framework
|
|
64
|
+
- Foundation.framework
|
|
65
|
+
- ResourcesBuildPhase: []
|
|
66
|
+
Build Configurations:
|
|
67
|
+
- Debug:
|
|
68
|
+
Build Settings:
|
|
69
|
+
BUNDLE_LOADER: "$(BUILT_PRODUCTS_DIR)/Example.app/Example"
|
|
70
|
+
FRAMEWORK_SEARCH_PATHS:
|
|
71
|
+
- "$(SDKROOT)/Developer/Library/Frameworks"
|
|
72
|
+
- "$(inherited)"
|
|
73
|
+
- "$(DEVELOPER_FRAMEWORKS_DIR)"
|
|
74
|
+
GCC_PRECOMPILE_PREFIX_HEADER: 'YES'
|
|
75
|
+
GCC_PREFIX_HEADER: Example/Example-Prefix.pch
|
|
76
|
+
GCC_PREPROCESSOR_DEFINITIONS:
|
|
77
|
+
- DEBUG=1
|
|
78
|
+
- "$(inherited)"
|
|
79
|
+
INFOPLIST_FILE: ExampleTests/ExampleTests-Info.plist
|
|
80
|
+
PRODUCT_NAME: "$(TARGET_NAME)"
|
|
81
|
+
TEST_HOST: "$(BUNDLE_LOADER)"
|
|
82
|
+
WRAPPER_EXTENSION: xctest
|
|
83
|
+
- Release:
|
|
84
|
+
Build Settings:
|
|
85
|
+
BUNDLE_LOADER: "$(BUILT_PRODUCTS_DIR)/Example.app/Example"
|
|
86
|
+
FRAMEWORK_SEARCH_PATHS:
|
|
87
|
+
- "$(SDKROOT)/Developer/Library/Frameworks"
|
|
88
|
+
- "$(inherited)"
|
|
89
|
+
- "$(DEVELOPER_FRAMEWORKS_DIR)"
|
|
90
|
+
GCC_PRECOMPILE_PREFIX_HEADER: 'YES'
|
|
91
|
+
GCC_PREFIX_HEADER: Example/Example-Prefix.pch
|
|
92
|
+
INFOPLIST_FILE: ExampleTests/ExampleTests-Info.plist
|
|
93
|
+
PRODUCT_NAME: "$(TARGET_NAME)"
|
|
94
|
+
TEST_HOST: "$(BUNDLE_LOADER)"
|
|
95
|
+
WRAPPER_EXTENSION: xctest
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
Build Configurations:
|
|
100
|
+
- Debug:
|
|
101
|
+
Build Settings:
|
|
102
|
+
ALWAYS_SEARCH_USER_PATHS: 'NO'
|
|
103
|
+
CLANG_CXX_LANGUAGE_STANDARD: gnu++0x
|
|
104
|
+
CLANG_CXX_LIBRARY: libc++
|
|
105
|
+
CLANG_ENABLE_MODULES: 'YES'
|
|
106
|
+
CLANG_ENABLE_OBJC_ARC: 'YES'
|
|
107
|
+
CLANG_WARN_BOOL_CONVERSION: 'YES'
|
|
108
|
+
CLANG_WARN_CONSTANT_CONVERSION: 'YES'
|
|
109
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE: YES_ERROR
|
|
110
|
+
CLANG_WARN_EMPTY_BODY: 'YES'
|
|
111
|
+
CLANG_WARN_ENUM_CONVERSION: 'YES'
|
|
112
|
+
CLANG_WARN_INT_CONVERSION: 'YES'
|
|
113
|
+
CLANG_WARN_OBJC_ROOT_CLASS: YES_ERROR
|
|
114
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH: 'YES'
|
|
115
|
+
CODE_SIGN_IDENTITY[sdk=iphoneos*]: iPhone Developer
|
|
116
|
+
COPY_PHASE_STRIP: 'NO'
|
|
117
|
+
GCC_C_LANGUAGE_STANDARD: gnu99
|
|
118
|
+
GCC_DYNAMIC_NO_PIC: 'NO'
|
|
119
|
+
GCC_OPTIMIZATION_LEVEL: '0'
|
|
120
|
+
GCC_PREPROCESSOR_DEFINITIONS:
|
|
121
|
+
- DEBUG=1
|
|
122
|
+
- "$(inherited)"
|
|
123
|
+
GCC_SYMBOLS_PRIVATE_EXTERN: 'NO'
|
|
124
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION: 'YES'
|
|
125
|
+
GCC_WARN_ABOUT_RETURN_TYPE: YES_ERROR
|
|
126
|
+
GCC_WARN_UNDECLARED_SELECTOR: 'YES'
|
|
127
|
+
GCC_WARN_UNINITIALIZED_AUTOS: YES_AGGRESSIVE
|
|
128
|
+
GCC_WARN_UNUSED_FUNCTION: 'YES'
|
|
129
|
+
GCC_WARN_UNUSED_VARIABLE: 'YES'
|
|
130
|
+
IPHONEOS_DEPLOYMENT_TARGET: '7.1'
|
|
131
|
+
ONLY_ACTIVE_ARCH: 'YES'
|
|
132
|
+
SDKROOT: iphoneos
|
|
133
|
+
- Release:
|
|
134
|
+
Build Settings:
|
|
135
|
+
ALWAYS_SEARCH_USER_PATHS: 'NO'
|
|
136
|
+
CLANG_CXX_LANGUAGE_STANDARD: gnu++0x
|
|
137
|
+
CLANG_CXX_LIBRARY: libc++
|
|
138
|
+
CLANG_ENABLE_MODULES: 'YES'
|
|
139
|
+
CLANG_ENABLE_OBJC_ARC: 'YES'
|
|
140
|
+
CLANG_WARN_BOOL_CONVERSION: 'YES'
|
|
141
|
+
CLANG_WARN_CONSTANT_CONVERSION: 'YES'
|
|
142
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE: YES_ERROR
|
|
143
|
+
CLANG_WARN_EMPTY_BODY: 'YES'
|
|
144
|
+
CLANG_WARN_ENUM_CONVERSION: 'YES'
|
|
145
|
+
CLANG_WARN_INT_CONVERSION: 'YES'
|
|
146
|
+
CLANG_WARN_OBJC_ROOT_CLASS: YES_ERROR
|
|
147
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH: 'YES'
|
|
148
|
+
CODE_SIGN_IDENTITY[sdk=iphoneos*]: iPhone Developer
|
|
149
|
+
COPY_PHASE_STRIP: 'YES'
|
|
150
|
+
ENABLE_NS_ASSERTIONS: 'NO'
|
|
151
|
+
GCC_C_LANGUAGE_STANDARD: gnu99
|
|
152
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION: 'YES'
|
|
153
|
+
GCC_WARN_ABOUT_RETURN_TYPE: YES_ERROR
|
|
154
|
+
GCC_WARN_UNDECLARED_SELECTOR: 'YES'
|
|
155
|
+
GCC_WARN_UNINITIALIZED_AUTOS: YES_AGGRESSIVE
|
|
156
|
+
GCC_WARN_UNUSED_FUNCTION: 'YES'
|
|
157
|
+
GCC_WARN_UNUSED_VARIABLE: 'YES'
|
|
158
|
+
IPHONEOS_DEPLOYMENT_TARGET: '7.1'
|
|
159
|
+
SDKROOT: iphoneos
|
|
160
|
+
VALIDATE_PRODUCT: 'YES'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// generated by xcres
|
|
2
|
+
//
|
|
3
|
+
// DO NOT EDIT. This file is machine-generated and constantly overwritten.
|
|
4
|
+
// See https://github.com/mrackwitz/xcres for more info.
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
extern const struct R {
|
|
11
|
+
struct Images {
|
|
12
|
+
} Images;
|
|
13
|
+
struct Strings {
|
|
14
|
+
} Strings;
|
|
15
|
+
} R;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// generated by xcres
|
|
2
|
+
//
|
|
3
|
+
// DO NOT EDIT. This file is machine-generated and constantly overwritten.
|
|
4
|
+
// See https://github.com/mrackwitz/xcres for more info.
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
#import "R.h"
|
|
9
|
+
|
|
10
|
+
const struct R R = {
|
|
11
|
+
.Images = {
|
|
12
|
+
},
|
|
13
|
+
.Strings = {
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
xcres --verbose --no-ansi build Example . 2>&1
|
|
2
|
+
Ⓥ Verbose mode is enabled.
|
|
3
|
+
⚠ Argument XCODEPROJ is a directory. Try to locate the Xcode project in this directory.
|
|
4
|
+
✓ Use Example/Example.xcodeproj as XCODEPROJ.
|
|
5
|
+
Ⓥ Found #0 resource bundles in project.
|
|
6
|
+
Ⓥ Found #3 image files in project.
|
|
7
|
+
Ⓥ Found #0 asset catalogs in project.
|
|
8
|
+
Ⓥ Strings files in project: ["en.lproj/InfoPlist.strings"]
|
|
9
|
+
Ⓥ Native development languages: ["en"]
|
|
10
|
+
Ⓥ Used languages for .strings files: ["en"]
|
|
11
|
+
Ⓥ Preferred languages: ["en"]
|
|
12
|
+
Ⓥ Strings files after language selection: ["en.lproj/InfoPlist.strings"]
|
|
13
|
+
Ⓥ Non-ignored .strings files: []
|
|
14
|
+
✓ Successfully updated: ROOT/tmp/integration/build-keyword-clash/R.h
|
|
@@ -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
|
|
Binary file
|
|
@@ -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>
|
|
@@ -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,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,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
|
+
}
|