Search in sources :

Example 1 with ApexImageTargeting

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);
}
Also used : ApexImageTargeting(com.android.bundle.Targeting.ApexImageTargeting) TargetedApexImage(com.android.bundle.Files.TargetedApexImage) Test(org.junit.Test)

Example 2 with ApexImageTargeting

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);
}
Also used : ApexImageTargeting(com.android.bundle.Targeting.ApexImageTargeting) Test(org.junit.Test)

Aggregations

ApexImageTargeting (com.android.bundle.Targeting.ApexImageTargeting)2 Test (org.junit.Test)2 TargetedApexImage (com.android.bundle.Files.TargetedApexImage)1