Repeatable Android AAR packaging for the pinned Opus reference implementation and a small JNI decoder wrapper.
From the repository root, install the versions in docs/BUILDING.md, then run the script with PowerShell 7+ (Windows PowerShell 5.1 is also supported):
.\scripts\build-aar.ps1The output is artifacts/opus-android-codec-<version>.aar, accompanied by a
SHA-256 checksum file. Use the checksum to verify the integrity of a downloaded
AAR before integration. The SDK ships arm64-v8a, armeabi-v7a, and x86_64
native libraries. This ABI set intentionally excludes 32-bit x86; x86_64 is
kept for 64-bit emulator coverage. The build verification also checks 16 KB ELF
LOAD alignment for the 64-bit native libraries (arm64-v8a and x86_64). This
AAR check does not replace final APK/AAB ZIP-alignment validation by each
consuming application.
The supported ABI set is defined by the Android library and native build configurations. Update the relevant Gradle, CMake/native build, and verification configurations together if the supported ABI set changes.
The SDK is published to the company JFrog Artifactory Maven repository. Client applications should use the company's standard Gradle/JFrog repository setup, then depend on the SDK using a released version:
dependencies {
implementation("com.stt.opus:opus-android-codec:<version>")
}Replace <version> with the published SDK version. The SDK version identifies
the pinned upstream Opus revision and the Android wrapper revision; its
components and derivation rules are defined in gradle.properties and
documented in docs/VERSIONING.md.
Releases are published manually by an authorized maintainer from a verified
local checkout. Configure the following values in the user's
~/.gradle/gradle.properties; never commit them to this repository:
artifactory_contextUrl=https\://sally01.jfrog.io/sally01
artifactory_user=...
artifactory_password=...Then run:
.\gradlew.bat publishAllpublishAll publishes the release AAR, sources JAR, Maven POM, and Gradle
module metadata to the company JFrog release repository. The exact local
release procedure, including tag verification, is documented in
docs/RELEASE.md. GitHub Actions only builds and verifies
the AAR; it does not publish artifacts or receive JFrog credentials.
The upstream Opus source is integrated as a Git subtree at third_party/opus;
its source repository and pinned commit are recorded in
third_party/opus-UPSTREAM.json. JNI source
is maintained at opus-sdk/src/main/cpp/opus_jni.c.
Opus is redistributed under its three-clause BSD license. See
LICENSE, NOTICE,
third_party/opus/COPYING, and
licenses/opus/NOTICE.md. Products distributing the
AAR must include the applicable notice in their open-source notices.