xref: /aosp_15_r20/external/connectedappssdk/tests/shared/build.gradle (revision 27eda0084a137a3c4c52875b384c53ea95161e62)
1buildscript {
2    repositories {
3        mavenCentral()
4    }
5}
6
7plugins {
8    id 'com.android.library'
9}
10
11dependencies {
12    api deps.checkerFramework
13    api project(path: ':connectedapps-testapp')
14    api project(path: ':connectedapps-testapp_crossuser')
15    implementation project(path: ':connectedapps-annotations')
16    implementation deps.robolectric
17    implementation 'junit:junit:4.13.1'
18    implementation 'com.google.truth:truth:1.1.2'
19    implementation 'androidx.test:core:1.3.0'
20    implementation project(path: ':connectedapps')
21    implementation project(path: ':connectedapps-annotations')
22    implementation project(path: ':connectedapps-processor')
23    annotationProcessor project(path: ':connectedapps-processor')
24    implementation project(path: ':connectedapps-testing')
25    implementation project(path: ':connectedapps-testing-annotations')
26    implementation project(path: ':connectedapps-testapp_types')
27}
28
29android {
30    defaultConfig {
31        compileSdkVersion 30
32        minSdkVersion 26
33    }
34
35    testOptions.unitTests.includeAndroidResources = true
36
37    compileOptions {
38        sourceCompatibility JavaVersion.VERSION_1_8
39        targetCompatibility JavaVersion.VERSION_1_8
40    }
41
42    sourceSets {
43        main {
44            java.includes = ["com/google/android/enterprise/connectedapps/*.java"]
45        }
46    }
47}
48