Changes tree built Robolectric name
Bug: b/194219998 Test: locally ran all in-tree Robolectric tests Change-Id: If13583f6a2882e2e78d3004afc476debf6692df9 Merged-In: If13583f6a2882e2e78d3004afc476debf6692df9
This commit is contained in:
parent
e8273d7bb0
commit
69e65b3fcd
1 changed files with 4 additions and 2 deletions
|
@ -417,8 +417,10 @@ func (r *robolectricRuntimes) GenerateAndroidBuildActions(ctx android.ModuleCont
|
|||
}
|
||||
runtimeFromSourceJar := android.OutputFileForModule(ctx, runtimeFromSourceModule, "")
|
||||
|
||||
runtimeName := fmt.Sprintf("android-all-%s-robolectric-r0.jar",
|
||||
ctx.Config().PlatformSdkCodename())
|
||||
// "TREE" name is essential here because it hooks into the "TREE" name in
|
||||
// Robolectric's SdkConfig.java that will always correspond to the NEWEST_SDK
|
||||
// in Robolectric configs.
|
||||
runtimeName := "android-all-current-robolectric-r0.jar"
|
||||
installedRuntime := ctx.InstallFile(androidAllDir, runtimeName, runtimeFromSourceJar)
|
||||
r.runtimes = append(r.runtimes, installedRuntime)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue