Skip to content

Commit

Permalink
Reverse logic of dependency info filter
Browse files Browse the repository at this point in the history
  • Loading branch information
maniac103 committed Dec 10, 2024
1 parent 8dd2444 commit 05e0597
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ plugins {
id("kotlin-parcelize")
}

val isBuildingGms = gradle.startParameter.taskRequests.any { req ->
req.args.any { it.startsWith("assembleGms") }
val isBuildingFoss = gradle.startParameter.taskRequests.any { req ->
req.args.any { it.startsWith("assembleFoss") }
}

android {
Expand All @@ -45,8 +45,8 @@ android {

dependenciesInfo {
// Dependency info in APK is only useful for Play Store, so exclude it from FOSS build
includeInApk = isBuildingGms
includeInBundle = isBuildingGms
includeInApk = !isBuildingFoss
includeInBundle = !isBuildingFoss
}

flavorDimensions += "distribution"
Expand Down

0 comments on commit 05e0597

Please sign in to comment.