0.0.10 • Published 9 months ago

netlify-plugin-android v0.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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

9 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago