mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 00:35:26 +02:00
Added missing visibility modifiers
This commit is contained in:
parent
f92488f336
commit
88a14bdd51
@ -24,7 +24,7 @@ import androidx.activity.compose.setContent
|
|||||||
import dagger.hilt.android.AndroidEntryPoint
|
import dagger.hilt.android.AndroidEntryPoint
|
||||||
|
|
||||||
@AndroidEntryPoint
|
@AndroidEntryPoint
|
||||||
class MainActivity : ComponentActivity() {
|
internal class MainActivity : ComponentActivity() {
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
|
@ -36,7 +36,7 @@ import io.github.sadellie.themmo.Themmo
|
|||||||
import io.github.sadellie.themmo.rememberThemmoController
|
import io.github.sadellie.themmo.rememberThemmoController
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun UnittoApp() {
|
internal fun UnittoApp() {
|
||||||
val converterViewModel: ConverterViewModel = hiltViewModel()
|
val converterViewModel: ConverterViewModel = hiltViewModel()
|
||||||
val secondViewModel: SecondViewModel = hiltViewModel()
|
val secondViewModel: SecondViewModel = hiltViewModel()
|
||||||
val settingsViewModel: SettingsViewModel = hiltViewModel()
|
val settingsViewModel: SettingsViewModel = hiltViewModel()
|
||||||
|
@ -22,4 +22,4 @@ import android.app.Application
|
|||||||
import dagger.hilt.android.HiltAndroidApp
|
import dagger.hilt.android.HiltAndroidApp
|
||||||
|
|
||||||
@HiltAndroidApp
|
@HiltAndroidApp
|
||||||
class UnittoApplication: Application()
|
internal class UnittoApplication: Application()
|
||||||
|
@ -44,7 +44,7 @@ import com.sadellie.unitto.feature.unitslist.navigation.rightScreen
|
|||||||
import io.github.sadellie.themmo.ThemmoController
|
import io.github.sadellie.themmo.ThemmoController
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun UnittoNavigation(
|
internal fun UnittoNavigation(
|
||||||
navController: NavHostController,
|
navController: NavHostController,
|
||||||
converterViewModel: ConverterViewModel,
|
converterViewModel: ConverterViewModel,
|
||||||
secondViewModel: SecondViewModel,
|
secondViewModel: SecondViewModel,
|
||||||
@ -100,5 +100,5 @@ fun UnittoNavigation(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val NavController.clearStack: NavOptions
|
private val NavController.clearStack: NavOptions
|
||||||
get() = NavOptions.Builder().setPopUpTo(this.graph.id, false).build()
|
get() = NavOptions.Builder().setPopUpTo(this.graph.id, false).build()
|
@ -36,7 +36,7 @@ data class CurrencyUnitResponse(
|
|||||||
/**
|
/**
|
||||||
* Custom parser because API has a weird json structure (dynamic field names)
|
* Custom parser because API has a weird json structure (dynamic field names)
|
||||||
*/
|
*/
|
||||||
class CurrencyAdapter {
|
internal class CurrencyAdapter {
|
||||||
@Suppress("UNUSED", "UNUSED_PARAMETER", "SameReturnValue")
|
@Suppress("UNUSED", "UNUSED_PARAMETER", "SameReturnValue")
|
||||||
@ToJson fun toJson(card: CurrencyUnitResponse): String? = null
|
@ToJson fun toJson(card: CurrencyUnitResponse): String? = null
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user