Files
platform-external-webrtc/examples/aarproject/app/build.gradle
Byoungchan Lee 0d6d9488ae Rename release_aar.py and modify it for validation of aar file.
As announced in the google groups [1], the pre-built Android aar is no
longer distributed and last update was August 2020. [2]
So we can remove the code that uploads aar to bintray in release_aar.py.

Still, the ability to create an Android aar and use it in a gradle
project (examples/aarproject) is useful. It can also be used to validate
aar by running PeerConnectionClientTest from examples/androidtests.

So I renamed release_aar.py to test_aar.py and make it working without
releasing the aar to an external hosting server.
This makes it easy to verify further changes to the aar.

[1] https://groups.google.com/g/discuss-webrtc/c/Ozvbd0p7Q1Y/m/TtQyRI1KAgAJ
[2] https://mvnrepository.com/artifact/org.webrtc/google-webrtc?repo=bt-google-webrtc

Bug: webrtc:11962
Change-Id: Ibe066a3a770569924e3b57805986808e1dd19df6
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/220622
Commit-Queue: Byoungchan Lee <daniel.l@hpcnt.com>
Reviewed-by: Xavier Lepaul‎ <xalep@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34540}
2021-07-23 09:06:34 +00:00

54 lines
1.7 KiB
Groovy

apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "org.appspot.apprtc"
minSdkVersion 21
targetSdkVersion 21
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.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 'com.android.support:support-annotations:26.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}