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

BuildConfig is not by default generated for all build types #8

Open
nenick opened this issue Mar 14, 2015 · 0 comments
Open

BuildConfig is not by default generated for all build types #8

nenick opened this issue Mar 14, 2015 · 0 comments

Comments

@nenick
Copy link
Owner

nenick commented Mar 14, 2015

This issue is tracked at https://code.google.com/p/android/issues/detail?id=52962

Solution is to make the main project depend on different build types ...
... setting this in the dependency project

android {
    publishNonDefault true
}

and this in the project that uses it

dependencies {
    releaseCompile project(path: ':theotherproject', configuration: 'release')
    debugCompile project(path: ':theotherproject', configuration: 'debug')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant