Skip to content

Instantly share code, notes, and snippets.

@TheDancerCodes
Last active April 20, 2023 20:54
Show Gist options
  • Save TheDancerCodes/943e8bea99e09b0881020321327ad733 to your computer and use it in GitHub Desktop.
Save TheDancerCodes/943e8bea99e09b0881020321327ad733 to your computer and use it in GitHub Desktop.
This is the Fastfile containing the lane that deploys to Huawei AppGallery Connect
default_platform(:android)
platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
desc "Deploy a new build to Huawei App Gallery"
lane :deploy_huawei_app_gallery do
huawei_appgallery_connect(
client_id: ENV["HUAWEI_APP_GALLERY_CONNECT_CLIENT_ID"],
client_secret: ENV["HUAWEI_APP_GALLERY_CONNECT_KEY"],
app_id: ENV["HUAWEI_APP_GALLERY_CONNECT_APP_ID"], #app id
apk_path: "<APK_PATH>", #path to the apk/aab file - in our case it is "../build/app/outputs/bundle/productionRelease/app-production-release.aab"
# if you're uploading aab instead of apk, specify is_aab to true and specify path to aab file on apk_path
is_aab: true,
# If you just want to upload your apk/aab file without submitting it for review, specify submit_for_review as false
submit_for_review: false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment