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")