use of com.android.bundle.Targeting.ApexImageTargeting in project bundletool by google.
the class TargetingUtilsTest method targetedApexImage.
@Test
public void targetedApexImage() {
ApexImageTargeting targeting = ApexImageTargeting.newBuilder().setMultiAbi(MULTI_ABI_WITH_ALTERNATIVES).build();
TargetedApexImage apexImage = TargetingUtils.targetedApexImage("path", targeting);
assertThat(apexImage.getPath()).isEqualTo("path");
assertThat(apexImage.getTargeting()).ignoringRepeatedFieldOrder().isEqualTo(targeting);
}
use of com.android.bundle.Targeting.ApexImageTargeting in project bundletool by google.
the class TargetingUtilsTest method apexImageTargeting.
@Test
public void apexImageTargeting() {
ApexImageTargeting expected = ApexImageTargeting.newBuilder().setMultiAbi(MULTI_ABI_NO_ALTERNATIVES).build();
assertThat(TargetingUtils.apexImageTargeting("armeabi-v7a", "arm64-v8a")).isEqualTo(expected);
}
Aggregations