frogermcs / AndroidDevMetrics

Performance metrics library for Android development (includes dagger2metrics)
1.54k stars 118 forks source link

Import doesn't work with beta build type #15

Closed sealskej closed 8 years ago

sealskej commented 8 years ago

I have beta build type defined in build.gradle file with the same settings as debug build type. When I want to build this beta build (./gradlew assembleBeta) I get the error message with missing import com.frogermcs.androiddevmetrics.AndroidDevMetrics. Debug and release build types work properly.

williamwebb commented 8 years ago

The plugin will only automatically add imports for the debug and release sourcesets. Assuming you don't want the functionality for your beta build type for a temp fix you can just add the noop dependency to your betaComplile.

betaCompile 'com.frogermcs.androiddevmetrics:androiddevmetrics-runtime-noop:0.3.1'
sealskej commented 8 years ago

Works well. Thank you!