frogermcs / AndroidDevMetrics

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

Usage with custom buildTypes #22

Open MFlisar opened 8 years ago

MFlisar commented 8 years ago

When using custom build types, I have to manually add the build dependencies. I use something like following:

buildTypes {
    debug {
        ...
    }
    release {
        ...
    }
    debug_pro {
        ...
    }
    release_pro {
        ...
    }
}

I'm not sure which one I have to add of following:

 debugCompile 'com.frogermcs.androiddevmetrics:androiddevmetrics-plugin:0.4'
 debugCompile 'com.frogermcs.androiddevmetrics:androiddevmetrics-runtime:0.4'
 debug_proCompile 'com.frogermcs.androiddevmetrics:androiddevmetrics-plugin:0.4'
 debug_proCompile 'com.frogermcs.androiddevmetrics:androiddevmetrics-runtime:0.4'

Do I have to add plugin and runtime or runtime only?

Additionally, it would not be bad to add the information to the readme for all people that do use custom build types...

williamwebb commented 8 years ago

Depends what functionality you want. If you want the profiling code added, add 'com.frogermcs.androiddevmetrics:androiddevmetrics-runtime:0.4'

If you dont want the profiling code added, add 'com.frogermcs.androiddevmetrics:androiddevmetrics-runtime-noop:0.4'

MFlisar commented 8 years ago

So runtume only, noop for release builds.

Thanks