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

[av][android] Fix events not working #28716

Merged
merged 2 commits into from
May 9, 2024

Conversation

behenate
Copy link
Member

@behenate behenate commented May 9, 2024

Why

This PR fixes a regression introduced in SDK 51, caused by the fact that events sent using the wrong event emitter are not accepted.

Fixes #28698

How

Used a solution similar to ExpoBattery, where the sendEvent function from the module is passed to the calling class instance. In this case I used additional wrapper interface, because AVModule is written in kotlin and AVManager is in java.

Test Plan

Tested in BareExpo in Android 14 emulator.

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label May 9, 2024
@behenate behenate force-pushed the @behenate/sdk51/fix-av-event-regression branch from cbdaf93 to e7be385 Compare May 9, 2024 12:35
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels May 9, 2024
@behenate behenate marked this pull request as ready for review May 9, 2024 12:37
@expo-bot
Copy link
Collaborator

expo-bot commented May 9, 2024

The Pull Request introduced fingerprint changes against the base commit: 3f2a537

Fingerprint diff
[
  {
    "type": "dir",
    "filePath": "../../packages/expo-av/android",
    "reasons": [
      "expoAutolinkingAndroid"
    ],
    "hash": "a04b161e7d0d2710ba6f4692590a5997b1e5adae"
  }
]

Generated by PR labeler 🤖

@behenate behenate merged commit 9ff7831 into main May 9, 2024
10 checks passed
@behenate behenate deleted the @behenate/sdk51/fix-av-event-regression branch May 9, 2024 13:36
@brentvatne brentvatne added the published Changes from the PR have been published to npm label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[expo-av] SDK 51: Sound.setOnPlaybackStatusUpdate() callback not called at regular inteval
4 participants