Skip to content

Pubspec for a plugin should be able to capture build dependencies #9214

@mit-mit

Description

@mit-mit

From @collinjackson: If you try to build an app that consumes a plugin with gmscore dependencies, it fails until you add something like this to build.gradle of the app:

classpath 'com.google.gms:google-services:3.0.0'
apply plugin: 'com.google.gms.google-services'

It would be better if you could specify these dependencies in the pubspec.yaml file of the plugin and than have the build step inject this into the app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: toolingAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions