10
0

[MWA-5265] Meta Demo: Theming via xml

{Clean up dependencies and UI}
This commit is contained in:
andre 2025-11-24 12:17:09 +01:00
parent 907e74114a
commit 68bd499c09
2 changed files with 37 additions and 43 deletions

View File

@ -52,15 +52,23 @@ android {
dependencies {
// android dependencies from demo app
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.compose.foundation:foundation-layout:1.9.4'
implementation 'androidx.compose.foundation:foundation:1.9.5'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
dependencies {
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.activity:activity-compose:1.9.3'
implementation 'androidx.compose.foundation:foundation:1.9.5'
implementation 'androidx.compose.foundation:foundation-layout:1.9.4'
implementation 'androidx.compose.ui:ui'
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
// webid product-plugin
//noinspection GradleDependency
@ -82,14 +90,4 @@ dependencies {
implementation ("de.webid-solutions:android_eid_product_plugin:$product_catalog_version") {
changing = true
}
implementation("de.webid-solutions:android_document_scanner:20.3.0-SNAPSHOT")
// Compose Core Dependencies
implementation 'androidx.compose.ui:ui'
implementation 'androidx.compose.ui:ui-tooling-preview'
implementation 'androidx.activity:activity-compose:1.9.3'
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
}

View File

@ -63,31 +63,29 @@ fun MetaPluginDemoScene(
SpacingV4.S.VSpacer()
Column {
CheckboxWithLabel(
checked = useAutoIdent,
onCheckedChange = { useAutoIdent = it },
label = stringResource(R.string.autoid)
)
CheckboxWithLabel(
checked = useAutoIdent,
onCheckedChange = { useAutoIdent = it },
label = stringResource(R.string.autoid)
)
CheckboxWithLabel(
checked = usePayOnServer,
onCheckedChange = { usePayOnServer = it },
label = stringResource(R.string.accountid)
)
CheckboxWithLabel(
checked = usePayOnServer,
onCheckedChange = { usePayOnServer = it },
label = stringResource(R.string.accountid)
)
CheckboxWithLabel(
checked = useEidOnServer,
onCheckedChange = { useEidOnServer = it },
label = stringResource(R.string.eid)
)
CheckboxWithLabel(
checked = useEidOnServer,
onCheckedChange = { useEidOnServer = it },
label = stringResource(R.string.eid)
)
CheckboxWithLabel(
checked = useVideoIdent,
onCheckedChange = { useVideoIdent = it },
label = stringResource(R.string.videoid)
)
}
CheckboxWithLabel(
checked = useVideoIdent,
onCheckedChange = { useVideoIdent = it },
label = stringResource(R.string.videoid)
)
SpacingV4.L.VSpacer()
@ -201,8 +199,6 @@ private fun CheckboxWithLabel(
}
@Preview(
name = "MetaPluginDemoScreen - Long Log",
showBackground = true,