flutter/packages/flutter_tools/templates/module/android
Greg Spencer e262817ac2
Fix the gradle templates so that they default to values rather than throw build exceptions. (#19916)
When creating a new project, the build fails with an error similar to:

"versionCode not found. Define flutter.versionCode in the local.properties file."

This puts developers in the untenable situation of having to edit a file with local paths, but being unable to check it in.

This changes the templates to default to using versionCode 1 and version "1.0" if they are not defined in the local.properties file.

Fixes #18983.
2018-07-27 18:24:13 -07:00
..
Flutter.tmpl Fix the gradle templates so that they default to values rather than throw build exceptions. (#19916) 2018-07-27 18:24:13 -07:00
gradle.tmpl/wrapper Add module template for Android (#18697) 2018-06-22 18:19:37 +02:00
build.gradle.tmpl Simplify Gradle magic (#18987) 2018-07-02 13:46:07 +02:00
gradle.properties.tmpl Add module template for Android (#18697) 2018-06-22 18:19:37 +02:00
include_flutter.groovy.tmpl Simplify Gradle magic (#18987) 2018-07-02 13:46:07 +02:00
settings.gradle.tmpl Add module template for Android (#18697) 2018-06-22 18:19:37 +02:00