diff --git a/script/tool/lib/src/create_all_packages_app_command.dart b/script/tool/lib/src/create_all_packages_app_command.dart index 812c32133b2..5d60724799a 100644 --- a/script/tool/lib/src/create_all_packages_app_command.dart +++ b/script/tool/lib/src/create_all_packages_app_command.dart @@ -242,11 +242,8 @@ dependencies {} _adjustFile( gradleFile, replacements: >{ - if (gradleFileIsKotlin) - 'compileSdk': ['compileSdk = 34'] - else ...>{ - 'compileSdkVersion': ['compileSdk 34'], - } + 'compileSdk': ['compileSdk = 35'], + 'compileSdkVersion': ['compileSdk = 35'], }, regexReplacements: >{ // Tests for https://github.com/flutter/flutter/issues/43383 @@ -267,6 +264,8 @@ dependencies {} // section. }, ); + print('build.gradle contents:'); + print(content); } Future _genPubspecWithAllPlugins() async { diff --git a/script/tool/test/create_all_packages_app_command_test.dart b/script/tool/test/create_all_packages_app_command_test.dart index b65371a1971..ebf865a2452 100644 --- a/script/tool/test/create_all_packages_app_command_test.dart +++ b/script/tool/test/create_all_packages_app_command_test.dart @@ -342,7 +342,7 @@ android { buildGradle, containsAll([ contains('This is the legacy file'), - contains('compileSdk 34'), + contains('compileSdk = 35'), ])); }); @@ -375,7 +375,7 @@ android { expect( buildGradle, containsAll([ - contains('compileSdk 34'), + contains('compileSdk = 35'), contains('androidx.lifecycle:lifecycle-runtime'), ])); });