blob: d3b6a4013d714b88229c524e79414b8881c70bc1 [file] [log] [blame]
Greg Spencer33403bd2021-08-25 09:45:12 -07001// Copyright 2014 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5include ':app'
6
7def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
8def properties = new Properties()
9
10assert localPropertiesFile.exists()
11localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
12
13def flutterSdkPath = properties.getProperty("flutter.sdk")
14assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
15apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"