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.pzhangleo:vlc-android-sdk:'
}
dependencies {
implementation("com.github.pzhangleo:vlc-android-sdk:")
}
<dependency>
<groupId>com.github.pzhangleo</groupId>
<artifactId>vlc-android-sdk</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.pzhangleo" % "vlc-android-sdk" % ""
:dependencies [[com.github.pzhangleo/vlc-android-sdk ""]]
VLC Android SDK pushed to Maven Central. Primarily used in project tomahawk-android.
https://github.com/tomahawk-player/tomahawk-android
Please contact the videolan team directly. I am only publishing LibVLC for Android on Maven Central.
https://trac.videolan.org/vlc
Just add this dependency to your project and you're good to go.
<pre>dependencies { compile "de.mrmaffen:vlc-android-sdk:1.9.8" }</pre>NOTE: 1.9.8 is the latest version! Please ignore the old version 3.0.0.
To build a fresh version of the LibVLC Android SDK please make sure that you have setup your machine correctly (You can ignore the steps after and including 'Building'): https://wiki.videolan.org/AndroidCompile
Afterwards simply run this Gradle command:
./gradlew buildLibVlc
The VLC-Android and the VLC repo will now get pulled if they haven't been previously. After that's done the compilation process for the ABIs armeabi-v7a, x86 and armeabi gets started. Finally the resulting .java files will be copied over into the src/main/java folder of this project. The resulting .so files will be copied into src/main/jniLibs.
If you want to build a specific version (maybe you want a major stable release) you have to checkout the vlc-android git repository at the corresponding commit:
cd vlc-android // if this folder doesn't exist yet, simply run ./gradlew cloneVlcAndroid
git tag // to list all release versions
git checkout {tag-name} // to checkout the git repo at the given tag
cd ..
./gradlew buildLibVlc // build it