/** Checks if the specified api version is having legacy multidex support. */ public static boolean isLegacyMultidex(@NonNull ApiVersion apiVersion) { if (isPreview(apiVersion)) { //noinspection ConstantConditions - it is preview, so codename is not null return SdkVersionInfo.getApiByPreviewName(apiVersion.getCodename(), true) < 21; } else { return apiVersion.getApiLevel() < 21; } }
if (!DefaultApiVersion.isPreview(options.getMinSdkVersion())) { builder.addArgs( "-D", "jack.android.min-api-level=" + options.getMinSdkVersion().getApiLevel());
if (!DefaultApiVersion.isPreview(options.getMinSdkVersion())) { config.setAndroidMinApiLevel(options.getMinSdkVersion().getApiLevel());