Skip to content

Commit

Permalink
Fix f-droid build.
Browse files Browse the repository at this point in the history
gradle command doesn't include :app: so contains would fail and plugins wouldn't get copied
  • Loading branch information
TuxPaper committed Sep 19, 2023
1 parent 6be0fa0 commit b7ebf25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,9 @@ tasks.register('copyPluginFiles') {
}

def taskReq = getGradle().getStartParameter().getTaskRequests().toString()
//println taskReq // [DefaultTaskExecutionRequest{args=[:app:assembleCoreFlavorGoogleFlavorDebug],projectPath='null'}]
if (taskReq.contains(":assembleCoreFlavor")) {
// println taskReq // [DefaultTaskExecutionRequest{args=[assembleCoreFlavorFossFlavorRelease],projectPath='null',rootDir='null'}]
if (taskReq.contains("assembleCoreFlavor")) {
println "adding copyPluginFiles to preBuild"
preBuild.dependsOn(copyPluginFiles)
}

Expand Down

0 comments on commit b7ebf25

Please sign in to comment.