Skip to content

Commit

Permalink
Introduce WorkManager dependency
Browse files Browse the repository at this point in the history
Guava needs to be excluded because google-api-client already imports it.
  • Loading branch information
lognaturel committed Oct 19, 2018
1 parent 1d8ca65 commit 4ce0184
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ task checkTests(type: GradleBuild) {
}

ext {
// Play Services is a big download so it should only be upgraded if necessary and after
// community discussion and a warning period.

supportLibraryVersion = '27.1.1'
leakyCanaryVersion = '1.5.4'
daggerVersion = '2.16'
rxLifecycleVersion = '2.2.1'
workManagerVersion = "1.0.0-alpha10"
}
10 changes: 10 additions & 0 deletions collect_app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,15 @@ dependencies {
implementation "com.trello.rxlifecycle2:rxlifecycle-android:${rootProject.rxLifecycleVersion}"
implementation "com.trello.rxlifecycle2:rxlifecycle-android-lifecycle:${rootProject.rxLifecycleVersion}"

// WorkManager for specifying deferrable, asynchronous tasks
implementation("android.arch.work:work-runtime:${rootProject.workManagerVersion}") {
exclude group: 'com.google.guava', module: 'listenablefuture'
}
// Optional JobDispatcher support so devices with Play Services do better than AlarmManager
implementation("android.arch.work:work-firebase:${rootProject.workManagerVersion}") {
exclude group: 'com.google.guava', module: 'listenablefuture'
}

// Makes binding to Views easy:
implementation "com.jakewharton:butterknife:8.8.1"
annotationProcessor "com.jakewharton:butterknife-compiler:8.8.1"
Expand Down Expand Up @@ -304,6 +313,7 @@ dependencies {

androidTestImplementation "com.squareup.okhttp3:mockwebserver:3.9.0"

androidTestImplementation "android.arch.work:work-testing:${rootProject.workManagerVersion}"
}

// Must be at bottom to prevent dependency collisions
Expand Down

0 comments on commit 4ce0184

Please sign in to comment.