From fef6c757383363f5ef4f77a526a65898a35815d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malo=20L=C3=A9on?= Date: Tue, 11 Jul 2023 15:29:19 +0200 Subject: [PATCH] fix: use flutter_build action instead of gradle action (#25) --- .../android_cd/actions/build_and_deploy_action.rb | 13 ++----------- 1 file changed, 2 insertions(+), 11 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 84252e1..07001be 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 @@ -20,18 +20,9 @@ module Fastlane # Clean the project before building other_action.gradle(task: "clean") - # Set the build number based on the number of commits - build_number = other_action.number_of_commits - # Build the Android App Bundle - other_action.gradle( - task: "bundle", - build_type: "Release", - print_command: true, - project_dir: './', - properties: { - "android.injected.version.code" => build_number - } + other_action.flutter_build( + build: 'appbundle' ) UI.message("👉🏼 App built")