Skip to content

Commit 1e9a811

Browse files
[3.35] Do not include :unittests unless enable_unittests (#173734)
This pull request is created by [automatic cherry pick workflow](https://github.com/flutter/flutter/blob/main/docs/releases/Flutter-Cherrypick-Process.md#automatically-creates-a-cherry-pick-request) Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request. ### Issue Link: What is the link to the issue this cherry-pick is addressing? #173728 ### Changelog Description: Explain this cherry pick in one line that is accessible to most Flutter developers. See [best practices](https://github.com/flutter/flutter/blob/main/docs/releases/Hotfix-Documentation-Best-Practices.md) for examples N/A ### Impact Description: What is the impact (ex. visual jank on Samsung phones, app crash, cannot ship an iOS app)? Does it impact development (ex. flutter doctor crashes when Android Studio is installed), or the shipping production app (the app crashes on launch) Skips building Android unit tests during the engine release builder ### Workaround: Is there a workaround for this issue? No ### Risk: What is the risk level of this cherry-pick? ### Test Coverage: Are you confident that your fix is well-tested by automated tests? ### Validation Steps: What are the steps to validate that this fix works? The release builder step works.
1 parent afefd5d commit 1e9a811

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

engine/src/flutter/BUILD.gn

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ group("flutter") {
7878

7979
if (!is_qnx) {
8080
public_deps = [
81-
":unittests",
8281
"//flutter/shell/platform/embedder:flutter_engine",
8382
"//flutter/sky",
8483
]
84+
if (enable_unittests) {
85+
public_deps += [ ":unittests" ]
86+
}
8587
}
8688

8789
# Ensure the example for a sample embedder compiles.

0 commit comments

Comments
 (0)