AndroidDevMetrics icon indicating copy to clipboard operation
AndroidDevMetrics copied to clipboard

Usage with custom buildTypes

Open MFlisar opened this issue 8 years ago • 2 comments

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...

MFlisar avatar Apr 19 '16 14:04 MFlisar

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'

williamwebb avatar Apr 19 '16 14:04 williamwebb

So runtume only, noop for release builds.

Thanks

MFlisar avatar Apr 19 '16 14:04 MFlisar