Merge "Adds a workaround to fix version inconsistency" am: bac4ee008b am: 10fa2d924e

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1402212

Change-Id: I96c76a98e0d58de2d30e617d0b0c0017da041800
This commit is contained in:
Joseph Murphy
2020-11-17 02:25:10 +00:00
committed by Automerger Merge Worker

View File

@@ -389,8 +389,10 @@ func (r *robolectricRuntimes) GenerateAndroidBuildActions(ctx android.ModuleCont
}
runtimeFromSourceJar := android.OutputFileForModule(ctx, runtimeFromSourceModule, "")
// TODO(murj) Update this to ctx.Config().PlatformSdkCodename() once the platform
// classes like android.os.Build are updated to S.
runtimeName := fmt.Sprintf("android-all-%s-robolectric-r0.jar",
ctx.Config().PlatformSdkCodename())
"R")
installedRuntime := ctx.InstallFile(androidAllDir, runtimeName, runtimeFromSourceJar)
r.runtimes = append(r.runtimes, installedRuntime)
}