fixed file path

This commit is contained in:
Gouri Panda 2023-05-09 20:36:40 +05:30
parent a0c5332b44
commit 8c26fa28ef

View File

@ -82,13 +82,18 @@ fun ProductFlavor.createPublishBundleWithExpansionTask(
"$rootDir/custom/tunisie/" + "$rootDir/custom/tunisie/" +
"release/custom-tunisie-release.aab" "release/custom-tunisie-release.aab"
) )
val generatedBundleFile2 =
File(
"$rootDir/custom/${capitalizedName.toLowerCase()}/" +
"release/custom-${capitalizedName.toLowerCase()}-release.aab"
)
if (generatedBundleFile.exists()) { if (generatedBundleFile.exists()) {
uploadBundle(generatedBundleFile) uploadBundle(generatedBundleFile)
uploadExpansionTo(file, variants[0].versionCode) uploadExpansionTo(file, variants[0].versionCode)
attachExpansionTo(variants[0].versionCode) attachExpansionTo(variants[0].versionCode)
addToTrackInDraft(variants[0].versionCode, versionName) addToTrackInDraft(variants[0].versionCode, versionName)
} else { } else {
throw FileNotFoundException("Unable to find generated aab file") throw FileNotFoundException("Unable to find generated aab file generatedFile ${generatedBundleFile.path} & generatedBundleFile2 ${generatedBundleFile2.path}")
} }
} }
} }