supply/lib/supply/client.rb in fastlane_hotfix-2.165.1 vs supply/lib/supply/client.rb in fastlane_hotfix-2.187.0

- old
+ new

@@ -277,17 +277,17 @@ # Updates or creates the listing for the specified language def update_listing_for_language(language: nil, title: nil, short_description: nil, full_description: nil, video: nil) ensure_active_edit! - listing = AndroidPublisher::Listing.new({ + listing = AndroidPublisher::Listing.new( language: language, title: title, full_description: full_description, short_description: short_description, video: video - }) + ) call_google_api do client.update_edit_listing( current_package_name, current_edit.id, @@ -325,15 +325,17 @@ end def upload_mapping(path_to_mapping, apk_version_code) ensure_active_edit! + extension = File.extname(path_to_mapping).downcase + call_google_api do client.upload_edit_deobfuscationfile( current_package_name, current_edit.id, apk_version_code, - "proguard", + extension == ".zip" ? "nativeCode" : "proguard", upload_source: path_to_mapping, content_type: "application/octet-stream" ) end end