|
1
|
pluginManagement { |
|
2
|
val flutterSdkPath = |
|
3
|
run { |
|
4
|
val properties = java.util.Properties() |
|
5
|
file("local.properties").inputStream().use { properties.load(it) } |
|
6
|
val flutterSdkPath = properties.getProperty("flutter.sdk") |
|
7
|
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" } |
|
8
|
flutterSdkPath |
|
9
|
} |
|
10
|
|
|
11
|
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") |
|
12
|
|
|
13
|
repositories { |
|
14
|
google() |
|
15
|
mavenCentral() |
|
16
|
gradlePluginPortal() |
|
17
|
} |
|
18
|
} |
|
19
|
|
|
20
|
plugins { |
|
21
|
id("dev.flutter.flutter-plugin-loader") version "1.0.0" |
|
22
|
id("com.android.application") version "8.11.1" apply false |
|
23
|
id("org.jetbrains.kotlin.android") version "2.2.20" apply false |
|
24
|
} |
|
25
|
|
|
26
|
include(":app") |