Skip to content

How can I detect if the currently running app is a debug version? #101423

@ddxl123

Description

@ddxl123

I ran my app with a virtual machine in the project, and the running app was generated by build\outputflutter-apk\app-debug.apk.

When the command line is executed and packaged into apk, app-release.apk will be generated for users to install and use.

I want to be able to detect whether the currently executing application is app-debug or app-release in the application,
how can I do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: solvedIssue is closed as solved

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions