From 8c26fa28ef047fc6cbbd1e84e99f33e14f98d1eb Mon Sep 17 00:00:00 2001 From: Gouri Panda Date: Tue, 9 May 2023 20:36:40 +0530 Subject: [PATCH] fixed file path --- custom/build.gradle.kts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/custom/build.gradle.kts b/custom/build.gradle.kts index 060932112..a9901f54c 100644 --- a/custom/build.gradle.kts +++ b/custom/build.gradle.kts @@ -82,13 +82,18 @@ fun ProductFlavor.createPublishBundleWithExpansionTask( "$rootDir/custom/tunisie/" + "release/custom-tunisie-release.aab" ) + val generatedBundleFile2 = + File( + "$rootDir/custom/${capitalizedName.toLowerCase()}/" + + "release/custom-${capitalizedName.toLowerCase()}-release.aab" + ) if (generatedBundleFile.exists()) { uploadBundle(generatedBundleFile) uploadExpansionTo(file, variants[0].versionCode) attachExpansionTo(variants[0].versionCode) addToTrackInDraft(variants[0].versionCode, versionName) } else { - throw FileNotFoundException("Unable to find generated aab file") + throw FileNotFoundException("Unable to find generated aab file generatedFile ${generatedBundleFile.path} & generatedBundleFile2 ${generatedBundleFile2.path}") } } }