xref: /aosp_15_r20/external/connectedappssdk/tests/shared/configuration/build.gradle (revision 27eda0084a137a3c4c52875b384c53ea95161e62)
1*27eda008SAndroid Build Coastguard Workerbuildscript {
2*27eda008SAndroid Build Coastguard Worker    repositories {
3*27eda008SAndroid Build Coastguard Worker        mavenCentral()
4*27eda008SAndroid Build Coastguard Worker    }
5*27eda008SAndroid Build Coastguard Worker}
6*27eda008SAndroid Build Coastguard Worker
7*27eda008SAndroid Build Coastguard Workerplugins {
8*27eda008SAndroid Build Coastguard Worker    id 'com.android.library'
9*27eda008SAndroid Build Coastguard Worker}
10*27eda008SAndroid Build Coastguard Worker
11*27eda008SAndroid Build Coastguard Workerdependencies {
12*27eda008SAndroid Build Coastguard Worker    api project(path: ':connectedapps-testapp_types_providers')
13*27eda008SAndroid Build Coastguard Worker    api project(path: ':connectedapps-testapp_types')
14*27eda008SAndroid Build Coastguard Worker    api project(path: ':connectedapps-testapp_additional_types')
15*27eda008SAndroid Build Coastguard Worker
16*27eda008SAndroid Build Coastguard Worker    implementation project(path: ':connectedapps')
17*27eda008SAndroid Build Coastguard Worker    implementation project(path: ':connectedapps-annotations')
18*27eda008SAndroid Build Coastguard Worker    implementation project(path: ':connectedapps-processor')
19*27eda008SAndroid Build Coastguard Worker    annotationProcessor project(path: ':connectedapps-processor')
20*27eda008SAndroid Build Coastguard Worker}
21*27eda008SAndroid Build Coastguard Worker
22*27eda008SAndroid Build Coastguard Workerandroid {
23*27eda008SAndroid Build Coastguard Worker    defaultConfig {
24*27eda008SAndroid Build Coastguard Worker        compileSdkVersion 30
25*27eda008SAndroid Build Coastguard Worker        minSdkVersion 26
26*27eda008SAndroid Build Coastguard Worker    }
27*27eda008SAndroid Build Coastguard Worker
28*27eda008SAndroid Build Coastguard Worker    testOptions.unitTests.includeAndroidResources = true
29*27eda008SAndroid Build Coastguard Worker
30*27eda008SAndroid Build Coastguard Worker    compileOptions {
31*27eda008SAndroid Build Coastguard Worker        sourceCompatibility JavaVersion.VERSION_1_8
32*27eda008SAndroid Build Coastguard Worker        targetCompatibility JavaVersion.VERSION_1_8
33*27eda008SAndroid Build Coastguard Worker    }
34*27eda008SAndroid Build Coastguard Worker
35*27eda008SAndroid Build Coastguard Worker    sourceSets {
36*27eda008SAndroid Build Coastguard Worker        main {
37*27eda008SAndroid Build Coastguard Worker            java.srcDirs = [file('../src/main/java')]
38*27eda008SAndroid Build Coastguard Worker            java.includes = [
39*27eda008SAndroid Build Coastguard Worker                    "com/google/android/enterprise/connectedapps/testapp/configuration/TestApplication.java"
40*27eda008SAndroid Build Coastguard Worker            ]
41*27eda008SAndroid Build Coastguard Worker            manifest.srcFile 'AndroidManifest.xml'
42*27eda008SAndroid Build Coastguard Worker        }
43*27eda008SAndroid Build Coastguard Worker    }
44*27eda008SAndroid Build Coastguard Worker}
45