Ensures flutter jar is added to all build types on plugin projects (#34573)

This commit is contained in:
Josh Burton
2019-06-26 05:40:55 +12:00
committed by Emmanuel Garcia
parent c7408be181
commit 577c2fc48c
3 changed files with 65 additions and 23 deletions

View File

@@ -164,6 +164,17 @@ Future<void> main() async {
await project.runGradleTask('assembleBeta');
});
await runProjectTest((FlutterProject project) async {
section('gradlew assembleLocal (plugin with custom build type)');
await project.addCustomBuildType('local', initWith: 'debug');
await project.addGlobalBuildType('local', initWith: 'debug');
section('Add plugin');
await project.addPlugin('path_provider');
await project.getPackages();
await project.runGradleTask('assembleLocal');
});
await runProjectTest((FlutterProject project) async {
section('gradlew assembleFreeDebug (product flavor)');
await project.addProductFlavors(<String>['free']);