Skip to content

Conversation

taylanyildiz
Copy link

Fix: Remove unused Plugin registration using Android embedding v1

Description

This PR comments out the registerWith method, which was using the deprecated Android embedding v1 API. The method was causing a compilation error due to the removal of PluginRegistry.Registrar in Flutter.

Issue
• The build was failing with the following error:

error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.Registrar;
                                              ^
•	PluginRegistry.Registrar is no longer available in Flutter’s modern embedding API.

Solution
• The unused registerWith method has been commented out to prevent build failures.
• This aligns the plugin with Flutter’s latest Android embedding v2 requirements.

Testing
• Verified that the plugin builds successfully without errors.

Let me know if you need any modifications! 🚀

@mcmarkj
Copy link

mcmarkj commented Apr 29, 2025

Hi 👋

Thanks so much for this PR - this is what we need to update our flutter version.

@sgong-pdftron / @dluco / @brandenfung2 - just bringing this to your attention if it wasn't already as it would be awesome to get this released.

Thank you!

@sgong-pdftron
Copy link
Contributor

closing in favor of #342

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants