Skip to content

Commit

Permalink
Remove deprecated buildDir usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Nov 3, 2023
1 parent 69299a8 commit 68f0430
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class EasyLauncherPlugin : Plugin<Project> {
.toCreate(com.android.build.gradle.internal.scope.InternalArtifactType.GENERATED_RES)
} else {
// legacy way to hook up the plugin
val generatedResDir = buildDir.resolve("generated/easylauncher/res/${variant.name}")
val generatedResDir = layout.buildDirectory.map { it.dir("generated/easylauncher/res/${variant.name}") }

Check warning on line 133 in easylauncher/src/main/kotlin/com/project/starter/easylauncher/plugin/EasyLauncherPlugin.kt

View check run for this annotation

Codecov / codecov/patch

easylauncher/src/main/kotlin/com/project/starter/easylauncher/plugin/EasyLauncherPlugin.kt#L133

Added line #L133 was not covered by tests
task.configure { it.outputDir.set(generatedResDir) }
project.afterEvaluate {
val android = extensions.getByName("android") as BaseExtension
Expand Down

0 comments on commit 68f0430

Please sign in to comment.