Skip to content

Commit cd50629

Browse files
committed
Hardcode 35
1 parent 584fc70 commit cd50629

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

script/tool/lib/src/create_all_packages_app_command.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,8 @@ dependencies {}
242242
_adjustFile(
243243
gradleFile,
244244
replacements: <String, List<String>>{
245-
if (gradleFileIsKotlin)
246-
'compileSdk': <String>['compileSdk = flutter.compileSdkVersion']
247-
else ...<String, List<String>>{
248-
'compileSdkVersion': <String>['compileSdk flutter.compileSdkVersion'],
249-
}
245+
'compileSdk': <String>['compileSdk = 35'],
246+
'compileSdkVersion': <String>['compileSdk = 35'],
250247
},
251248
regexReplacements: <RegExp, List<String>>{
252249
// Tests for https://github.com/flutter/flutter/issues/43383
@@ -267,6 +264,8 @@ dependencies {}
267264
// section.
268265
},
269266
);
267+
print('build.gradle contents:');
268+
print(content);
270269
}
271270

272271
Future<void> _genPubspecWithAllPlugins() async {

script/tool/test/create_all_packages_app_command_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ android {
342342
buildGradle,
343343
containsAll(<Matcher>[
344344
contains('This is the legacy file'),
345-
contains('compileSdk flutter.compileSdkVersion'),
345+
contains('compileSdk = 35'),
346346
]));
347347
});
348348

@@ -375,7 +375,7 @@ android {
375375
expect(
376376
buildGradle,
377377
containsAll(<Matcher>[
378-
contains('compileSdk flutter.compileSdkVersion'),
378+
contains('compileSdk = 35'),
379379
contains('androidx.lifecycle:lifecycle-runtime'),
380380
]));
381381
});

0 commit comments

Comments
 (0)