sentry-android-gradle-plugin
sentry-android-gradle-plugin copied to clipboard
Configuration of release name and distribution
Problem Statement
Currently, the only way to override defaults for the plugin is via SENTRY_RELEASE and SENTRY_DIST environment variables. I believe, this is against the Gradle's best practices for project configuration, and it creates pratical problems when app version and build number come from the app's build.gradle file, as there is no clean way to override from within build.gradle the values which Sentry's Gradle Plugin will get from System.getenv(...) call during configuration.
Solution Brainstorm
I suggest to add a way to provide custom release name and build number to the plugin via gradle properties. I am mostly noob in Gradle and Java, thus I'll leave implementation details for more knowledgeble people :)