Skip to content

Commit

Permalink
Remove TelemetryDeck
Browse files Browse the repository at this point in the history
  • Loading branch information
asiliuk committed Mar 20, 2024
1 parent 598a64e commit 47232b9
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,6 @@
"version" : "0.6.0"
}
},
{
"identity" : "swiftclient",
"kind" : "remoteSourceControl",
"location" : "https://github.com/TelemetryDeck/SwiftClient.git",
"state" : {
"revision" : "d20ccc4b8266cf739eede58cdfc7e9c6ffb41cda",
"version" : "1.5.1"
}
},
{
"identity" : "swiftui-introspect",
"kind" : "remoteSourceControl",
Expand Down
4 changes: 0 additions & 4 deletions BsuirScheduleApp/Application/App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ final class AppDelegate: NSObject, UIApplicationDelegate {
@Dependency(\.productsService) var productsService
productsService.load()

@Dependency(\.telemetryService) var telemetryService
telemetryService.setup()
telemetryService.sendAppDidFinishLaunching()

@Dependency(\.cloudSyncService) var cloudSyncService
cloudSyncService.load()
}
Expand Down
2 changes: 0 additions & 2 deletions BsuirScheduleApp/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>TELEMETRY_DECK_APP_ID</key>
<string>$(TELEMETRY_DECK_APP_ID)</string>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
Expand Down
4 changes: 1 addition & 3 deletions Modules/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/swift-dependencies.git", from: "1.0.0"),
.package(url: "https://github.com/simibac/ConfettiSwiftUI.git", from: "1.1.0"),
.package(url: "https://github.com/ryanlintott/FrameUp.git", from: "0.5.0"),
.package(url: "https://github.com/TelemetryDeck/SwiftClient.git", from: "1.4.0"),
.package(url: "https://github.com/SvenTiigi/WhatsNewKit.git", from: "2.1.0"),
.package(url: "https://github.com/AvdLee/Roadmap.git", branch: "main"),
.package(url: "https://github.com/EmergeTools/Pow", from: "1.0.0"),
Expand Down Expand Up @@ -113,7 +112,7 @@ let package = Package(
dependencies: ["BsuirCore", .urlRouting, .dependencies]),
.target(
name: "BsuirCore",
dependencies: [.dependencies, .swiftCollections, .telemetryClient]),
dependencies: [.dependencies, .swiftCollections]),
.testTarget(
name: "ScheduleCoreTests",
dependencies: ["ScheduleCore"]),
Expand All @@ -136,7 +135,6 @@ private extension Target.Dependency {
static let introspect: Self = .product(name: "SwiftUIIntrospect", package: "SwiftUI-Introspect")
static let confetti: Self = .product(name: "ConfettiSwiftUI", package: "ConfettiSwiftUI")
static let frameUp: Self = .product(name: "FrameUp", package: "FrameUp")
static let telemetryClient: Self = .product(name: "TelemetryClient", package: "SwiftClient")
static let whatsNewKit: Self = .product(name: "WhatsNewKit", package: "WhatsNewKit")
static let roadmap: Self = .product(name: "Roadmap", package: "Roadmap")
static let pow: Self = .product(name: "Pow", package: "Pow")
Expand Down
6 changes: 3 additions & 3 deletions Modules/Sources/BsuirCore/AppConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import Dependencies

public struct AppConfiguration: Equatable {
public let telemetryDeckAppId: String?
// Something will be added here later
}

// MARK: - Dependency
Expand All @@ -16,13 +16,13 @@ extension DependencyValues {

extension AppConfiguration: DependencyKey {
public static let liveValue = AppConfiguration(infoDictionary: Bundle.main.infoDictionary)
public static let previewValue = AppConfiguration(telemetryDeckAppId: "xxx-xxx-xxx")
public static let previewValue = AppConfiguration()
}

// MARK: - Info.plist

private extension AppConfiguration {
init(infoDictionary: [String: Any]?) {
self.telemetryDeckAppId = (infoDictionary?["TELEMETRY_DECK_APP_ID"] as? String)?.nilOnEmpty()
// Parse configuration from Info.plist
}
}
25 changes: 0 additions & 25 deletions Modules/Sources/BsuirCore/Telemetry/TelemetryDeckService.swift

This file was deleted.

36 changes: 0 additions & 36 deletions Modules/Sources/BsuirCore/Telemetry/TelemetryService.swift

This file was deleted.

0 comments on commit 47232b9

Please sign in to comment.