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_wrappers') 13*27eda008SAndroid Build Coastguard Worker 14*27eda008SAndroid Build Coastguard Worker 15*27eda008SAndroid Build Coastguard Worker implementation project(path: ':connectedapps') 16*27eda008SAndroid Build Coastguard Worker implementation project(path: ':connectedapps-annotations') 17*27eda008SAndroid Build Coastguard Worker implementation project(path: ':connectedapps-processor') 18*27eda008SAndroid Build Coastguard Worker annotationProcessor project(path: ':connectedapps-processor') 19*27eda008SAndroid Build Coastguard Worker} 20*27eda008SAndroid Build Coastguard Worker 21*27eda008SAndroid Build Coastguard Workerandroid { 22*27eda008SAndroid Build Coastguard Worker defaultConfig { 23*27eda008SAndroid Build Coastguard Worker compileSdkVersion 30 24*27eda008SAndroid Build Coastguard Worker minSdkVersion 26 25*27eda008SAndroid Build Coastguard Worker } 26*27eda008SAndroid Build Coastguard Worker 27*27eda008SAndroid Build Coastguard Worker testOptions.unitTests.includeAndroidResources = true 28*27eda008SAndroid Build Coastguard Worker 29*27eda008SAndroid Build Coastguard Worker compileOptions { 30*27eda008SAndroid Build Coastguard Worker sourceCompatibility JavaVersion.VERSION_1_8 31*27eda008SAndroid Build Coastguard Worker targetCompatibility JavaVersion.VERSION_1_8 32*27eda008SAndroid Build Coastguard Worker } 33*27eda008SAndroid Build Coastguard Worker 34*27eda008SAndroid Build Coastguard Worker sourceSets { 35*27eda008SAndroid Build Coastguard Worker main { 36*27eda008SAndroid Build Coastguard Worker java.srcDirs = [file('../src/main/java')] 37*27eda008SAndroid Build Coastguard Worker java.includes = [ 38*27eda008SAndroid Build Coastguard Worker "com/google/android/enterprise/connectedapps/testapp/ConnectorSingleton.java", 39*27eda008SAndroid Build Coastguard Worker "com/google/android/enterprise/connectedapps/testapp/connector/DirectBootAwareConnector.java", 40*27eda008SAndroid Build Coastguard Worker "com/google/android/enterprise/connectedapps/testapp/connector/TestProfileConnector.java", 41*27eda008SAndroid Build Coastguard Worker "com/google/android/enterprise/connectedapps/testapp/connector/TestProfileConnectorWithCustomServiceClass.java", 42*27eda008SAndroid Build Coastguard Worker ] 43*27eda008SAndroid Build Coastguard Worker manifest.srcFile 'AndroidManifest.xml' 44*27eda008SAndroid Build Coastguard Worker } 45*27eda008SAndroid Build Coastguard Worker } 46*27eda008SAndroid Build Coastguard Worker} 47