DataDog / dd-sdk-android-gradle-plugin

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

UploadMapping* Tasks not available #273

Closed ConnorJBishop closed 3 months ago

ConnorJBishop commented 4 months ago

Describe what happened Adding the plugin to build.gradle script in a kotlin project does not provide any uploadMapping* tasks

Steps to reproduce the issue:

  1. Create a minimal Kotlin application in Android Studio
  2. Add id("com.datadoghq.dd-sdk-android-gradle-plugin") version "1.14.0" in the plugins block in the app/build.gradle.kts file
  3. Sync gradle file changes (Task :prepareKotlinBuildScriptModel)
  4. Build project
  5. Run gradlew uploadMappingDebug
  6. Observe Task 'uploadMappingDebug' not found in root project 'My Application' and its subprojects.

Describe what you expected: uploadMappingDebug task to be available

Additional context

0xnm commented 4 months ago

Hello @ConnorJBishop!

Upload tasks will only be created for the particular application variant if it has isMinifyEnabled = true (or nonDefaultObfuscation = true in datadog extension) or if it has NDK files to build.

Can you please share your build configuration?

ConnorJBishop commented 3 months ago

@0xnm thanks for your reply. It was indeed related to my build config, I can see the tasks now :)