fastlane/lib/fastlane/actions/get_version_number.rb in fastlane-2.132.0.beta.20190912200052 vs fastlane/lib/fastlane/actions/get_version_number.rb in fastlane-2.132.0.beta.20190913200058
- old
+ new
@@ -19,9 +19,12 @@
version_number = get_version_number_from_plist!(plist_file)
# Get from build settings if needed (ex: $(MARKETING_VERSION) is default in Xcode 11)
if version_number =~ /\$\(([\w\-]+)\)/
version_number = get_version_number_from_build_settings!(target, $1, configuration)
+ # ${MARKETING_VERSION} also works
+ elsif version_number =~ /\$\{([\w\-]+)\}/
+ version_number = get_version_number_from_build_settings!(target, $1, configuration)
end
# Store the number in the shared hash
Actions.lane_context[SharedValues::VERSION_NUMBER] = version_number