[go: nahoru, domu]

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

Allow null registrarForPlugin on iOS #149278

Closed
wants to merge 1 commit into from

Conversation

jmagman
Copy link
Member
@jmagman jmagman commented May 29, 2024

Expands to:

  id<FlutterPluginRegistrar> registrarInAppPurchasePlugin = [registry registrarForPlugin:@"InAppPurchasePlugin"];
  if (registrarInAppPurchasePlugin != nil) {
    [InAppPurchasePlugin registerWithRegistrar:registrarInAppPurchasePlugin];
  }
  id<FlutterPluginRegistrar> registrarIntegrationTestPlugin = [registry registrarForPlugin:@"IntegrationTestPlugin"];
  if (registrarIntegrationTestPlugin != nil) {
    [IntegrationTestPlugin registerWithRegistrar:registrarIntegrationTestPlugin];
  }
  id<FlutterPluginRegistrar> registrarSharedPreferencesPlugin = [registry registrarForPlugin:@"SharedPreferencesPlugin"];
  if (registrarSharedPreferencesPlugin != nil) {
    [SharedPreferencesPlugin registerWithRegistrar:registrarSharedPreferencesPlugin];
  }

Fixes #149214

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label May 29, 2024
@jmagman jmagman changed the title Allow null registrarForPlugin Allow null registrarForPlugin on iOS May 29, 2024
@goderbauer
Copy link
Member

(triage): I spoke to @jmagman last week and she said this is still on her radar.

@jmagman jmagman closed this Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin registration crash if registrar is null
2 participants