Skip to content

Commit

Permalink
bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN committed May 25, 2023
1 parent ea5928a commit 6e23b8d
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 19 deletions.
10 changes: 5 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ android {
dependencies {

//AndroidX
implementation("androidx.activity:activity-compose:1.7.1")
implementation("androidx.activity:activity-compose:1.7.2")
implementation("androidx.core:core-splashscreen:1.0.1")
implementation("androidx.exifinterface:exifinterface:1.3.6")
implementation("androidx.appcompat:appcompat:1.7.0-alpha02")
Expand All @@ -103,10 +103,10 @@ dependencies {
implementation("nl.dionsegijn:konfetti-compose:2.0.2")

//Compose
implementation("androidx.compose.material3:material3:1.2.0-alpha01")
implementation("androidx.compose.material3:material3-window-size-class:1.2.0-alpha01")
implementation("androidx.compose.material:material-icons-extended:1.5.0-alpha04")
implementation("androidx.compose.material:material:1.5.0-alpha04")
implementation("androidx.compose.material3:material3:1.2.0-alpha02")
implementation("androidx.compose.material3:material3-window-size-class:1.2.0-alpha02")
implementation("androidx.compose.material:material-icons-extended:1.5.0-beta01")
implementation("androidx.compose.material:material:1.5.0-beta01")

//Di
implementation("com.google.dagger:hilt-android:2.46.1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,17 +364,23 @@ fun MainScreen(
}
)
Divider()
val currentFolderUri = viewModel.saveFolderUri
LazyColumn(
contentPadding = WindowInsets.navigationBars.asPaddingValues(),
state = lazyListState
) {
SettingsBlock(
onEditPresets = { editPresetsState.value = true },
onEditArrangement = { showArrangementSheet.value = true },
onEditColorScheme = { showPickColorDialog.value = true },
onEditEmoji = { showEmojiDialog.value = true },
onEditFilename = { showChangeFilenameDialog = true },
onEditEmoji = { showEmojiDialog.value = true },
onEditColorScheme = { showPickColorDialog.value = true },
onShowAuthor = { showAuthorDialog.value = true },
settingsState = settingsState,
currentFolderUri = currentFolderUri,
toastHost = toastHost,
scope = scope,
context = context,
viewModel = viewModel
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import androidx.compose.material.icons.rounded.TableRows
import androidx.compose.material.icons.rounded.Translate
import androidx.compose.material.icons.rounded.WbSunny
import androidx.compose.material3.Divider
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Slider
Expand All @@ -60,7 +59,6 @@ import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
Expand All @@ -76,6 +74,7 @@ import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.t8rin.dynamic.theme.ColorTupleItem
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import ru.tech.imageresizershrinker.BuildConfig
import ru.tech.imageresizershrinker.R
Expand All @@ -101,32 +100,31 @@ import ru.tech.imageresizershrinker.utils.storage.LocalFileController
import ru.tech.imageresizershrinker.utils.storage.SaveTarget
import ru.tech.imageresizershrinker.utils.storage.constructFilename
import ru.tech.imageresizershrinker.utils.storage.toUiPath
import ru.tech.imageresizershrinker.widget.LocalToastHost
import ru.tech.imageresizershrinker.widget.PreferenceRow
import ru.tech.imageresizershrinker.widget.PreferenceRowSwitch
import ru.tech.imageresizershrinker.widget.TitleItem
import ru.tech.imageresizershrinker.widget.ToastHostState
import ru.tech.imageresizershrinker.widget.image.Picture
import ru.tech.imageresizershrinker.widget.utils.LocalSettingsState
import ru.tech.imageresizershrinker.widget.utils.SettingsState
import ru.tech.imageresizershrinker.widget.utils.isNightMode
import ru.tech.imageresizershrinker.widget.utils.toAlignment
import kotlin.math.roundToInt

@OptIn(ExperimentalMaterial3Api::class)
fun LazyListScope.SettingsBlock(
onEditPresets: () -> Unit,
onEditArrangement: () -> Unit,
onEditFilename: () -> Unit,
onEditEmoji: () -> Unit,
onEditColorScheme: () -> Unit,
onShowAuthor: () -> Unit,
settingsState: SettingsState,
currentFolderUri: Uri?,
toastHost: ToastHostState,
scope: CoroutineScope,
context: Context,
viewModel: MainViewModel
) {
item {
val settingsState = LocalSettingsState.current
val currentFolderUri = viewModel.saveFolderUri
val toastHost = LocalToastHost.current
val scope = rememberCoroutineScope()
val context = LocalContext.current
// Night mode
Column {
TitleItem(
Expand Down Expand Up @@ -171,6 +169,8 @@ fun LazyListScope.SettingsBlock(
Spacer(Modifier.height(16.dp))
}
Divider()
}
item {
// Customization
Column {
TitleItem(
Expand Down Expand Up @@ -528,6 +528,8 @@ fun LazyListScope.SettingsBlock(
Spacer(Modifier.height(16.dp))
}
Divider()
}
item {
// Arrangement
Column {
TitleItem(
Expand All @@ -550,6 +552,8 @@ fun LazyListScope.SettingsBlock(
Spacer(Modifier.height(16.dp))
}
Divider()
}
item {
// Presets
Column {
TitleItem(
Expand All @@ -572,6 +576,8 @@ fun LazyListScope.SettingsBlock(
Spacer(Modifier.height(16.dp))
}
Divider()
}
item {
// Folder
Column {
val launcher = rememberLauncherForActivityResult(
Expand Down Expand Up @@ -661,6 +667,8 @@ fun LazyListScope.SettingsBlock(
Spacer(Modifier.height(16.dp))
}
Divider()
}
item {
// File
Column {
val fileController = LocalFileController.current
Expand Down Expand Up @@ -737,6 +745,8 @@ fun LazyListScope.SettingsBlock(
Spacer(Modifier.height(16.dp))
}
Divider()
}
item {
// Source
Column {
TitleItem(
Expand Down Expand Up @@ -826,6 +836,8 @@ fun LazyListScope.SettingsBlock(
Spacer(Modifier.height(16.dp))
}
Divider()
}
item {
// About app
Column {
TitleItem(
Expand Down
2 changes: 1 addition & 1 deletion dynamic_theme/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ android {
}

dependencies {
implementation(platform("androidx.compose:compose-bom:2023.05.00"))
implementation(platform("androidx.compose:compose-bom:2023.05.01"))
implementation("androidx.core:core-ktx:1.10.1")
implementation("androidx.compose.material3:material3")
implementation("androidx.palette:palette:1.0.0")
Expand Down
2 changes: 1 addition & 1 deletion modalsheet/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ android {
}

dependencies {
implementation(platform("androidx.compose:compose-bom:2023.05.00"))
implementation(platform("androidx.compose:compose-bom:2023.05.01"))
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.foundation:foundation")
implementation("androidx.compose.material3:material3:1.1.0")
Expand Down

0 comments on commit 6e23b8d

Please sign in to comment.