diff --git a/custom/build.gradle.kts b/custom/build.gradle.kts index e743c213ab..0d16504022 100644 --- a/custom/build.gradle.kts +++ b/custom/build.gradle.kts @@ -176,7 +176,9 @@ fun ProductFlavor.createPublishApkWithExpansionTask( createPublisher(File(rootDir, "playstore.json")) .transactionWithCommit(packageName) { val variants = - applicationVariants.releaseVariantsFor(this@createPublishApkWithExpansionTask) + applicationVariants.releaseVariantsFor(this@createPublishApkWithExpansionTask).also { + print("createPublishApkWithExpansionTask: $it") + } variants.forEach(::uploadApk) uploadExpansionTo(file, variants[0].versionCodeOverride) variants.drop(1).forEach { attachExpansionTo(variants[0].versionCodeOverride, it) } @@ -189,7 +191,9 @@ fun ProductFlavor.createPublishApkWithExpansionTask( @Suppress("DEPRECATION") fun DomainObjectSet.releaseVariantsFor(productFlavor: ProductFlavor) = find { it.name.equals("${productFlavor.name}Release", true) }!! - .outputs.filterIsInstance().sortedBy { it.versionCodeOverride } + .outputs.filterIsInstance() + .filter { !it.outputFileName.contains("universal") } + .sortedBy { it.versionCodeOverride } fun ProductFlavor.createPublishBundleWithAssetPlayDelivery(): Task { val capitalizedName =