Skip to content

Commit

Permalink
Fixed @immutable import
Browse files Browse the repository at this point in the history
  • Loading branch information
acristescu committed Oct 10, 2023
1 parent 276c016 commit 821c20e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.zenandroid.onlinego.data.model.local

import androidx.compose.runtime.Immutable
import com.github.mikephil.charting.data.Entry
import javax.annotation.concurrent.Immutable

@Immutable
data class UserStats(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.zenandroid.onlinego.data.model.ogs

import androidx.compose.runtime.Immutable
import io.zenandroid.onlinego.data.model.local.Player
import java.time.Instant
import javax.annotation.concurrent.Immutable

@Immutable
data class OGSPlayerProfile (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import androidx.compose.material.icons.rounded.SkipNext
import androidx.compose.material.icons.rounded.SkipPrevious
import androidx.compose.material.icons.rounded.Stop
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
Expand Down Expand Up @@ -54,7 +55,6 @@ import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import javax.annotation.concurrent.Immutable

private const val HISTORY_KEY = "FACE_TO_FACE_HISTORY_KEY"
private const val BOARD_SIZE_KEY = "FACE_TO_FACE_BOARD_SIZE_KEY"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.zenandroid.onlinego.ui.screens.mygames

import android.util.Log
import androidx.compose.runtime.Immutable
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.google.firebase.analytics.FirebaseAnalytics
Expand Down Expand Up @@ -55,7 +56,6 @@ import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch
import org.json.JSONObject
import java.util.Locale
import javax.annotation.concurrent.Immutable

class MyGamesViewModel(
private val userSessionRepository: UserSessionRepository,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.zenandroid.onlinego.ui.screens.newchallenge

import androidx.compose.runtime.Immutable
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import io.zenandroid.onlinego.data.model.local.Player
Expand All @@ -9,7 +10,6 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import javax.annotation.concurrent.Immutable

class SelectOpponentViewModel(
botsRepository: BotsRepository,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.zenandroid.onlinego.ui.screens.stats

import android.util.Log
import androidx.compose.runtime.Immutable
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.github.mikephil.charting.data.Entry
Expand All @@ -27,7 +28,6 @@ import kotlinx.coroutines.launch
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
import javax.annotation.concurrent.Immutable

/**
* Created by alex on 05/11/2017.
Expand Down

0 comments on commit 821c20e

Please sign in to comment.