mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-20 09:06:45 +00:00
refactor: dedicated constants package, no explicit bridge version
This commit is contained in:
committed by
Jakub Cuth
parent
32ca7b3903
commit
522cadb8b1
@ -23,6 +23,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/ProtonMail/gopenpgp/constants"
|
||||
"github.com/ProtonMail/proton-bridge/pkg/pmapi"
|
||||
)
|
||||
|
||||
@ -48,13 +49,16 @@ func (c *fakeConfig) ClearData() error {
|
||||
}
|
||||
func (c *fakeConfig) GetAPIConfig() *pmapi.ClientConfig {
|
||||
return &pmapi.ClientConfig{
|
||||
AppVersion: "Bridge_" + os.Getenv("VERSION"),
|
||||
AppVersion: "Bridge_" + constants.Version,
|
||||
ClientID: "bridge",
|
||||
}
|
||||
}
|
||||
func (c *fakeConfig) GetDBDir() string {
|
||||
return c.dir
|
||||
}
|
||||
func (c *fakeConfig) GetVersion() string {
|
||||
return constants.Version
|
||||
}
|
||||
func (c *fakeConfig) GetLogDir() string {
|
||||
return c.dir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user