Skip to content

irfnyas/netlify-plugin-android

Netlify Build plugin android - adding support to build Flutter inside Netlify.

Currently supported: Android, Web

Install

Please install this plugin from the Netlify app.

  1. Add the following to netlify.toml:
[[plugins]]
  package = "/plugins/netlify-plugin-android"
[build]
  command = "flutter build apk && flutter build web"
  publish = "build/web"
  1. Add the following package files to plugins/netlify-plugin-android:
plugins
  |__ netlify-plugin-android
      |__ src
      |   |__ index.js
      |
      |__ manifest.yml
      |__ package.json
  1. Add the following to app/build.gradle for building APK (optional):
android.applicationVariants.all { variant ->
    variant.assemble.doLast {
        def outputFile = variant.outputs.first().outputFile
        copy {
            from outputFile.parent
            into file("${rootDir.parent}/build/web")
            include outputFile.name
        }
    }
}

About

Adding support to build Flutter inside Netlify. Currently supported: Android, Web.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published