Skip to content

Commit 9ae735c

Browse files
authored
Stop the modal dialog for tools (#5851)
1 parent 5863d45 commit 9ae735c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/io/flutter/sdk/FlutterSdkVersion.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ public class FlutterSdkVersion implements Comparable<FlutterSdkVersion> {
5656
/**
5757
* The version that supports --devtools-server-address in flutter run.
5858
*/
59+
@NotNull
5960
private static final FlutterSdkVersion MIN_PASS_DEVTOOLS_SDK = new FlutterSdkVersion("1.26.0-11.0.pre");
61+
@NotNull
62+
private static final FlutterSdkVersion MIN_OPTIONAL_PASS_DEVTOOLS_SDK = new FlutterSdkVersion("2.7.0-3.0.pre");
6063

6164
/**
6265
* The version that includes the skeleton template.
@@ -164,7 +167,7 @@ public boolean stableChannelSupportsPlatforms() {
164167
}
165168

166169
public boolean flutterRunSupportsDevToolsUrl() {
167-
return version != null && this.compareTo(MIN_PASS_DEVTOOLS_SDK) >= 0;
170+
return version != null && this.compareTo(MIN_PASS_DEVTOOLS_SDK) >= 0 && this.compareTo(MIN_OPTIONAL_PASS_DEVTOOLS_SDK) < 0;
168171
}
169172

170173
public boolean flutterTestSupportsMachineMode() {

0 commit comments

Comments
 (0)