Source code
Revision control
Copy as Markdown
Other Tools
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'
}