由gradle定义的BuildConfig中的默认字段在哪里定义?

时间:2014-10-31 11:13:09

标签: android gradle android-gradle default-value buildconfig

默认情况下,我的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 = "";
}

这些字段定义为生成在哪里?

1 个答案:

答案 0 :(得分:0)

它们由编译器使用gradle.conf文件

生成