From 27917a1f816640af11409bef877b32677844a852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malo=20L=C3=A9on?= Date: Mon, 15 May 2023 19:07:10 +0200 Subject: [PATCH] refactor: remove class call with other_action --- .../plugin/android_cd/actions/build_and_deploy_action.rb | 8 ++++---- .../fastlane/plugin/android_cd/actions/promote_action.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/fastlane-plugin-android_cd/lib/fastlane/plugin/android_cd/actions/build_and_deploy_action.rb b/plugins/fastlane-plugin-android_cd/lib/fastlane/plugin/android_cd/actions/build_and_deploy_action.rb index f662a22..53f9935 100644 --- a/plugins/fastlane-plugin-android_cd/lib/fastlane/plugin/android_cd/actions/build_and_deploy_action.rb +++ b/plugins/fastlane-plugin-android_cd/lib/fastlane/plugin/android_cd/actions/build_and_deploy_action.rb @@ -17,13 +17,13 @@ module Fastlane Helper::AndroidCdHelper.decrypt_android_keys('.') # Clean the project before building - Fastlane::Actions.gradle(task: "clean") + other_action.gradle(task: "clean") # Set the build number based on the number of commits - build_number = Fastlane::Actions.number_of_commits + build_number = other_action.number_of_commits # Build the Android App Bundle - Actions(GradleAction.run( + other_action.gradle( task: "bundle", build_type: "Release", print_command: true, @@ -33,7 +33,7 @@ module Fastlane )) # Upload the Android App Bundle to the Play Store - Actions::UploadToPlayStoreAction.run( + other_action.upload_to_play_store( track: params[:beta_type], json_key: './service_account_key.json', aab: '../build/app/outputs/bundle/release/app-release.aab', diff --git a/plugins/fastlane-plugin-android_cd/lib/fastlane/plugin/android_cd/actions/promote_action.rb b/plugins/fastlane-plugin-android_cd/lib/fastlane/plugin/android_cd/actions/promote_action.rb index 180cea2..403bcfd 100644 --- a/plugins/fastlane-plugin-android_cd/lib/fastlane/plugin/android_cd/actions/promote_action.rb +++ b/plugins/fastlane-plugin-android_cd/lib/fastlane/plugin/android_cd/actions/promote_action.rb @@ -21,7 +21,7 @@ module Fastlane Helper::AndroidCdHelper.decrypt_android_keys('.') # Upload the Android App Bundle to the Play Store - Fastlane::Actions.upload_to_play_store( + other_action.upload_to_play_store( track: params[:from], json_key: './service_account_key.json', skip_upload_apk: true,