Skip to content

Commit

Permalink
chore: Add UpdateChangelogsTask
Browse files Browse the repository at this point in the history
Signed-off-by: Hu Shenghao <[email protected]>
  • Loading branch information
hushenghao committed Nov 8, 2024
1 parent f29de25 commit 05e0b88
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.dede.android_eggs.tasks

import android
import org.gradle.api.Action
import org.gradle.api.Project
import org.gradle.api.file.DirectoryProperty
Expand All @@ -9,7 +8,6 @@ import org.gradle.api.provider.Property
import org.gradle.api.tasks.Exec
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.OutputDirectory
import org.gradle.internal.extensions.stdlib.capitalized
import org.gradle.kotlin.dsl.assign
import org.gradle.kotlin.dsl.register

Expand All @@ -33,11 +31,11 @@ abstract class UpdateChangelogsTask : Exec() {
group = "custom"
}

android.applicationVariants.forEach { variant ->
val variantName = variant.name.capitalized()
val assembleTask = tasks.findByName("assemble$variantName")
assembleTask?.dependsOn(task)
}
// android.applicationVariants.forEach { variant ->
// val variantName = variant.name.capitalized()
// val assembleTask = tasks.findByName("assemble$variantName")
// assembleTask?.dependsOn(task)
// }
}
}

Expand Down

0 comments on commit 05e0b88

Please sign in to comment.