chore(ci): Refine analytics task filtering and improve release debugging (#4624)

This commit is contained in:
James Rich
2026-02-22 07:57:05 -06:00
committed by GitHub
parent fae66782af
commit 8b2a9d5f9a
2 changed files with 9 additions and 3 deletions

View File

@@ -176,6 +176,9 @@ jobs:
VERSION_CODE: ${{ needs.prepare-build-info.outputs.APP_VERSION_CODE }}
run: bundle exec fastlane internal
- name: List outputs
run: ls -R app/build/outputs/
- name: Upload Google AAB artifact
if: always()
uses: actions/upload-artifact@v6
@@ -250,6 +253,9 @@ jobs:
VERSION_CODE: ${{ needs.prepare-build-info.outputs.APP_VERSION_CODE }}
run: bundle exec fastlane fdroid_build
- name: List outputs
run: ls -R app/build/outputs/
- name: Upload F-Droid APK artifact
uses: actions/upload-artifact@v6
with:

View File

@@ -50,7 +50,7 @@ class AnalyticsConventionPlugin : Plugin<Project> {
// This avoids iterating all tasks with a generic filter and improves configuration performance.
plugins.withId("com.google.gms.google-services") {
tasks.configureEach {
if (name.contains("fdroid", ignoreCase = true)) {
if (name.contains("GoogleServices", ignoreCase = true) && name.contains("fdroid", ignoreCase = true)) {
enabled = false
}
}
@@ -58,7 +58,7 @@ class AnalyticsConventionPlugin : Plugin<Project> {
plugins.withId("com.google.firebase.crashlytics") {
tasks.configureEach {
if (name.contains("fdroid", ignoreCase = true)) {
if (name.contains("Crashlytics", ignoreCase = true) && name.contains("fdroid", ignoreCase = true)) {
enabled = false
}
}
@@ -66,7 +66,7 @@ class AnalyticsConventionPlugin : Plugin<Project> {
plugins.withId("com.datadoghq.dd-sdk-android-gradle-plugin") {
tasks.configureEach {
if (name.contains("fdroid", ignoreCase = true)) {
if ((name.contains("datadog", ignoreCase = true) || name.contains("uploadMapping", ignoreCase = true)) && name.contains("fdroid", ignoreCase = true)) {
enabled = false
}
}