Open yuruiyin opened 3 years ago
In order to get signingConfig
in AGP3.2+, use VariantScope.getVariantConfiguration.getSigningConfig
VariantScope.getVariantConfiguration.getSigningConfig
in AGP4.0+, use VariantScope.getVariantDslInfo.getSigningConfig
VariantScope.getVariantDslInfo.getSigningConfig
And we don't need getBuildTypes, so we can remove getBuildTypesForAGPBefore4008() and getBuildTypesForAGP4009().
getBuildTypes
getBuildTypesForAGPBefore4008()
getBuildTypesForAGP4009()
And I have verified in AGP3.5.0 ,AGP 4.0.0, AGP4.0.1, AGP4.0.2.
In order to get signingConfig
in AGP3.2+, use
VariantScope.getVariantConfiguration.getSigningConfig
in AGP4.0+, use
VariantScope.getVariantDslInfo.getSigningConfig
And we don't need
getBuildTypes
, so we can removegetBuildTypesForAGPBefore4008()
andgetBuildTypesForAGP4009()
.And I have verified in AGP3.5.0 ,AGP 4.0.0, AGP4.0.1, AGP4.0.2.