title: How to create an android library than can be used only in debug mode?
body: <p>This is my situation. I want to create an android artifact to be used in other projects. But, I want this library to be used only for debugging purposes. I think in just import the library like this</p>
  <pre><code>debugImplementation &quot;com.example.android.debugin_library:1.0.0&quot;
  </code></pre>
  <p>But I want to have more control and avoid that somebody else at some point adds this library in release mode. I was thinking if It's possible to launch a compile-time error if somebody does something like this:</p>
  <pre><code>Implementation:&quot;com.example.android.debugin_library:1.0.0&quot;
  releaseImplementation:&quot;com.example.android.debugin_library:1.0.0&quot;
  </code></pre>
  <p>Any idea will be great! Thanks! :D</p>