diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml index 931b96c..16660f1 100644 --- a/.idea/runConfigurations.xml +++ b/.idea/runConfigurations.xml @@ -5,8 +5,12 @@ diff --git a/app/build.gradle b/app/build.gradle index d48e4ba..332793c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -93,15 +93,16 @@ aboutLibraries { dependencies { - def composeBom = platform('androidx.compose:compose-bom:2024.09.03') + def composeBom = platform('androidx.compose:compose-bom:2024.11.00') implementation composeBom androidTestImplementation composeBom // Android core components. - implementation 'androidx.core:core-ktx:1.13.1' - implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.6' - implementation 'androidx.activity:activity-compose:1.9.2' - implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.8.6" + implementation 'androidx.core:core-ktx:1.15.0' + implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.7' + implementation 'androidx.activity:activity-compose:1.9.3' + implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7" + // TODO: Migrate to type-safe navigation. implementation "androidx.navigation:navigation-compose:2.8.0" // Jetpack compose. implementation "androidx.compose.ui:ui" @@ -111,7 +112,7 @@ dependencies { implementation "androidx.compose.runtime:runtime-livedata" implementation "androidx.compose.material3:material3" // Material icons. - implementation 'androidx.compose.material:material-icons-extended:1.7.3' + implementation 'androidx.compose.material:material-icons-extended:1.7.5' // Material theme for main activity. implementation 'com.google.android.material:material:1.12.0' // Android 12+ splash API. diff --git a/app/src/main/java/com/starry/myne/epub/models/EpubBook.kt b/app/src/main/java/com/starry/myne/epub/models/EpubBook.kt index 7cd93a9..7832131 100644 --- a/app/src/main/java/com/starry/myne/epub/models/EpubBook.kt +++ b/app/src/main/java/com/starry/myne/epub/models/EpubBook.kt @@ -34,6 +34,7 @@ import kotlinx.serialization.protobuf.ProtoNumber * @param chapters The list of chapters in the book. * @param images The list of images in the book. */ +@OptIn(ExperimentalSerializationApi::class) @Serializable data class EpubBook @OptIn(ExperimentalSerializationApi::class) constructor( @ProtoNumber(1) val fileName: String, diff --git a/app/src/main/java/com/starry/myne/epub/models/EpubChapter.kt b/app/src/main/java/com/starry/myne/epub/models/EpubChapter.kt index a916b33..51e39aa 100644 --- a/app/src/main/java/com/starry/myne/epub/models/EpubChapter.kt +++ b/app/src/main/java/com/starry/myne/epub/models/EpubChapter.kt @@ -28,6 +28,7 @@ import kotlinx.serialization.protobuf.ProtoNumber * @param title The title of the chapter. * @param body The body of the chapter. */ +@OptIn(ExperimentalSerializationApi::class) @Serializable data class EpubChapter @OptIn(ExperimentalSerializationApi::class) constructor( @ProtoNumber(1) val chapterId: String, diff --git a/app/src/main/java/com/starry/myne/epub/models/EpubImage.kt b/app/src/main/java/com/starry/myne/epub/models/EpubImage.kt index cfdb7e9..dfd52bf 100644 --- a/app/src/main/java/com/starry/myne/epub/models/EpubImage.kt +++ b/app/src/main/java/com/starry/myne/epub/models/EpubImage.kt @@ -27,6 +27,7 @@ import kotlinx.serialization.protobuf.ProtoNumber * @param absPath The absolute path of the image. * @param image The image data. */ +@OptIn(ExperimentalSerializationApi::class) @Serializable data class EpubImage @OptIn(ExperimentalSerializationApi::class) constructor( @ProtoNumber(1) val absPath: String, diff --git a/build.gradle b/build.gradle index 6f5a21f..feaff29 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ buildscript { ext { kotlin_version = '2.0.0' - gradle_version = '8.7.0' + gradle_version = '8.7.2' hilt_version = '2.51.1' room_version = '2.6.1' }