Skip to content

Remove wasabi, jalapeno, and the buildType flavor dimension#22651

Open
jkmassel wants to merge 4 commits intotrunkfrom
jkmassel/remove-buildtype-flavors
Open

Remove wasabi, jalapeno, and the buildType flavor dimension#22651
jkmassel wants to merge 4 commits intotrunkfrom
jkmassel/remove-buildtype-flavors

Conversation

@jkmassel
Copy link
Contributor

@jkmassel jkmassel commented Mar 3, 2026

Description

Removes the three buildType flavors (vanilla, wasabi, jalapeno) and the entire buildType flavor dimension from the project. These flavors existed only for cosmetic differences (app name, icon) and side-by-side installation via applicationIdSuffix, but caused Gradle cache fragmentation across CI jobs since each job compiled a different variant independently.

Variant names simplify from e.g. wordpressVanillaDebug to wordpressDebug. All CI jobs now share the same variant, maximizing Gradle remote cache reuse.

What changed

  • Removed vanilla, wasabi, jalapeno flavor definitions and the buildType dimension from WordPress/build.gradle
  • Moved ENABLE_DEBUG_SETTINGS from vanilla flavor to release buildType
  • Deleted 4 source set directories: wasabi/, jalapeno/, jetpackWasabi/, jetpackJalapeno/
  • Simplified WordPressPublicData and JetpackPublicData (removed flavor-specific package name logic)
  • Updated all CI scripts (lint, unit tests, cache population, diff reports)
  • Updated all Fastlane lanes (build, test, screenshots, prototype builds)
  • Removed .beta/.prealpha permission declarations from Jetpack manifest
  • Cleaned up google-services.json-example
  • Updated documentation (CLAUDE.md, README.md, coding-style.md, etc.)

Testing instructions

Build verification:

  1. ./gradlew assembleWordpressDebug
  • Build succeeds
  1. ./gradlew assembleJetpackDebug
  • Build succeeds
  1. ./gradlew lintWordpressRelease
  • Lint passes
  1. ./gradlew testWordpressDebugUnitTest
  • Unit tests pass
  1. Check CI pipeline
  • All CI jobs pass with the updated variant names

🤖 Generated with Claude Code

The three buildType flavors (vanilla, wasabi, jalapeno) existed only for
cosmetic differences (app name, icon) and side-by-side installation via
applicationIdSuffix. They caused Gradle cache fragmentation across CI
jobs since each job compiled a different variant independently.

This removes the entire buildType flavor dimension, simplifying variant
names from e.g. wordpressVanillaDebug to wordpressDebug. All CI jobs
now share the same variant, maximizing Gradle remote cache reuse.

- Remove vanilla, wasabi, jalapeno flavor definitions from build.gradle
- Remove the buildType flavor dimension (keep only app dimension)
- Move ENABLE_DEBUG_SETTINGS to release buildType (false) vs default (true)
- Delete wasabi, jalapeno, jetpackWasabi, jetpackJalapeno source sets
- Simplify WordPressPublicData and JetpackPublicData
- Update all CI scripts, Fastlane lanes, and documentation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dangermattic
Copy link
Collaborator

dangermattic commented Mar 3, 2026

1 Warning
⚠️ This PR is larger than 300 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

jkmassel and others added 2 commits March 3, 2026 13:49
The diff tools compare against the base branch (trunk), which still
uses the old variant names (wordpressVanillaRelease). Until this PR
merges, these jobs will fail when checking out trunk. soft_fail
prevents them from blocking the build.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Prototype builds upload to Firebase App Distribution, which expects
the .prealpha package suffix (from the old jalapeno flavor). Adding
applicationIdSuffix ".prealpha" to the debug buildType preserves this
and also maintains side-by-side installation with production apps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Mar 3, 2026

App Icon📲 You can test the changes from this Pull Request in Jetpack Android by scanning the QR code below to install the corresponding build.

App NameJetpack Android
Build TypeDebug
Versionpr22651-7fecd00
Build Number1485
Application IDcom.jetpack.android.prealpha
Commit7fecd00
Installation URL0tn9med51q420
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Mar 3, 2026

App Icon📲 You can test the changes from this Pull Request in WordPress Android by scanning the QR code below to install the corresponding build.

App NameWordPress Android
Build TypeDebug
Versionpr22651-7fecd00
Build Number1485
Application IDorg.wordpress.android.prealpha
Commit7fecd00
Installation URL0qn2vr3aq7u18
Note: Google Login is not supported on these builds.

@jkmassel jkmassel requested review from ParaskP7 and adalpari March 3, 2026 22:03
FLAVOR_app only exists with multi-dimension flavors. With the
buildType dimension removed, use BuildConfig.FLAVOR instead
(which now contains "wordpress" or "jetpack" directly).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2026

@codecov
Copy link

codecov bot commented Mar 3, 2026

Codecov Report

❌ Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 38.12%. Comparing base (a390930) to head (7fecd00).
⚠️ Report is 2 commits behind head on trunk.

Files with missing lines Patch % Lines
...press/android/util/publicdata/JetpackPublicData.kt 0.00% 9 Missing ⚠️
...ess/android/util/publicdata/WordPressPublicData.kt 0.00% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            trunk   #22651   +/-   ##
=======================================
  Coverage   38.12%   38.12%           
=======================================
  Files        2263     2263           
  Lines      115827   115816   -11     
  Branches    16090    16084    -6     
=======================================
  Hits        44157    44157           
+ Misses      68045    68034   -11     
  Partials     3625     3625           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jkmassel jkmassel marked this pull request as ready for review March 4, 2026 19:01
@jkmassel jkmassel self-assigned this Mar 4, 2026
@jkmassel jkmassel added this to the 26.7 milestone Mar 4, 2026
@jkmassel jkmassel requested a review from nbradbury March 4, 2026 19:01
@nbradbury
Copy link
Contributor

@jkmassel All four test steps pass and CI is clear, so this looks good to me. I'll wait for others to take a look before approving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants