Skip to content

Commit 6b43a1f

Browse files
committed
Fix error when building an app with old version of support library
1 parent af4f06d commit 6b43a1f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/fastlane/plugin/commit_android_version_bump/actions/commit_android_version_bump_action.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ def self.run(params)
1010
app_folder_name ||= params[:app_folder_name]
1111
UI.message("The commit_android_version_bump plugin is looking inside your project folder (#{app_folder_name})!")
1212

13-
build_folder_paths = Dir[File.expand_path(File.join('**/',app_folder_name))]
13+
build_folder_paths = Dir[File.expand_path(File.join('**/',app_folder_name))].reject { |file| file.include?('build/') }
1414
# no build.gradle found: error
1515
UI.user_error!('Could not find a build folder in the current repository\'s working directory.') if build_folder_paths.count == 0
16+
17+
UI.message("Found the following project path: #{build_folder_paths}")
1618
# too many projects found: error
1719
if build_folder_paths.count > 1
1820
UI.user_error!("Found multiple build.gradle projects in the current repository's working directory.")

0 commit comments

Comments
 (0)