From 1d1c3f3f63d3b0b20a1edd6537220424e51fd49f Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Thu, 3 Apr 2025 17:15:52 +0530 Subject: [PATCH] Fixed: AAB file was not found when uploading to Play Store for custom apps. * Since we upgraded Gradle, we switched to using `layout.buildDirectory` instead of `buildDir`, as the latter is now deprecated. The new approach returns a DirectoryProperty object instead of a direct build directory path. This caused our custom apps' CD pipeline to be unable to locate the generated `.aab` file. We have now updated the code to correctly retrieve the directory path from the `DirectoryProperty` object. --- custom/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/build.gradle.kts b/custom/build.gradle.kts index 3284ccdaf..0829c4c18 100644 --- a/custom/build.gradle.kts +++ b/custom/build.gradle.kts @@ -250,7 +250,7 @@ fun ProductFlavor.createPublishBundleWithAssetPlayDelivery(): TaskProvider .transactionWithCommit(packageName) { val generatedBundleFile = File( - "${layout.buildDirectory}/outputs/bundle/${capitalizedName.lowercase(Locale.getDefault())}" + + "${layout.buildDirectory.get()}/outputs/bundle/${capitalizedName.lowercase(Locale.getDefault())}" + "Release/custom-${capitalizedName.lowercase(Locale.getDefault())}-release.aab" ) if (generatedBundleFile.exists()) {