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

Use class canonical name for PARTIAL_WAKE_LOCK tag #24673

Closed
wants to merge 1 commit into from
Closed

Use class canonical name for PARTIAL_WAKE_LOCK tag #24673

wants to merge 1 commit into from

Conversation

timwangdev
Copy link
Contributor

Summary

When acquiring the PARTIAL_WAKE_LOCK, Android requires a tag to identify the source, normally the class name. This tag will show on dumpsys call and Google Play developer console.

getSimpleName will work fine as long as not enable ProGuard, in my case, it transformed the class name to just "c", and I take my half day to find where the c comes from.

getCanonicalName will add the package path, which is more friendly for developers.

Later we can even let the developer choose the tag name, but this will require API break changes.

Changelog

[Android] [Changed] - Use class canonical name for PARTIAL_WAKE_LOCK tag

Test Plan

N/A

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 1, 2019
Copy link
Contributor

@cpojer cpojer left a comment

Choose a reason for hiding this comment

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

Works for me, thanks for your PR!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @timwangdev in 88dbb45.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label May 1, 2019
@timwangdev timwangdev deleted the patch-2 branch May 1, 2019 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants