Skip to content

Commit

Permalink
修改构建脚本,完成基本ui框架搭建
Browse files Browse the repository at this point in the history
  • Loading branch information
dmzz-yyhyy committed Jul 15, 2024
1 parent 111c9f2 commit 33bf929
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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
)
}
}
}
Original file line number Diff line number Diff line change
@@ -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()
}

0 comments on commit 33bf929

Please sign in to comment.