Commit 1c7cbef1 by Philippe Simons

use Util.SDK_INT

use androidX workmanager
parent a2282ad0
......@@ -34,7 +34,7 @@ android {
dependencies {
implementation project(modulePrefix + 'library-core')
implementation 'android.arch.work:work-runtime:1.0.1'
implementation 'androidw.work:work-runtime:2.0.1'
}
ext {
......
......@@ -94,7 +94,7 @@ public final class WorkManagerScheduler implements Scheduler {
builder.setRequiresCharging(true);
}
if (requirements.isIdleRequired() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (requirements.isIdleRequired() && Util.SDK_INT >= 23) {
builder.setRequiresDeviceIdle(true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment