Skip to content

Commit

Permalink
Build the robolectric tests by default for debug armv7 (flutter#27345)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield authored Jul 13, 2021
1 parent 1bc09bc commit 9102131
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion shell/platform/android/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ action("robolectric_tests") {
args += rebase_path(sources, root_build_dir)

deps = [
":android",
":android_jar",
":flutter_shell_java",
]
}
Expand Down Expand Up @@ -584,6 +584,12 @@ zip_bundle("android") {
]
deps += [ ":flutter_shell_native" ]
}

# We only run the robolectric tests for android_debug_unopt (arm CPU), and
# the target is relatively expensive to build.
if (flutter_runtime_mode == "debug" && current_cpu == "arm") {
deps += [ ":robolectric_tests" ]
}
}

action("gen_android_javadoc") {
Expand Down

0 comments on commit 9102131

Please sign in to comment.