xref: /aosp_15_r20/external/robolectric/integration_tests/multidex/build.gradle.kts (revision e6ba16074e6af37d123cb567d575f496bf0a58ee)

<lambda>null1*e6ba1607SAndroid Build Coastguard Worker plugins {
2*e6ba1607SAndroid Build Coastguard Worker   alias(libs.plugins.android.library)
3*e6ba1607SAndroid Build Coastguard Worker   alias(libs.plugins.robolectric.android.project)
4*e6ba1607SAndroid Build Coastguard Worker }
5*e6ba1607SAndroid Build Coastguard Worker 
<lambda>null6*e6ba1607SAndroid Build Coastguard Worker android {
7*e6ba1607SAndroid Build Coastguard Worker   compileSdk = 34
8*e6ba1607SAndroid Build Coastguard Worker   namespace = "android.support.multidex"
9*e6ba1607SAndroid Build Coastguard Worker 
10*e6ba1607SAndroid Build Coastguard Worker   defaultConfig {
11*e6ba1607SAndroid Build Coastguard Worker     minSdk = 21
12*e6ba1607SAndroid Build Coastguard Worker     testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
13*e6ba1607SAndroid Build Coastguard Worker   }
14*e6ba1607SAndroid Build Coastguard Worker 
15*e6ba1607SAndroid Build Coastguard Worker   lint { abortOnError = false }
16*e6ba1607SAndroid Build Coastguard Worker 
17*e6ba1607SAndroid Build Coastguard Worker   testOptions {
18*e6ba1607SAndroid Build Coastguard Worker     targetSdk = 34
19*e6ba1607SAndroid Build Coastguard Worker     unitTests.isIncludeAndroidResources = true
20*e6ba1607SAndroid Build Coastguard Worker   }
21*e6ba1607SAndroid Build Coastguard Worker 
22*e6ba1607SAndroid Build Coastguard Worker   compileOptions {
23*e6ba1607SAndroid Build Coastguard Worker     sourceCompatibility = JavaVersion.VERSION_1_8
24*e6ba1607SAndroid Build Coastguard Worker     targetCompatibility = JavaVersion.VERSION_1_8
25*e6ba1607SAndroid Build Coastguard Worker   }
26*e6ba1607SAndroid Build Coastguard Worker }
27*e6ba1607SAndroid Build Coastguard Worker 
<lambda>null28*e6ba1607SAndroid Build Coastguard Worker dependencies {
29*e6ba1607SAndroid Build Coastguard Worker   api(project(":robolectric"))
30*e6ba1607SAndroid Build Coastguard Worker   compileOnly(AndroidSdk.MAX_SDK.coordinates)
31*e6ba1607SAndroid Build Coastguard Worker 
32*e6ba1607SAndroid Build Coastguard Worker   testRuntimeOnly(AndroidSdk.MAX_SDK.coordinates)
33*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.androidx.test.core)
34*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.androidx.test.ext.junit)
35*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.androidx.test.runner)
36*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.junit4)
37*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.truth)
38*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.androidx.multidex)
39*e6ba1607SAndroid Build Coastguard Worker   testImplementation(libs.android.multidex)
40*e6ba1607SAndroid Build Coastguard Worker }
41