Skip to content

Conversation

@ParaskP7
Copy link
Contributor

Fix

This change fixes the assembleRelease R8 build failure on passcodelock.

For more info see commit's 6086403 description.


Test

Run assembleRelease and make sure it builds as expected.


Review

Release

FYI: As part of the below PR#1678, the author most probably copy-pasted
an app module's 'build.gradle' configuration into this library module.
And with that, the author also copy-pasted this 'buildTypes.release'
related configuration by an oversight. 'PasscodeLock-Android' never had
such a configuration to begin with, and it being a library, it actually
didn't need it.

PasscodeLock-Android: https://github.com/wordpress-mobile/
PasscodeLock-Android
Related: [Lib] Migrate passcodelock directly into simplenote as a
library module. #1678
- #1678

PS: An alternative would have been to add a 'consumer-rules.pro' file to
have some extra ProGuard configuration for this library. But again,
'PasscodeLock-Android' never had such a need.
@ParaskP7 ParaskP7 added this to the 2.36 milestone Aug 11, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a release build failure in the assembleRelease R8 build process by removing ProGuard configuration from the PasscodeLock module. The fix involves removing the release build type configuration that enabled minification and referenced ProGuard rules, as well as deleting the ProGuard rules file entirely.

  • Removed release build type configuration with minification settings from PasscodeLock module
  • Deleted the ProGuard rules file that was causing build issues

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
PasscodeLock/build.gradle Removed release buildType configuration that enabled minification and ProGuard
PasscodeLock/proguard-rules.pro Deleted entire ProGuard rules file

@dangermattic
Copy link
Collaborator

1 Message
📖 This PR has the Releases label: some checks will be skipped.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Collaborator

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

App NameSimplenote Android
Build TypeDebug
Commit6086403
Direct Downloadsimplenote-android-prototype-build-pr1758-6086403-019899d7-ad06-44f7-a201-c02d8e7405ad.apk

Copy link
Contributor

@AliSoftware AliSoftware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Ran ./gradlew assembleRelease on release/2.36 and confirmed it failed
  • Ran ./gradlew assembleRelease on this fix/release/2.36 branch from this PR and confirmed it fixes it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the git log of this file I see only one commit in history, the one introducing it… that was on Aug 12… but wait, we’re Aug 11, how is that possible… oh. wait. it was on Aug 12… 2024! 😓

I guess the only reason we never noticed the issue before… is because we never made a release build of SNAndroid since a whole year?… 😅

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we’re Aug 11, how is that possible… oh. wait. it was on Aug 12… 2024!

That was such a coincidence, heh

I guess the only reason we never noticed the issue before… is because we never made a release build of SNAndroid since a whole year?… 😅

this! exactly looks like so

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the only reason we never noticed the issue before… is because we never made a release build of SNAndroid since a whole year?… 😅

Yea, no @AliSoftware , I also looked at that and I am not sure, the timelines still don't quite much... 🤷

  1. This [Lib] Migrate passcodelock directly into simplenote as a library module. #1678 PR got merged to trunk on Aug 14, 2024.
  2. Then, 2+ months later, Simplenote's latest release (2.35) got updated on Oct 25, 2024 (Playstore -> About this app).
  3. Also, while looking on the Play Console, I am seeing this 2.35 release on the production track, last updated on Nov 11, 2024 (3 months later).

This made me think that we indeed made a release build of SNAndroid after #1678. I am just not sure how come this problem didn't exist back then, and came to assume that this was (most probably) because of all the AGP updates we made since 2.35... 🤷

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, thanks for the PR title change @AliSoftware , much much better... 😊

@AliSoftware AliSoftware changed the title [Release] Fix Release 2.36 Fix ProGuard R8 issues on PasscodeLock library (release/2.36) Aug 11, 2025
@AliSoftware AliSoftware merged commit f7f2346 into release/2.36 Aug 11, 2025
16 of 17 checks passed
@AliSoftware AliSoftware deleted the fix/release/2.36 branch August 11, 2025 16:05
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.

6 participants