Skip to content

Commit

Permalink
[SHARED] Add licenses copy
Browse files Browse the repository at this point in the history
  • Loading branch information
kamgurgul committed Jan 21, 2025
1 parent 7b365af commit 94adebd
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shared/src/commonMain/composeResources/values-cs/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,11 @@
<string name="sensors_magnetic_field">Magnetické pole</string>
<string name="sensors_attitude">Orientace</string>

<!-- Licenses -->
<string name="licenses">Licence</string>
<string name="licenses_module_name">Název modulu:</string>
<string name="licenses_module_version">Verze modulu:</string>
<string name="licenses_module_license">Licence:</string>

</resources>

6 changes: 6 additions & 0 deletions shared/src/commonMain/composeResources/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,10 @@
<string name="sensors_magnetic_field">Magnetfeld</string>
<string name="sensors_attitude">Ausrichtung</string>

<!-- Licenses -->
<string name="licenses">Lizenzen</string>
<string name="licenses_module_name">Modulname:</string>
<string name="licenses_module_version">Modulversion:</string>
<string name="licenses_module_license">Lizenz:</string>

</resources>
6 changes: 6 additions & 0 deletions shared/src/commonMain/composeResources/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,10 @@
<string name="sensors_magnetic_field">Pole magnetyczne</string>
<string name="sensors_attitude">Postawa</string>

<!-- Licenses -->
<string name="licenses">Licencje</string>
<string name="licenses_module_name">Nazwa modułu:</string>
<string name="licenses_module_version">Wersja modułu:</string>
<string name="licenses_module_license">Licencja:</string>

</resources>
6 changes: 6 additions & 0 deletions shared/src/commonMain/composeResources/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,10 @@
<string name="sensors_magnetic_field">Magnetic field</string>
<string name="sensors_attitude">Attitude</string>

<!-- Licenses -->
<string name="licenses">Licenses</string>
<string name="licenses_module_name">Module name:</string>
<string name="licenses_module_version">Module version:</string>
<string name="licenses_module_license">License:</string>

</resources>
Original file line number Diff line number Diff line change
@@ -1,10 +1,33 @@
package com.kgurgul.cpuinfo.features.settings.licenses

import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.WindowInsetsSides
import androidx.compose.foundation.layout.only
import androidx.compose.foundation.layout.safeDrawing
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.kgurgul.cpuinfo.shared.Res
import com.kgurgul.cpuinfo.shared.licenses
import com.kgurgul.cpuinfo.ui.components.PrimaryTopAppBar
import org.jetbrains.compose.resources.stringResource
import org.koin.compose.viewmodel.koinViewModel

@Composable
fun LicensesScreen(viewModel: LicensesViewModel = koinViewModel()) {

}

@Composable
fun LicensesScreen(uiState: LicensesViewModel.UiState) {
Scaffold(
topBar = {
PrimaryTopAppBar(
title = stringResource(Res.string.licenses),
)
},
contentWindowInsets = WindowInsets.safeDrawing.only(WindowInsetsSides.Horizontal),
) { paddingValues ->

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import androidx.lifecycle.ViewModel

class LicensesViewModel : ViewModel() {



data class UiState(
val isLoading: Boolean = false,
)
Expand Down

0 comments on commit 94adebd

Please sign in to comment.