8000 Deep link validator fails to load & validate links · Issue #9254 · flutter/devtools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Deep link validator fails to load & validate links #9254
Open
@CodingAleCR

Description

@CodingAleCR

<-- Please describe your problem here. Be sure to include repro steps. -->

  1. Create a file ".env" at the root path of your project

    {
        "APPLICATION_ID": "com.my.app.id"
    }
    
  2. Edit your android/app/build.gradle file with this after the plugin section :

    def dartEnvironmentVariables = [];
    if (project.hasProperty("dart-defines")) {
        dartEnvironmentVariables = project.property("dart-defines")
            .split(',')
            .collectEntries { entry ->
                def pair = new String(entry.decodeBase64(), "UTF-8").split("=")
                [(pair.first()): pair.last()]
            }
    }
    

    Still on the build.gradle file, edit the application id defaultConfig like that :

        defaultConfig {
            applicationId dartEnvironmentVariables.APPLICATION_ID
            ...
        }
    
  3. Verify that your application is working well using "--dart-define-from-file" on your run command. Here an example with a custom launch config for VSCode if you are using that IDE (.launch.json file)

    {
          "name": "Android - DEV",
          "request": "launch",
          "type": "dart",
          "program": "lib/main.dart",
          "toolArgs": [
              "--dart-define-from-file", ".env"
          ]
    }
    

Result: Unable to load deep link validator tool.

Reference screen shots:

Image


DevTools version: 2.40.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0