DataDog / expo-datadog

Datadog SDK for Expo
Apache License 2.0
8 stars 5 forks source link

Fix gradle build when android proguard mapping files upload is disabled #27

Closed louiszawadzki closed 6 months ago

louiszawadzki commented 6 months ago

What does this PR do?

We rely on the datadog closure to set project.datadog.serviceName when setting a custom service name. However, we need the datadog android gradle plugin to be added for the closure to be defined.

When android proguard mapping files upload is disabled, the plugin was not installed and so the gradle build was failing.

We could handle this case by using project.ext.datadog to set the serviceName in this particular case, but I think it's easier to always install the plugin and have only one way of setting the serviceName.

Review checklist (to be filled by reviewers)