xref: /aosp_15_r20/external/leakcanary2/leakcanary-android-instrumentation/build.gradle (revision d9e8da70d8c9df9a41d7848ae506fb3115cae6e6)
1*d9e8da70SAndroid Build Coastguard Workerplugins {
2*d9e8da70SAndroid Build Coastguard Worker  id("com.android.library")
3*d9e8da70SAndroid Build Coastguard Worker  id("org.jetbrains.kotlin.android")
4*d9e8da70SAndroid Build Coastguard Worker  id("com.vanniktech.maven.publish")
5*d9e8da70SAndroid Build Coastguard Worker}
6*d9e8da70SAndroid Build Coastguard Worker
7*d9e8da70SAndroid Build Coastguard Workerdependencies {
8*d9e8da70SAndroid Build Coastguard Worker  api projects.leakcanaryAndroidCore
9*d9e8da70SAndroid Build Coastguard Worker
10*d9e8da70SAndroid Build Coastguard Worker  implementation libs.androidX.test.runner
11*d9e8da70SAndroid Build Coastguard Worker  implementation libs.kotlin.stdlib
12*d9e8da70SAndroid Build Coastguard Worker
13*d9e8da70SAndroid Build Coastguard Worker  // AppWatcher auto installer for running tests
14*d9e8da70SAndroid Build Coastguard Worker  androidTestImplementation projects.leakcanaryObjectWatcherAndroid
15*d9e8da70SAndroid Build Coastguard Worker  // Plumber auto installer for running tests
16*d9e8da70SAndroid Build Coastguard Worker  androidTestImplementation projects.plumberAndroid
17*d9e8da70SAndroid Build Coastguard Worker  androidTestImplementation libs.androidX.test.core
18*d9e8da70SAndroid Build Coastguard Worker  androidTestImplementation libs.androidX.test.espresso
19*d9e8da70SAndroid Build Coastguard Worker  androidTestImplementation libs.androidX.test.rules
20*d9e8da70SAndroid Build Coastguard Worker  androidTestImplementation libs.androidX.fragment
21*d9e8da70SAndroid Build Coastguard Worker  androidTestImplementation libs.assertjCore
22*d9e8da70SAndroid Build Coastguard Worker}
23*d9e8da70SAndroid Build Coastguard Worker
24*d9e8da70SAndroid Build Coastguard Workerandroid {
25*d9e8da70SAndroid Build Coastguard Worker  compileSdk versions.compileSdk
26*d9e8da70SAndroid Build Coastguard Worker  defaultConfig {
27*d9e8da70SAndroid Build Coastguard Worker    targetSdk versions.compileSdk
28*d9e8da70SAndroid Build Coastguard Worker    minSdk versions.minSdk
29*d9e8da70SAndroid Build Coastguard Worker    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
30*d9e8da70SAndroid Build Coastguard Worker  }
31*d9e8da70SAndroid Build Coastguard Worker  buildFeatures.buildConfig = false
32*d9e8da70SAndroid Build Coastguard Worker  lintOptions {
33*d9e8da70SAndroid Build Coastguard Worker    disable 'GoogleAppIndexingWarning'
34*d9e8da70SAndroid Build Coastguard Worker    // junit references java.lang.management
35*d9e8da70SAndroid Build Coastguard Worker    ignore 'InvalidPackage'
36*d9e8da70SAndroid Build Coastguard Worker    checkOnly 'Interoperability'
37*d9e8da70SAndroid Build Coastguard Worker  }
38*d9e8da70SAndroid Build Coastguard Worker}
39