@@ -29,6 +29,15 @@ export interface ConfigurationInterface {
2929 plugins ?: Plugin [ ] ,
3030 // The HTTP client implementation to use for uploading pings.
3131 httpClient ?: Uploader ,
32+ // Qt-only fields
33+ //
34+ // These values are not easily accessible from QML,
35+ // so we expose them as init fields for the caller to fill them out.
36+ //
37+ // The architecture of the device (e.g. "arm", "x86").
38+ readonly architecture ?: string ,
39+ // The user-visible version of the operating system (e.g. "1.2.3").
40+ readonly osVersion ?: string ,
3241}
3342
3443// Important: the `Configuration` should only be used internally by the Glean singleton.
@@ -41,6 +50,11 @@ export class Configuration implements ConfigurationInterface {
4150 readonly appDisplayVersion ?: string ;
4251 // The server pings are sent to.
4352 readonly serverEndpoint : string ;
53+ // The architecture of the device (e.g. "arm", "x86").
54+ readonly architecture ?: string ;
55+ // The user-visible version of the operating system (e.g. "1.2.3").
56+ readonly osVersion ?: string ;
57+
4458 // Debug configuration.
4559 debug : DebugOptions ;
4660 // The HTTP client implementation to use for uploading pings.
@@ -50,6 +64,8 @@ export class Configuration implements ConfigurationInterface {
5064 this . channel = config ?. channel ;
5165 this . appBuild = config ?. appBuild ;
5266 this . appDisplayVersion = config ?. appDisplayVersion ;
67+ this . architecture = config ?. architecture ;
68+ this . osVersion = config ?. osVersion ;
5369
5470 this . debug = Configuration . sanitizeDebugOptions ( config ?. debug ) ;
5571
0 commit comments