summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/examples/aarproject
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /third_party/libwebrtc/examples/aarproject
parentInitial commit. (diff)
downloadfirefox-esr-upstream.tar.xz
firefox-esr-upstream.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/examples/aarproject')
-rw-r--r--third_party/libwebrtc/examples/aarproject/.gitignore16
-rw-r--r--third_party/libwebrtc/examples/aarproject/OWNERS1
-rw-r--r--third_party/libwebrtc/examples/aarproject/app/.gitignore1
-rw-r--r--third_party/libwebrtc/examples/aarproject/app/build.gradle53
-rw-r--r--third_party/libwebrtc/examples/aarproject/app/proguard-rules.pro25
-rw-r--r--third_party/libwebrtc/examples/aarproject/build.gradle27
-rw-r--r--third_party/libwebrtc/examples/aarproject/gradle.properties22
-rw-r--r--third_party/libwebrtc/examples/aarproject/local.properties2
-rw-r--r--third_party/libwebrtc/examples/aarproject/settings.gradle1
9 files changed, 148 insertions, 0 deletions
diff --git a/third_party/libwebrtc/examples/aarproject/.gitignore b/third_party/libwebrtc/examples/aarproject/.gitignore
new file mode 100644
index 0000000000..e93eb885a9
--- /dev/null
+++ b/third_party/libwebrtc/examples/aarproject/.gitignore
@@ -0,0 +1,16 @@
+# Default ignores by Android Studio
+*.iml
+.gradle
+# We want to specify our own SDK.
+# /local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+
+# Additional ignores
+/gradlew
+/gradlew.bat
+/gradle
diff --git a/third_party/libwebrtc/examples/aarproject/OWNERS b/third_party/libwebrtc/examples/aarproject/OWNERS
new file mode 100644
index 0000000000..cf092a316a
--- /dev/null
+++ b/third_party/libwebrtc/examples/aarproject/OWNERS
@@ -0,0 +1 @@
+xalep@webrtc.org
diff --git a/third_party/libwebrtc/examples/aarproject/app/.gitignore b/third_party/libwebrtc/examples/aarproject/app/.gitignore
new file mode 100644
index 0000000000..796b96d1c4
--- /dev/null
+++ b/third_party/libwebrtc/examples/aarproject/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/third_party/libwebrtc/examples/aarproject/app/build.gradle b/third_party/libwebrtc/examples/aarproject/app/build.gradle
new file mode 100644
index 0000000000..94fa851af2
--- /dev/null
+++ b/third_party/libwebrtc/examples/aarproject/app/build.gradle
@@ -0,0 +1,53 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 31
+ defaultConfig {
+ applicationId "org.appspot.apprtc"
+ minSdkVersion 21
+ targetSdkVersion 31
+ 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 'androidx.annotation:annotation:1.2.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'
+}
diff --git a/third_party/libwebrtc/examples/aarproject/app/proguard-rules.pro b/third_party/libwebrtc/examples/aarproject/app/proguard-rules.pro
new file mode 100644
index 0000000000..d6cc4c5eba
--- /dev/null
+++ b/third_party/libwebrtc/examples/aarproject/app/proguard-rules.pro
@@ -0,0 +1,25 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /usr/local/google/home/sakal/Android/Sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/third_party/libwebrtc/examples/aarproject/build.gradle b/third_party/libwebrtc/examples/aarproject/build.gradle
new file mode 100644
index 0000000000..969effd3ed
--- /dev/null
+++ b/third_party/libwebrtc/examples/aarproject/build.gradle
@@ -0,0 +1,27 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+
+ repositories {
+ google()
+ mavenCentral()
+ }
+ dependencies {
+ classpath "com.android.tools.build:gradle:7.0.3"
+
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/third_party/libwebrtc/examples/aarproject/gradle.properties b/third_party/libwebrtc/examples/aarproject/gradle.properties
new file mode 100644
index 0000000000..2e87c52f83
--- /dev/null
+++ b/third_party/libwebrtc/examples/aarproject/gradle.properties
@@ -0,0 +1,22 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
diff --git a/third_party/libwebrtc/examples/aarproject/local.properties b/third_party/libwebrtc/examples/aarproject/local.properties
new file mode 100644
index 0000000000..99cdcd2674
--- /dev/null
+++ b/third_party/libwebrtc/examples/aarproject/local.properties
@@ -0,0 +1,2 @@
+# Use Android SDK from third_party/android_sdk/public
+sdk.dir=../../third_party/android_sdk/public
diff --git a/third_party/libwebrtc/examples/aarproject/settings.gradle b/third_party/libwebrtc/examples/aarproject/settings.gradle
new file mode 100644
index 0000000000..e7b4def49c
--- /dev/null
+++ b/third_party/libwebrtc/examples/aarproject/settings.gradle
@@ -0,0 +1 @@
+include ':app'