openbakery / gradle-xcodePlugin

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

VariableResolver is unable to resolve custom variables #463

Open jbruchanov opened 1 year ago

jbruchanov commented 1 year ago

Having this project template. https://github.com/JetBrains/compose-multiplatform-template

and there is a setup using xconfig build variables https://github.com/JetBrains/compose-multiplatform-template/blob/main/iosApp/Configuration/Config.xcconfig

Looks like the VariableResolver is just simplistic and in my case it has values with

key:'PRODUCT_NAME', value:'${APP_NAME}'

and then it's failing with named capturing group is missing trailing '}' here

https://github.com/openbakery/gradle-xcodePlugin/blob/main/libxcode/src/main/groovy/org/openbakery/util/VariableResolver.groovy#L66