use of com.android.tools.build.bundletool.model.BundleModule in project bundletool by google.
the class AndroidManifestValidatorTest method withMultipleEqualSplitIds.
@Test
public void withMultipleEqualSplitIds() throws Exception {
BundleModule module = new BundleModuleBuilder(FEATURE_MODULE_NAME).setManifest(androidManifestForFeature(PKG_NAME, withSplitId(FEATURE_MODULE_NAME), withSecondSplitId(FEATURE_MODULE_NAME))).build();
// We accept multiple identical split IDs, so this should not throw.
new AndroidManifestValidator().validateModule(module);
}
use of com.android.tools.build.bundletool.model.BundleModule in project bundletool by google.
the class AndroidManifestValidatorTest method withMinSdkUndeclared_ok.
@Test
public void withMinSdkUndeclared_ok() throws Exception {
BundleModule base = baseModule(withMinSdkVersion(20));
BundleModule module = new BundleModuleBuilder(FEATURE_MODULE_NAME).setManifest(androidManifest(PKG_NAME)).build();
new AndroidManifestValidator().validateAllModules(ImmutableList.of(base, module));
// No exception thrown.
}
use of com.android.tools.build.bundletool.model.BundleModule in project bundletool by google.
the class AndroidManifestValidatorTest method nonBase_withFusingConfigFalse_ok.
@Test
public void nonBase_withFusingConfigFalse_ok() throws Exception {
BundleModule module = new BundleModuleBuilder(FEATURE_MODULE_NAME).setManifest(androidManifest(PKG_NAME, withOnDemandAttribute(true), withFusingAttribute(false))).build();
new AndroidManifestValidator().validateModule(module);
}
use of com.android.tools.build.bundletool.model.BundleModule in project bundletool by google.
the class AndroidManifestValidatorTest method instantFeature_noMaxSdk.
@Test
public void instantFeature_noMaxSdk() throws Exception {
BundleModule module = new BundleModuleBuilder(FEATURE_MODULE_NAME).setManifest(androidManifest(PKG_NAME, withInstant(true), withOnDemandAttribute(false), withFusingAttribute(false))).build();
new AndroidManifestValidator().validateModule(module);
}
use of com.android.tools.build.bundletool.model.BundleModule in project bundletool by google.
the class AndroidManifestValidatorTest method nonBase_withoutFusingConfigAndIsInstant_ok.
@Test
public void nonBase_withoutFusingConfigAndIsInstant_ok() throws Exception {
BundleModule module = new BundleModuleBuilder(FEATURE_MODULE_NAME).setManifest(androidManifest(PKG_NAME, withInstant(true), withOnDemandAttribute(false))).build();
new AndroidManifestValidator().validateModule(module);
}
Aggregations