• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1apply plugin: 'com.android.application'
2
3android {
4    compileSdkVersion 27
5    buildToolsVersion "27.0.1"
6    defaultConfig {
7        applicationId "org.appspot.apprtc"
8        minSdkVersion 21
9        targetSdkVersion 21
10        versionCode 1
11        versionName "1.0"
12        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13    }
14    buildTypes {
15        release {
16            minifyEnabled false
17            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18        }
19    }
20    compileOptions {
21        sourceCompatibility JavaVersion.VERSION_1_8
22        targetCompatibility JavaVersion.VERSION_1_8
23    }
24    sourceSets {
25        main {
26            manifest.srcFile "../../androidapp/AndroidManifest.xml"
27            java.srcDirs = [
28                    "../../androidapp/src"
29            ]
30            res.srcDirs = [
31                    "../../androidapp/res"
32            ]
33        }
34        androidTest {
35            manifest.srcFile "../../androidtests/AndroidManifest.xml"
36            java.srcDirs = [
37                    "../../androidtests/src"
38            ]
39            // This test doesn't work in Android Studio.
40            java.exclude('**/CallActivityStubbedInputOutputTest.java')
41        }
42    }
43}
44
45dependencies {
46    implementation fileTree(dir: 'libs', include: ['*.jar'])
47    implementation fileTree(dir: '../../androidapp/third_party/autobanh/lib', include: ['autobanh.jar'])
48    implementation 'com.android.support:appcompat-v7:26.1.0'
49    implementation 'org.webrtc:google-webrtc:1.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