Fix aapt2 with mobile-install v1
Previously, the resource apk was always built with aapt regardless of configuration. This threads the aapt version into the resource processing action builder.
Fixes:
Ref:
RELNOTES: mobile-install now works with aapt2. Try it out with `bazel mobile-install --android_aapt=aapt2 //my:target`
@@ -118,6 +118,7 @@ public class ProcessedAndroidData {
AndroidResourcesProcessorBuilder builder =
builderForTopLevelTarget(dataContext, manifest, proguardPrefix, manifestValues)
+ .targetAaptVersion(AndroidAaptVersion.chooseTargetAaptVersion(ruleContext))
.setApkOut(apkOut)
.setMergedResourcesOut(mergedResourcesOut);
