@@ -34,7 +34,7 @@ const _totalTimeout = Duration(minutes: 50);
3434
3535/// The dartdoc version to use.
3636/// keep in-sync with app/lib/shared/versions.dart
37- const _dartdocVersion = '8.1 .0' ;
37+ const _dartdocVersion = '8.3 .0' ;
3838
3939/// Program to be used as subprocess for running pana, ensuring that we capture
4040/// all the output, and only run analysis in a subprocess that can timeout and
@@ -99,9 +99,6 @@ Future<void> main(List<String> args) async {
9999 final pkgDir = Directory (p.join (pkgDownloadDir.path, '$package -$version ' ));
100100 final detected = await _detectSdks (pkgDir.path);
101101
102- final dartdocVersion =
103- (await _overrideDartdocVersion (pkgDir.path)) ?? _dartdocVersion;
104-
105102 final toolEnv = await ToolEnvironment .create (
106103 dartSdkConfig: SdkConfig (
107104 rootPath: detected.dartSdkPath,
@@ -112,7 +109,7 @@ Future<void> main(List<String> args) async {
112109 configHomePath: _configHomePath ('flutter' , detected.configKind),
113110 ),
114111 pubCacheDir: pubCache,
115- dartdocVersion: dartdocVersion ,
112+ dartdocVersion: _dartdocVersion ,
116113 );
117114
118115 //final dartdocOutputDir =
@@ -194,21 +191,6 @@ String? _configHomePath(String sdk, String kind) {
194191 return path;
195192}
196193
197- /// Detects the package dependencies and overrides the dartdoc version to
198- /// 8.3.0 if macros is being used.
199- ///
200- /// TODO: remove this after the 3.6 SDK is released.
201- Future <String ?> _overrideDartdocVersion (String pkgDir) async {
202- final pubspecFile = File (p.join (pkgDir, 'pubspec.yaml' ));
203- final pubspec = Pubspec .parseYaml (await pubspecFile.readAsString ());
204- final minMacrosVersion = pubspec.getDependencyContraintRangeMin ('macros' );
205- if (minMacrosVersion != null &&
206- minMacrosVersion.compareTo (Version .parse ('0.1.3-main.0' )) >= 0 ) {
207- return '8.3.0' ;
208- }
209- return null ;
210- }
211-
212194Future <({String configKind, String ? dartSdkPath, String ? flutterSdkPath})>
213195 _detectSdks (String pkgDir) async {
214196 // Load the pubspec so we detect which SDK to use for analysis
0 commit comments