2024-09-19 19:10:50 +04:00
|
|
|
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
|
2024-10-17 13:57:59 +04:00
|
|
|
}
|
|
|
|
settings.ext.flutterSdkPath = flutterSdkPath()
|
2024-09-19 19:10:50 +04:00
|
|
|
|
2024-10-17 13:57:59 +04:00
|
|
|
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
|
2024-09-19 19:10:50 +04:00
|
|
|
|
2024-10-17 13:57:59 +04:00
|
|
|
plugins {
|
|
|
|
id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
|
2024-09-19 19:10:50 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
include ":app"
|
2024-10-17 13:57:59 +04:00
|
|
|
|
|
|
|
apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"
|