[PM-24411] Introduce BuildInfoManager for build-related information (#5654)

This commit is contained in:
Patrick Honkonen
2025-08-06 14:53:03 -04:00
committed by GitHub
parent 72250dce90
commit 905e3248f2
6 changed files with 208 additions and 1 deletions

View File

@@ -0,0 +1,51 @@
package com.bitwarden.core.data.manager
/**
* An manager interface for accessing build information for a Bitwarden client application.
*
* This interface provides properties to access various build-related information such as
* whether the build is an F-Droid flavor, if it's a dev build, and details about the app version,
* SDK version, device information, and CI build info.
*/
interface BuildInfoManager {
/**
* The ID of the running application.
*/
val applicationId: String
/**
* A boolean property that indicates whether the current build flavor is "fdroid".
*/
val isFdroid: Boolean
/**
* A boolean property that indicates whether the current build is a dev build.
*/
val isDevBuild: Boolean
/**
* A string that represents a displayable app version.
*/
val versionData: String
/**
* A string that represents a displayable SDK version.
*/
val sdkData: String
/**
* A string representing the CI information if available.
*/
val ciBuildInfo: String?
/**
* A string representing the build flavor or blank if it is the standard configuration.
*/
val buildFlavorName: String
/**
* A string representing the build type.
*/
val buildTypeName: String
}