Add documentation in flutter.groovy noting that we always use the latest available android version (#131705)

Last piece of/
Fixes https://github.com/flutter/flutter/issues/131425

Also added a period to a comment line that was missing one.
This commit is contained in:
Gray Mackall 2023-08-02 12:56:03 -07:00 committed by GitHub
parent 253bd3d475
commit 00a8323533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,13 +49,18 @@ class FlutterExtension {
/** Sets the minSdkVersion used by default in Flutter app projects. */
static int minSdkVersion = 19
/** Sets the targetSdkVersion used by default in Flutter app projects. */
/**
* Sets the targetSdkVersion used by default in Flutter app projects.
* targetSdkVersion should always be the latest available stable version.
*
* See https://developer.android.com/guide/topics/manifest/uses-sdk-element.
*/
static int targetSdkVersion = 33
/**
* Sets the ndkVersion used by default in Flutter app projects.
* Chosen as default version of the AGP version below as found in
* https://developer.android.com/studio/projects/install-ndk#default-ndk-per-agp
* https://developer.android.com/studio/projects/install-ndk#default-ndk-per-agp.
*/
static String ndkVersion = "23.1.7779620"