Make sure you have maven and python3 installed:
brew install maven
brew install python3Please, ensure that you have requested raw webrtc repackaged aar file from Stream.
We need to clone both repositories stream-video-android and webrtc-android accordingly.
git clone https://github.com/GetStream/stream-video-android
git clone https://github.com/GetStream/webrtc-androidScript is available in the root of the stream-video-android repository.
./repackage.sh --repackaged_webrtc <path_to_webrtc_aar> --webrtc_android <path_to_webrtc-android_repo>When script completes, the sample usage of the new dependencies can be found in dogfooding's build.gradle.kts:
// Stream Video SDK
implementation("io.getstream:streamx-video-android-compose:${Configuration.versionName}")
implementation("io.getstream:streamx-video-android-xml:${Configuration.versionName}")
implementation("io.getstream:streamx-video-android-tooling:${Configuration.versionName}")
implementation("io.getstream:streamx-video-android-datastore:${Configuration.versionName}")
compileOnly("io.getstream:streamx-video-android-mock:${Configuration.versionName}")
The repackaged modules are stored in:
~/.m2/repository/io/getstream/streamx-<module-name>
Note
streamxprefix means that it is a repackaged module and it's stored on your machine locally only.
In your android project, you need to add mavenLocal() to the repositories list in your settings.gradle.kts.
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenLocal() // here we've added mavenLocal()
google()
mavenCentral()
}
}Now you can use the new dependencies in the following way:
implementation("io.getstream:streamx-video-android-compose:X.Y.Z")
implementation("io.getstream:streamx-video-android-xml:X.Y.Z")
// the rest of the dependencies