Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.shiguredo:sora-webrtc-android:75.16.0'
}
dependencies {
implementation("com.github.shiguredo:sora-webrtc-android:75.16.0")
}
<dependency>
<groupId>com.github.shiguredo</groupId>
<artifactId>sora-webrtc-android</artifactId>
<version>75.16.0</version>
</dependency>
libraryDependencies += "com.github.shiguredo" % "sora-webrtc-android" % "75.16.0"
:dependencies [[com.github.shiguredo/sora-webrtc-android "75.16.0"]]
ここは古いリポジトリです。
移行先は https://github.com/shiguredo/shiguredo-webrtc-android です。
このリポジトリは WebRTC SFU Sora Android SDK 向けにビルドした libwebrtc.aar ファイルを公開しています。
利用方法の例は Sora Android SDK のドキュメント をご覧ください。
公開している AAR ファイルを jitpack.io でも配布しています。
build.gradle で、リポジトリ URL の追加、および依存関係を記述することで利用可能です。
repositories {
maven { url 'https://jitpack.io' }
}
api "com.github.shiguredo:sora-webrtc-android:${libwebrtc_version}"
このリポジトリにあるコードは Apatch License Version 2.0 でライセンスされます。
libwebrtc (webrtc.org) のコードは webrtc.org のライセンス、
パテントの指定に従います。このリポジトリのルート直下の LICENSE_WEBRTC
,
PATENTS_WEBRTC
を参照して下さい。それらのオリジナルは次の URL にあります。
releases, jitpack.io で配布する libwebrtc の AAR バイナリのライセンスは、
releases にある THIRD_PARTY_LICENSES.md
を参照して下さい。
git flow release start <RELEASE_VERSION>
prepareAar.sh
の VERSION
を変更するprepareAar.sh
の RELEASE_VERSION
を変更する
VERSION
と同じ、このリポジトリのメンテンナスにより同一 AAR に
複数バージョンをつけたい場合はサフィックスを付けるgit flow release finish <RELEASE_VERSION>
git push --tags origin master develop
<RELEASE_VERSION>
タグに上げる
libwebrtc.aar
THIRD_PARTY_LICENSES.md