i want to change isDebug variable when i change built type from debug/relese
here is simple class where i want set true/false isDebug
public class StartConfig {
public static boolean isDebug;
}
here is my build.gradle
buildTypes {
release {
minifyEnabled false
StartConfig.isDebug = false // here i want to set variable
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug
StartConfig.isDebug = true // here i want to set variable
minifyEnabled false
}
}
how can i do it ?