if (config.getVariantType() != VariantType.ANDROID_TEST && config.getCustomPackageForR() != null) { builder.add("--custom-package", config.getCustomPackageForR()); if (config.getVariantType() == VariantType.LIBRARY) { generateFinalIds = false; } else if (config.getVariantType() == VariantType.ATOM && config.getBaseFeature() != null) { generateFinalIds = false; if (config.getSymbolOutputDir() != null && (config.getVariantType() == VariantType.LIBRARY || !config.getLibraries().isEmpty())) {
if (aaptConfig.getVariantType() == VariantType.LIBRARY) { finalIds = false; } else if (aaptConfig.getVariantType() == VariantType.ATOM && aaptConfig.getBaseFeature() != null) { finalIds = false;
if (packageConfig.getVariantType() == null) { throw new AaptException("Variant type not set.");
if (config.getVariantType() != VariantType.ANDROID_TEST && config.getCustomPackageForR() != null) { builder.addArgs("--custom-package", config.getCustomPackageForR()); if (config.getVariantType() == VariantType.LIBRARY) { generateFinalIds = false; } else if (config.getVariantType() == VariantType.ATOM && config.getBaseFeature() != null) { generateFinalIds = false; if (config.getSymbolOutputDir() != null && (config.getVariantType() == VariantType.LIBRARY || !config.getLibraries().isEmpty())) { builder.addArgs(