register gradle wrapper as universal artifact (#30755)

This commit is contained in:
Jonah Williams 2019-04-08 20:22:34 -07:00 committed by GitHub
parent d62635a3d0
commit ed49122aa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -701,11 +701,14 @@ class IOSEngineArtifacts extends EngineCachedArtifact {
}
/// A cached artifact containing Gradle Wrapper scripts and binaries.
///
/// While this is only required for Android, we need to always download it due
/// the ensurePlatformSpecificTooling logic.
class GradleWrapper extends CachedArtifact {
GradleWrapper(Cache cache) : super(
'gradle_wrapper',
cache,
const <DevelopmentArtifact>{ DevelopmentArtifact.android },
const <DevelopmentArtifact>{ DevelopmentArtifact.universal },
);
List<String> get _gradleScripts => <String>['gradlew', 'gradlew.bat'];