优化
This commit is contained in:
+4
-6
@@ -157,6 +157,10 @@ dependencies {
|
|||||||
implementation('com.google.code.gson:gson:2.9.0')
|
implementation('com.google.code.gson:gson:2.9.0')
|
||||||
implementation('androidx.webkit:webkit:1.4.0')
|
implementation('androidx.webkit:webkit:1.4.0')
|
||||||
|
|
||||||
|
//lifecycle
|
||||||
|
def lifecycle_version = '2.4.1'
|
||||||
|
implementation("androidx.lifecycle:lifecycle-common-java8:$lifecycle_version")
|
||||||
|
|
||||||
//compose
|
//compose
|
||||||
// Integration with activities
|
// Integration with activities
|
||||||
implementation 'androidx.activity:activity-compose:1.4.0'
|
implementation 'androidx.activity:activity-compose:1.4.0'
|
||||||
@@ -166,8 +170,6 @@ dependencies {
|
|||||||
implementation 'androidx.compose.animation:animation:1.1.1'
|
implementation 'androidx.compose.animation:animation:1.1.1'
|
||||||
// Tooling support (Previews, etc.)
|
// Tooling support (Previews, etc.)
|
||||||
implementation 'androidx.compose.ui:ui-tooling:1.1.1'
|
implementation 'androidx.compose.ui:ui-tooling:1.1.1'
|
||||||
// Integration with ViewModels
|
|
||||||
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.4.1'
|
|
||||||
// UI Tests
|
// UI Tests
|
||||||
androidTestImplementation 'androidx.compose.ui:ui-test-junit4:1.1.1'
|
androidTestImplementation 'androidx.compose.ui:ui-test-junit4:1.1.1'
|
||||||
|
|
||||||
@@ -187,10 +189,6 @@ dependencies {
|
|||||||
implementation("com.louiscad.splitties:splitties-systemservices:$splitties_version")
|
implementation("com.louiscad.splitties:splitties-systemservices:$splitties_version")
|
||||||
implementation("com.louiscad.splitties:splitties-views:$splitties_version")
|
implementation("com.louiscad.splitties:splitties-views:$splitties_version")
|
||||||
|
|
||||||
//lifecycle
|
|
||||||
def lifecycle_version = '2.4.1'
|
|
||||||
implementation("androidx.lifecycle:lifecycle-common-java8:$lifecycle_version")
|
|
||||||
|
|
||||||
//room
|
//room
|
||||||
def room_version = '2.4.2'
|
def room_version = '2.4.2'
|
||||||
implementation("androidx.room:room-runtime:$room_version")
|
implementation("androidx.room:room-runtime:$room_version")
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package io.legado.app.ui.widget
|
||||||
|
|
||||||
|
import androidx.compose.material.AlertDialog
|
||||||
|
import androidx.compose.material.Text
|
||||||
|
import androidx.compose.material.TextButton
|
||||||
|
import androidx.compose.runtime.Composable
|
||||||
|
|
||||||
|
|
||||||
|
@Composable
|
||||||
|
fun UrlOptionDialog(confirm: (String) -> Unit) {
|
||||||
|
AlertDialog(
|
||||||
|
onDismissRequest = {},
|
||||||
|
confirmButton = {
|
||||||
|
TextButton(onClick = {
|
||||||
|
confirm.invoke("")
|
||||||
|
}) {
|
||||||
|
Text(text = "OK")
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dismissButton = {
|
||||||
|
TextButton(onClick = {}) { Text(text = "Cancel") }
|
||||||
|
},
|
||||||
|
title = {
|
||||||
|
Text(text = "url参数")
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user