
preDexing helps repeat builds run faster, but slows down builds that do not have any caching. CI builds start from scratch each time. Turns out that GitLab CI, Travis CI, Circle CI, and probably many others all define the "CI" environment variable, so its easy to detect when running in a CI environment. This makes things a lot cleaner. * https://docs.gitlab.com/ce/ci/variables/README.html * https://docs.travis-ci.com/user/environment-variables/ * https://circleci.com/docs/2.0/env-vars/ * https://github.com/codepath/android_guides/wiki/Setting-up-Travis-CI * https://stackoverflow.com/questions/23137764/building-a-debug-apk
11 lines
259 B
Groovy
11 lines
259 B
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
// 2.2.2 is the version that is included in Debian/stretch
|
|
classpath 'com.android.tools.build:gradle:2.2.2'
|
|
classpath files('libs/gradle-witness.jar')
|
|
}
|
|
}
|