mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 04:13:53 +01:00
* Update gradle version. Also update jacoco plugin to work with latest gradle. * Update target sdk to 28. * Update other dependencies to latest versions. * Remove totally unused(?) local jar file. * Remove dependency on nineoldandroids. The functions it provides are no longer necessary. This also removes a homemade "evaluate" function, which is readily available in the Support library. * Remove dependency on Traceur. This library has not been updated in two years (may no longer be maintained?), and no longer works with the latest RxJava. * Enable test coverage only when performing CI. Running test coverage on every single build while developing in the IDE is quite a waste of time. * Suppress gradle Notes and Warnings from reflection-using packages. The build output was getting extremely long, and was actually causing the build to fail because of the sheer size of the log. * Suppress gradle Note messages during tests and CI. Stop CI messages from exploding to 10k+ lines. * Temporarily remove instrumented test(s). The project's instrumented tests consist of a single test which sets a SharedPreference, then verified that the SharedPreference was set. I humbly submit that this is not worth the trouble of having the CI server download the system image, spin up an emulator, load the APK, and run it just for this purpose. Once the instrumented tests are ready for prime time, we can reinstate instrumented tests in CI.
25 lines
737 B
Groovy
25 lines
737 B
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.3.2'
|
|
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.4'
|
|
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.2'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
|
|
|
|
classpath "com.github.triplet.gradle:play-publisher:2.0.0-rc1"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
maven { url "https://jitpack.io" }
|
|
maven { url "https://maven.google.com" }
|
|
}
|
|
}
|