Skip to content

Instantly share code, notes, and snippets.

@simtel12
simtel12 / robolectricDownloader.gradle
Created January 22, 2019 22:11
Robolectric manual download
/**
* Downloads all android-all dependencies and copies them to the mavenLocal() repository
*
* Once applied to your gradle project, can be executed with ./gradlew robolectricSdkDownload
*/
import java.nio.file.Files
// The general idea of this was borrowed from https://gist.github.com/xian/05c4f27da6d4156b9827842217c2cd5c
// I then modified it heavily to allow easier addition of new SDK versions