Skip to content

Having to flutter build apk to get gradle dependencies is problematic #628

Description

@HosseinYousefi

After updating the version of package:jni, some of the previously written generated code naturally became incorrect. Regenerating the code using JNIgen prompts you to run flutter build apk but flutter build apk needs all Dart code to be valid to succeed.

One could technically first build the apk and only then update the package:jni version but in general it's annoying to be fully building an app just to get the gradle dependencies.

Instead we can use an isolated command that only fetches the dependencies and mention that in our documentation intead of flutter build apk.

cc/ @mahesh-hegde

Metadata

Metadata

Assignees

No one assigned

    Labels

    Flappy-BirdBlocking or strongly desired issue for pigeoncontributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)package:jnipackage:jnigen

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions