Skip to content

fix: never let verification block a release build - #43

Merged
maksudur03 merged 1 commit into
mainfrom
fix/packaged-scan-never-blocks-release
Sep 16, 2026
Merged

maksudur03 merged 1 commit into
mainfrom
fix/packaged-scan-never-blocks-release

Conversation

@Shakibuzzaman3104

Copy link
Copy Markdown
Collaborator

No description provided.

- Split the packaged scan per format: verify<Variant>DevConsolePackagedArtifact
  (APK/AAR, assemble path) and verify<Variant>DevConsolePackagedBundle (AAB,
  bundle path). One task naming both built an AAB during every release APK
  build, which broke Studio's signing wizard: -Pandroid.injected.apk.location
  puts the final AAB inside package<Variant>'s output dir, so Gradle rejects
  produce<Variant>BundleIdeListingFile for an undeclared dependency.
- Treat scan-limit-exceeded as a warning, not a violation. R8's mapping file
  overran the 64 MiB read cap and failed real release builds.
- Skip BUNDLE-METADATA/ entries: Play strips them, and proguard.map names every
  class the build ever saw.
- Warn instead of throwing FileNotFoundException on a missing or unreadable
  package.
- Match forbidden paths at any segment, so assets/devconsole-web/ is also found
  at base/assets/devconsole-web/ inside an AAB.
- Add devConsole.verificationEnabled / -Pdevconsole.verification.enabled=false
  to take verification off assemble/bundle, warning loudly and leaving
  verifyDevConsoleProtectedArtifacts runnable by name.

Tests: 11 new functional tests, 42/42 pass. Verified against a real app on both
assembleLiveRelease and bundleLiveRelease with the wizard's injected location.
@maksudur03
maksudur03 merged commit da822cf into main Sep 16, 2026
1 check passed
@maksudur03
maksudur03 deleted the fix/packaged-scan-never-blocks-release branch September 16, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants