mirror of
https://github.com/bitwarden/android.git
synced 2026-03-11 20:54:58 -05:00
[PM-24411] Introduce BuildInfoManager for build-related information (#5654)
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user