build.gradle.kts에 targetSdk = flutter.targetSdkVersion이라고 명시돼 있는 부분이 구체적 어떤 버전을 가리키는 건지 확인하고 싶어 구글링 해보니 아래 경로에서 확인할 수 있었다.
<flutter_skd_path>/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy
이 flutter.groovy 파일을 오픈하면 아래와 같은 내용을 확인할 수 있다.
class FlutterExtension {
/** Sets the compileSdkVersion used by default in Flutter app projects. */
public final int compileSdkVersion = 35
/** Sets the minSdkVersion used by default in Flutter app projects. */
public final int minSdkVersion = 21
/**
* 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.
*/
public final int targetSdkVersion = 35
/**
* 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.
*/
public final String ndkVersion = "26.3.11579264"
...
}