fastlane/lib/fastlane/actions/gradle.rb in fastlane-2.8.0 vs fastlane/lib/fastlane/actions/gradle.rb in fastlane-2.9.0

- old
+ new

@@ -51,10 +51,10 @@ flags: flags.join(' '), print_command: params[:print_command], print_command_output: params[:print_command_output]) # If we didn't build, then we return now, as it makes no sense to search for apk's in a non-`assemble` scenario - return result unless task.start_with?('assemble') + return result unless task =~ /\b(assemble)/ apk_search_path = File.join(project_dir, '**', 'build', 'outputs', 'apk', '*.apk') # Our apk is now built, but there might actually be multiple ones that were built if a flavor was not specified in a multi-flavor project (e.g. `assembleRelease`), however we're not interested in unaligned apk's... new_apks = Dir[apk_search_path].reject { |path| path =~ /^.*-unaligned.apk$/i }