Add it in your root build.gradle at the end of repositories
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency
implementation "com.github.gumify.icecream:$icecream_version"
Create an icecream instance
val icecream = icecream.getInstance()
Get all trending wallpapers
icecream.trendingWallpapers(page = 1) { wallpapers, error ->
// Get HD image URL
wallpapers[0].directUrl { url, e ->
debug(url)
}
}
Search wallpapers
icecream.searchWallpapers(query = "iron man", page = 1) { wallpapers, error ->
debug(wallpapers)
}
Get all trending ringtones
icecream.trendingRingtones(page = 1) { ringtones, error ->
debug(ringtones)
}
Search ringtones
icecream.searchRingtones(query = "iron man", page = 1) { ringtones, error ->
debug(ringtones)
}