Skip to content

Integration

Abid Ali edited this page Feb 4, 2018 · 3 revisions

Including in your project

android-utility is made available through jitpack.io, so adding it to you project is same as various jitpack.io based library.

Jitpack documentation here

Instructions

Add this in your root build.gradle file (not your module build.gradle file):

allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}

Dependency

JitPack Add this to your module's build.gradle file (make sure to change LATEST with the version in the JitPack badge above):

dependencies {
	...
	compile 'com.github.aaabidunique:android-utility:LATEST'
}

If you want to use the latest code present in branch master then use below code:

dependencies {
	...
	compile 'com.github.aaabidunique:android-utility:master-SNAPSHOT'
}

Gradle can cache the SNAPSHOT builds. You could add the following configuration in your build.gradle file in order to ensure Gradle always picks up the ‘freshest’ version of the build:

configurations.all {
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
Clone this wiki locally