默认情况下,我的gradle(通过Android Studio)生成BuildConfig
,其中包含一些字段:
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String PACKAGE_NAME = "com.my.package";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 14101415;
public static final String VERSION_NAME = "";
}
这些字段定义为生成在哪里?
答案 0 :(得分:0)
它们由编译器使用gradle.conf
文件