public String getApplicationId() { return manifestAttributeSupplier.getPackage(); }
public int getVersionCode() { return manifestAttributeSupplier.getVersionCode(); }
public String getVersionName() { return manifestAttributeSupplier.getVersionName(); }
/** Gets api versions for this variant that might be correlated, such as min and target sdk */ protected ApiVersions getApiVersionsNonTestVariant() { ApiVersion minSdkVersion = mMergedFlavor.getMinSdkVersion(); if (minSdkVersion == null) { // read it from the main manifest minSdkVersion = DefaultApiVersion.create( getManifestAttributeSupplier().getMinSdkVersion()); } ApiVersion targetSdkVersion = mMergedFlavor.getTargetSdkVersion(); if (targetSdkVersion == null) { // read it from the main manifest targetSdkVersion = DefaultApiVersion.create( getManifestAttributeSupplier().getTargetSdkVersion()); } return getCalculatedApiVersions(minSdkVersion, targetSdkVersion); }
/** * Reads the split name from the manifest. */ @Nullable public String getSplitFromManifest() { return getManifestAttributeSupplier().getSplit(); }
@Nullable public Boolean getFunctionalTestFromManifest(){ return getManifestAttributeSupplier().getFunctionalTest(); }
@Nullable public String getInstrumentationRunnerFromManifest(){ return getManifestAttributeSupplier().getInstrumentationRunner(); }
@Nullable public Boolean getHandleProfilingFromManifest(){ return getManifestAttributeSupplier().getHandleProfiling(); }
@Nullable public String getTestedApplicationIdFromManifest(){ return getManifestAttributeSupplier().getTargetPackage(); }
@Nullable public String getVersionNameFromManifest() { return getManifestAttributeSupplier().getVersionName(); }
/** * Reads the package name from the manifest. This is unmodified by the build type. */ @Nullable public String getPackageFromManifest() { checkState(!mType.isForTesting()); String packageName = getManifestAttributeSupplier().getPackage(); if (packageName == null) { throw new RuntimeException(String.format("Cannot read packageName from %1$s", mDefaultSourceProvider.getManifestFile().getAbsolutePath())); } return packageName; }
public int getVersionCodeFromManifest() { return getManifestAttributeSupplier().getVersionCode(); }