Skip to content

Commit 00a8323

Browse files
authored
Add documentation in flutter.groovy noting that we always use the latest available android version (flutter#131705)
Last piece of/ Fixes flutter#131425 Also added a period to a comment line that was missing one.
1 parent 253bd3d commit 00a8323

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/flutter_tools/gradle/src/main/groovy/flutter.groovy

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,18 @@ class FlutterExtension {
4949
/** Sets the minSdkVersion used by default in Flutter app projects. */
5050
static int minSdkVersion = 19
5151

52-
/** Sets the targetSdkVersion used by default in Flutter app projects. */
52+
/**
53+
* Sets the targetSdkVersion used by default in Flutter app projects.
54+
* targetSdkVersion should always be the latest available stable version.
55+
*
56+
* See https://developer.android.com/guide/topics/manifest/uses-sdk-element.
57+
*/
5358
static int targetSdkVersion = 33
5459

5560
/**
5661
* Sets the ndkVersion used by default in Flutter app projects.
5762
* Chosen as default version of the AGP version below as found in
58-
* https://developer.android.com/studio/projects/install-ndk#default-ndk-per-agp
63+
* https://developer.android.com/studio/projects/install-ndk#default-ndk-per-agp.
5964
*/
6065
static String ndkVersion = "23.1.7779620"
6166

0 commit comments

Comments
 (0)