settings.gradle.tmpl 811 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
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()
10

11
    includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
12

13 14 15 16 17
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
18
}
19

20 21 22
plugins {
    id "dev.flutter.flutter-plugin-loader" version "1.0.0"
    id "com.android.application" version "{{agpVersion}}" apply false
23
    id "org.jetbrains.kotlin.android" version "{{kotlinVersion}}" apply false
24
}
25

26
include ":app"