Code Monkey home page Code Monkey logo

xcode-same-targets's Introduction

xcode-same-targets

Check if XCode project targets contains same files. Supports for target exclusive files.

Usage

Just run 'xcode-same-targets' inside project folder to compare all targets together. In more complex case add ".xcode-same-targets' configuration file inside project folder.

Config file example:

{
    "compare-sets": [
        {
            "targets": ["First-AppStore", "Second-AppStore", "Third-AppStore"],
            "exclusive": { 
                          "First-AppStore": [
                                             "/resources/images/first_com/.*$",
                                             "/resources/sounds/message.wav$",
                                            ],
                          "Second-AppStore": [
                                              "/resources/infoplist-strings/second.*$",
                                             ]
                         }
        }
    ],
    "exclusive": {
        "Second-AppStore": [
                            "/resources/settings/mycom-alpha/Settings.bundle$"
                           ]
        "*": ["libPods.*?\.a$"]
    }
}
  1. Add multiple compare sets.
  2. Each compare set contains list of 'targets' to compare.
  3. Add exclusive files regex for target globally or specifically for compare set.
  4. You may use "*" as a target name inside globall "exclusive" block, it will be applied to all targets.

Here is what 'xcode-same-targets' will do with configuration file above:

Compare pairs:

[First-AppStore, Second-AppStore]
[First-AppStore, Third-AppStore]
[Second-AppStore, First-AppStore]
[Second-AppStore, Third-AppStore]
[Third-AppStore, First-AppStore]
[Third-AppStore, Second-AppStore]

Example for [First-AppStore, Second-AppStore]

  1. Get list of First-AppStore files
  2. Apply "/resources/infoplist-strings/second.*$", "/resources/settings/mycom-alpha/Settings.bundle$", "libPods.*?.a$" regexes to each path from (1) and if it matches add file to list of conflicting.
  3. Apply "/resources/images/first_com/.*$", "/resources/sounds/message.wav$" regexes to conflicting files and if it matches remove file from the list of conflicting.

xcode-same-targets's People

Contributors

smirn0v avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.