DebugDrawer icon indicating copy to clipboard operation
DebugDrawer copied to clipboard

Include view-no-op in debugdrawer-no-op

Open Sloy opened this issue 7 years ago • 0 comments

For consistency, debugdrawer-no-op should include view-no-op, the same way the normal submodules do.

Otherwise, if you're using the DebugView in your code and have dependencies like this

debugCompile "io.palaima.debugdrawer:debugdrawer:$version"
releaseCompile "io.palaima.debugdrawer:debugdrawer-no-op:$version"

will make the compilation fail only on release buildType because it can't find DebugView class.

Another workaround is doing

debugCompile "io.palaima.debugdrawer:debugdrawer:$version"
releaseCompile "io.palaima.debugdrawer:debugdrawer-no-op:$version"
releaseCompile "io.palaima.debugdrawer:debugdrawer-view-no-op:$version"

which is kinda ugly in my opinion.

Sloy avatar Feb 09 '18 10:02 Sloy