DataDog / dd-sdk-android-gradle-plugin

The Datadog Gradle Plugin for Android
Apache License 2.0
14 stars 9 forks source link

Different Variants in datadog kotlin gradle cannot be resolved #195

Closed KDevvv closed 11 months ago

KDevvv commented 11 months ago

I follow your guidelines Plugin Configuration Options and cannot change serviceName field depending on build variant. I don't know why this example is written in groovy and in your sample is commented out https://github.com/DataDog/dd-sdk-android-gradle-plugin/blob/develop/samples/variants/build.gradle

  datadog {
        site = "EU1"
        mappingFileTrimIndents = true
        create("Flavour1") {
            serviceName = "AppServiceOne"
        }
        create("Flavour2") {
            serviceName = "AppServiceTwo"
        }
    }
0xnm commented 11 months ago

Hello @KamilPieta! If you are using Kotlin Build Script, can you check if the following answer https://github.com/DataDog/dd-sdk-android-gradle-plugin/issues/154#issuecomment-1463730497 solves your issue?

KDevvv commented 11 months ago

That helped, thanks!