diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..b589d56 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index fe63bb6..148fdd2 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 3f157f6..adc4eb8 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,7 +4,7 @@ - + diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f4dd422..a1489a2 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -36,13 +36,13 @@ android { targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { - jvmTarget = "19" + jvmTarget = "1.8" } buildFeatures { compose = true } composeOptions { - kotlinCompilerExtensionVersion = "1.5.4" + kotlinCompilerExtensionVersion = "1.5.14" } packaging { resources { @@ -72,7 +72,7 @@ dependencies { androidTestImplementation("androidx.test.ext:junit:1.2.1") androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1") // hilt - val hilt = "2.48" + val hilt = "2.44" implementation("com.google.dagger:hilt-android:$hilt") kapt("com.google.dagger:hilt-android-compiler:$hilt") val navVersion = "2.7.7" diff --git a/app/src/main/java/indi/dmzz_yyhyy/lightnovelreader/ui/home/HomeScreen.kt b/app/src/main/java/indi/dmzz_yyhyy/lightnovelreader/ui/home/HomeScreen.kt index 0ab42e3..92947b3 100644 --- a/app/src/main/java/indi/dmzz_yyhyy/lightnovelreader/ui/home/HomeScreen.kt +++ b/app/src/main/java/indi/dmzz_yyhyy/lightnovelreader/ui/home/HomeScreen.kt @@ -1,7 +1,22 @@ package indi.dmzz_yyhyy.lightnovelreader.ui.home +import androidx.compose.runtime.Composable +import androidx.navigation.compose.NavHost +import androidx.navigation.compose.composable +import androidx.navigation.compose.rememberNavController +import indi.dmzz_yyhyy.lightnovelreader.ui.Screen +import indi.dmzz_yyhyy.lightnovelreader.ui.home.reading.ReadingScreen + +@Composable fun HomeScreen( onOpenBook: (Int) -> Unit ) { - + val navController = rememberNavController() + NavHost(navController = navController, startDestination = Screen.Home.Reading.route) { + composable(route = Screen.Home.route) { + ReadingScreen( + onOpenBook = onOpenBook + ) + } + } } \ No newline at end of file diff --git a/app/src/main/java/indi/dmzz_yyhyy/lightnovelreader/ui/home/reading/ReadingScreen.kt b/app/src/main/java/indi/dmzz_yyhyy/lightnovelreader/ui/home/reading/ReadingScreen.kt index d7c9603..cd3b12c 100644 --- a/app/src/main/java/indi/dmzz_yyhyy/lightnovelreader/ui/home/reading/ReadingScreen.kt +++ b/app/src/main/java/indi/dmzz_yyhyy/lightnovelreader/ui/home/reading/ReadingScreen.kt @@ -1,9 +1,9 @@ package indi.dmzz_yyhyy.lightnovelreader.ui.home.reading -import androidx.navigation.compose.rememberNavController +import androidx.compose.runtime.Composable +@Composable fun ReadingScreen( onOpenBook: (Int) -> Unit ) { - val navController = rememberNavController() } \ No newline at end of file