Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40660d21 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Changes tree built Robolectric name"

parents 4ea60526 c964841e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -417,10 +417,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",
			"R")
		// "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)
	}