You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the ruby code that adds that functionality to fastlane's Supply::Client client:
require'supply'# Maybe at some point we will submit a PR to fastlane to add this to the main features? (would need to wrap it into an action first)moduleSupplyApkDownloadID=Struct.new(:package_name,:version_code,:download_id)classClient# @param [Fixnum] version_code# Version code of the app bundle.# @return [Array<ApkDownloadID>]#defget_univeral_apk_list(package_name:,version_code:)result=call_google_api{client.list_generatedapks(package_name,version_code)}result.generated_apks.mapdo |row|
ApkDownloadID.new(package_name,version_code,row.generated_universal_apk.download_id)endend# @param [Supply::ApkDownloadID] apk_id# The ApkDownloadID retrieved from `get_univeral_apk_list`# @param [IO, String] destination# IO stream or filename to receive content download#defdownload_univeral_apk(apk_id:,destination:)call_google_api{client.download_generatedapk(apk_id.package_name,apk_id.version_code,apk_id.download_id,download_dest: destination)}endendend
We need to turn that code into a Fastlane action that would:
Take a package_name, version_code, json_key and destination input parameters (ConfigItems)
Call the code above, improving it to add error handling, and auto-retry (especially in case we call this too soon after having uploaded the corresponding AAB if GPC haven't had time to generate the APK from it just yet), etc.
p1684504716992959-slack-C02KLTL3MKM
The text was updated successfully, but these errors were encountered:
This is the ruby code that adds that functionality to fastlane's
Supply::Client
client:Example usage for Tumblr Android:
We need to turn that code into a Fastlane action that would:
package_name
,version_code
,json_key
anddestination
input parameters (ConfigItem
s)p1684504716992959-slack-C02KLTL3MKM
The text was updated successfully, but these errors were encountered: