openbakery / gradle-xcodePlugin

gradle plugin for building Xcode Projects for iOS, watchOS, macOS or tvOS
Apache License 2.0
457 stars 127 forks source link

Support for transformations on build settings #382

Closed phatblat closed 6 years ago

phatblat commented 6 years ago

Sometimes Xcode build settings contain transformations which operate on the build setting value, modifying it like simple shell parameter expansion.

When one of these transformations is present, it breaks the logic in VariableResolver. This PR adds support for these transformations.

Currently this only supports a single transformation (I've never seen them chained in a real project), but the regex could easily be changed to support chained transformations.

Fixes #361