Skip to content

Commit

Permalink
update everything *well* ...
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastGimbus committed Dec 5, 2023
1 parent 2b5a015 commit 75ea141
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ dependencies {
implementation 'androidx.compose.ui:ui-unit-android:1.5.1'

// this is to manually launch our routine update - same version as workmanager plugin 0.5.1
def work_version = "2.7.1"
implementation "androidx.work:work-runtime:$work_version"
def work_version = "2.8.1"
implementation("androidx.work:work-runtime").version {
strictly("2.8.1")
}
implementation("androidx.work:work-runtime-ktx").version {
strictly("2.8.1")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import androidx.core.app.ActivityCompat
import androidx.work.Data
import androidx.work.OneTimeWorkRequest
import androidx.work.WorkManager
import be.tramckrijte.workmanager.BackgroundWorker
import dev.fluttercommunity.workmanager.BackgroundWorker

/**
* This reacts to a new bluetooth device being connected (literally any)
Expand Down Expand Up @@ -54,7 +54,7 @@ class BluetoothDeviceConnectedReceiver : BroadcastReceiver() {
return
}
Log.i(TAG, "Scheduling one time work to update widget n stuff...")
// this is stuff imported from be.tramckrijte.workmanager
// this is stuff imported from dev.fluttercommunity.workmanager
val oneOffTaskRequest = OneTimeWorkRequest.Builder(BackgroundWorker::class.java)
.setInputData(
Data.Builder()
Expand Down

0 comments on commit 75ea141

Please sign in to comment.