Skip to content

Commit

Permalink
Merge pull request #11 from mende273/update_dependencies
Browse files Browse the repository at this point in the history
update dependencies
  • Loading branch information
mende273 authored Mar 6, 2023
2 parents b47a3f7 + 6838936 commit 5409f6b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
9 changes: 8 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,18 @@ android {
}

dependencies {
constraints {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0") {
because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib")
}
}

implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
implementation 'androidx.activity:activity-compose:1.6.1'
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
implementation 'androidx.compose.material3:material3:1.0.0-alpha11'
implementation 'androidx.compose.material3:material3:1.1.0-alpha07'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand All @@ -62,4 +67,6 @@ dependencies {
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"

implementation "com.google.accompanist:accompanist-systemuicontroller:0.28.0"

implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ import com.jumrukovski.quotescompose.ui.theme.*

class MainActivity : ComponentActivity() {

@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun Toolbar() {
SmallTopAppBar(
TopAppBar(
modifier = Modifier.background(MaterialTheme.colorScheme.PrimaryBackgroundColor),
title = { Text(stringResource(R.string.app_name)) },
colors = TopAppBarDefaults.smallTopAppBarColors(
colors = TopAppBarDefaults.topAppBarColors(
containerColor = MaterialTheme.colorScheme.PrimaryBackgroundColor,
scrolledContainerColor = MaterialTheme.colorScheme.PrimaryBackgroundColor,
navigationIconContentColor = MaterialTheme.colorScheme.PrimaryTextColor,
Expand Down Expand Up @@ -81,7 +82,6 @@ class MainActivity : ComponentActivity() {
)
}

@OptIn(ExperimentalMaterial3Api::class)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.4.1' apply false
id 'com.android.library' version '7.4.1' apply false
id 'com.android.application' version '7.4.2' apply false
id 'com.android.library' version '7.4.2' apply false
id 'org.jetbrains.kotlin.android' version '1.7.0' apply false
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Mar 03 00:42:28 CET 2023
#Mon Mar 06 03:02:57 CET 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

0 comments on commit 5409f6b

Please sign in to comment.