summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/examples/aarproject/app/build.gradle
blob: 70669c3b633b5e0ca9e36975e43adbf1fedebf90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
apply plugin: 'com.android.application'

android {
    compileSdkVersion 31
    defaultConfig {
        applicationId "org.appspot.apprtc"
        minSdkVersion 21
        targetSdkVersion 31
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    sourceSets {
        main {
            manifest.srcFile "../../androidapp/AndroidManifest.xml"
            java.srcDirs = [
                    "../../androidapp/src"
            ]
            res.srcDirs = [
                    "../../androidapp/res"
            ]
        }
        androidTest {
            manifest.srcFile "../../androidtests/AndroidManifest.xml"
            java.srcDirs = [
                    "../../androidtests/src"
            ]
            // This test doesn't work in Android Studio.
            java.exclude('**/CallActivityStubbedInputOutputTest.java')
        }
    }
}

dependencies {
    if (project.hasProperty('aarDir')) {
        implementation fileTree(dir: project.aarDir, include: ['google-webrtc-*.aar'])
    }
    implementation fileTree(dir: '../../androidapp/third_party/autobanh/lib', include: ['autobanh.jar'])
    implementation 'androidx.annotation:annotation:1.2.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.androidx.test:runner:1.0.1'
    androidTestImplementation 'com.androidx.test.espresso:espresso-core:3.0.1'
}