TKK_E32222428/android/settings.gradle

18 lines
559 B
Groovy

include ':app'
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
def properties = new Properties()
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader("UTF-8") { reader ->
properties.load(reader)
}
}
def flutterSdkPath = properties.getProperty("flutter.sdk")
if (flutterSdkPath == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"