From a31a1e6ec7b85c26647e392102842e9b6227dd2e Mon Sep 17 00:00:00 2001 From: Norbel AMBANUMBEN Date: Tue, 30 Jul 2024 08:14:54 +0100 Subject: [PATCH] chore: update task registration for copy common flavor resource --- composeApp/build.gradle.kts | 6 +++++- gradle.properties | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index 5f454b44..1051d870 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -197,7 +197,11 @@ tasks.register("cleanCopiedCommonResourcesToFlavor") { * * NOTE: Current limitation is that multiple resources directories are not supported. */ -tasks.named("prepareComposeResourcesTaskForCommonMain").configure { +tasks.named("preBuild").configure { + dependsOn("copyCommonResourcesToFlavor") +} + +tasks.named("clean").configure { dependsOn("copyCommonResourcesToFlavor") } diff --git a/gradle.properties b/gradle.properties index 4029470f..59e98477 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,4 +11,3 @@ android.useAndroidX=true kotlin.mpp.androidSourceSetLayoutVersion=2 kotlin.mpp.enableCInteropCommonization=true -organization=dw