Revert^2 "Set strict_mode to true"
a475258298
Change-Id: I751aa55a873714a4344bf85a33ea26d30604bacb
This commit is contained in:
committed by
Gerrit Code Review
parent
a475258298
commit
51349b87e9
@@ -116,7 +116,7 @@ func (r *robolectricTest) DepsMutator(ctx android.BottomUpMutatorContext) {
|
||||
|
||||
if v := String(r.robolectricProperties.Robolectric_prebuilt_version); v != "" {
|
||||
ctx.AddVariationDependencies(nil, libTag, fmt.Sprintf(robolectricPrebuiltLibPattern, v))
|
||||
} else if !proptools.Bool(r.robolectricProperties.Strict_mode) {
|
||||
} else if !proptools.BoolDefault(r.robolectricProperties.Strict_mode, true) {
|
||||
if proptools.Bool(r.robolectricProperties.Upstream) {
|
||||
ctx.AddVariationDependencies(nil, libTag, robolectricCurrentLib+"_upstream")
|
||||
} else {
|
||||
@@ -124,8 +124,11 @@ func (r *robolectricTest) DepsMutator(ctx android.BottomUpMutatorContext) {
|
||||
}
|
||||
}
|
||||
|
||||
if proptools.Bool(r.robolectricProperties.Strict_mode) {
|
||||
if proptools.BoolDefault(r.robolectricProperties.Strict_mode, true) {
|
||||
ctx.AddVariationDependencies(nil, roboRuntimeOnlyTag, robolectricCurrentLib+"_upstream")
|
||||
} else {
|
||||
// opting out from strict mode, robolectric_non_strict_mode_permission lib should be added
|
||||
ctx.AddVariationDependencies(nil, libTag, "robolectric_non_strict_mode_permission")
|
||||
}
|
||||
|
||||
ctx.AddVariationDependencies(nil, libTag, robolectricDefaultLibs...)
|
||||
|
Reference in New Issue
Block a user