From 7f196409962fdf720f0be563c61f76391ca16282 Mon Sep 17 00:00:00 2001 From: Sean Weiser <125889608+sean-livefront@users.noreply.github.com> Date: Thu, 28 Dec 2023 13:10:30 -0600 Subject: [PATCH] Add initial product flavors section (BIT-138) (#442) --- .github/workflows/run-check.yml | 2 +- Dangerfile | 2 +- app/build.gradle.kts | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-check.yml b/.github/workflows/run-check.yml index c0a7fd5744..d7540d20ef 100644 --- a/.github/workflows/run-check.yml +++ b/.github/workflows/run-check.yml @@ -37,7 +37,7 @@ jobs: - name: Build and Run Check # Run checks while excluding release-build tests, which are not configured to work properly # with the Compose testing library. - run: ./gradlew check -x testRelease koverXmlReportDebug + run: ./gradlew check -x testStandardRelease -x testFdroidRelease koverXmlReportStandardDebug - name: Danger env: diff --git a/Dangerfile b/Dangerfile index 188a5eec6d..abc75df1a1 100644 --- a/Dangerfile +++ b/Dangerfile @@ -1 +1 @@ -shroud.reportKover 'App', 'app/build/reports/kover/reportDebug.xml', 80, 80, false +shroud.reportKover 'App', 'app/build/reports/kover/reportStandardDebug.xml', 80, 80, false diff --git a/app/build.gradle.kts b/app/build.gradle.kts index bc8a67ecd5..9f7d06e28d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -49,6 +49,17 @@ android { ) } } + + flavorDimensions += listOf("mode") + productFlavors { + create("standard") { + dimension = "mode" + } + create("fdroid") { + dimension = "mode" + } + } + compileOptions { sourceCompatibility(libs.versions.jvmTarget.get()) targetCompatibility(libs.versions.jvmTarget.get())