Skip to content

Conversation

@m4gr3d
Copy link
Contributor

@m4gr3d m4gr3d commented Jul 3, 2025

Address a regression introduced in #102866.

The proper behavior for Android plugins is to use getContext instead of getActivity, but since not all plugins follow this pattern, this fix provides backward compat to avoid breaking the plugins that don't.

Fixes #108193

… plugins.

Address a regression introduced in godotengine#102866.
The proper behavior for Android plugins is to use `getContext` instead of `getActivity`, but since not all plugins follow this pattern, this fix provides backward compat to avoid breaking the plugins that don't.
@m4gr3d m4gr3d added this to the 4.5 milestone Jul 3, 2025
@m4gr3d m4gr3d requested a review from a team as a code owner July 3, 2025 16:45
@m4gr3d m4gr3d changed the title Android: Assign the primaryHost prior to initializing the registered Android plugins Android: Fix Android plugins regression Jul 3, 2025
@Alex2782
Copy link
Member

Alex2782 commented Jul 3, 2025

Note: issue #108193 was closed 6 hours ago, is this PR still valid?

@m4gr3d
Copy link
Contributor Author

m4gr3d commented Jul 3, 2025

Note: issue #108193 was closed 6 hours ago, is this PR still valid?

Yes it is. The current solution requires changes to existing Android plugins.
While the recommended change is the right pattern to follow, we also need to ensure that existing plugins that are not updated don't stop working on 4.5. Hence this additional back compat fix.

Copy link
Member

@syntaxerror247 syntaxerror247 left a comment

Choose a reason for hiding this comment

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

Looks good!

@utkarshtrivedimdz
Copy link

Thank you so much for this. Is it safe to cherry pick this. This is blocking our Google Play Store Release.

@dsnopek
Copy link
Contributor

dsnopek commented Jul 4, 2025

This shouldn't need to be cherry-picked if the regression was introduced by #102866 which has only been in since 4.5-beta1. After it's merged, it will be included in the next 4.5-beta release

@syntaxerror247

This comment was marked as outdated.

@dsnopek

This comment was marked as outdated.

@Repiteo Repiteo merged commit eb2625c into godotengine:master Jul 4, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Jul 4, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't connect to Google Play Billing Service on 4.5?

6 participants