Merge "Exempt framework-res from UseApiFingerprint" am: cd2df5dec6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1621782 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I3b0835d9a048818245f1eced9e78b8fffc78ff37
This commit is contained in:
@@ -91,7 +91,7 @@ func manifestFixer(ctx android.ModuleContext, manifest android.Path, sdkContext
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.ModuleErrorf("invalid targetSdkVersion: %s", err)
|
ctx.ModuleErrorf("invalid targetSdkVersion: %s", err)
|
||||||
}
|
}
|
||||||
if UseApiFingerprint(ctx) {
|
if UseApiFingerprint(ctx) && ctx.ModuleName() != "framework-res" {
|
||||||
targetSdkVersion = ctx.Config().PlatformSdkCodename() + fmt.Sprintf(".$$(cat %s)", ApiFingerprintPath(ctx).String())
|
targetSdkVersion = ctx.Config().PlatformSdkCodename() + fmt.Sprintf(".$$(cat %s)", ApiFingerprintPath(ctx).String())
|
||||||
deps = append(deps, ApiFingerprintPath(ctx))
|
deps = append(deps, ApiFingerprintPath(ctx))
|
||||||
}
|
}
|
||||||
@@ -100,7 +100,7 @@ func manifestFixer(ctx android.ModuleContext, manifest android.Path, sdkContext
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.ModuleErrorf("invalid minSdkVersion: %s", err)
|
ctx.ModuleErrorf("invalid minSdkVersion: %s", err)
|
||||||
}
|
}
|
||||||
if UseApiFingerprint(ctx) {
|
if UseApiFingerprint(ctx) && ctx.ModuleName() != "framework-res" {
|
||||||
minSdkVersion = ctx.Config().PlatformSdkCodename() + fmt.Sprintf(".$$(cat %s)", ApiFingerprintPath(ctx).String())
|
minSdkVersion = ctx.Config().PlatformSdkCodename() + fmt.Sprintf(".$$(cat %s)", ApiFingerprintPath(ctx).String())
|
||||||
deps = append(deps, ApiFingerprintPath(ctx))
|
deps = append(deps, ApiFingerprintPath(ctx))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user