Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an empty GravatarUCropActivity to avoid Manifest merger fails #398

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

AdamGrzybkowski
Copy link
Contributor

@AdamGrzybkowski AdamGrzybkowski commented Oct 17, 2024

Description

When a third-party app depends on UCrop already they likely have defined the UCropActivity in the manifest. We do that as well in the QE and this causes the Manifest merger to fail.

It's possible to remove that declaration from a third-party app (or use tools:replace) and keep the one from QE, but it's not ideal because there could be custom fields set that could differ from the ones we use.

To fix this I've added a "fake" UCrop activity to not have clashing names. This way we can define our Activity in the manifest without requiring third-party apps to remove theirs.

Testing Steps

I've added a potentially conflicting UCropActivity to the demo app, so the CI should be enough.

I was also able to confirm this in the WP app with the built from this PR.

@AdamGrzybkowski AdamGrzybkowski added the enhancement Enhancement label Oct 17, 2024
@AdamGrzybkowski AdamGrzybkowski added this to the 2.0.0 milestone Oct 17, 2024
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Oct 17, 2024

📲 You can test the changes from this Pull Request in Gravatar Demo by scanning the QR code below to install the corresponding build.
App Name Gravatar Demo
Commitb282cb4
Direct Downloadgravatar-demo-prototype-build-pr398-b282cb4.apk

@AdamGrzybkowski AdamGrzybkowski marked this pull request as ready for review October 17, 2024 13:25
Copy link
Contributor

@hamorillo hamorillo left a comment

Choose a reason for hiding this comment

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

Good catch! 🚀

@AdamGrzybkowski AdamGrzybkowski merged commit 61a7e69 into trunk Oct 17, 2024
18 checks passed
@AdamGrzybkowski AdamGrzybkowski deleted the adam/ucrop_activity branch October 17, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants