Allow mobileInstallResourceApks to be null.
RELNOTES: None.
@@ -404,7 +404,7 @@ public abstract class AndroidBinary implements RuleConfiguredTargetFactory {
NativeLibs nativeLibs,
ApplicationManifest applicationManifest,
ResourceApk resourceApk,
- MobileInstallResourceApks mobileInstallResourceApks,
+ @Nullable MobileInstallResourceApks mobileInstallResourceApks,
ResourceApk instantRunResourceApk,
boolean shrinkResources,
JavaTargetAttributes resourceClasses,
@@ -633,6 +633,7 @@ public abstract class AndroidBinary implements RuleConfiguredTargetFactory {
builder.addOutputGroup(OutputGroupProvider.HIDDEN_TOP_LEVEL, oneVersionEnforcementArtifact);
}
+ if (mobileInstallResourceApks != null) {
AndroidBinaryMobileInstall.addMobileInstall(
ruleContext,
builder,
@@ -647,6 +648,7 @@ public abstract class AndroidBinary implements RuleConfiguredTargetFactory {
dataDeps,
additionalMergedManifests,
applicationManifest);
+ }
return builder
.setFilesToBuild(filesToBuild)
