fastlane/lib/fastlane/actions/gradle.rb in fastlane-2.46.0.beta.20170710010003 vs fastlane/lib/fastlane/actions/gradle.rb in fastlane-2.46.0
- old
+ new
@@ -53,10 +53,10 @@
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 =~ /\b(assemble)/
- apk_search_path = File.join(project_dir, '**', 'build', 'outputs', 'apk', '*.apk')
+ 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 }
new_apks = new_apks.map { |path| File.expand_path(path) }