mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Dactyloidae iOS initial commit
This commit is contained in:
parent
daa6179d22
commit
7154a0497e
2123 changed files with 197052 additions and 0 deletions
52
mobile/ios/Client/Telemetry/ActivityStreamTopics.swift
Normal file
52
mobile/ios/Client/Telemetry/ActivityStreamTopics.swift
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
import JSONSchema
|
||||
import SyncTelemetry
|
||||
|
||||
// MARK: Activity Stream
|
||||
extension PingCentreTopic {
|
||||
|
||||
static var ActivityStreamEvents: PingCentreTopic {
|
||||
let schema = Schema([
|
||||
"type": "object",
|
||||
"properties": [
|
||||
// AS-Specific properties
|
||||
"event": ["type": "string"],
|
||||
"page": ["type": "string"],
|
||||
"source": ["type": "string"],
|
||||
"action_position": ["type": "number"],
|
||||
"share_provider": ["type": "string"],
|
||||
|
||||
// Application metadata
|
||||
"app_version": ["type": "string"],
|
||||
"build": ["type": "string"],
|
||||
"locale": ["type": "string"],
|
||||
"release_channel": ["type": "string"]
|
||||
],
|
||||
"required": ["app_version", "build", "locale", "event", "release_channel"]
|
||||
])
|
||||
|
||||
return PingCentreTopic(name: "activity-stream-mobile-events", schema: schema)
|
||||
}
|
||||
|
||||
static var ActivityStreamSessions: PingCentreTopic {
|
||||
let schema = Schema([
|
||||
"type": "object",
|
||||
"properties": [
|
||||
// AS-Specific properties
|
||||
"session_duration": ["type": "number"],
|
||||
|
||||
// Application metadata
|
||||
"app_version": ["type": "string"],
|
||||
"build": ["type": "string"],
|
||||
"locale": ["type": "string"],
|
||||
"release_channel": ["type": "string"]
|
||||
],
|
||||
"required": ["app_version", "build", "locale", "session_duration", "release_channel"]
|
||||
])
|
||||
|
||||
return PingCentreTopic(name: "activity-stream-mobile-sessions", schema: schema)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue