Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 402 Bytes

EXCLUDING_INSPEKTIFY_FROM_RELEASE_BUILDS.md

File metadata and controls

14 lines (12 loc) · 402 Bytes

Excluding Inspektify from Release Builds

Since this is a debug tool and we wouldn't want our production users to have the possibility to access this tool we need to exclude the library from the release build. This can be easily done with if statement before installing the plugin for a Ktor client like this:

HttpClient() {
    ...
    if (isDebug()) {
      install(InspektifyKtor)
    }
}