blob: 90c289901dcdb31c7a210a0ec2dcc84383e9d1ed [file] [log] [blame]
Michael Thomsen8da47782017-02-15 17:13:10 +01001def localProperties = new Properties()
2def localPropertiesFile = rootProject.file('local.properties')
3if (localPropertiesFile.exists()) {
4 localPropertiesFile.withInputStream { stream ->
5 localProperties.load(stream)
6 }
7}
8
9def flutterRoot = localProperties.getProperty('flutter.sdk')
10if (flutterRoot == null) {
11 throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12}
13
14apply plugin: 'com.android.application'
15apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
16
17android {
18 compileSdkVersion 25
19 buildToolsVersion '24.0.1'
20
21 lintOptions {
22 disable 'InvalidPackage'
23 }
24
25 defaultConfig {
26 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
27 }
28
29 buildTypes {
30 release {
31 // TODO: Add your own signing config for the release build.
32 // Signing with the debug keys for now, so `flutter run --release` works.
33 signingConfig signingConfigs.debug
34 }
35 }
36}
37
38flutter {
39 source '../..'
40}
41
42dependencies {
43 androidTestCompile 'com.android.support:support-annotations:25.0.0'
44 androidTestCompile 'com.android.support.test:runner:0.5'
45 androidTestCompile 'com.android.support.test:rules:0.5'
46}