Java Code Examples for com.android.builder.core.VariantType#DEFAULT
The following examples show how to use
com.android.builder.core.VariantType#DEFAULT .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AndroidManifestProcessor.java From bazel with Apache License 2.0 | 5 votes |
/** Process a manifest for a library or a binary and return the merged android data. */ public MergedAndroidData processManifest( VariantType variantType, String customPackageForR, String applicationId, int versionCode, String versionName, MergedAndroidData primaryData, Path processedManifest, boolean logWarnings) { ManifestMerger2.MergeType mergeType = variantType == VariantType.DEFAULT ? ManifestMerger2.MergeType.APPLICATION : ManifestMerger2.MergeType.LIBRARY; String newManifestPackage = variantType == VariantType.DEFAULT ? applicationId : customPackageForR; if (versionCode != -1 || versionName != null || newManifestPackage != null) { processManifest( versionCode, versionName, primaryData.getManifest(), processedManifest, mergeType, newManifestPackage, logWarnings); return new MergedAndroidData( primaryData.getResourceDir(), primaryData.getAssetDir(), processedManifest); } return primaryData; }
Example 2
Source File: ApplicationVariantFactory.java From javaide with GNU General Public License v3.0 | 4 votes |
@NonNull @Override public VariantType getVariantConfigurationType() { return VariantType.DEFAULT; }