LayoutCast icon indicating copy to clipboard operation
LayoutCast copied to clipboard

Debug only dependency

Open gingo opened this issue 10 years ago • 2 comments

Shouldn't we add dependency for LayoutCast as debug only?

dependencies {
    debugCompile 'com.github.mmin18.layoutcast:library:1.+@aar'
    ...
}

gingo avatar Aug 16 '15 18:08 gingo

You can do that if in your Application class (defined in AndroidManifest.xml) has a different code base in your debug flavor vs your release flavor. If you do have a different debug class flavor of your Application class, then within that method's on create, you don't need the "if BuildConfig.DEBUG" check before initing layout cast.

paetztm avatar Aug 17 '15 13:08 paetztm