I have met a mention of some sort of label, possibly an annotation, which does not allow for a release. It is used in order not to forget to correct the necessary places in the code.
Tell me what it is and how to turn it on?
I have met a mention of some sort of label, possibly an annotation, which does not allow for a release. It is used in order not to forget to correct the necessary places in the code.
Tell me what it is and how to turn it on?
Set Android Studio to //STOPSHIP when building if the code contains //STOPSHIP . To enable lint checking for //STOPSHIP , add to your build.gradle
android { ... lintOptions { abortOnError true fatal 'StopShip' } } If you have // ​​STOPSHIP comments in the code, the release build will not build. In addition, you can also enable highlighting of such comments in Android Studio (disabled by default). Preferences → Editor → Code Style → Inspections. Look for STOPSHIP in the search and check the box for highlighting.
Source: https://ru.stackoverflow.com/questions/619550/
All Articles