1*d9f75844SAndroid Build Coastguard Workerapply plugin: 'com.android.application' 2*d9f75844SAndroid Build Coastguard Worker 3*d9f75844SAndroid Build Coastguard Workerandroid { 4*d9f75844SAndroid Build Coastguard Worker compileSdkVersion 31 5*d9f75844SAndroid Build Coastguard Worker defaultConfig { 6*d9f75844SAndroid Build Coastguard Worker applicationId "org.appspot.apprtc" 7*d9f75844SAndroid Build Coastguard Worker minSdkVersion 21 8*d9f75844SAndroid Build Coastguard Worker targetSdkVersion 31 9*d9f75844SAndroid Build Coastguard Worker versionCode 1 10*d9f75844SAndroid Build Coastguard Worker versionName "1.0" 11*d9f75844SAndroid Build Coastguard Worker testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 12*d9f75844SAndroid Build Coastguard Worker } 13*d9f75844SAndroid Build Coastguard Worker buildTypes { 14*d9f75844SAndroid Build Coastguard Worker release { 15*d9f75844SAndroid Build Coastguard Worker minifyEnabled false 16*d9f75844SAndroid Build Coastguard Worker proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17*d9f75844SAndroid Build Coastguard Worker } 18*d9f75844SAndroid Build Coastguard Worker } 19*d9f75844SAndroid Build Coastguard Worker compileOptions { 20*d9f75844SAndroid Build Coastguard Worker sourceCompatibility JavaVersion.VERSION_1_8 21*d9f75844SAndroid Build Coastguard Worker targetCompatibility JavaVersion.VERSION_1_8 22*d9f75844SAndroid Build Coastguard Worker } 23*d9f75844SAndroid Build Coastguard Worker sourceSets { 24*d9f75844SAndroid Build Coastguard Worker main { 25*d9f75844SAndroid Build Coastguard Worker manifest.srcFile "../../androidapp/AndroidManifest.xml" 26*d9f75844SAndroid Build Coastguard Worker java.srcDirs = [ 27*d9f75844SAndroid Build Coastguard Worker "../../androidapp/src" 28*d9f75844SAndroid Build Coastguard Worker ] 29*d9f75844SAndroid Build Coastguard Worker res.srcDirs = [ 30*d9f75844SAndroid Build Coastguard Worker "../../androidapp/res" 31*d9f75844SAndroid Build Coastguard Worker ] 32*d9f75844SAndroid Build Coastguard Worker } 33*d9f75844SAndroid Build Coastguard Worker androidTest { 34*d9f75844SAndroid Build Coastguard Worker manifest.srcFile "../../androidtests/AndroidManifest.xml" 35*d9f75844SAndroid Build Coastguard Worker java.srcDirs = [ 36*d9f75844SAndroid Build Coastguard Worker "../../androidtests/src" 37*d9f75844SAndroid Build Coastguard Worker ] 38*d9f75844SAndroid Build Coastguard Worker // This test doesn't work in Android Studio. 39*d9f75844SAndroid Build Coastguard Worker java.exclude('**/CallActivityStubbedInputOutputTest.java') 40*d9f75844SAndroid Build Coastguard Worker } 41*d9f75844SAndroid Build Coastguard Worker } 42*d9f75844SAndroid Build Coastguard Worker} 43*d9f75844SAndroid Build Coastguard Worker 44*d9f75844SAndroid Build Coastguard Workerdependencies { 45*d9f75844SAndroid Build Coastguard Worker if (project.hasProperty('aarDir')) { 46*d9f75844SAndroid Build Coastguard Worker implementation fileTree(dir: project.aarDir, include: ['google-webrtc-*.aar']) 47*d9f75844SAndroid Build Coastguard Worker } 48*d9f75844SAndroid Build Coastguard Worker implementation fileTree(dir: '../../androidapp/third_party/autobanh/lib', include: ['autobanh.jar']) 49*d9f75844SAndroid Build Coastguard Worker implementation 'androidx.annotation:annotation:1.2.0' 50*d9f75844SAndroid Build Coastguard Worker testImplementation 'junit:junit:4.12' 51*d9f75844SAndroid Build Coastguard Worker androidTestImplementation 'com.android.support.test:runner:1.0.1' 52*d9f75844SAndroid Build Coastguard Worker androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 53*d9f75844SAndroid Build Coastguard Worker} 54