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.rohitksingh:Flurry-The-Carousel:1.0.3'
}
dependencies {
implementation("com.github.rohitksingh:Flurry-The-Carousel:1.0.3")
}
<dependency>
<groupId>com.github.rohitksingh</groupId>
<artifactId>Flurry-The-Carousel</artifactId>
<version>1.0.3</version>
</dependency>
libraryDependencies += "com.github.rohitksingh" % "Flurry-The-Carousel" % "1.0.3"
:dependencies [[com.github.rohitksingh/Flurry-The-Carousel "1.0.3"]]
Simple Android library, which can serve as Image Slider too !
Gradle dependecy
Usage
Check the latest Version
Flurry step by step gradle integration for gradle beginners
About author
compile 'com.github.rohitksingh:Flurry:1.0.3
If you are already familiar with gradle. Add the following code in your root build.gradle .
If you are new to gradle see below Step by step integration guide .
Add hosting repository url
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add compile time dependency
dependencies {
compile 'com.github.rohitksingh:Flurry:1.0.3'
}
<a name="usage"/>
<com.rohksin.flurry.Flurry
android:id="@+id/flurry"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Flurry flurry = (Flurry)findViewById(R.id.flurry);
}
<a name ="latestVersion"/>
You can find the latest version of Flurry in JitPack.io
<a name= "stepbystepgradle"/> allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.rohitksingh:Flurry:1.0.3'
}
</br></br>