Skip to content

Commit

Permalink
chore: remove deprecated codes
Browse files Browse the repository at this point in the history
  • Loading branch information
kabirnayeem99 committed Feb 13, 2024
1 parent 082967b commit 41f548c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
17 changes: 8 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,9 @@ dependencies {
implementation 'androidx.compose.ui:ui-tooling:1.6.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0'
implementation 'androidx.core:core-ktx:1.12.0'
def material_3_version = '1.2.0-alpha03'
def material_3_version = '1.2.0'
implementation "androidx.compose.material3:material3:$material_3_version"
implementation "androidx.compose.material3:material3-window-size-class:$material_3_version"
implementation 'com.google.accompanist:accompanist-systemuicontroller:0.32.0'

// Navigation
def nav_version = '2.7.7'
Expand All @@ -105,7 +104,7 @@ dependencies {
implementation 'com.valentinilk.shimmer:compose-shimmer:1.2.0'

// Coroutines - for threading
def coroutines_version = '1.7.2'
def coroutines_version = '1.7.3'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"

Expand All @@ -120,7 +119,7 @@ dependencies {
implementation 'com.jakewharton.timber:timber:5.0.1'

// Hilt - for dependency injection
def hilt_dagger_version = '2.48'
def hilt_dagger_version = '2.50'
implementation "com.google.dagger:hilt-android:$hilt_dagger_version"
kapt "com.google.dagger:hilt-compiler:$hilt_dagger_version"

Expand All @@ -131,7 +130,7 @@ dependencies {
implementation "androidx.room:room-ktx:$room_version"

// Kotlin JSON Serializer -> for serialization and deserialization
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1'
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2'

// Coil - for image loading
implementation("io.coil-kt:coil-compose:2.5.0")
Expand All @@ -151,13 +150,13 @@ dependencies {
testImplementation 'androidx.test:core-ktx:1.5.0'
testImplementation 'androidx.test.ext:truth:1.6.0-alpha03'
testImplementation 'androidx.test.ext:truth:1.6.0-alpha03'
testImplementation 'com.google.truth:truth:1.1.5'
testImplementation 'org.mockito:mockito-core:5.4.0'
testImplementation 'org.robolectric:robolectric:4.10.3'
testImplementation 'com.google.truth:truth:1.4.0'
testImplementation 'org.mockito:mockito-core:5.10.0'
testImplementation 'org.robolectric:robolectric:4.11.1'
testImplementation 'androidx.test.ext:junit-ktx:1.1.5'
androidTestImplementation 'androidx.test:core-ktx:1.5.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation 'com.google.truth:truth:1.1.5'
androidTestImplementation 'com.google.truth:truth:1.4.0'

// Accompanist Permissions - for handling permission in compose
implementation 'com.google.accompanist:accompanist-permissions:0.34.0'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
package io.github.kabirnayeem99.islamqaorg.ui

import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.SideEffect
import androidx.compose.ui.graphics.Color
import androidx.navigation.compose.rememberNavController
import com.google.accompanist.systemuicontroller.rememberSystemUiController
import com.ramcosta.composedestinations.DestinationsNavHost
import com.ramcosta.composedestinations.rememberNavHostEngine
import io.github.kabirnayeem99.islamqaorg.ui.theme.IslamQaTheme
Expand All @@ -14,13 +10,6 @@ import io.github.kabirnayeem99.islamqaorg.ui.theme.IslamQaTheme
fun IslamQaRoot() {
IslamQaTheme {

val systemUiController = rememberSystemUiController()
val shouldUseDarkIcon = !isSystemInDarkTheme()

SideEffect {
systemUiController.setSystemBarsColor(Color.Transparent, darkIcons = shouldUseDarkIcon)
}

val navController = rememberNavController()
val navHostEngine = rememberNavHostEngine()

Expand Down

0 comments on commit 41f548c

Please sign in to comment.