diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index bd6d5449..34d15e0e 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -63,6 +63,7 @@ platform :android do print_log "last_git_commit_short_hash #{short_hash}" remove_zone_pre_build(zone:"com") Dir.chdir "../.." do + sh("flutter","clean") sh("flutter","pub","get") sh("flutter", "build", "apk", "--no-tree-shake-icons", "--release", "--flavor", "sky_#{env}", "-t", "lib/main_sky_#{env}.dart", "--build-number=#{build_number}", "--build-name=#{build_version}") end diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index addeb50a..78d4d328 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -75,6 +75,7 @@ platform :ios do print_log "last_git_commit_short_hash #{short_hash}" remove_zone_pre_build(zone:"com") Dir.chdir "../.." do + sh("flutter","clean") sh("flutter","pub","get") end Dir.chdir ".." do