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