File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,10 @@ public class FlutterSdkVersion implements Comparable<FlutterSdkVersion> {
56
56
/**
57
57
* The version that supports --devtools-server-address in flutter run.
58
58
*/
59
+ @ NotNull
59
60
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" );
60
63
61
64
/**
62
65
* The version that includes the skeleton template.
@@ -164,7 +167,7 @@ public boolean stableChannelSupportsPlatforms() {
164
167
}
165
168
166
169
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 ;
168
171
}
169
172
170
173
public boolean flutterTestSupportsMachineMode () {
You can’t perform that action at this time.
0 commit comments