Skip to content

Commit

Permalink
Remove backwards-compatibility hack
Browse files Browse the repository at this point in the history
  • Loading branch information
badboy committed Aug 2, 2023
1 parent d9cc507 commit f5fc171
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,7 @@ except:
// time, otherwise the `namespace` property won't be available.
TaskProvider buildConfigProvider = variant.getGenerateBuildConfigProvider()
def configProvider = buildConfigProvider.get()
def originalPackageName
// In Gradle 6.x `getBuildConfigPackageName` was repalced by `namespace`.
// We want to be forward compatible, so we check that first or fallback to the old method.
if (configProvider.hasProperty("namespace")) {
originalPackageName = configProvider.namespace.get()
} else {
originalPackageName = configProvider.getBuildConfigPackageName().get()
}
def originalPackageName = configProvider.namespace.get()

args "-s"
args "namespace=${originalPackageName}.GleanMetrics"
Expand Down

0 comments on commit f5fc171

Please sign in to comment.