0.0.10 • Published 1 year ago
netlify-plugin-android v0.0.10
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.gradlefor 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
}
}
}