Issue
I'd like to get the build variant during runtime, is this possible without any extra config or code?
Solution
Look at the generated BuildConfig
class.
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "com.example.app";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "";
}
Answered By - ashishduh
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.