-
Notifications
You must be signed in to change notification settings - Fork 798
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
App debug variants are not handled properly #143
Comments
+1 |
Our project has two subprojects, main and base, and main depends upon base. When I execute ./gradlew :main:assembleDebug, :base:bundleRelease will be executed. So hugo-runtime library will not be packed in. |
+1 |
The problem has nothing todo with Hugo. It is the way Gradle resolves dependencies, from gradle docs:
You need to allow library to publish its debug variant by adding this code into library's build.gradle file:
Then force the module that depends on your library to grab
For more info check Gradle docs. |
If your app exceeds 65K limit and you use new variant just for development purpose, Hugo might not work properly, reason being in HugoPlugin.groovy only debugCompile is added as dependency.
Workwround is to manually add dependency in your build.gradle like below
if suppose
devBuild
is your variant you want to enable Hugo then add like belowThe text was updated successfully, but these errors were encountered: