• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1plugins {
2  id 'com.android.test'
3  id 'org.jetbrains.kotlin.android'
4}
5
6android {
7  compileSdk 31
8
9  compileOptions {
10    sourceCompatibility = JavaVersion.VERSION_1_8
11    targetCompatibility = JavaVersion.VERSION_1_8
12  }
13
14  kotlinOptions {
15    jvmTarget = "1.8"
16    freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
17  }
18
19  defaultConfig {
20    minSdk 30
21    targetSdk 31
22
23    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
24  }
25
26  buildTypes {
27    release {
28      debuggable = true
29      signingConfig = debug.signingConfig
30    }
31  }
32
33  targetProjectPath = ":sample-compose"
34  experimentalProperties["android.experimental.self-instrumenting"] = true
35}
36
37dependencies {
38  implementation 'androidx.test.ext:junit:1.1.3'
39  implementation 'androidx.test.espresso:espresso-core:3.4.0'
40  implementation 'androidx.test.uiautomator:uiautomator:2.2.0'
41  implementation 'androidx.benchmark:benchmark-macro-junit4:1.1.0-beta01'
42}
43
44androidComponents {
45  beforeVariants(selector().all()) {
46    enabled = buildType == "release"
47  }
48}
49