Skip to content

Conversation

@jdcormie
Copy link
Member

@jdcormie jdcormie commented Sep 9, 2023

AndroidComponentAddress now accepts an Intent with merely a package restriction, not a full ComponentName. This lets clients avoid hard coding Service class names that they don't control.

Experimental API AndroidComponentAddress#getComponent() becomes nullable, which is technically a breaking change. But we expect the impact will be small since existing callers mostly work with addresses they created themselves, which will have a non-null ComponentName.

Fixes #9062

AndroidComponentAddress now accepts an Intent with merely a package restriction, not a full ComponentName. This lets clients avoid hard coding Service class names that they don't control. Fixes #9062
@jdcormie jdcormie requested a review from markb74 September 9, 2023 18:39
Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

I doubt much outside of gRPC is even calling getComponent(), and even if they are, it only breaks when someone uses the new feature. Seems pretty safe.

@jdcormie jdcormie merged commit 134b049 into grpc:master Sep 13, 2023
DNVindhya pushed a commit to DNVindhya/grpc-java that referenced this pull request Oct 5, 2023
AndroidComponentAddress now accepts an Intent with merely a package restriction, not a full ComponentName. This lets clients avoid hard coding Service class names that they don't control. Fixes grpc#9062
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants