Skip to content

Commit 04caa79

Browse files
authored
Merge pull request #21 from jdee/check-for-add-modified-files
Only call add_modified_files if it exists.
2 parents 9522f8d + a0941a9 commit 04caa79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ update_settings_bundle(
124124

125125
### Use with commit_version_bump
126126

127-
As of version 1.3.0 (which requires Fastlane 2.64.0), it is no longer necessary
127+
As of version 1.3.0, it is no longer necessary
128128
to pass a `settings` parameter to the built-in `commit_version_bump` action
129-
when using `update_settings_bundle`.
129+
when using `update_settings_bundle` if you are using Fastlane >= 2.64.0.
130130

131131
```ruby
132132
increment_build_number

lib/fastlane/plugin/settings_bundle/helper/settings_bundle_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def update_settings_plist_title_setting(project, bundle_name, file, key, value)
126126
# Save (raises)
127127
Plist::Emit.save_plist settings_plist, plist_path
128128

129-
Actions.add_modified_files [plist_path]
129+
Actions.add_modified_files [plist_path] if Actions.respond_to? :add_modified_files
130130
end
131131

132132
def xcodeproj_path_from_params(params)

0 commit comments

Comments
 (0)