-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose CoroutineScope as viewModelScope
- Loading branch information
Showing
4 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/androidMain/kotlin/com/doublesymmetry/viewmodel/ViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package com.doublesymmetry.viewmodel | ||
|
||
import androidx.lifecycle.ViewModel as AndroidXViewModel | ||
import androidx.lifecycle.viewModelScope | ||
import androidx.lifecycle.viewModelScope as androidXViewModelScope | ||
|
||
actual open class ViewModel : AndroidXViewModel() { | ||
actual val scope = viewModelScope | ||
actual val viewModelScope = androidXViewModelScope | ||
} |
2 changes: 0 additions & 2 deletions
2
src/appleMain/kotlin/com/doublesymmetry/viewmodel/CloseableCoroutineScope.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters