netlify-plugin-android

0.0.10 • Public • Published

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
        }
    }
}

Readme

Keywords

Package Sidebar

Install

npm i netlify-plugin-android

Weekly Downloads

4

Version

0.0.10

License

MIT

Unpacked Size

6.9 kB

Total Files

5

Last publish

Collaborators

  • irfnyas