Skip to content

Commit 35ebb86

Browse files
brettchabotcopybara-androidxtest
authored andcommitted
Populate versionName in orchestrator apk.
PiperOrigin-RevId: 745215074
1 parent f3a4c3b commit 35ebb86

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

runner/android_test_orchestrator/stubapp/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@build_bazel_rules_android//android:rules.bzl", "android_binary")
2+
load("//build_extensions:axt_versions.bzl", "ORCHESTRATOR_VERSION")
23
load("//build_extensions/maven:axt_maven_apk.bzl", "axt_maven_apk")
34
load("//build_extensions/maven:maven_artifact.bzl", "maven_artifact")
45

@@ -16,6 +17,9 @@ android_binary(
1617
srcs = ["src/androidx/test/orchestrator/Orchestrator.java"],
1718
custom_package = "androidx.test.orchestrator.stubapp",
1819
manifest = "src/AndroidManifest.xml",
20+
manifest_values = {
21+
"appVersion": ORCHESTRATOR_VERSION,
22+
},
1923
multidex = "native", # actually fits into one file, so skip main dex list
2024
proguard_specs = [
2125
"//:proguard_binary.cfg",

runner/android_test_orchestrator/stubapp/src/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
-->
1717

1818
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19-
package="androidx.test.orchestrator">
19+
package="androidx.test.orchestrator"
20+
android:versionCode="1"
21+
android:versionName="${appVersion}">
2022

2123
<queries>
2224
<package android:name="androidx.test.services" />

0 commit comments

Comments
 (0)