Add initial product flavors section (BIT-138) (#442)

This commit is contained in:
Sean Weiser 2023-12-28 13:10:30 -06:00 committed by Álison Fernandes
parent b33463547d
commit d615fec9c6
3 changed files with 13 additions and 2 deletions

View file

@ -37,7 +37,7 @@ jobs:
- name: Build and Run Check - name: Build and Run Check
# Run checks while excluding release-build tests, which are not configured to work properly # Run checks while excluding release-build tests, which are not configured to work properly
# with the Compose testing library. # with the Compose testing library.
run: ./gradlew check -x testRelease koverXmlReportDebug run: ./gradlew check -x testStandardRelease -x testFdroidRelease koverXmlReportStandardDebug
- name: Danger - name: Danger
env: env:

View file

@ -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

View file

@ -49,6 +49,17 @@ android {
) )
} }
} }
flavorDimensions += listOf("mode")
productFlavors {
create("standard") {
dimension = "mode"
}
create("fdroid") {
dimension = "mode"
}
}
compileOptions { compileOptions {
sourceCompatibility(libs.versions.jvmTarget.get()) sourceCompatibility(libs.versions.jvmTarget.get())
targetCompatibility(libs.versions.jvmTarget.get()) targetCompatibility(libs.versions.jvmTarget.get())