Skip to content

Support build.gradle.kts in addition to build.gradle #140548

Closed
@reidbaker

Description

@reidbaker

Flutter tools currently check build.gradle file only.
Flutter should support both build.gradle and build.gradle.kts in flutter tools.

bool get isUsingGradle {
return hostAppGradleRoot.childFile('build.gradle').existsSync();
}

Some more places where build.gradle is hardcoded:
.childFile('build.gradle');

final File gradleFile = hostAppGradleRoot.childFile('build.gradle');

Helpfully pointed out in.
#121541 (comment)

Metadata

Metadata

Assignees

Labels

platform-androidAndroid applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions