Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with custom buildTypes #22

Open
MFlisar opened this issue Apr 19, 2016 · 2 comments
Open

Usage with custom buildTypes #22

MFlisar opened this issue Apr 19, 2016 · 2 comments

Comments

@MFlisar
Copy link

MFlisar commented Apr 19, 2016

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
Copy link
Contributor

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
Copy link
Author

MFlisar commented Apr 19, 2016

So runtume only, noop for release builds.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants