use of com.android.bundle.Targeting.DeviceFeatureTargeting in project bundletool by google.
the class DeviceFeatureMatcherTest method skipOpenGlFeature.
@Test
public void skipOpenGlFeature() {
DeviceSpec deviceSpec = deviceFeatures("com.hardware.cool.feature");
DeviceFeatureMatcher matcher = new DeviceFeatureMatcher(deviceSpec);
ImmutableList<DeviceFeatureTargeting> deviceFeatureTargetings = ImmutableList.of(deviceFeatureTargeting(OpenGlFeatureMatcher.CONDITIONAL_MODULES_OPEN_GL_NAME, 0x30000), deviceFeatureTargeting("com.hardware.cool.feature"));
assertThat(matcher.matchesTargeting(deviceFeatureTargetings)).isTrue();
}
Aggregations