My Android project is using gradle build:
signingConfigs {
debug {
...
}
release {
...
}
}
buildTypes {
debug {
...
}
release {
...
}
}
I am wondering is there a way to detect the current build type in Java code of Android project? How to achieve this?