netlify-plugin-android
v0.0.10
Published
Netlify Build plugin - Flutter Android
Downloads
677
Readme
Netlify Build plugin android - adding support to build Flutter inside Netlify.
Currently supported: Android
, Web
Install
Please install this plugin from the Netlify app.
- Add the following to
netlify.toml
:
[[plugins]]
package = "/plugins/netlify-plugin-android"
[build]
command = "flutter build apk && flutter build web"
publish = "build/web"
- Add the following package files to
plugins/netlify-plugin-android
:
plugins
|__ netlify-plugin-android
|__ src
| |__ index.js
|
|__ manifest.yml
|__ package.json
- 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
}
}
}