mirror of
https://github.com/flutter/samples.git
synced 2026-04-19 21:41:43 +00:00
This commit updates the Android Gradle configuration: * Bumps the Android Gradle Plugin version from 7.3.0 to 8.9.1. * Upgrades the Kotlin Android plugin version from 1.7.10 to 2.1.0. * Updates the Gradle wrapper distribution from version 7.6.3 to 8.11.1. ## Pre-launch Checklist - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I read the [Contributors Guide]. - [x] I have added sample code updates to the [changelog]. - [x] I updated/added relevant documentation (doc comments with `///`). @ericwindmill Co-authored-by: Eric Windmill <eric@ericwindmill.com>
27 lines
790 B
Groovy
27 lines
790 B
Groovy
pluginManagement {
|
|
def flutterSdkPath = {
|
|
def properties = new Properties()
|
|
file("local.properties").withInputStream { properties.load(it) }
|
|
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
|
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
|
return flutterSdkPath
|
|
}
|
|
settings.ext.flutterSdkPath = flutterSdkPath()
|
|
|
|
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
|
id "com.android.application" version "8.9.1" apply false
|
|
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
|
|
}
|
|
|
|
include ":app"
|