├── android ├── .gitignore ├── deploy │ ├── javadoc.jar │ ├── sources.jar │ └── README └── build.gradle ├── android-prefixed ├── .gitignore ├── shadow │ ├── .gitignore │ └── build.gradle ├── deploy │ ├── javadoc.jar │ ├── sources.jar │ └── README └── build.gradle ├── .gitignore ├── .idea ├── .gitignore ├── vcs.xml ├── compiler.xml ├── misc.xml └── gradle.xml ├── deploy ├── javadoc.jar ├── sources.jar └── README ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── downloadAar.sh ├── settings.gradle ├── RELEASING.md ├── README.md ├── prefixmove.sh ├── gradle.properties ├── LICENSE ├── downloadAar_prefixed.sh ├── gradlew.bat ├── .github └── workflows │ └── publish.yml ├── gradlew └── CHANGES.md /android/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /android-prefixed/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /android-prefixed/shadow/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | .gradle/ 3 | .DS_Store 4 | *.asc 5 | local.properties -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /deploy/javadoc.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webrtc-sdk/android/HEAD/deploy/javadoc.jar -------------------------------------------------------------------------------- /deploy/sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webrtc-sdk/android/HEAD/deploy/sources.jar -------------------------------------------------------------------------------- /android/deploy/javadoc.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webrtc-sdk/android/HEAD/android/deploy/javadoc.jar -------------------------------------------------------------------------------- /android/deploy/sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webrtc-sdk/android/HEAD/android/deploy/sources.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webrtc-sdk/android/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android-prefixed/deploy/javadoc.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webrtc-sdk/android/HEAD/android-prefixed/deploy/javadoc.jar -------------------------------------------------------------------------------- /android-prefixed/deploy/sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webrtc-sdk/android/HEAD/android-prefixed/deploy/sources.jar -------------------------------------------------------------------------------- /deploy/README: -------------------------------------------------------------------------------- 1 | Javadoc and sources are not available, but are required for deployment on Sonatype. These jars are used to bypass those checks. -------------------------------------------------------------------------------- /android/deploy/README: -------------------------------------------------------------------------------- 1 | Javadoc and sources are not available, but are required for deployment on Sonatype. These jars are used to bypass those checks. -------------------------------------------------------------------------------- /android-prefixed/deploy/README: -------------------------------------------------------------------------------- 1 | Javadoc and sources are not available, but are required for deployment on Sonatype. These jars are used to bypass those checks. -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Apr 29 14:50:17 JST 2021 2 | distributionBase=GRADLE_USER_HOME 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip 4 | distributionPath=wrapper/dists 5 | zipStorePath=wrapper/dists 6 | zipStoreBase=GRADLE_USER_HOME 7 | -------------------------------------------------------------------------------- /downloadAar.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | set -x 5 | 6 | # Get VERSION_NAME from gradle.properties 7 | VERSION=`grep -o 'VERSION_NAME=.*' gradle.properties | cut -f2- -d=` 8 | 9 | SDK_BIN_URL=https://github.com/webrtc-sdk/android/releases/download/v${VERSION}/libwebrtc.aar 10 | 11 | echo "Downloading webrtc-sdk ${VERSION} binary for android." 12 | curl -f -L -o "android/libwebrtc.aar" ${SDK_BIN_URL} 13 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | gradlePluginPortal() 6 | } 7 | } 8 | dependencyResolutionManagement { 9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) 10 | repositories { 11 | google() 12 | mavenCentral() 13 | } 14 | } 15 | include ':android' 16 | include ':android-prefixed' 17 | include ':android-prefixed:shadow' 18 | -------------------------------------------------------------------------------- /RELEASING.md: -------------------------------------------------------------------------------- 1 | # Release Instructions 2 | 3 | 1. In the top-level gradle.properties file, update the `VERSION_NAME` property. 4 | 1. Update README.md with new version numbers. 5 | 1. Update CHANGES.md with change log. 6 | 1. Tag with new version number (ensuring that the tag is prefixed with a `v`). 7 | 1. Create a new release on Github. 8 | 1. Add the `libwebrtc.aar` and `libwebrtc_prefixed.aar` files to the release. 9 | 1. Rerun the associated release github action. -------------------------------------------------------------------------------- /android-prefixed/shadow/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'java-library' 3 | id 'com.github.johnrengelman.shadow' version '7.1.2' 4 | } 5 | 6 | java { 7 | sourceCompatibility = JavaVersion.VERSION_1_7 8 | targetCompatibility = JavaVersion.VERSION_1_7 9 | } 10 | 11 | dependencies { 12 | api files("libs/classes.jar") 13 | } 14 | 15 | shadowJar { 16 | 17 | } 18 | import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation 19 | 20 | task relocateShadowJar(type: ConfigureShadowRelocation) { 21 | target = tasks.shadowJar 22 | prefix = "livekit" // Default value is "shadow" 23 | } 24 | tasks.shadowJar.dependsOn tasks.relocateShadowJar 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # android 2 | 3 | ![](https://maven-badges.herokuapp.com/maven-central/io.github.webrtc-sdk/android/badge.svg) 4 | 5 | WebRTC pre-compiled library for android. 6 | 7 | ## How to use 8 | 9 | This library is hosted on Maven Central. To include this library in your project: 10 | 11 | ```gradle 12 | dependencies { 13 | implementation 'io.github.webrtc-sdk:android:137.7151.05' 14 | } 15 | ``` 16 | 17 | We also offer a shadowed version that moves the `org.webrtc` package to `livekit.org.webrtc`, 18 | avoiding any collisions with other WebRTC libraries: 19 | 20 | ```gradle 21 | dependencies { 22 | implementation 'io.github.webrtc-sdk:android-prefixed:137.7151.05' 23 | } 24 | ``` -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 21 | 22 | -------------------------------------------------------------------------------- /prefixmove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Similar script to downloadAar_prefixed.sh, without the download part. 3 | # For use with local testing aars. 4 | 5 | set -e 6 | set -x 7 | 8 | # The prefixed aar can't be used as is. 9 | # The jar itself needs to be shadowed to properly add on the prefix. 10 | unzip -o libwebrtc_prefixed.aar -d prefix/ 11 | rm -rf android-prefixed/shadow/libs/* 12 | mkdir -p android-prefixed/shadow/libs 13 | mv prefix/classes.jar android-prefixed/shadow/libs/ 14 | 15 | # Copy the .so files to the main project for inclusion. 16 | rm -rf android-prefixed/src/main/jniLibs/* 17 | mkdir -p android-prefixed/src/main/jniLibs 18 | mv prefix/jni/* android-prefixed/src/main/jniLibs 19 | 20 | # Rename the so files to liblkjingle_peerconnection_so.so 21 | find android-prefixed/src/main/jniLibs/ -type f \ 22 | -name "libjingle_peerconnection_so.so" \ 23 | -exec sh -c 'f="{}"; mv -- "$f" "${f%libjingle_peerconnection_so.so}liblkjingle_peerconnection_so.so"' \; 24 | 25 | # clean up unzipped prefix files 26 | rm -rf prefix/ -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | GROUP=io.github.webrtc-sdk 2 | VERSION_NAME=137.7151.05 3 | POM_NAME=WebRTC Android SDK 4 | POM_DESCRIPTION=WebRTC Android SDK 5 | POM_PACKAGING=aar 6 | POM_URL=https://github.com/webrtc-sdk/android 7 | POM_SCM_URL=https://github.com/webrtc-sdk/android 8 | POM_SCM_CONNECTION=scm:git:git://github.com/webrtc-sdk/android.git 9 | POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/webrtc-sdk/android.git 10 | POM_LICENCE_NAME=The 3-Clause BSD License 11 | POM_LICENCE_URL=https://opensource.org/license/bsd-3-clause/ 12 | POM_LICENCE_DIST=repo 13 | POM_DEVELOPER_ID=webrtc-sdk 14 | POM_DEVELOPER_NAME=webrtc-sdk 15 | RELEASE_REPOSITORY_URL=https://ossrh-staging-api.central.sonatype.com/service/local/ 16 | SNAPSHOT_REPOSITORY_URL=https://central.sonatype.com/repository/maven-snapshots/ 17 | # Variables required to allow build.gradle to parse for publishing. 18 | # WARNING: Do not edit this and potentially commit to repo. 19 | # Instead, override in ~/.gradle/gradle.properties 20 | nexusUsername= 21 | nexusPassword= 22 | signing.keyId= 23 | signing.password= 24 | signing.secretKeyRingFile= 25 | STAGING_PROFILE_ID= -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 WebRTC SDKs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /downloadAar_prefixed.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | set -x 5 | 6 | # Get VERSION_NAME from gradle.properties 7 | VERSION=`grep -o 'VERSION_NAME=.*' gradle.properties | cut -f2- -d=` 8 | 9 | SDK_BIN_URL=https://github.com/webrtc-sdk/android/releases/download/v${VERSION}/libwebrtc_prefixed.aar 10 | 11 | echo "Downloading webrtc-sdk ${VERSION} prefixed binary for android." 12 | curl -f -L -O ${SDK_BIN_URL} 13 | 14 | # The prefixed aar can't be used as is. 15 | # The jar itself needs to be shadowed to properly add on the prefix. 16 | unzip -o libwebrtc_prefixed.aar -d prefix/ 17 | rm -rf android-prefixed/shadow/libs/* 18 | mkdir -p android-prefixed/shadow/libs 19 | mv prefix/classes.jar android-prefixed/shadow/libs/ 20 | 21 | # Copy the .so files to the main project for inclusion. 22 | rm -rf android-prefixed/src/main/jniLibs/* 23 | mkdir -p android-prefixed/src/main/jniLibs 24 | mv prefix/jni/* android-prefixed/src/main/jniLibs 25 | 26 | # Rename the so files to liblkjingle_peerconnection_so.so 27 | find android-prefixed/src/main/jniLibs/ -type f \ 28 | -name "libjingle_peerconnection_so.so" \ 29 | -exec sh -c 'f="{}"; mv -- "$f" "${f%libjingle_peerconnection_so.so}liblkjingle_peerconnection_so.so"' \; 30 | 31 | # clean up unzipped prefix files 32 | rm -rf prefix/ -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "maven-publish" 2 | apply plugin: 'signing' 3 | 4 | def POM_ARTIFACT_ID = "android" 5 | def AAR_FILE = "libwebrtc.aar" 6 | 7 | def configurePom(pom) { 8 | pom.name = POM_NAME 9 | pom.packaging = POM_PACKAGING 10 | pom.description = POM_DESCRIPTION 11 | pom.url = POM_URL 12 | 13 | pom.scm { 14 | url = POM_SCM_URL 15 | connection = POM_SCM_CONNECTION 16 | developerConnection = POM_SCM_DEV_CONNECTION 17 | } 18 | 19 | pom.licenses { 20 | license { 21 | name = POM_LICENCE_NAME 22 | url = POM_LICENCE_URL 23 | distribution = POM_LICENCE_DIST 24 | } 25 | } 26 | 27 | pom.developers { 28 | developer { 29 | id = POM_DEVELOPER_ID 30 | name = POM_DEVELOPER_NAME 31 | } 32 | } 33 | } 34 | 35 | afterEvaluate { 36 | 37 | publishing { 38 | publications { 39 | android(MavenPublication) { 40 | groupId = GROUP 41 | artifactId = POM_ARTIFACT_ID 42 | version = VERSION_NAME 43 | artifact(AAR_FILE) 44 | artifact("deploy/sources.jar") { 45 | classifier 'sources' 46 | } 47 | artifact("deploy/javadoc.jar") { 48 | classifier 'javadoc' 49 | } 50 | configurePom(pom) 51 | } 52 | } 53 | 54 | signing { 55 | publishing.publications.all { publication -> 56 | sign publication 57 | } 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /android-prefixed/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'signing' 3 | id 'com.android.library' 4 | id 'com.kezong.fat-aar' 5 | id 'maven-publish' 6 | } 7 | group = 'com.github.davidliu' 8 | 9 | android { 10 | namespace 'com.github.davidliu.lkshadowwebrtc' 11 | compileSdk 33 12 | 13 | defaultConfig { 14 | minSdk 21 15 | } 16 | 17 | buildTypes { 18 | release { 19 | minifyEnabled false 20 | } 21 | } 22 | compileOptions { 23 | sourceCompatibility JavaVersion.VERSION_1_7 24 | targetCompatibility JavaVersion.VERSION_1_7 25 | } 26 | afterEvaluate { 27 | generateReleaseBuildConfig.enabled = false 28 | generateDebugBuildConfig.enabled = false 29 | generateReleaseResValues.enabled = false 30 | generateDebugResValues.enabled = false 31 | } 32 | } 33 | 34 | dependencies { 35 | compileOnly project(path: ':android-prefixed:shadow', configuration: 'shadow') 36 | embed project(path: ':android-prefixed:shadow', configuration: 'shadow') 37 | } 38 | 39 | def POM_ARTIFACT_ID = "android-prefixed" 40 | 41 | def configurePom(pom) { 42 | pom.name = POM_NAME 43 | pom.packaging = POM_PACKAGING 44 | pom.description = POM_DESCRIPTION 45 | pom.url = POM_URL 46 | 47 | pom.scm { 48 | url = POM_SCM_URL 49 | connection = POM_SCM_CONNECTION 50 | developerConnection = POM_SCM_DEV_CONNECTION 51 | } 52 | 53 | pom.licenses { 54 | license { 55 | name = POM_LICENCE_NAME 56 | url = POM_LICENCE_URL 57 | distribution = POM_LICENCE_DIST 58 | } 59 | } 60 | 61 | pom.developers { 62 | developer { 63 | id = POM_DEVELOPER_ID 64 | name = POM_DEVELOPER_NAME 65 | } 66 | } 67 | } 68 | 69 | afterEvaluate { 70 | 71 | publishing { 72 | publications { 73 | androidPrefixed(MavenPublication) { 74 | // Applies the component for the release build variant. 75 | from components.release 76 | 77 | groupId = GROUP 78 | artifactId = POM_ARTIFACT_ID 79 | version = VERSION_NAME 80 | artifact("deploy/sources.jar") { 81 | classifier 'sources' 82 | } 83 | artifact("deploy/javadoc.jar") { 84 | classifier 'javadoc' 85 | } 86 | configurePom(pom) 87 | } 88 | } 89 | 90 | signing { 91 | publishing.publications.all { publication -> 92 | sign publication 93 | } 94 | } 95 | } 96 | } -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- 1 | name: Publish 2 | 3 | on: 4 | push: 5 | # only publish on version tags 6 | tags: 7 | - v* 8 | 9 | jobs: 10 | publish: 11 | runs-on: ubuntu-latest 12 | defaults: 13 | run: 14 | working-directory: ./android 15 | steps: 16 | - name: checkout repo 17 | uses: actions/checkout@v3 18 | with: 19 | path: ./android 20 | submodules: recursive 21 | 22 | - name: set up JDK 12 23 | uses: actions/setup-java@v2 24 | with: 25 | java-version: '12' 26 | distribution: 'adopt' 27 | 28 | - name: Download aars 29 | run: | 30 | ./downloadAar.sh 31 | ./downloadAar_prefixed.sh 32 | 33 | - name: Check required files exist 34 | run: | 35 | test -f "android/libwebrtc.aar" 36 | test -f "android-prefixed/shadow/libs/classes.jar" 37 | test -f "android-prefixed/src/main/jniLibs/arm64-v8a/liblkjingle_peerconnection_so.so" 38 | test -f "android-prefixed/src/main/jniLibs/armeabi-v7a/liblkjingle_peerconnection_so.so" 39 | test -f "android-prefixed/src/main/jniLibs/x86/liblkjingle_peerconnection_so.so" 40 | test -f "android-prefixed/src/main/jniLibs/x86_64/liblkjingle_peerconnection_so.so" 41 | 42 | - name: Grant execute permission for gradlew 43 | run: chmod +x gradlew 44 | 45 | - name: Create gpg key and import into gradle properties 46 | run: | 47 | echo $GPG_KEY_ARMOR | base64 --decode > ./release.asc 48 | gpg --quiet --output $GITHUB_WORKSPACE/release.gpg --dearmor ./release.asc 49 | sed -i -e "s,nexusUsername=,nexusUsername=$NEXUS_USERNAME,g" gradle.properties 50 | sed -i -e "s,nexusPassword=,nexusPassword=$NEXUS_PASSWORD,g" gradle.properties 51 | sed -i -e "s,signing.keyId=,signing.keyId=$GPG_KEY_ID,g" gradle.properties 52 | sed -i -e "s,signing.password=,signing.password=$GPG_PASSWORD,g" gradle.properties 53 | sed -i -e "s,signing.secretKeyRingFile=,signing.secretKeyRingFile=$GITHUB_WORKSPACE/release.gpg,g" gradle.properties 54 | sed -i -e "s,STAGING_PROFILE_ID=,STAGING_PROFILE_ID=$STAGING_PROFILE_ID,g" gradle.properties 55 | env: 56 | GPG_KEY_ARMOR: ${{ secrets.SIGNING_KEY_ARMOR }} 57 | GPG_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} 58 | GPG_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} 59 | NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} 60 | NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} 61 | STAGING_PROFILE_ID: ${{ secrets.STAGING_PROFILE_ID }} 62 | 63 | - name: Assemble 64 | run: ./gradlew assemble 65 | 66 | - name: Publish to sonatype 67 | run: ./gradlew publishAllPublicationsToMavenRepository closeAndReleaseMavenStagingRepository -Dorg.gradle.parallel=false -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn () { 37 | echo "$*" 38 | } 39 | 40 | die () { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save () { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /CHANGES.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | -------------------------------------------- 3 | [137.7151.05] - 2025.11.25 4 | 5 | * Upgrade to WebRTC-SDK M137.7151.05 6 | * Fixes noise suppression and echo cancelling not working. 7 | * Fixes microphone not turning off when muted. 8 | 9 | Corresponds to https://github.com/webrtc-sdk/webrtc/commit/624fa1dce239af785fc5fa9ca3b21b9250d3f835 10 | 11 | -------------------------------------------- 12 | [137.7151.04] - 2025.09.09 13 | 14 | * Upgrade to WebRTC-SDK M137.7151.04 15 | * feat: Data packet cryptor. 16 | 17 | -------------------------------------------- 18 | [137.7151.03] - 2025.07.17 19 | 20 | * Upgrade to WebRTC-SDK M137.7151.03 21 | * Add H265 (HEVC) encoder/decoder support 22 | 23 | -------------------------------------------- 24 | [137.7151.01] - 2025.07.17 25 | 26 | * Upgrade to WebRTC-SDK M137.7151.01 27 | 28 | -------------------------------------------- 29 | [125.6422.07] - 2024.03.18 30 | 31 | * Upgrade to WebRTC-SDK M125.6422.07 32 | * Android audio prewarm support 33 | 34 | -------------------------------------------- 35 | [125.6422.06.1] - 2024.10.31 36 | 37 | * Upgrade to WebRTC-SDK M125.6422.06.1 38 | * Re-release of 125.6422.06 due to upload errors 39 | 40 | -------------------------------------------- 41 | [125.6422.06] - 2024.10.31 42 | 43 | * Upgrade to WebRTC-SDK M125.6422.06 44 | * Support for custom audio input 45 | * Support for audio tracks without using microphone 46 | 47 | -------------------------------------------- 48 | [125.6422.05] - 2024.09.02 49 | 50 | * Upgrade to WebRTC-SDK M125.6422.05 51 | * Add isDisposed method to MediaStreamTrack 52 | 53 | -------------------------------------------- 54 | [125.6422.04] - 2024.07.28 55 | 56 | * Upgrade to WebRTC-SDK M125.6422.04 57 | * Fix NetworkMonitor race condition when dispatching native observers 58 | 59 | -------------------------------------------- 60 | [125.6422.03] - 2024.07.09 61 | 62 | * Upgrade to WebRTC-SDK M125.6422.03 63 | * Fix mic indicator not disappearing when muted. 64 | * Allow skipping AudioTrack playstate check through reflection. 65 | 66 | -------------------------------------------- 67 | [125.6422.02] - 2024.06.15 68 | 69 | * Upgrade to WebRTC-SDK M125.6422.02 70 | 71 | -------------------------------------------- 72 | [114.5735.11] - 2024.05.22 73 | 74 | * Upgrade to WebRTC-SDK M114.5735.11 75 | * Feat: Make audio output attributes modifiable. 76 | 77 | [114.5735.10] - 2024.04.08 78 | 79 | * Upgrade to WebRTC-SDK M114.5735.10 80 | * Feat: Add keyRingSize/discardFrameWhenCryptorNotReady to KeyProviderOptions. 81 | 82 | [114.5735.09] - 2024.04.03 83 | 84 | * Upgrade to WebRTC-SDK M114.5735.09 85 | * Fix external audio processor sample rate calculation 86 | * Allow ice gathering on any address ports 87 | 88 | [114.5735.08.1] - 2024.02.05 89 | 90 | * Upgrade to WebRTC-SDK M114.5735.08.1 91 | 92 | [114.5735.08] - 2024.01.03 93 | 94 | * Upgrade to WebRTC-SDK M114.5735.08 95 | * Feat: add external audio processor for android. 96 | 97 | [114.5735.07] - 2023.12.26 98 | 99 | * Upgrade to WebRTC-SDK M114.5735.07 100 | * Add a separate prefixed version of the WebRTC-SDK to avoid name collision 101 | 102 | [114.5735.05] - 2023.09.21 103 | 104 | * Upgrade to WebRTC-SDK M114.5735.05 105 | * Use independent threads to process frame encryption/decryption 106 | * Correct handle SIF frame 107 | * Fix a fault tolerance judgment failure 108 | 109 | [114.5735.04] - 2023.09.20 110 | 111 | * Upgrade to WebRTC-SDK M114.5735.04 112 | * fix h264 freeze on E2EE. 113 | * Send frame cryptor events from signaling-thread. 114 | 115 | [114.5735.03] - 2023.09.14 116 | 117 | * Upgrade to WebRTC-SDK M114.5735.03 118 | * Improve e2ee, add setSharedKey to KeyProvider. 119 | * Expose audio sample buffers for Android. 120 | * Add scalabilityMode support for AV1/VP9. 121 | * add failure tolerance for framecryptor. 122 | 123 | Corresponds to https://github.com/webrtc-sdk/webrtc/commit/2ab452f5c9427dc97eb8ec2db2023cefef816e18 124 | 125 | [114.5735.02] - 2023.07.13 126 | 127 | * Upgrade to WebRTC-SDK M114.5735.02 128 | * fix: skip decryption when key invalid. 129 | * Exposing Adapter types in PeerConnectionFactory. 130 | 131 | [114.5735.01] - 2023.06.27 132 | 133 | * Upgrade to WebRTC-SDK M114.5735.01 134 | 135 | [104.5112.10] - 2023.06.08 136 | 137 | * Upgrade to WebRTC-SDK M104.5112.10 138 | * fix frame drops for HW AndroidVideoDecoder, 139 | please use WrappedVideoDecoderFactory instead of DefaultVideoDecoderFactory. 140 | 141 | [104.5112.09] - 2023.04.25 142 | 143 | * Upgrade to WebRTC-SDK M104.5112.09 144 | * rename KeyManager to KeyProvider. 145 | 146 | [104.5112.08] - 2023.03.30 147 | 148 | * Upgrade to WebRTC-SDK M104.5112.08 149 | * feat: Add key ratchet for FrameCryptor. 150 | 151 | [104.5112.07] - 2023.02.02 152 | 153 | * Upgrade to WebRTC-SDK M104.5112.07 154 | * feat: Frame encryption for android. 155 | 156 | [104.5112.06] - 2023.01.31 157 | 158 | * Upgrade to WebRTC-SDK M104.5112.06 159 | * feat: Expose setCodecPreferences/getCapabilities for android. 160 | 161 | [104.5112.05] - 2022.11.23 162 | 163 | * Upgrade to WebRTC-SDK M104.5112.05 164 | * Fix simulcast when using hardware encoder on Android 165 | 166 | Corresponds to https://github.com/webrtc-sdk/webrtc/commit/baa0294c5e48e89887ad09a0fe6785c3aa9cc705 167 | 168 | [104.5112.03] - 2022.10.11 169 | 170 | * Upgrade to WebRTC-SDK M104.5112.03 171 | * feat: Add getStats for RtpSender/RtpReceiver. 172 | * Added "stopped" RtpTransceiverDirection value 173 | 174 | Corresponds to https://github.com/webrtc-sdk/webrtc/commit/9dab54fd76cb5d0a1a10fe6168cb356f392c502f 175 | 176 | [104.5112.01] - 2022.07.12 177 | 178 | * Upgrade to WebRTC-SDK M104.5112.01 179 | 180 | Corresponds to https://github.com/webrtc-sdk/webrtc/commit/a828846eb98e404bf3b00c1abf3787f93171a39c 181 | 182 | -------------------------------------------- 183 | [97.4692.04] - 2022.05.18 184 | 185 | * Fix broken build. 186 | * Built from https://github.com/webrtc-sdk/webrtc/commit/59fde2a30cf5c409a1b5ef193f6e37392a02e1df 187 | 188 | [97.4692.03] - 2022.05.14 189 | 190 | * **Do not use, build is broken.** 191 | * Fix crash related to VideoRTPReceiver 192 | * Built from https://github.com/webrtc-sdk/webrtc/commit/da9f0586fcd4442071e3a7a6c36915599ce0f29a 193 | 194 | [97.4692.02] - 2022.05.10 195 | 196 | * Pre-compiled M97 97.4692.02. 197 | * Added `VideoTrack.shouldReceive()` and `setShouldReceive(boolean)` 198 | * Built from https://github.com/webrtc-sdk/webrtc/commit/415fbe5e175b7f5815d497c7563eb03ee6687fbe 199 | 200 | [97.4692.01] - 2022.02.15 201 | 202 | * Upgrade to WebRTC-SDK M97.4692.01 203 | * Built from https://github.com/webrtc-sdk/webrtc/commit/8c7139f8e6fa19ddf2c91510c177a19746e1ded3 204 | 205 | -------------------------------------------- 206 | [93.4577.01] - 2021.12.29 207 | 208 | * Upgrade to WebRTC-SDK M93.4577.01 209 | 210 | [92.4515.03] - 2021.10.27 211 | 212 | * Pre-compiled M92 92.4515.03. 213 | * Added PeerConnectionObserverJni::OnRemoveTrack() 214 | 215 | [92.4515.02] - 2021.10.26 216 | 217 | * Pre-compiled M92 92.4515.02. 218 | * Built from https://github.com/webrtc-sdk/webrtc/commit/7ca0fa605f208ebbfb50c296249b0a3628aac2bc 219 | 220 | -------------------------------------------- 221 | [92.4515.01] - 2021.09.08 222 | 223 | * Pre-compiled M92 92.4515.01. 224 | --------------------------------------------------------------------------------