Skip to content

Commit 80fb032

Browse files
SaintPatrckclaude
andcommitted
Update testharness to read version from libs.versions.toml
Changes testharness module to read versionCode and versionName from libs.versions.toml instead of using hardcoded values. This aligns with the pattern used by app and authenticator modules and ensures the setBuildVersionInfo Fastlane task in the workflow actually updates the testharness build version. Before: versionCode = 1 versionName = "1.0.0" After: versionCode = libs.versions.appVersionCode.get().toInt() versionName = libs.versions.appVersionName.get() Addresses Finding 3 from code review of PR #6181. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent f3a86fc commit 80fb032

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testharness/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ android {
1919
// API 28 - CredentialManager with Play Services support
2020
minSdk = libs.versions.minSdkBwa.get().toInt()
2121
targetSdk = libs.versions.targetSdk.get().toInt()
22-
versionCode = 1
23-
versionName = "1.0.0"
22+
versionCode = libs.versions.appVersionCode.get().toInt()
23+
versionName = libs.versions.appVersionName.get()
2424

2525
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2626
}

0 commit comments

Comments
 (0)