Skip to content

Commit 20a19f1

Browse files
RodrigoMirandaMarencotiembo
authored andcommitted
android#473 Bump coroutines version to 1.3.0-M2
1 parent eac459d commit 20a19f1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/src/main/java/com/google/samples/apps/sunflower/viewmodels/PlantDetailViewModel.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ package com.google.samples.apps.sunflower.viewmodels
1818

1919
import androidx.lifecycle.LiveData
2020
import androidx.lifecycle.ViewModel
21-
import androidx.lifecycle.viewModelScope
2221
import androidx.lifecycle.map
22+
import androidx.lifecycle.viewModelScope
2323
import com.google.samples.apps.sunflower.PlantDetailFragment
2424
import com.google.samples.apps.sunflower.data.GardenPlantingRepository
2525
import com.google.samples.apps.sunflower.data.Plant
2626
import com.google.samples.apps.sunflower.data.PlantRepository
27-
import kotlinx.coroutines.ExperimentalCoroutinesApi
2827
import kotlinx.coroutines.cancel
2928
import kotlinx.coroutines.launch
3029

@@ -43,7 +42,6 @@ class PlantDetailViewModel(
4342
/**
4443
* Cancel all coroutines when the ViewModel is cleared.
4544
*/
46-
@ExperimentalCoroutinesApi
4745
override fun onCleared() {
4846
super.onCleared()
4947
viewModelScope.cancel()

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ buildscript {
2626
appCompatVersion = '1.1.0-beta01'
2727
constraintLayoutVersion = '2.0.0-beta1'
2828
coreTestingVersion = '2.0.0'
29-
coroutinesVersion = "1.1.1"
29+
coroutinesVersion = "1.3.0-M2"
3030
espressoVersion = '3.1.1'
3131
fragmentVersion = '1.1.0-alpha09'
3232
glideVersion = '4.9.0'

0 commit comments

Comments
 (0)