mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00

Make WebRTC compatible with changes introduced in https://crbug.com/1428304 Bug: chromium:1428304 Change-Id: I464a09545dc3a158ea4108bb63c7b8c4a05adc6b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/300263 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Andrey Logvin <landrey@webrtc.org> Reviewed-by: Xavier Lepaul <xalep@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39763}
53 lines
1.7 KiB
Groovy
53 lines
1.7 KiB
Groovy
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'
|
|
}
|