Skip to content

Simplify library set up by declaring activities internally #620

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

Merged
merged 4 commits into from
Apr 30, 2021

Conversation

lbalmaceda
Copy link
Contributor

Changes

Before this PR, when a developer wanted to use this library, they would need to declare the Lock activities in the AndroidManifest.xml file.

Following what the SDK does, this PR will declare both Classic and Passwordless lock required activities, which will be merged in the final AndroidManifest.xml file. This also applies to the "Internet" permission.

This change effectively reduces the changes required to use the library, removing the need to modify the manifest file.

This is not a breaking change, but developers are encouraged to remove the activities declaration from their manifest files to reduce the possibility of duplicated intent filter declarations (no harm).

References

None

Testing

Manually tested

@lbalmaceda lbalmaceda added this to the Major - v3 milestone Apr 29, 2021
@lbalmaceda lbalmaceda requested a review from a team as a code owner April 29, 2021 11:51
stevehobbsdev
stevehobbsdev previously approved these changes Apr 29, 2021
@lbalmaceda
Copy link
Contributor Author

@stevehobbsdev had to fix the tests! ready to review again

<category android:name="android.intent.category.BROWSABLE" />

<data
android:host="domain"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test-scoped file was required to override the intent filter declaration with hardcoded values instead of the dynamically obtained ones (manifest placeholders), otherwise, it wouldn't even compile. I've found a way to set these for the test scope now through the build.gradle file and this manifest file is no longer required.

@lbalmaceda lbalmaceda merged commit 273627a into v3 Apr 30, 2021
@lbalmaceda lbalmaceda deleted the add-act-manifest branch April 30, 2021 08:11
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.

2 participants