From fea0c153d422631dbe1a6cd8b3e41d193f9cbc17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malo=20L=C3=A9on?= Date: Tue, 8 Aug 2023 18:28:03 +0200 Subject: [PATCH] feat: pass args on android cd --- .../android_cd/actions/build_and_deploy_action.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 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 72518a8..504080e 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 @@ -18,7 +18,8 @@ module Fastlane # Build the Android App Bundle other_action.flutter_build( - build: 'appbundle' + build: 'appbundle', + build_args: params[:build_args] ) UI.message("👉🏼 App built") @@ -61,7 +62,13 @@ module Fastlane FastlaneCore::ConfigItem.new(key: :beta_type, env_name: "ANDROID_CD_TEST_TYPE", optional: false, - description: "Type of test (production, beta, alpha, internal)") + description: "Type of test (production, beta, alpha, internal)"), + FastlaneCore::ConfigItem.new( + key: :build_args, + description: 'An array of extra arguments for "flutter build"', + optional: true, + type: Array + ) ] end