build.gradle 1.27 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

group 'com.example.integration_test'
version '1.0-SNAPSHOT'

buildscript {
    repositories {
        google()
11
        mavenCentral()
12 13 14
    }

    dependencies {
15
        classpath 'com.android.tools.build:gradle:4.1.0'
16 17 18 19 20 21
    }
}

rootProject.allprojects {
    repositories {
        google()
22
        mavenCentral()
23 24 25 26 27 28
    }
}

apply plugin: 'com.android.library'

android {
29
    compileSdkVersion 31
30

31 32 33 34 35
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

36 37 38 39
    defaultConfig {
        minSdkVersion 16
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
40

41
    dependencies {
42 43
        // TODO(egarciad): These dependencies should not be added to release builds.
        // https://github.com/flutter/flutter/issues/56591
44 45 46 47 48 49 50 51 52 53
        api 'junit:junit:4.12'

        // https://developer.android.com/jetpack/androidx/releases/test/#1.2.0
        api 'androidx.test:runner:1.2.0'
        api 'androidx.test:rules:1.2.0'
        api 'androidx.test.espresso:espresso-core:3.2.0'

        implementation 'com.google.guava:guava:28.1-android'
    }
}