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 { dependencies {
// android dependencies from demo app dependencies {
implementation 'androidx.core:core-ktx:1.12.0' implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.compose.foundation:foundation-layout:1.9.4'
implementation 'androidx.compose.foundation:foundation:1.9.5' implementation 'androidx.activity:activity-compose:1.9.3'
testImplementation 'junit:junit:4.13.2' implementation 'androidx.compose.foundation:foundation:1.9.5'
androidTestImplementation 'androidx.test.ext:junit:1.1.5' implementation 'androidx.compose.foundation:foundation-layout:1.9.4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' 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 // webid product-plugin
//noinspection GradleDependency //noinspection GradleDependency
@ -82,14 +90,4 @@ dependencies {
implementation ("de.webid-solutions:android_eid_product_plugin:$product_catalog_version") { implementation ("de.webid-solutions:android_eid_product_plugin:$product_catalog_version") {
changing = true 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() SpacingV4.S.VSpacer()
Column { CheckboxWithLabel(
CheckboxWithLabel( checked = useAutoIdent,
checked = useAutoIdent, onCheckedChange = { useAutoIdent = it },
onCheckedChange = { useAutoIdent = it }, label = stringResource(R.string.autoid)
label = stringResource(R.string.autoid) )
)
CheckboxWithLabel( CheckboxWithLabel(
checked = usePayOnServer, checked = usePayOnServer,
onCheckedChange = { usePayOnServer = it }, onCheckedChange = { usePayOnServer = it },
label = stringResource(R.string.accountid) label = stringResource(R.string.accountid)
) )
CheckboxWithLabel( CheckboxWithLabel(
checked = useEidOnServer, checked = useEidOnServer,
onCheckedChange = { useEidOnServer = it }, onCheckedChange = { useEidOnServer = it },
label = stringResource(R.string.eid) label = stringResource(R.string.eid)
) )
CheckboxWithLabel( CheckboxWithLabel(
checked = useVideoIdent, checked = useVideoIdent,
onCheckedChange = { useVideoIdent = it }, onCheckedChange = { useVideoIdent = it },
label = stringResource(R.string.videoid) label = stringResource(R.string.videoid)
) )
}
SpacingV4.L.VSpacer() SpacingV4.L.VSpacer()
@ -201,8 +199,6 @@ private fun CheckboxWithLabel(
} }
@Preview( @Preview(
name = "MetaPluginDemoScreen - Long Log", name = "MetaPluginDemoScreen - Long Log",
showBackground = true, showBackground = true,