From 52f70a61ff5c551d35b3b6569045701c3ca4f9ad Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Fri, 26 Aug 2016 11:47:50 -0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20depend=20on=20tonic/debugger=20?= =?UTF-8?q?in=20release=20since=20the=20Dart=20debugger=20is=20unavailable?= =?UTF-8?q?=20in=20product=20mode.=20(flutter/engine#2972)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine/src/flutter/runtime/BUILD.gn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/runtime/BUILD.gn b/engine/src/flutter/runtime/BUILD.gn index 4286fceb9c..bf90bece94 100644 --- a/engine/src/flutter/runtime/BUILD.gn +++ b/engine/src/flutter/runtime/BUILD.gn @@ -70,10 +70,15 @@ source_set("runtime") { "//flutter/skia", "//lib/ftl", "//lib/tonic", - "//lib/tonic/debugger", "//mojo/public/platform/dart:mojo_internal_impl", ] + if (flutter_runtime_mode != "release") { + deps += [ + "//lib/tonic/debugger", + ] + } + if (is_android) { deps += [ "//flutter/lib/jni",