xref: /aosp_15_r20/external/connectedappssdk/sdk/build.gradle (revision 27eda0084a137a3c4c52875b384c53ea95161e62)
1*27eda008SAndroid Build Coastguard Workerplugins {
2*27eda008SAndroid Build Coastguard Worker    id 'com.android.library'
3*27eda008SAndroid Build Coastguard Worker    id 'maven-publish'
4*27eda008SAndroid Build Coastguard Worker}
5*27eda008SAndroid Build Coastguard Worker
6*27eda008SAndroid Build Coastguard Workerdependencies {
7*27eda008SAndroid Build Coastguard Worker    api(deps.errorprone, {
8*27eda008SAndroid Build Coastguard Worker        exclude group: 'org.checkerframework', module: 'dataflow-errorprone'
9*27eda008SAndroid Build Coastguard Worker    })
10*27eda008SAndroid Build Coastguard Worker    implementation project(path: ':connectedapps-annotations')
11*27eda008SAndroid Build Coastguard Worker    implementation(deps.errorprone, {
12*27eda008SAndroid Build Coastguard Worker        exclude group: 'org.checkerframework', module: 'dataflow-errorprone'
13*27eda008SAndroid Build Coastguard Worker    })
14*27eda008SAndroid Build Coastguard Worker    testImplementation project(path: ':connectedapps-sharedtests')
15*27eda008SAndroid Build Coastguard Worker    testImplementation deps.robolectric
16*27eda008SAndroid Build Coastguard Worker    testImplementation 'junit:junit:4.13.1'
17*27eda008SAndroid Build Coastguard Worker    testImplementation 'com.google.truth:truth:1.1.2'
18*27eda008SAndroid Build Coastguard Worker    testImplementation 'androidx.test:core:1.3.0'
19*27eda008SAndroid Build Coastguard Worker    testImplementation project(path: ':connectedapps')
20*27eda008SAndroid Build Coastguard Worker    testImplementation project(path: ':connectedapps-annotations')
21*27eda008SAndroid Build Coastguard Worker    testImplementation project(path: ':connectedapps-processor')
22*27eda008SAndroid Build Coastguard Worker    testAnnotationProcessor project(path: ':connectedapps-processor')
23*27eda008SAndroid Build Coastguard Worker    testImplementation project(path: ':connectedapps-testing')
24*27eda008SAndroid Build Coastguard Worker    testImplementation project(path: ':connectedapps-testing-annotations')
25*27eda008SAndroid Build Coastguard Worker    testImplementation 'com.google.protobuf:protobuf-java:4.0.0-rc-2'
26*27eda008SAndroid Build Coastguard Worker    testAnnotationProcessor deps.autovalue
27*27eda008SAndroid Build Coastguard Worker    testImplementation deps.autovalueAnnotations
28*27eda008SAndroid Build Coastguard Worker}
29*27eda008SAndroid Build Coastguard Worker
30*27eda008SAndroid Build Coastguard WorkerafterEvaluate {
31*27eda008SAndroid Build Coastguard Worker    publishing {
32*27eda008SAndroid Build Coastguard Worker        publications {
33*27eda008SAndroid Build Coastguard Worker            maven(MavenPublication) {
34*27eda008SAndroid Build Coastguard Worker                from components.release
35*27eda008SAndroid Build Coastguard Worker                groupId = 'com.google.android.enterprise.connectedapps'
36*27eda008SAndroid Build Coastguard Worker                artifactId = 'connectedapps'
37*27eda008SAndroid Build Coastguard Worker                version = project.version
38*27eda008SAndroid Build Coastguard Worker
39*27eda008SAndroid Build Coastguard Worker                pom {
40*27eda008SAndroid Build Coastguard Worker                    licenses {
41*27eda008SAndroid Build Coastguard Worker                        license {
42*27eda008SAndroid Build Coastguard Worker                            name = 'Apache 2.0'
43*27eda008SAndroid Build Coastguard Worker                            url = 'https://opensource.org/licenses/Apache-2.0'
44*27eda008SAndroid Build Coastguard Worker                        }
45*27eda008SAndroid Build Coastguard Worker                    }
46*27eda008SAndroid Build Coastguard Worker                }
47*27eda008SAndroid Build Coastguard Worker            }
48*27eda008SAndroid Build Coastguard Worker        }
49*27eda008SAndroid Build Coastguard Worker    }
50*27eda008SAndroid Build Coastguard Worker}
51*27eda008SAndroid Build Coastguard Worker
52*27eda008SAndroid Build Coastguard Workerandroid {
53*27eda008SAndroid Build Coastguard Worker    sourceSets {
54*27eda008SAndroid Build Coastguard Worker        test{
55*27eda008SAndroid Build Coastguard Worker            java.srcDir file('../tests/robotests/src')
56*27eda008SAndroid Build Coastguard Worker        }
57*27eda008SAndroid Build Coastguard Worker    }
58*27eda008SAndroid Build Coastguard Worker}
59*27eda008SAndroid Build Coastguard Worker
60*27eda008SAndroid Build Coastguard Workerandroid {
61*27eda008SAndroid Build Coastguard Worker    defaultConfig {
62*27eda008SAndroid Build Coastguard Worker        compileSdkVersion 30
63*27eda008SAndroid Build Coastguard Worker        minSdkVersion 26
64*27eda008SAndroid Build Coastguard Worker    }
65*27eda008SAndroid Build Coastguard Worker
66*27eda008SAndroid Build Coastguard Worker    buildFeatures {
67*27eda008SAndroid Build Coastguard Worker        aidl = true
68*27eda008SAndroid Build Coastguard Worker    }
69*27eda008SAndroid Build Coastguard Worker
70*27eda008SAndroid Build Coastguard Worker    testOptions.unitTests.includeAndroidResources = true
71*27eda008SAndroid Build Coastguard Worker
72*27eda008SAndroid Build Coastguard Worker    compileOptions {
73*27eda008SAndroid Build Coastguard Worker        sourceCompatibility JavaVersion.VERSION_1_8
74*27eda008SAndroid Build Coastguard Worker        targetCompatibility JavaVersion.VERSION_1_8
75*27eda008SAndroid Build Coastguard Worker    }
76*27eda008SAndroid Build Coastguard Worker}
77