mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Integrate the experimental Android screenshot testing plugin into the `core:ui` module. This includes initial visual regression tests for Alert components and updates to the CI workflow for automated validation. - core/ui: Add `AlertScreenshotTest` and screenshot test dependencies - gradle.properties: Enable `android.experimental.enableScreenshotTest` - libs.versions.toml: Add `com.android.compose.screenshot` plugin and validation API - reusable-check.yml: Add screenshot validation tasks to GitHub Actions workflow
65 lines
2.4 KiB
Kotlin
65 lines
2.4 KiB
Kotlin
/*
|
|
* Copyright (c) 2025-2026 Meshtastic LLC
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
import com.android.build.api.dsl.LibraryExtension
|
|
|
|
plugins {
|
|
alias(libs.plugins.meshtastic.android.library)
|
|
alias(libs.plugins.meshtastic.android.library.compose)
|
|
alias(libs.plugins.meshtastic.android.library.flavors)
|
|
alias(libs.plugins.meshtastic.hilt)
|
|
alias(libs.plugins.screenshot)
|
|
}
|
|
|
|
configure<LibraryExtension> {
|
|
namespace = "org.meshtastic.core.ui"
|
|
experimentalProperties["android.experimental.enableScreenshotTest"] = true
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.core.common)
|
|
implementation(projects.core.barcode)
|
|
implementation(projects.core.nfc)
|
|
implementation(projects.core.data)
|
|
implementation(projects.core.database)
|
|
implementation(projects.core.model)
|
|
implementation(projects.core.prefs)
|
|
implementation(projects.core.proto)
|
|
implementation(projects.core.service)
|
|
implementation(projects.core.resources)
|
|
|
|
implementation(libs.accompanist.permissions)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(libs.androidx.compose.material.iconsExtended)
|
|
implementation(libs.androidx.compose.material3)
|
|
implementation(libs.androidx.compose.ui.text)
|
|
implementation(libs.androidx.compose.ui.tooling.preview)
|
|
implementation(libs.androidx.emoji2.emojipicker)
|
|
implementation(libs.guava)
|
|
implementation(libs.zxing.core)
|
|
implementation(libs.kermit)
|
|
implementation(libs.nordic.common.core)
|
|
|
|
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
|
|
|
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
|
|
androidTestImplementation(libs.androidx.test.runner)
|
|
|
|
testImplementation(libs.junit)
|
|
|
|
screenshotTestImplementation(libs.screenshot.validation.api)
|
|
screenshotTestImplementation(libs.androidx.compose.ui.tooling)
|
|
}
|