Fixed a bug and added support for release status while uploading build to Google Play store (#5947)

This commit is contained in:
Manoj Malik 2022-02-09 22:25:54 +05:30 committed by GitHub
parent b1b43ef000
commit 9694977504
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -933,6 +933,7 @@ def submit_to_testflight(ipa_path)
end
def submit_to_google_play(file_path)
filenames = []
if(file_path.include?("aab"))
aab_filename = Dir.glob(file_path).select { |f| File.file? f}.first
unless ENV['SUPPLY_JSON_KEY'].nil? || ENV['SUPPLY_JSON_KEY'].empty?
@ -943,6 +944,7 @@ def submit_to_google_play(file_path)
skip_upload_apk: true
)
end
filenames.push(aab_filename)
else
apks = Dir.glob(file_path).select { |f| File.file? f}
filenames = apks.map {|f| File.basename(f)}