diff --git a/packages/flutter_tools/gradle/flutter.gradle b/packages/flutter_tools/gradle/flutter.gradle index 1248c3eec24..33186348b27 100644 --- a/packages/flutter_tools/gradle/flutter.gradle +++ b/packages/flutter_tools/gradle/flutter.gradle @@ -258,7 +258,7 @@ class FlutterPlugin implements Plugin { Boolean previewDart2Value = false if (project.hasProperty('preview-dart-2')) { - previewDart2Value = project.property('preview-dart-2') + previewDart2Value = project.property('preview-dart-2').toBoolean() } String[] fileSystemRootsValue = null if (project.hasProperty('filesystem-roots')) { @@ -270,8 +270,9 @@ class FlutterPlugin implements Plugin { } Boolean trackWidgetCreationValue = false if (project.hasProperty('track-widget-creation')) { - trackWidgetCreationValue = project.property('track-widget-creation') + trackWidgetCreationValue = project.property('track-widget-creation').toBoolean() } + String extraFrontEndOptionsValue = null if (project.hasProperty('extra-front-end-options')) { extraFrontEndOptionsValue = project.property('extra-front-end-options') @@ -282,7 +283,7 @@ class FlutterPlugin implements Plugin { } Boolean preferSharedLibraryValue = false if (project.hasProperty('prefer-shared-library')) { - preferSharedLibraryValue = project.property('prefer-shared-library') + preferSharedLibraryValue = project.property('prefer-shared-library').toBoolean() } String targetPlatformValue = null if (project.hasProperty('target-platform')) { diff --git a/packages/flutter_tools/lib/src/bundle.dart b/packages/flutter_tools/lib/src/bundle.dart index 0a5e18a2a21..f1da29b8a83 100644 --- a/packages/flutter_tools/lib/src/bundle.dart +++ b/packages/flutter_tools/lib/src/bundle.dart @@ -85,6 +85,7 @@ Future build({ ..add(mainPath); final Map properties = { 'entryPoint': mainPath, + 'trackWidgetCreation': trackWidgetCreation.toString(), }; return new Fingerprint.fromBuildInputs(properties, compilerInputPaths); }